:root {
    font-family: Pretendard, "Noto Sans KR", Arial, sans-serif;
    color: var(--text-color);
    background: var(--page-background);
    font-synthesis: none;
}

* { box-sizing: border-box; }
html, body, #app { margin: 0; min-height: 100%; background: var(--page-background); }
body { min-width: 1024px; }
a { color: inherit; text-decoration: none; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 220px; padding: 20px 14px; display: flex; flex-direction: column; background: var(--sidebar-background); color: var(--sidebar-text); z-index: 10; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 28px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-color); color: #fff; font-size: 13px; font-weight: 900; }
.brand strong, .brand small { display: block; }
.brand small { margin-top: 2px; color: var(--sidebar-muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 8px; color: var(--sidebar-link); font-size: 14px; font-weight: 700; }
.sidebar nav a:hover, .sidebar nav a.active { background: var(--sidebar-active); color: #fff; }
.sidebar nav .material-symbols-outlined { font-size: 20px; }
.domain-note { margin-top: auto; padding: 13px; border: 1px solid var(--sidebar-border); border-radius: 8px; color: var(--sidebar-muted); font-size: 11px; line-height: 1.55; }
.app-main { margin-left: 220px; width: calc(100% - 220px); }
.topbar { height: 64px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--topbar-border); }
.topbar > div:first-child { display: flex; align-items: center; gap: 10px; }
.product-label { padding-right: 10px; border-right: 1px solid var(--topbar-border); color: var(--muted-text); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.user-area { display: flex; align-items: center; gap: 7px; color: var(--muted-text); font-size: 12px; }
.user-area a { margin-left: 7px; color: var(--link-color); text-decoration: underline; }
.content { min-height: calc(100vh - 64px); }
.auth-message { margin: 40px; color: var(--muted-text); }
#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; padding: 12px 20px; background: #fff3cd; color: #664d03; z-index: 1000; }
.loading-progress { position: absolute; display: block; width: 7rem; height: 7rem; inset: 20vh 0 auto; margin: auto; }
.loading-progress circle { fill: none; stroke: var(--loader-track); stroke-width: .6rem; transform-origin: 50% 50%; transform: rotate(-90deg); }
.loading-progress circle:last-child { stroke: var(--accent-color); stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * .8), 500%; transition: stroke-dasharray .05s ease-in-out; }
.loading-progress-text { position: absolute; inset: calc(20vh + 3.2rem) 0 auto; text-align: center; font-weight: 700; }
.loading-progress-text:after { content: var(--blazor-load-percentage-text, "Loading"); }
