:root {
    --primary-color: #0EA5E9;
    --primary-hover: #0284C7;
    --bg-color: #F2F2F4;
    --surface-color: #FFFFFF;
    --text-color: #1A1A1A;
    --text-muted: #737373;
    --border-color: #E5E5E8;
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(0, 0, 0, 0.06);
    --sidebar-hover: rgba(0, 0, 0, 0.045);
    --sidebar-bg: #F4F4F6;
    --sidebar-active-bg: rgba(14, 165, 233, 0.11);
    --sidebar-active-bar: #0EA5E9;
    --input-bg: #F1F5F9;
    --drawer-collapsed-pad-x: 54px;
    --drawer-collapsed-pad-y: 36px;
}

[data-theme="dark"] {
    --primary-color: #38BDF8;
    --primary-hover: #0EA5E9;
    --bg-color: #0D0D0F;
    --surface-color: #18181C;
    --text-color: #FAFAFA;
    --text-muted: #A3A3A3;
    --border-color: #2A2A2E;
    --glass-bg: rgba(24, 24, 28, 0.75);
    --glass-border: rgba(255, 255, 255, 0.06);
    --sidebar-hover: rgba(255, 255, 255, 0.06);
    --sidebar-bg: #121214;
    --sidebar-active-bg: rgba(56, 189, 248, 0.14);
    --sidebar-active-bar: #38BDF8;
    --input-bg: #2D313E;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

.app-root {
    display: flex;
    flex: 1;
    /* 酉고룷???믪씠濡?怨좎젙 ??硫붿씤? .main-content ?덉뿉?쒕쭔 ?ㅽ겕濡? 洹몃젃吏 ?딆쑝硫?李??ㅽ겕濡???sticky ?ъ씠?쒕컮媛 媛숈씠 諛???щ씪媛?*/
    min-height: 0;
    height: 100vh;
    max-height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    min-width: 0;
    width: 100%;
    align-items: stretch;
}

.sidebar-panel {
    width: 272px;
    min-width: 272px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    transition: width 0.28s ease, min-width 0.28s ease;
    border-right: 1px solid var(--border-color);
    background-color: var(--sidebar-bg);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.02);
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    max-height: 100vh;
}

body.drawer-collapsed .sidebar-panel {
    width: 0;
    min-width: 0;
    border-right-width: 0;
}

body.mobile-sidebar-open .sidebar-panel {
    width: min(272px, 82vw) !important;
    min-width: 0 !important;
}

body.drawer-collapsed.mobile-sidebar-open .sidebar-panel {
    width: min(272px, 82vw) !important;
    min-width: 0 !important;
    border-right-width: 1px;
}

.sidebar {
    width: 272px;
    min-width: 272px;
    box-sizing: border-box;
    flex: 1;
    min-height: 0;
    height: auto;
    max-height: none;
    background: transparent;
    padding: 14px 10px 18px;
    padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    transition: background-color 0.3s ease;
}

.main-column {
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
}

.sidebar__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 8px 16px;
    margin-bottom: 2px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.sidebar__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    transition: opacity 0.15s ease;
}

.sidebar__logo:hover {
    opacity: 0.88;
}

.sidebar__logo-img {
    height: 32px;
    max-height: 32px;
    width: auto;
    max-width: 133px;
    object-fit: contain;
    object-position: left center;
    display: block;
    flex-shrink: 0;
}

.sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sidebar-toggle:hover {
    background: var(--sidebar-hover);
    color: var(--text-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.sidebar-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.sidebar-toggle svg {
    width: 18px;
    height: 18px;
    display: block;
}

.sidebar__account-wrap {
    flex-shrink: 0;
    padding: 10px 8px 14px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2px;
}

.sidebar__account-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.12s ease, border-color 0.12s ease;
    border: 1px solid transparent;
}

.sidebar__account-card:hover {
    background: var(--sidebar-hover);
    border-color: var(--border-color);
}

.sidebar__account-card:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.sidebar__user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
    letter-spacing: -0.02em;
}

.sidebar__account-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar__account-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar__account-email {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar__account-chevron {
    flex-shrink: 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    opacity: 0.7;
}

.sidebar__account-hint {
    margin: 8px 12px 0;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.85;
}

.sidebar__account-hint a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.sidebar__account-hint a:hover {
    text-decoration: underline;
}

.sidebar__middle {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-top: 6px;
}

.sidebar__groups {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 4px 10px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior-y: contain;
}

.sidebar__groups::-webkit-scrollbar {
    width: 6px;
}

.sidebar__groups::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.sidebar__group {
    margin-bottom: 22px;
}

.sidebar__group:last-child {
    margin-bottom: 8px;
}

.sidebar__label {
    margin: 0 0 8px 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.92;
}

.sidebar__links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px 9px 14px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    transition: background 0.12s ease, color 0.12s ease;
}

.sidebar-link:hover {
    background: var(--sidebar-hover);
    color: var(--text-color);
}

.sidebar-link--active {
    background: var(--sidebar-active-bg);
    color: var(--text-color);
    font-weight: 600;
}

.sidebar-link--active::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    border-radius: 2px;
    background: var(--sidebar-active-bar);
}

.sidebar-link__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: currentColor;
    opacity: 0.88;
}

.sidebar-link--active .sidebar-link__icon {
    opacity: 1;
    color: var(--primary-color);
}

.sidebar-notif-badge {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: #DC2626;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

[data-theme="dark"] .sidebar-notif-badge {
    background: #F87171;
    color: #111;
}

.sidebar__footer {
    flex-shrink: 0;
    padding: 14px 4px 0;
    padding-bottom: max(4px, env(safe-area-inset-bottom, 0px));
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    background: var(--sidebar-bg);
}

.sidebar-link--logout {
    color: #DC2626;
}

.sidebar-link--logout:hover {
    background: rgba(220, 38, 38, 0.08);
    color: #B91C1C;
}

[data-theme="dark"] .sidebar-link--logout {
    color: #F87171;
}

[data-theme="dark"] .sidebar-link--logout:hover {
    background: rgba(248, 113, 113, 0.12);
    color: #FCA5A5;
}

.sidebar-toggle--expand {
    display: none;
    position: fixed;
    left: 12px;
    top: 16px;
    z-index: 200;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
    color: var(--text-color);
}

[data-theme="dark"] .sidebar-toggle--expand {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

body.drawer-collapsed .sidebar-toggle--expand {
    display: inline-flex;
}

.auth-lang-bar {
    position: fixed;
    top: 16px;
    right: 18px;
    z-index: 400;
}

.main-toolbar {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px 16px;
    flex-wrap: wrap;
    padding: 2px 0 14px;
    margin-bottom: 4px;
    min-height: 44px;
}

.main-toolbar__leading {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.app-page-title {
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.25;
    color: var(--text-color);
}

.main-toolbar__cluster {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-shrink: 0;
}

.main-toolbar .lang-dd {
    width: auto;
    min-width: 152px;
}

.main-toolbar .lang-dd__trigger {
    padding: 8px 10px;
}

.lang-dd {
    position: relative;
    width: 100%;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

.auth-lang-bar .lang-dd {
    width: auto;
    min-width: 168px;
}

.lang-dd__trigger {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    box-sizing: border-box;
    border-radius: 11px;
    border: 1px solid color-mix(in srgb, var(--border-color) 82%, var(--primary-color));
    background: linear-gradient(165deg,
        color-mix(in srgb, var(--surface-color) 98%, var(--primary-color)) 0%,
        var(--surface-color) 55%,
        color-mix(in srgb, var(--surface-color) 94%, #6366f1) 100%);
    box-shadow:
        0 0 0 1px color-mix(in srgb, #fff 65%, transparent) inset,
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 6px 20px -4px rgba(14, 165, 233, 0.12);
    color: var(--text-color);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.lang-dd__trigger::-webkit-details-marker {
    display: none;
}

.lang-dd__trigger:hover {
    border-color: color-mix(in srgb, var(--primary-color) 35%, var(--border-color));
    box-shadow:
        0 0 0 1px color-mix(in srgb, #fff 55%, transparent) inset,
        0 2px 8px rgba(14, 165, 233, 0.1),
        0 10px 28px -6px rgba(99, 102, 241, 0.12);
}

[data-theme="dark"] .lang-dd__trigger {
    background: linear-gradient(165deg,
        color-mix(in srgb, var(--surface-color) 94%, var(--primary-color)) 0%,
        var(--surface-color) 100%);
    border-color: color-mix(in srgb, var(--border-color) 75%, var(--primary-color));
    box-shadow:
        0 0 0 1px color-mix(in srgb, #fff 5%, transparent) inset,
        0 2px 12px rgba(0, 0, 0, 0.35);
}

.lang-dd__trigger:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.lang-dd[open] > .lang-dd__trigger {
    border-color: color-mix(in srgb, var(--primary-color) 45%, var(--border-color));
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--primary-color) 12%, transparent) inset,
        0 4px 16px rgba(14, 165, 233, 0.14);
}

.lang-dd__value {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.lang-dd__label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lang-dd__code {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    flex-shrink: 0;
}

.lang-dd__chev {
    display: flex;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.lang-dd[open] .lang-dd__chev {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.lang-dd__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 500;
    padding: 0;
    animation: lang-dd-in 0.22s cubic-bezier(0.34, 1.1, 0.64, 1) both;
}

.auth-lang-bar .lang-dd__panel,
.main-toolbar .lang-dd__panel {
    left: auto;
    right: 0;
    min-width: 248px;
}

@keyframes lang-dd-in {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lang-dd__panel {
        animation: none;
    }

    .lang-dd__chev {
        transition: none;
    }
}

.lang-dd__panel-inner {
    padding: 8px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--border-color) 88%, var(--primary-color));
    background: linear-gradient(175deg,
        color-mix(in srgb, var(--surface-color) 97%, #e0f2fe) 0%,
        var(--surface-color) 40%,
        color-mix(in srgb, var(--surface-color) 96%, #eef2ff) 100%);
    box-shadow:
        0 0 0 1px color-mix(in srgb, #fff 70%, transparent) inset,
        0 4px 6px rgba(15, 23, 42, 0.03),
        0 20px 50px -12px rgba(15, 23, 42, 0.18),
        0 12px 32px -8px rgba(14, 165, 233, 0.12);
    backdrop-filter: blur(16px) saturate(1.15);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
}

[data-theme="dark"] .lang-dd__panel-inner {
    background: linear-gradient(175deg,
        color-mix(in srgb, var(--surface-color) 96%, #0c4a6e) 0%,
        var(--surface-color) 100%);
    border-color: color-mix(in srgb, var(--border-color) 85%, var(--primary-color));
    box-shadow:
        0 0 0 1px color-mix(in srgb, #fff 6%, transparent) inset,
        0 8px 24px rgba(0, 0, 0, 0.45),
        0 0 48px -12px rgba(56, 189, 248, 0.08);
}

.lang-dd__head {
    margin: 0 0 6px 0;
    padding: 6px 10px 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.lang-dd__form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lang-dd__option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 11px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-color);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.lang-dd__option:hover {
    background: color-mix(in srgb, var(--primary-color) 8%, var(--sidebar-hover));
}

.lang-dd__option:active {
    transform: scale(0.99);
}

.lang-dd__option.is-active {
    background: linear-gradient(120deg,
        color-mix(in srgb, var(--primary-color) 14%, var(--surface-color)) 0%,
        color-mix(in srgb, #6366f1 8%, var(--surface-color)) 100%);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--primary-color) 22%, transparent),
        inset 0 1px 0 color-mix(in srgb, #fff 50%, transparent);
}

[data-theme="dark"] .lang-dd__option.is-active {
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--primary-color) 35%, transparent),
        inset 0 1px 0 color-mix(in srgb, #fff 8%, transparent);
}

.lang-dd__option:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 1px;
}

.lang-dd__flag {
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
}

.lang-dd__opt-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lang-dd__opt-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.lang-dd__opt-meta {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.lang-dd__tick {
    display: flex;
    color: var(--primary-color);
    flex-shrink: 0;
}

.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    position: relative;
    min-height: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.content-root {
    flex: 1;
    min-height: 0;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

body.drawer-collapsed .main-content {
    padding: var(--drawer-collapsed-pad-y) var(--drawer-collapsed-pad-x) !important;
}

/* ?묓옒: ?섏씠吏 猷⑦듃쨌洹????④퀎 ?덉そ??max-width쨌媛?대뜲 ?뺣젹 ?щ갚 ?쒓굅 ??醫뚯슦 ???*/
body.drawer-collapsed .content-root > *:not(style):not(script) {
    max-width: none !important;
    margin-inline: 0 !important;
    width: 100%;
    box-sizing: border-box;
}

body.drawer-collapsed .content-root > *:not(style):not(script) > * {
    max-width: none !important;
    margin-inline: 0 !important;
    box-sizing: border-box;
}

body.hide-sidebar .main-content {
    padding: 0;
}

body.hide-sidebar .sidebar {
    display: none !important;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* ?뚯빟 ?몃옓 + ?⑥깋 ?먰삎 ?몃툕 */
html {
    --tt-track-bg: #ffffff;
    --tt-track-border: rgba(15, 23, 42, 0.88);
    --tt-knob-bg: #0f172a;
}

html[data-theme="dark"] {
    --tt-track-bg: #18181c;
    --tt-track-border: rgba(255, 255, 255, 0.45);
    --tt-knob-bg: #f1f5f9;
}

.theme-toggle.theme-toggle--switch {
    background: transparent;
    border: none;
    padding: 6px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.theme-toggle.theme-toggle--switch:hover {
    background: var(--sidebar-hover);
}

.theme-toggle__track {
    display: block;
    width: 44px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid var(--tt-track-border);
    background: var(--tt-track-bg);
    position: relative;
    box-sizing: border-box;
}

.theme-toggle__knob {
    position: absolute;
    top: 50%;
    left: 3px;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border-radius: 50%;
    background: var(--tt-knob-bg);
    transition: transform 0.22s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}

html[data-theme="dark"] .theme-toggle__knob {
    transform: translateX(18px);
}

/* ?? 紐⑤컮??諛섏쓳??(768px ?댄븯) ?? */
@media (max-width: 768px) {
    .sidebar-panel {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 300;
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        width: min(272px, 82vw);
        min-width: 0;
        transform: translateX(-100%);
        transition: transform 0.28s ease;
        box-shadow: 4px 0 24px rgba(0,0,0,.15);
    }
    .sidebar {
        width: 100%;
        min-width: 0;
        max-height: 100%;
    }
    body.mobile-sidebar-open .sidebar-panel {
        transform: translateX(0);
        width: min(272px, 82vw) !important;
        min-width: 0 !important;
    }
    body.drawer-collapsed.mobile-sidebar-open .sidebar-panel {
        transform: translateX(0);
        width: min(272px, 82vw) !important;
        min-width: 0 !important;
        border-right-width: 1px;
    }
    .sidebar-toggle--expand {
        display: inline-flex !important;
    }
    body.mobile-sidebar-open .sidebar-toggle--expand {
        display: none !important;
    }
    .mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.4);
        z-index: 299;
        -webkit-tap-highlight-color: transparent;
    }
    body.mobile-sidebar-open .mobile-overlay {
        display: block;
    }
    .main-content {
        padding: 16px !important;
    }
    body.drawer-collapsed .main-content {
        padding: 16px !important;
    }
    .app-toolbar {
        padding: 10px 16px !important;
    }
    .main-toolbar {
        padding-left: 44px;
    }
    .glass-panel {
        padding: 16px;
    }
    .sidebar__logo-img {
        max-width: 110px;
        height: 28px;
        max-height: 28px;
    }
    .sidebar__user-avatar {
        width: 34px;
        height: 34px;
        font-size: 11px;
    }
    .sidebar__account-wrap {
        padding: 8px 6px 10px;
    }
    .sidebar__account-card {
        padding: 6px 8px;
    }
    .sidebar__account-name {
        font-size: 12px;
    }
    .sidebar__account-email {
        font-size: 10px;
    }
    .sidebar-link {
        padding: 8px 10px 8px 12px;
        font-size: 12.5px;
    }
    .sidebar__label {
        font-size: 9px;
        margin: 0 0 6px 10px;
    }
}

/* 醫곸? 紐⑤컮??(480px ?댄븯) */
@media (max-width: 480px) {
    .sidebar-panel {
        width: min(260px, 85vw);
    }
    body.mobile-sidebar-open .sidebar-panel {
        width: min(260px, 85vw) !important;
    }
    body.drawer-collapsed.mobile-sidebar-open .sidebar-panel {
        width: min(260px, 85vw) !important;
        min-width: 0 !important;
        border-right-width: 1px;
    }
    .main-content {
        padding: 8px !important;
    }
    body.drawer-collapsed .main-content {
        padding: 8px !important;
    }
    .glass-panel {
        padding: 12px;
        border-radius: 12px;
    }
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    .sidebar-toggle--expand {
        left: 8px;
        top: 10px;
    }
    .app-toolbar {
        padding: 8px 10px !important;
        gap: 6px;
    }
    .main-toolbar {
        padding-left: 44px;
    }
    .page-title {
        font-size: 16px !important;
    }
    .card {
        padding: 14px !important;
        border-radius: 12px !important;
    }
    .card-title {
        font-size: 14px !important;
    }
    .auth-lang-bar .lang-dd__panel {
        min-width: 180px;
    }
    .auth-lang-bar {
        top: 10px;
        right: 10px;
    }
    .auth-lang-bar .lang-dd {
        min-width: 120px;
    }
    .auth-lang-bar .lang-dd__trigger {
        padding: 6px 8px;
        font-size: 12px;
    }
}

/* ?몃줈媛 媛濡쒕낫??湲?醫곸? ?붾㈃ (portrait 紐⑤컮?? */
@media (max-width: 400px) and (orientation: portrait) {
    .sidebar-panel {
        width: min(240px, 80vw);
    }
    body.mobile-sidebar-open .sidebar-panel {
        width: min(240px, 80vw) !important;
    }
    body.drawer-collapsed.mobile-sidebar-open .sidebar-panel {
        width: min(240px, 80vw) !important;
        min-width: 0 !important;
        border-right-width: 1px;
    }
    .sidebar {
        padding: 10px 6px 14px;
    }
    .sidebar__top {
        padding: 4px 6px 12px;
    }
    .sidebar__logo-img {
        max-width: 96px;
        height: 24px;
        max-height: 24px;
    }
    .sidebar-toggle svg {
        width: 16px;
        height: 16px;
    }
    .sidebar-toggle {
        width: 30px;
        height: 30px;
    }
    .sidebar__user-avatar {
        width: 30px;
        height: 30px;
        font-size: 10px;
        border-radius: 8px;
    }
    .sidebar__account-wrap {
        padding: 6px 4px 8px;
    }
    .sidebar__account-card {
        padding: 5px 6px;
        gap: 8px;
    }
    .sidebar__account-name {
        font-size: 11px;
    }
    .sidebar__account-email {
        font-size: 9.5px;
    }
    .sidebar-link {
        padding: 7px 8px 7px 10px;
        font-size: 12px;
        gap: 8px;
    }
    .sidebar-link__icon {
        width: 16px;
        height: 16px;
    }
    .sidebar__label {
        font-size: 8.5px;
        margin: 0 0 5px 8px;
    }
    .sidebar__group {
        margin-bottom: 16px;
    }
}

/* 留ㅼ슦 醫곸? ?붾㈃ (360px 誘몃쭔, ?묒? ?덈뱶濡쒖씠???? */
@media (max-width: 359px) {
    .sidebar-panel {
        width: 78vw;
    }
    body.mobile-sidebar-open .sidebar-panel {
        width: 78vw !important;
    }
    body.drawer-collapsed.mobile-sidebar-open .sidebar-panel {
        width: 78vw !important;
        min-width: 0 !important;
        border-right-width: 1px;
    }
}
