        :root {
            --bg: #f5f7fa;
            --sur: #ffffff;
            --sur2: #f5f6fa;
            --bor: #e5e7eb;
            --tx: #1a1a2e;
            --txs: #6b7280;
            --txd: #9ca3af;
            --ac: #5b6af7;
            --pri: #5b6af7;
            --pri-lg: linear-gradient(135deg, #5b6af7 0%, #3a4ad4 100%);
            --sun: #ef4444;
            --sat: #5b6af7;
            --nbg: #eef0ff;
            --ntx: #3a4ad4;
            --dbg: #ecfdf5;
            --dtx: #047857;
            --rbg: #fdf2f8;
            --rtx: #ef4444;
            --obg: #f3f4f6;
            --otx: #6b7280;
            --sbg: #fffbeb;
            --stx: #b45309;
            --d1bg: #f0fdf4;
            --d1tx: #15803d;
            --sh: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
            --shl: 0 8px 32px rgba(91, 106, 247, .15);
            --wl: #e2e4ee;
            --cal-fz: 16px;
            --cal-fw: 700;
            --cal-num-fz: 18px;
        }

        @media(prefers-color-scheme: dark) {
            :root {
                --bg: #0f0f18;
                --sur: #1c1c2a;
                --sur2: #242433;
                --bor: #2e2e42;
                --tx: #e8e8f4;
                --txs: #8888aa;
                --txd: #55557a;
                --nbg: #1a1d3a;
                --ntx: #8892ff;
                --dbg: #0d2b1e;
                --dtx: #34d399;
                --rbg: #2a0f1e;
                --rtx: #f472b6;
                --obg: #1e1e2a;
                --otx: #9ca3af;
                --sbg: #2a1a00;
                --stx: #fbbf24;
                --d1bg: #0d2b1e;
                --d1tx: #4ade80;
                --sh: 0 2px 16px rgba(0, 0, 0, .4);
                --shl: 0 8px 32px rgba(0, 0, 0, .5);
                --wl: #2a2a3e;
            }
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        html {
            height: 100%;
            background: #e5e7eb;
            display: flex;
            justify-content: center;
            -webkit-text-size-adjust: 100%;
            -moz-text-size-adjust: 100%;
            text-size-adjust: 100%;
        }

        @media(prefers-color-scheme: dark) {
            html {
                background: #000;
            }

            .theme-hopo .meal-menus div,
            .theme-hopo .meal-type,
            .theme-hopo .meal-time {
                color: #000 !important;
            }
        }

        body {
            font-family: 'Noto Sans KR', sans-serif;
            background: var(--bg);
            color: var(--tx);
            width: 100%;
            max-width: 480px;
            height: 100%;
            margin: 0;
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
        }

        .app {
            display: flex;
            flex-direction: column;
            height: 100vh;
        }

        .pages {
            flex: 1;
            position: relative;
            overflow: hidden;
        }

        .page {
            display: none !important;
            position: absolute;
            inset: 0;
            flex-direction: column;
            padding-bottom: 82px;
            background: var(--bg);
            z-index: 1;
        }

        .page.on {
            display: flex !important;
            z-index: 10;
        }

        .page-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            position: relative;
        }

        .page-scroll {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
        }

        .nav-btm {
            position: absolute;
            bottom: 0;
            width: 100%;
            display: flex;
            background: var(--sur);
            border-top: 1px solid var(--bor);
            height: 82px;
            padding-bottom: calc(12px + env(safe-area-inset-bottom));
            z-index: 100;
        }

        .nav-item {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .nav-icon {
            font-size: 25px;
            transition: all .3s cubic-bezier(.4, 0, .2, 1);
            opacity: 0.4;
            filter: grayscale(0.8);
            position: relative;
        }

        .nav-item.on .nav-icon {
            opacity: 1;
            filter: grayscale(0);
            transform: scale(1.2) translateY(-2px);
        }

        /* ====== 대나무숲 N 뱃지 ====== */
        .nav-icon.has-new::after {
            content: 'N';
            position: absolute;
            top: -6px;
            right: -10px;
            background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
            color: #fff;
            font-size: 9px;
            font-weight: 900;
            font-family: 'Noto Sans KR', sans-serif;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 6px rgba(255, 71, 87, 0.5);
            animation: bamboo-badge-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            pointer-events: none;
            z-index: 10;
        }

        @keyframes bamboo-badge-pop {
            0% {
                transform: scale(0);
                opacity: 0;
            }

            60% {
                transform: scale(1.3);
            }

            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        .cbadge,
        .wbadge {
            width: 78%;
            flex: 1;
            min-height: 20px;
            max-height: 34px;
            padding: 0;
            border-radius: 6px;
            font-size: clamp(15px, 4.5vw, 22px);
            /* wbadge 크기 키움 */
            font-weight: 800 !important;
            color: #fff !important;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin: 1px 0;
        }

        #pg-today .wbadge {
            min-height: 32px;
            max-height: 36px;
        }

        .col-day .cbadge {
            width: 30px;
            height: 16px;
            padding: 0;
            border-radius: 5px;
            font-size: clamp(12px, 4.2vw, 16px);
            font-weight: 800 !important;
            color: #fff !important;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin: 1px 0;
        }

        .cbadge.is-ov,
        .wbadge.is-ov {
            color: #ff5f00 !important;
            font-weight: 900 !important;
        }

        .ccell.other-month {
            opacity: 0.08 !important;
            color: #ccc !important;
            pointer-events: none !important;
        }

        .cn {
            background: var(--ntx);
        }

        .cd {
            background: var(--dtx);
        }

        .cr {
            background: var(--ntx);
        }

        .co {
            background: var(--otx);
        }

        .cs {
            background: var(--stx);
        }

        .c1 {
            background: var(--d1tx);
        }

        .sect {
            padding: 20px;
        }

        .sect-title {
            font-size: 19px;
            font-weight: 800;
            color: var(--tx);
            margin-bottom: 16px;
            letter-spacing: -0.5px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .fg {
            margin-bottom: 12px;
        }

        .flbl {
            display: block;
            font-size: 14px;
            font-weight: 700;
            color: var(--txs);
            margin-bottom: 6px;
        }

        .finp {
            width: 100%;
            box-sizing: border-box;
            background: var(--sur2);
            border: 1px solid var(--bor);
            color: var(--tx);
            padding: 10px 12px;
            border-radius: 10px;
            outline: none;
            font-family: inherit;
            font-size: 17px;
        }

        .admin-date-row {
            display: flex;
            gap: 6px;
            margin-bottom: 6px;
        }

        .admin-date-row>div {
            flex: 1;
            min-width: 0;
        }

        select.finp {
            appearance: auto;
            -webkit-appearance: auto;
        }

        .btn-row {
            display: flex;
            gap: 6px;
            margin-top: 16px;
        }

        .btn {
            padding: 12px 16px;
            border-radius: 12px;
            font-weight: 700;
            font-size: 16px;
            height: 48px;
            border: none;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .btn-pri {
            background: var(--ac);
            color: #fff;
        }

        .btn-sec {
            background: var(--sur2);
            color: var(--tx);
            border: 1px solid var(--bor);
        }

        #pg-today .hero {
            margin: 10px 16px 8px;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: var(--shl);
            background: var(--sur);
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        #pg-today .hero-text-box {
            padding: 8px 16px;
            border-bottom: 1px solid var(--bor);
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
        }

        #pg-today .hero-date,
        #pg-today .hero-name {
            font-size: 22px;
            font-weight: 900;
        }

        #pg-today .hero-name {
            color: var(--ac);
        }

        #pg-today .hero-bg {
            position: relative;
            width: 100%;
            flex: 1;
            background: #111;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            cursor: pointer;
        }

        #pg-today .hero-img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            position: absolute;
            inset: 0;
        }

        #pg-today .hero-emoji {
            font-size: 64px;
            opacity: .3;
        }

        #pg-today .wsec {
            padding: 0;
            flex-shrink: 0;
        }

        #pg-today .wsec-hd {
            margin: 0 16px 4px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        #pg-today .wk-lbl {
            font-size: 18px;
            font-weight: 900;
            color: var(--tx);
        }

        .btn-today {
            background: var(--ac);
            color: #fff;
            padding: 6px 14px;
            border-radius: 12px;
            font-size: 15px;
            font-weight: 900;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px -2px rgba(91, 106, 247, 0.3);
        }

        #pg-today .slwrap {
            overflow: hidden;
            border-radius: 12px;
            background: var(--sur);
            box-shadow: var(--sh);
            user-select: none;
            touch-action: pan-y;
            margin: 0 16px 6px 16px;
        }

        #pg-today .sltrack {
            display: flex;
            width: 600%;
            transition: transform .3s cubic-bezier(.4, 0, .2, 1);
        }

        #pg-today .slpage {
            flex: 0 0 16.6666%;
            padding: 6px 4px;
        }

        #pg-today .wrow {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 2px;
        }

        #pg-today .wday {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            padding: 4px 0;
            border-radius: 8px;
            cursor: pointer;
            border: 2px solid transparent;
        }

        #pg-today .wday-lbl {
            font-size: 12px;
            font-weight: 700;
            color: var(--txd);
        }

        #pg-today .wday.sun .wday-lbl {
            color: var(--sun);
        }

        #pg-today .wday.sat .wday-lbl {
            color: var(--sat);
        }

        #pg-today .wday-num {
            font-size: 16px;
            font-weight: 700;
            color: var(--tx);
            margin-bottom: 2px;
        }

        #pg-today .wday.sel {
            background: var(--sur2);
            border: 2px solid var(--txs);
        }

        #pg-today .wday.today {
            border: 2px solid var(--ac);
            background: rgba(91, 106, 247, .05);
        }

        #pg-today .wday.today .wday-num {
            color: var(--ac);
            font-weight: 900;
        }

        .cal-nav {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 16px;
            background: var(--sur);
            flex-shrink: 0;
        }

        .ibtn {
            width: 36px;
            height: 36px;
            background: var(--sur2);
            border: 1px solid var(--bor);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            cursor: pointer;
            color: var(--tx);
        }

        .cal-month-wrap {
            position: relative;
            flex: 1;
            height: 28px;
            overflow: hidden;
            text-align: center;
        }

        .cal-month {
            font-size: 19px;
            font-weight: 900;
            display: block;
            width: 100%;
        }

        .cal-body-wrap {
            flex: 1;
            position: relative;
            overflow: hidden;
            touch-action: pan-y;
            height: 100%;
            display: flex;
            justify-content: center;
            padding-bottom: 48px;
        }

        .cal-body {
            position: absolute;
            inset: 0;
            display: flex;
            width: 300%;
            transition: transform .3s ease;
        }

        .cal-month-page {
            flex: 0 0 33.333%;
            padding: 0;
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            grid-template-rows: auto;
            grid-auto-rows: 1fr;
            height: 100%;
            margin: 0 auto;
        }

        .cal-whl {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            font-weight: 900;
            color: var(--tx);
            padding: 4px 0;
            background: var(--sur);
            border-bottom: 1px solid var(--bor);
        }

        .cal-whl.sun {
            color: var(--sun);
        }

        .cal-whl.sat {
            color: var(--sat);
        }

        .ccell {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 4px 2px;
            border-right: 1px solid var(--wl);
            border-bottom: 1px solid var(--wl);
            cursor: pointer;
            overflow: hidden;
            min-height: 82px;
        }

        .ccell-blank {
            grid-column: span 7;
            height: 8px;
            border: none;
            background: transparent;
            pointer-events: none;
        }

        .ccell:nth-child(7n) {
            border-right: none;
        }

        .ccell.today {
            border: 2px solid var(--ac);
            border-radius: 6px;
            background: rgba(91, 106, 247, .05);
        }

        .ccell.other {
            opacity: .2;
        }


        .ccell .cnum {
            align-self: flex-start;
            font-size: 12px;
            font-weight: 900;
            color: var(--tx);
            line-height: 1.2;
        }

        .ccell.sun .cnum {
            color: var(--sun);
        }

        .ccell.sat .cnum {
            color: var(--sat);
        }

        .chol {
            font-size: 9px;
            color: var(--rtx);
            font-weight: 800;
            letter-spacing: -0.5px;
            text-align: center;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            width: 100%;
            line-height: 1.2;
            min-height: 1em;
            margin-bottom: 1px;
        }

        .ccell .cmemo {
            margin-top: -2px;
            width: 100%;
            text-align: center;
            font-size: 10px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-weight: 900;
            pointer-events: none;
            color: var(--txs);
        }

        .ccell .cmemo:empty {
            display: none;
        }

        .btn-floating-today,
        .btn-floating-shift {
            position: absolute;
            bottom: 16px;
            background: var(--pri-lg);
            color: #fff;
            padding: 8px 16px;
            border-radius: 12px;
            font-size: 15px;
            font-weight: 900;
            border: none;
            box-shadow: 0 8px 16px -4px rgba(91, 106, 247, 0.4);
            z-index: 9999;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transform: translateZ(0);
        }

        .btn-floating-today {
            right: 12px;
        }

        #colMyCard,
        #colList {
            overflow-x: hidden;
            -ms-overflow-style: none;
            /* IE and Edge */
            scrollbar-width: none;
            /* Firefox */
        }

        #colMyCard::-webkit-scrollbar,
        #colList::-webkit-scrollbar {
            display: none;
            /* Chrome, Safari, Opera */
        }

        #colList {
            flex: 1;
            overflow-y: auto;
        }

        .col-card {
            background: var(--sur);
            border-radius: 10px;
            padding: 4px 8px;
            margin-bottom: 4px;
            box-shadow: var(--sh);
            flex-shrink: 0;
            overflow: hidden;
        }

        .col-hdr {
            margin-bottom: 2px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: 800;
            font-size: 15px;
        }

        .col-week-wrap {
            overflow: hidden;
            touch-action: pan-y;
        }

        .col-week-track {
            display: flex;
            width: 5300%;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .col-week-page {
            flex: 0 0 calc(100% / 53);
            width: calc(100% / 53);
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 2px;
        }

        .col-day {
            padding: 1px 0;
            border: 2px solid transparent;
            border-radius: 4px;
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
        }

        .col-day.today {
            border: 2px solid var(--ac);
            background: rgba(91, 106, 247, .05);
        }

        .col-day .cnum {
            font-size: 12px;
            margin-bottom: 1px;
            font-weight: 700;
            color: var(--txs);
        }

        .btn-view-toggle {
            background: transparent;
            border: none;
            font-size: 20px;
            cursor: pointer;
            padding: 2px;
            opacity: 0.8;
            transition: opacity 0.2s;
        }

        .btn-view-toggle:active {
            opacity: 0.5;
        }

        .col-grid-wrap {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 6px;
            padding-bottom: 16px;
        }

        .col-grid-card {
            background: #111;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--sh);
            display: flex;
            flex-direction: column;
            aspect-ratio: 430/591;
            border: 1px solid var(--bor);
            position: relative;
        }

        .col-grid-hdr {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            padding: 6px 8px;
            background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
            z-index: 2;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border: none;
        }

        .col-grid-name {
            font-size: 12px;
            font-weight: 800;
            color: #fff;
            text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
        }

        .col-grid-img-wrap {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .col-grid-img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .col-grid-empty {
            color: #888;
            font-size: 13px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }

        .col-group-bar::-webkit-scrollbar {
            display: none;
        }

        .hopo-active {
            background: #f59e0b !important;
            color: #fff !important;
        }

        .meal-page {
            flex: 0 0 33.333%;
            width: 33.333%;
            height: 100%;
            padding: 0;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        .meal-cards-wrap {
            display: flex;
            flex-direction: column;
            gap: 12px;
            padding: 10px 12px 20px 12px;
            flex: 1;
            box-sizing: border-box;
        }

        .meal-card {
            padding: 16px;
            border-radius: 18px;
            box-shadow: var(--sh);
            background: var(--sur);
            display: flex;
            flex-direction: column;
            flex: 1;
            min-height: 150px;
        }

        .meal-card.theme-gwangan .meal-type {
            color: var(--ac);
        }

        .meal-card.theme-hopo {
            background: #fffbeb;
        }

        .meal-card.theme-hopo .meal-type {
            color: #d97706;
        }

        .meal-type {
            font-size: 18px;
            font-weight: 900;
            border-bottom: 1px dashed var(--bor);
            padding-bottom: 2px;
            margin-bottom: 2px;
            flex-shrink: 0;
            text-align: center;
        }

        .meal-time {
            font-size: 14px;
            color: var(--txs);
            font-weight: 700;
            text-align: center;
            margin-bottom: 2px;
            flex-shrink: 0;
            letter-spacing: -0.5px;
        }

        .meal-menus {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 4px 0;
            font-size: 17px;
            font-weight: 700;
            color: var(--tx);
            line-height: 1.4;
            word-break: keep-all;
            overflow-wrap: break-word;
            text-align: center;
        }

        .menu-line {
            display: block;
            width: 100%;
            white-space: normal;
        }

        .loader {
            border: 3px solid var(--bor);
            border-top: 3px solid var(--ac);
            border-radius: 50%;
            width: 24px;
            height: 24px;
            animation: spin 1s linear infinite;
            margin-bottom: 8px;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .ccell .cmemo {
            color: var(--tx);
            font-weight: 900;
            pointer-events: auto;
        }

        @media(prefers-color-scheme: dark) {
            .ccell .cmemo {
                color: var(--tx);
            }
        }

        .ccell.sun .cmemo {
            color: var(--sun);
        }

        .ccell.sat .cmemo {
            color: var(--sat);
        }

        #pg-chat {
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        #chatList {
            flex: 1;
            overflow-y: auto;
            padding-right: 4px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding-top: 10px;
        }

        .chat-input-wrapper {
            padding: 8px 12px;
            background-color: var(--sur);
            border-top: 1px solid var(--bor);
            display: flex;
            gap: 6px;
            flex-shrink: 0;
        }

        .chat-input-wrapper .finp {
            flex: 1;
            padding: 8px 10px;
        }

        .chat-input-wrapper .btn-pri {
            white-space: nowrap;
            flex-shrink: 0;
            padding: 0 12px;
            height: 40px;
            border-radius: 8px;
            font-size: 14px;
        }

        .chat-box {
            background: var(--sur);
            padding: 12px 16px;
            border-radius: 18px;
            border-bottom-left-radius: 4px;
            box-shadow: var(--sh);
            position: relative;
            max-width: 85%;
            width: fit-content;
            align-self: flex-start;
        }

        .chat-box.my-chat {
            background: linear-gradient(135deg, var(--ac) 0%, #3a4ad4 100%);
            color: #fff;
            box-shadow: 0 4px 12px -2px rgba(91, 106, 247, 0.3);
            border-bottom-left-radius: 18px;
            border-bottom-right-radius: 4px;
            align-self: flex-end;
        }

        .chat-hdr {
            font-size: 11px;
            font-weight: 700;
            color: var(--txs);
            margin-bottom: 2px;
            display: flex;
            gap: 6px;
        }

        .chat-text {
            font-size: 15px;
            line-height: 1.5;
            word-break: break-all;
        }

        #chatList::-webkit-scrollbar {
            width: 4px;
        }

        #chatList::-webkit-scrollbar-thumb {
            background: var(--bor);
            border-radius: 4px;
        }


        .chat-box.my-chat .chat-meta {
            color: #fff !important;
            opacity: 0.7;
        }

        .chat-box.my-chat .chat-text {
            color: #fff !important;
        }

        .chat-box.my-chat .chat-meta span:first-child {
            display: none;
        }

        .chat-box:not(.my-chat) .chat-meta span:first-child {
            font-weight: 700;
            color: var(--tx) !important;
        }

        .settings-page-content {
            padding-bottom: 20px;
        }

        .size-buttons .btn {
            flex: 1;
            border-radius: 12px;
            padding: 10px 0;
            font-weight: 700;
            font-size: 16px;
            transition: opacity 0.2s;
        }

        .toggle-switch-wrapper .flbl {
            font-size: 17px !important;
            color: var(--tx) !important;
            margin: 0;
        }

        .toggle-switch {
            width: 44px;
            height: 24px;
            background: var(--bor);
            border-radius: 12px;
            position: relative;
            cursor: pointer;
            transition: 0.3s;
        }

        .toggle-switch::after {
            content: '';
            position: absolute;
            width: 20px;
            height: 20px;
            background: #fff;
            border-radius: 50%;
            top: 2px;
            left: 2px;
            transition: 0.3s;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .toggle-switch.on {
            background: var(--ac);
        }

        .toggle-switch.on::after {
            transform: translateX(20px);
        }

        .admin-card {
            background: var(--sur);
            border: 1px solid var(--bor);
            border-radius: 8px;
            padding: 14px;
            margin-bottom: 12px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
        }

        .admin-card-title {
            font-size: 15px;
            font-weight: 900;
            color: var(--txs);
            letter-spacing: 0.5px;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--bor);
            padding-bottom: 8px;
            text-transform: uppercase;
        }

        .admin-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px dashed var(--wl);
            font-size: 15px;
        }

        .admin-row:last-child {
            border-bottom: none;
        }

        .badge-admin {
            background: var(--obg);
            color: var(--otx);
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 13px;
            font-weight: 800;
        }

        .btn-sm {
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 16px;
            font-weight: 800;
            cursor: pointer;
            border: none;
        }

        .btn-danger {
            background: var(--rbg);
            color: var(--rtx);
        }

        .btn-success {
            background: var(--dbg);
            color: var(--dtx);
        }

        .sheet-ov {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, .5);
            z-index: 200;
            align-items: flex-end;
            justify-content: center;
        }

        .sheet-ov.on {
            display: flex;
        }

        .sheet {
            background: var(--sur);
            border-radius: 24px 24px 0 0;
            padding: 16px 20px 32px;
            width: 100%;
            max-width: 480px;
            transition: transform .3s cubic-bezier(.4, 0, .2, 1);
            position: relative;
            max-height: 95vh;
            overflow-y: auto;
            touch-action: pan-y;
        }

        .sh-handle {
            width: 40px;
            height: 5px;
            background: var(--bor);
            border-radius: 3px;
            margin: 0 auto 16px;
            cursor: grab;
        }

        #sheetContent .btn-sec[onclick^="window.setOV"] {
            padding: 6px 12px !important;
            font-size: 17px;
            height: auto;
        }

        #sheetContent .btn-pri[onclick="window.applyManualNum()"] {
            padding: 6px 16px !important;
        }

        #manualNum {
            padding: 6px !important;
            height: auto;
        }

        #toast {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--tx);
            color: var(--sur);
            padding: 12px 24px;
            border-radius: 30px;
            font-size: 15px;
            font-weight: 700;
            opacity: 0;
            transition: all .3s;
            z-index: 9999;
            pointer-events: none;
            white-space: nowrap;
        }

        #toast.show {
            opacity: 1;
            visibility: visible;
        }

        #login-ov {
            display: none;
            position: fixed;
            inset: 0;
            background: var(--sur);
            z-index: 9999;
            align-items: center;
            justify-content: center;
            padding: 20px;
            flex-direction: column;
        }



        .gal-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 6px;
            padding-bottom: 20px;
        }

        .gal-item {
            position: relative;
            border-radius: 10px;
            overflow: hidden;
            background: #111;
            aspect-ratio: 430 / 591;
        }

        .gal-item img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .gal-num {
            position: absolute;
            top: 4px;
            left: 4px;
            background: rgba(0, 0, 0, 0.65);
            color: #fff;
            padding: 2px 7px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 900;
        }

        .gal-empty {
            display: flex;
            width: 100%;
            height: 100%;
            align-items: center;
            justify-content: center;
            color: #555;
            font-size: 15px;
        }

        .gal-filter-bar {
            display: flex;
            gap: 6px;
            margin-bottom: 10px;
            flex-shrink: 0;
        }

        .gal-filter-bar .btn {
            flex: 1;
            padding: 10px;
            border-radius: 10px;
            font-size: 16px;
        }

        #btnFloatingShift {
            left: 12px;
        }

        .shift-modal-ov {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.75);
            z-index: 300;
            align-items: center;
            justify-content: center;
            transition: opacity 0.3s;
        }

        .shift-modal-ov.on {
            display: flex;
        }

        .shift-modal-img-wrap {
            position: relative;
            max-width: 90vw;
            max-height: 85vh;
            transition: transform 0.25s ease;
        }

        .shift-modal-img-wrap img {
            max-width: 90vw;
            max-height: 85vh;
            object-fit: contain;
            border-radius: 16px;
            user-select: none;
            pointer-events: none;
        }

        .shift-modal-placeholder {
            color: #fff;
            font-size: 20px;
            font-weight: 800;
            text-align: center;
            padding: 40px;
            opacity: 0.7;
        }

        .alarm-modal-ov {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.6);
            z-index: 500;
            align-items: center;
            justify-content: center;
            padding: 20px;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .alarm-modal-ov.on {
            display: flex;
            opacity: 1;
        }

        .alarm-modal {
            background: var(--sur);
            width: 100%;
            max-width: 360px;
            border-radius: 20px;
            box-shadow: var(--shl);
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .alarm-modal-header {
            padding: 20px;
            font-size: 19px;
            font-weight: 900;
            text-align: center;
            border-bottom: 1px solid var(--bor);
            color: var(--tx);
        }

        .alarm-modal-body {
            padding: 20px 20px 12px 20px;
            max-height: 50vh;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
        }

        .alarm-modal-footer {
            display: flex;
            gap: 12px;
            padding: 16px 20px;
            border-top: 1px solid var(--bor);
        }

        .alarm-modal-footer .btn {
            flex: 1;
            padding: 14px;
            font-size: 16px;
            border-radius: 14px;
        }

        /* ====== 광고 배너 ====== */
        /* 🔧 배너 세로 높이: 아래 height 값을 변경하면 달력/식단 배너 크기가 바뀝니다 */
        .ad-banner {
            flex-shrink: 0;
            height: 60px;
            margin: 10px 16px 12px;
            border-radius: 14px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: var(--sur2);
        }

        .ad-banner img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 14px;
            display: block;
        }

        /* ====== FAQ 오버레이 ====== */
        .faq-ov {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 9000;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .faq-ov.on {
            display: flex;
        }

        .faq-sheet {
            background: var(--sur);
            border-radius: 20px;
            width: 100%;
            max-width: 440px;
            max-height: 80vh;
            overflow-y: auto;
            padding: 24px 20px;
            box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
        }

        .faq-title {
            font-size: 20px;
            font-weight: 900;
            margin-bottom: 16px;
            text-align: center;
        }

        .faq-item {
            border-bottom: 1px solid var(--bor);
            padding: 0;
        }

        .faq-item:last-child {
            border-bottom: none;
        }

        .faq-q {
            padding: 14px 0;
            font-size: 15px;
            font-weight: 800;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: var(--tx);
            user-select: none;
        }

        .faq-q::after {
            content: '▾';
            font-size: 12px;
            color: var(--txs);
            transition: transform 0.2s;
        }

        .faq-item.open .faq-q::after {
            transform: rotate(180deg);
        }

        .faq-a {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
            font-size: 14px;
            line-height: 1.6;
            color: var(--txs);
        }

        .faq-item.open .faq-a {
            max-height: 300px;
            padding-bottom: 12px;
        }

        /* ====== 공지사항 팝업 ====== */
        .notice-ov {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.6);
            z-index: 9500;
            justify-content: center;
            align-items: center;
            padding: 24px;
        }

        .notice-ov.on {
            display: flex;
        }

        .notice-box {
            background: var(--sur);
            border-radius: 20px;
            width: 100%;
            max-width: 380px;
            overflow: hidden;
            box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
        }

        .notice-img {
            width: 100%;
            display: block;
        }

        .notice-body {
            padding: 20px;
        }

        .notice-title {
            font-size: 18px;
            font-weight: 900;
            margin-bottom: 8px;
        }

        .notice-text {
            font-size: 14px;
            line-height: 1.6;
            color: var(--txs);
            margin-bottom: 16px;
            white-space: pre-line;
        }

        .notice-btns {
            display: flex;
            border-top: 1px solid var(--bor);
        }

        .notice-btn {
            flex: 1;
            padding: 14px;
            text-align: center;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            background: none;
            border: none;
            color: var(--txs);
        }

        .notice-btn:last-child {
            color: var(--ac);
            border-left: 1px solid var(--bor);
        }

        /* ====== 동료탭 나(고정) 고정 ====== */
        #colMyCard {
            flex-shrink: 0;
        }

        /* ====== 수동 변경 버튼 컴팩트 스타일 ====== */
        .btn-compact {
            padding: 8px 4px !important;
            font-size: 14px !important;
            height: 38px !important;
            border-radius: 10px !important;
        }

        select.finp-compact {
            padding: 0 8px !important;
            height: 38px !important;
            font-size: 14px !important;
            border-radius: 10px !important;
        }

        /* ====== 히어로 알람 버튼 ====== */
        .hero-alarm-btn {
            font-size: 17px;
            opacity: 0.6;
            cursor: pointer;
            background: none;
            border: none;
            padding: 2px;
            transition: opacity 0.2s, transform 0.2s;
        }

        .hero-alarm-btn:active {
            transform: scale(0.9);
            opacity: 0.4;
        }

        .hero-alarm-btn.disabled {
            display: none !important;
        }

        /* ====== 히어로 공휴일 텍스트 개선 ====== */
        .hero-hol-text {
            color: var(--sun);
            font-size: calc(1em - 3px);
            font-weight: 700;
            max-width: 100px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            display: inline-block;
            vertical-align: middle;
            line-height: 1.2;
        }

        /* ====== 달력 셀 출근시간 텍스트 ====== */
        .ccell .ctime {
            margin-top: 0;
            width: 100%;
            text-align: center;
            font-size: 10px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-weight: 900;
            pointer-events: none;
            color: var(--tx);
            line-height: 1.2;
        }

        .ccell .ctime:empty {
            display: none;
        }

        /* ====== 메모 입력 팝업 영역 ====== */
        .sheet-memo-area {
            border-top: 1px dashed var(--wl);
            padding-top: 12px;
            margin-top: 8px;
        }

        .sheet-memo-area .flbl {
            font-size: 14px;
            font-weight: 700;
            color: var(--txs);
            margin-bottom: 6px;
        }

        .sheet-memo-input {
            width: 100%;
            box-sizing: border-box;
            background: var(--sur2);
            border: 1px solid var(--bor);
            color: var(--tx);
            padding: 10px 12px;
            border-radius: 10px;
            outline: none;
            font-family: inherit;
            font-size: 15px;
            resize: none;
        }

        .sheet-memo-input:focus {
            border-color: var(--ac);
        }

        /* ====== 메모 색상 선택 버튼 ====== */
        .memo-color-picker {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 8px;
            margin-bottom: 4px;
        }

        .memo-color-picker .color-lbl {
            font-size: 13px;
            font-weight: 700;
            color: var(--txs);
        }

        .memo-color-dot {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            border: 3px solid transparent;
            cursor: pointer;
            transition: border-color 0.15s, transform 0.15s;
            flex-shrink: 0;
        }

        .memo-color-dot:active {
            transform: scale(0.9);
        }

        .memo-color-dot.selected {
            border-color: #FFD700;
            box-shadow: 0 0 0 2px #FFD700;
        }
