:root {
  color-scheme: light;
  --enm-brand: #86158e;
  --enm-brand-dark: #64106c;
  --enm-brand-soft: #f5ebf7;
  --enm-ink: #292431;
  --enm-muted: #797280;
  --enm-line: #e9e5ec;
  --enm-canvas: #f8f7fa;
  --enm-sidebar: 238px;
  --enm-font: 'Segoe UI', 'Malgun Gothic', -apple-system, BlinkMacSystemFont, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
body.enm-app { word-break: keep-all; overflow-wrap: anywhere; }
.enm-session-bar { overflow: hidden; }
.enm-workspace-scroll { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: none; -ms-overflow-style: none; }
.enm-workspace-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }
.enm-sidebar-brand { flex-shrink: 0; }
.enm-logo { display: block; width: 188px; height: auto; filter: brightness(1.22); mix-blend-mode: multiply; }
.enm-icon { display: inline-block; width: 21px; height: 21px; flex: 0 0 auto; vertical-align: middle; }
.enm-eyebrow, .auth-brand { color: var(--enm-brand); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.enm-eyebrow { margin: 0 0 12px; }
body.enm-app { min-height: 100vh; padding: 108px 40px 36px calc(var(--enm-sidebar) + 40px); background: var(--enm-canvas); color: var(--enm-ink); font: 14px/1.65 var(--enm-font); }
.enm-app .enm-workspace, .enm-app .admin-main { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0; }
.enm-app a, .auth-body a { text-decoration: none; }
.enm-app :focus-visible, .auth-body :focus-visible { outline: 3px solid #ac64b7; outline-offset: 3px; }
.enm-app button, .auth-body button { font-family: inherit; cursor: pointer; }
.enm-app button:disabled, .auth-body button:disabled { cursor: not-allowed; opacity: .45; }
.enm-session-bar { position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; flex-direction: column; width: var(--enm-sidebar); padding: 30px 18px 20px; background: #fff; border-right: 1px solid var(--enm-line); color: var(--enm-ink); font: 14px/1.5 var(--enm-font); }
.enm-sidebar-brand { display: block; padding: 0 4px 27px; border-bottom: 1px solid var(--enm-line); }
.enm-sidebar-workspace { display: flex; flex-direction: column; flex: 1; min-height: 0; padding-top: 24px; }
.enm-sidebar-management { flex: 0 0 auto; padding-top: 20px; }
.enm-sidebar-label { flex: 0 0 auto; margin: 0 14px 10px; color: #9a929f; font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.enm-nav-links { display: grid; gap: 6px; }
.enm-favorites-empty { margin: 8px 14px; color: #a08da9; font-size: 11px; line-height: 1.8; word-break: keep-all; }
.enm-session-bar .enm-nav-link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 11px 14px; border: 1px solid transparent; border-radius: 8px; color: #716878; font-size: 13px; font-weight: 550; transition: background .15s, color .15s; }
.enm-nav-link .enm-icon { width: 19px; height: 19px; }
.enm-session-bar .enm-nav-link:hover { background: #faf7fb; color: var(--enm-brand); }
.enm-session-bar .enm-nav-link[aria-current='page'] { color: var(--enm-brand); background: var(--enm-brand-soft); font-weight: 700; }
.enm-nav-link[aria-current='page']::after { content: ''; width: 5px; height: 5px; margin-left: auto; background: var(--enm-brand); border-radius: 50%; }
.enm-sidebar-bottom { flex: 0 0 auto; padding: 20px 10px 0; }
.enm-sidebar-note { color: #aaa1ae; font-size: 11px; margin: 0 0 20px; line-height: 1.8; }
.enm-account { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--enm-line); padding: 20px 0 0; }
.enm-avatar { display: grid; place-items: center; flex: 0 0 35px; width: 35px; height: 35px; border-radius: 11px; background: #f1e7f3; color: var(--enm-brand); font-size: 13px; font-weight: 700; }
.enm-account-name { flex: 1; min-width: 0; }
.enm-account-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.enm-account-name small { display: block; color: #958b9c; font-size: 10px; margin-top: 3px; }
.enm-account-name { color: var(--enm-ink); }
.enm-profile-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 2px; }
.enm-session-bar :is(.enm-account-settings-link, .enm-logout) { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border: 0; padding: 6px; border-radius: 6px; color: #8b8292; background: transparent; transition: background .15s, color .15s; }
.enm-profile-actions .enm-icon { width: 19px; height: 19px; }
.enm-session-bar :is(.enm-account-settings-link, .enm-logout):hover { background: #f6f0f7; color: var(--enm-brand); }
.enm-session-bar .enm-account-settings-link[aria-current='page'] { background: var(--enm-brand-soft); color: var(--enm-brand); }
.enm-topbar { position: fixed; z-index: 30; top: 0; left: var(--enm-sidebar); right: 0; height: 72px; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #ffffffed; border-bottom: 1px solid var(--enm-line); backdrop-filter: blur(14px); }
.enm-breadcrumb { display: flex; align-items: center; gap: 15px; color: #b0a7b6; font-size: 12px; }
.enm-breadcrumb strong { font-weight: 550; color: #655b6e; }
.enm-topbar-end { display: flex; align-items: center; gap: 15px; color: #8a8192; font-size: 11px; }
.enm-inquiries-link { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 6px 12px; border: 1px solid #dac8e3; border-radius: 8px; color: #752184; background: #faf6fc; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.enm-inquiries-link:hover, .enm-inquiries-link[aria-current=page] { background: #f0e3f6; border-color: #af88be; }
.enm-inquiries-link:focus-visible { outline: 3px solid #a563ba; outline-offset: 3px; }
.enm-menu-toggle, .enm-menu-overlay, .enm-mobile-brand { display: none; }
.enm-page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 30px; }
.enm-app .enm-page-heading h1 { color: var(--enm-ink); font-size: clamp(25px, 2.3vw, 32px); line-height: 1.35; font-weight: 750; font-style: normal; letter-spacing: -.055em; }
.enm-page-heading p:not(.enm-eyebrow) { color: var(--enm-muted); font-size: 13px; margin-top: 10px; }
.enm-page-heading > a { color: var(--enm-muted); white-space: nowrap; font-size: 12px; }
.enm-auth-error { margin: 0 0 20px; padding: 15px 18px; border: 1px solid #f2d5d5; border-radius: 9px; background: #fff4f3; color: #a23e3e; font-size: 13px; }
.auth-body { min-height: 100vh; margin: 0; padding: 32px; background: var(--enm-canvas); color: var(--enm-ink); font: 14px/1.65 var(--enm-font); word-break: keep-all; overflow-wrap: anywhere; }
.auth-body .muted { color: var(--enm-muted); }
.auth-body .small { font-size: 12px; }
.auth-body h1 { margin: 0 0 10px; font-size: 30px; line-height: 1.4; letter-spacing: -.045em; font-weight: 750; }
.auth-body h2 { font-size: 23px; letter-spacing: -.03em; }
.auth-body p { line-height: 1.75; }
.auth-body a { color: var(--enm-brand); font-weight: 600; }
.auth-layout { width: 100%; max-width: 1120px; min-height: min(760px, calc(100vh - 64px)); margin: max(0px, calc((100vh - 824px) / 2)) auto; display: grid; grid-template-columns: 1.06fr 1fr; overflow: hidden; border: 1px solid var(--enm-line); border-radius: 20px; background: white; box-shadow: 0 20px 80px #35204407; }
.auth-story { position: relative; display: flex; flex-direction: column; overflow: hidden; min-height: 650px; padding: 42px; color: #fff; background: #3c1748; isolation: isolate; }
.auth-story .enm-logo { width: 214px; padding: 7px 10px; border-radius: 5px; background: #fff; mix-blend-mode: normal; }
.auth-story-copy { position: relative; z-index: 2; margin-top: 90px; }
.auth-story .enm-eyebrow { color: #d5b6dc; font-size: 10px; letter-spacing: .2em; }
.auth-story-title { margin: 46px 0 22px; font-size: clamp(22px, 2.5vw, 32px); font-weight: 650; letter-spacing: -.045em; line-height: 1.8 !important; }
.auth-story-title em { display: inline-block; margin-left: 1.5em; font-style: normal; color: #eab0ef; }
.auth-story-footer { margin-top: auto; padding-top: 125px; color: #b294bd; font-size: 10px; letter-spacing: .14em; z-index: 2; }
.auth-orbit { position: absolute; width: 330px; height: 330px; border: 1px solid #b267c24a; border-radius: 36px; right: -120px; bottom: -30px; transform: rotate(25deg); z-index: -1; }
.auth-orbit::before, .auth-orbit::after { content: ''; position: absolute; inset: 0; border: inherit; border-radius: inherit; transform: rotate(25deg); }
.auth-orbit::after { transform: rotate(50deg); }
.auth-card { width: 100%; max-width: 460px; margin: 70px auto; padding: 40px; border: 1px solid var(--enm-line); border-radius: 16px; background: #fff; }
.auth-layout .auth-card { display: flex; flex-direction: column; justify-content: center; align-self: center; max-width: none; margin: 0; padding: 48px 55px; border: 0; border-radius: 0; box-shadow: none; }
.auth-card .auth-brand { margin: 0 0 18px; font-size: 10px; }
.auth-body .auth-back { display: inline-flex; align-items: center; align-self: flex-start; gap: 7px; margin-bottom: 18px; color: var(--enm-muted); font-size: 12px; font-weight: 500; }
.auth-body .auth-back:hover { color: var(--enm-brand); }
.auth-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.auth-card-heading .auth-brand, .auth-body .auth-card-heading .auth-back { margin: 0; }
.auth-body .auth-card-heading .auth-back { align-self: auto; flex-shrink: 0; white-space: nowrap; }
.auth-card > .enm-logo { width: 210px; margin: 0 0 28px; }
.auth-card > .muted { margin: 0 0 12px; font-size: 13px; }
.auth-body label { display: block; margin-top: 18px; color: #534959; font-size: 12px; font-weight: 650; }
.auth-body input, .auth-body select { width: 100%; margin-top: 7px; padding: 12px 14px; border: 1px solid #dfd7e4; border-radius: 7px; background: #fff; color: var(--enm-ink); font: inherit; transition: border-color .15s, box-shadow .15s; }
.auth-body input:focus, .auth-body select:focus { border-color: #a56daf; box-shadow: 0 0 0 3px #86158e0c; outline: none; }
.auth-body input::placeholder { color: #b1a6b8; }
.auth-body form p.small { margin: 7px 0 0; color: #796b82; font-size: 11px; }
.auth-body .primary { display: block; width: 100%; margin-top: 18px; padding: 12px 18px; border: 1px solid var(--enm-brand); border-radius: 7px; background: var(--enm-brand); color: #fff; font: 600 13px/1.6 var(--enm-font); transition: background .15s; }
.auth-body .primary:hover { background: var(--enm-brand-dark); }
.auth-body .secondary { padding: 8px 12px; border: 1px solid #e3dce7; border-radius: 6px; background: #fff; color: #6c5d76; font: 550 12px/1.6 var(--enm-font); transition: background .15s, border-color .15s; }
.auth-body .secondary:hover { background: #faf7fb; border-color: #cdb6d6; }
.auth-body .danger { color: #b75252; border-color: #edd7d7; }
.auth-body .auth-footer { margin: 25px 0 18px; padding-top: 22px; border-top: 1px solid var(--enm-line); text-align: center; color: #8a7e92; font-size: 12px; }
.auth-card .auth-footer + p { color: #86758f; font-size: 11px; }
.auth-message { margin: 10px 0 0; font-size: 12px; color: #b44848; overflow-wrap: anywhere; }
.auth-message:empty { display: none; }
.auth-message.success { color: #327755; }
.enm-profile-summary { max-width: 680px; padding: 24px 26px; border: 1px solid var(--enm-line); border-radius: 12px; background: #fff; }
.enm-profile-summary dl { display: grid; gap: 12px; margin: 0; }
.enm-profile-summary dl > div { display: flex; align-items: baseline; gap: 14px; }
.enm-profile-summary dt { flex: 0 0 52px; color: var(--enm-muted); font-size: 13px; }
.enm-profile-summary dd { min-width: 0; margin: 0; font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }
.enm-account-settings .enm-connected-heading { margin: 30px 0 12px; font-size: 15px; font-weight: 600; }
.enm-account-settings .enm-account-panel { max-width: 680px; padding: 0; border: 1px solid var(--enm-line); border-radius: 12px; background: #fff; }
.enm-account-settings .enm-account-panel + .enm-account-panel { margin-top: 12px; }
.enm-account-settings .enm-account-panel { scroll-margin-top: 96px; }
.enm-account-panel-heading { margin: 0; }
.auth-body .enm-account-toggle { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 21px 26px; border: 0; border-radius: 11px; background: transparent; color: var(--enm-ink); text-align: left; transition: background .18s; }
.auth-body .enm-account-toggle:hover { background: #fcf9fd; }
.auth-body .enm-account-toggle:focus-visible { outline-offset: -4px; }
.enm-service-name { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; }
.enm-account-chevron { flex: 0 0 18px; width: 18px; height: 18px; color: #9a8ba2; transition: transform .24s ease; }
.enm-account-panel.is-open .enm-account-chevron { transform: rotate(180deg); }
.enm-account-collapse { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows .24s ease, opacity .18s ease, visibility 0s linear .24s; }
.enm-account-panel.is-open .enm-account-collapse { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition-delay: 0s; }
.enm-account-collapse-inner { min-height: 0; overflow: hidden; }
.enm-account-body { padding: 20px 26px 26px; border-top: 1px solid var(--enm-line); }
.enm-account-body > p:first-child { margin-top: 0; }
.enm-credential-state { flex-shrink: 0; padding: 5px 10px; border-radius: 5px; background: var(--enm-brand-soft); color: var(--enm-brand); font-size: 11px; font-weight: 500; }
.enm-account-panel fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.enm-account-panel input { width: 100%; }
.enm-account-panel .enm-password-saved::placeholder { color: var(--enm-ink); opacity: 1; letter-spacing: 2px; }
/* 기능 화면의 계정 고르기. 계정이 하나뿐이면 보이지 않는다. */
.enm-account-picker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.enm-account-picker > label { font-size: 14px; font-weight: 700; color: #46314f; white-space: nowrap; }
.enm-account-picker-link { font-size: 14px; font-weight: 700; color: var(--enm-brand, #8e159a); white-space: nowrap; text-underline-offset: 3px; }
.enm-account-picker > select { min-width: 180px; max-width: 100%; padding: 8px 10px; font: inherit; font-size: 14px;
  border: 1px solid #d6c9de; border-radius: 8px; background: #fff; color: #382841; }
.enm-account-picker-note { flex-basis: 100%; margin: 0; padding: 10px 12px; border: 1px solid #f0c8ce; border-radius: 8px;
  background: #fff4f5; font-size: 13px; line-height: 1.7; color: #8c3848; }
.enm-account-picker-note a { color: #8c3848; font-weight: 700; text-underline-offset: 3px; white-space: nowrap; }
.enm-account-picker[hidden] { display: none; }
/* 한 사이트에 계정을 여러 개 둘 수 있어, 저장된 것을 먼저 보여주고 그 아래에서 더한다. */
.enm-credential-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.enm-credential-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--enm-line); border-radius: 10px; background: #fff; }
.enm-credential-row.is-editing { border-color: #8e159a; background: #fcf7fd; }
.enm-credential-row-text { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex-wrap: wrap; }
.enm-credential-row-text strong { font-size: 15px; overflow-wrap: anywhere; }
.enm-credential-row-actions { display: flex; gap: 8px; flex-shrink: 0; }
.enm-credential-row-actions button { width: auto; min-width: 0; margin: 0; padding: 7px 12px; font-size: 13px; }
.enm-credential-dialog { width: min(420px, calc(100vw - 32px)); padding: 24px; border: 1px solid #d9cbe2; border-radius: 14px;
  background: #fff; color: var(--enm-text, #30243b); box-shadow: 0 24px 70px #1a082733; }
.enm-credential-dialog::backdrop { background: #1c102b66; }
.enm-credential-dialog fieldset { border: 0; padding: 0; margin: 0; }
.enm-credential-dialog-title { margin: 0 0 16px; font-size: 17px; }
.enm-credential-dialog .enm-account-actions { margin-top: 20px; }
.enm-credential-dialog .enm-account-actions button { width: auto; min-width: 88px; margin: 0; }
@media (max-width: 560px) { .enm-credential-row { align-items: flex-start; flex-direction: column; } .enm-credential-row-actions { align-self: flex-end; } }
.enm-account-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 25px; }
.enm-account-actions .primary { width: auto; min-width: 100px; margin: 0; }
.enm-account-actions .danger { margin-right: auto; }
@media (max-width: 640px) {
  .enm-profile-summary { padding: 22px 20px; }
  .auth-body .enm-account-toggle { min-height: 72px; padding: 20px; gap: 10px; }
  .enm-account-body { padding: 18px 20px 22px; }
  .enm-account-actions { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .enm-account-collapse, .enm-account-chevron { transition: none; }
}
.auth-badge { display: inline-flex; align-items: center; padding: 4px 9px; border: 1px solid transparent; border-radius: 5px; background: var(--enm-brand-soft); color: var(--enm-brand); font-size: 11px; font-weight: 600; white-space: nowrap; }
.auth-badge[data-status='pending'] { background: #fff5e6; color: #9d6c20; }
.auth-badge[data-status='approved'] { background: #eef6f1; color: #397859; }
.auth-badge[data-status='rejected'], .auth-badge[data-status='suspended'] { background: #fcf0ef; color: #b15b55; }
.online-badge { display: inline-flex; align-items: center; gap: 7px; color: #968b9e; font-size: 11px; white-space: nowrap; }
.online-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #c3b9ca; }
.online-badge[data-online='true'] { color: #397859; }
.online-badge[data-online='true']::before { background: #50a37c; box-shadow: 0 0 0 3px #eef7f2; }
.admin-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.admin-intro .muted { max-width: 650px; }
.auth-body .admin-notification-button { position: relative; display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; margin-top: 5px; background: #fff; border-radius: 12px; }
.admin-notification-button svg { width: 22px; height: 22px; }
.admin-notification-count { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 2px solid #fff; border-radius: 20px; background: var(--enm-brand); color: #fff; font-size: 10px; font-weight: 650; }
.admin-notification-count[hidden], .admin-pagination[hidden] { display: none; }
.admin-notifications { position: fixed; inset: var(--notification-top, 160px) var(--notification-right, 24px) auto auto; width: min(430px, calc(100vw - 32px)); max-height: calc(100dvh - var(--notification-top, 160px) - 16px); margin: 0; padding: 24px; border: 1px solid var(--enm-line); border-radius: 14px; color: var(--enm-ink); background: #fff; box-shadow: 0 20px 70px #24102e26; overflow-y: auto; overscroll-behavior: contain; }
.admin-notifications[open] { animation: admin-notifications-in .18s ease-out; }
.admin-notifications::backdrop { background: #22122f26; }
.admin-notifications-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.admin-notifications-header h2 { margin: 0; font-size: 19px; }
.admin-notifications-header p { margin: 7px 0 0; font-size: 12px; }
.auth-body .admin-icon-button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; flex: 0 0 32px; }
.admin-icon-button svg { width: 18px; height: 18px; }
.admin-pending-list { list-style: none; margin: 20px 0 0; padding: 0; }
.admin-pending-item { padding: 18px 0; border-top: 1px solid var(--enm-line); }
.admin-pending-item strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.admin-pending-item .small { margin: 5px 0 0; font-size: 11px; overflow-wrap: anywhere; }
.admin-pending-item .admin-actions { justify-content: flex-end; margin-top: 14px; }
.auth-body .admin-pending-item .primary { width: auto; margin: 0; padding: 7px 18px; font-size: 12px; }
.admin-pending-item .secondary { padding: 7px 18px; font-size: 12px; }
.admin-pending-empty { padding: 30px 0; text-align: center; color: #86758f; font-size: 13px; }
.admin-notifications .auth-message:empty { display: none; }
@keyframes admin-notifications-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .admin-notifications[open] { animation: none; } }
.admin-directory { padding: 26px; border: 1px solid var(--enm-line); background: #fff; border-radius: 12px; }
.admin-directory-heading { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; }
.admin-directory-heading h2 { margin: 0; font-size: 16px; }
.admin-directory-heading span { color: #ab9ab3; font-size: 10px; letter-spacing: .1em; }
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 20px; }
.admin-toolbar #user-counts { margin: 0; font-size: 12px; }
.admin-role { display: inline-flex; padding: 4px 9px; border-radius: 5px; background: #f6f3f8; color: #86758f; font-size: 11px; white-space: nowrap; }
.admin-role[data-role='admin'] { background: var(--enm-brand-soft); color: var(--enm-brand); font-weight: 600; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; min-width: 670px; border-collapse: collapse; text-align: left; }
.admin-table th { background: #faf8fb; color: #92829d; font-size: 11px; font-weight: 500; white-space: nowrap; }
.admin-table th, .admin-table td { padding: 18px 15px; border-bottom: 1px solid #f0ebf3; }
.admin-table td { font-size: 12px; color: #75647e; }
.admin-table td:first-child { max-width: 235px; overflow-wrap: anywhere; color: #45354f; }
.admin-table td:first-child strong { font-size: 13px; font-weight: 650; }
.admin-table td:first-child .small { margin-top: 5px; font-size: 10px; color: #7e6d88; }
.admin-table tbody tr:hover { background: #fdfbfe; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.admin-table .secondary { font-size: 11px; padding: 6px 9px; }
.admin-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 22px; color: #97899f; }
.admin-footnote { margin: 20px 0 0; color: #86758f; font-size: 11px; }
.admin-tabs { display: flex; gap: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--enm-line); }
.auth-body .admin-tabs button { padding: 12px 2px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #96899f; font-size: 13px; font-weight: 600; }
.auth-body .admin-tabs button[aria-selected='true'] { color: var(--enm-brand); border-bottom-color: var(--enm-brand); }
.server-heading, .server-history-heading, .chart-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.server-heading { margin-bottom: 24px; }
.server-heading h2 { margin: 0; font-size: 23px; }
.server-heading .auth-brand { margin: 0 0 6px; font-size: 10px; }
.server-heading .small { margin: 7px 0 0; font-size: 11px; }
.server-health { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid #dceade; border-radius: 20px; background: #f0f7f2; color: #397859; font-size: 12px; white-space: nowrap; }
.server-health::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.server-health.warning { color: #a66c28; border-color: #eddbbe; background: #fff8ed; }
.server-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.server-card { min-width: 0; padding: 22px; border: 1px solid var(--enm-line); border-radius: 12px; background: white; }
.server-card h3, .server-history-heading h3 { margin: 0; font-size: 13px; font-weight: 600; color: #71617d; }
.metric-value { margin: 14px 0 8px; font-size: 30px; font-weight: 650; line-height: 1.3; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.metric-value.metric-traffic { font-size: 25px; }
.metric-note { margin: 8px 0 0; color: #94859e; font-size: 11px; }
.server-card progress { display: block; width: 100%; height: 5px; margin: 14px 0; border: 0; border-radius: 5px; overflow: hidden; background: #f2edf5; accent-color: var(--enm-brand); }
.server-card progress::-webkit-progress-bar { background: #f2edf5; }
.server-card progress::-webkit-progress-value { background: #a369b0; border-radius: 5px; }
.server-card progress::-moz-progress-bar { background: #a369b0; }
.server-history-heading { margin: 28px 0 14px; }
.server-ranges { display: flex; padding: 3px; border: 1px solid var(--enm-line); border-radius: 8px; background: white; }
.server-ranges button { padding: 5px 10px; border: 0; border-radius: 5px; background: transparent; color: #96899f; font-size: 11px; }
.server-ranges button[aria-pressed='true'] { background: var(--enm-brand-soft); color: var(--enm-brand); }
.server-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.chart-legend { display: flex; gap: 12px; font-size: 10px; color: #97899f; }
.chart-legend span { display: flex; align-items: center; gap: 5px; }
.chart-legend span::before { content: ''; width: 7px; height: 7px; background: #86158e; border-radius: 50%; }
.chart-legend span + span::before { background: #b69acb; }
.server-chart { display: block; width: 100%; height: auto; margin-top: 20px; overflow: visible; }
.chart-text { font-size: 11px; fill: #a090aa; }
.server-jobs { margin-top: 20px; }
.server-jobs .chart-heading { flex-wrap: wrap; }
.server-jobs .small { font-size: 11px; }
.monitor-job-list { margin-top: 18px; }
.monitor-job { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 70px 70px; align-items: center; gap: 18px; padding: 15px 0; border-top: 1px solid var(--enm-line); font-size: 12px; }
.monitor-job strong, .monitor-job small { display: block; overflow-wrap: anywhere; }
.monitor-job small { font-size: 10px; color: #9b8da3; }
.job-state { justify-self: start; padding: 4px 8px; border-radius: 5px; color: #397859; background: #eef6f1; font-size: 10px; white-space: nowrap; }
.job-state[data-state='queued'] { color: #a47734; background: #fff5e6; }
.monitor-jobs-empty { margin: 0; padding: 26px 0 10px; text-align: center; font-size: 12px; color: #a395aa; }
.server-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.server-details p { margin: 0; font-size: 10px; color: #a091aa; }
.server-details strong { display: block; margin-top: 5px; color: #75657f; font-size: 12px; font-weight: 500; }
.server-alert, .server-alerts { padding: 14px 18px; margin: 0 0 20px; border: 1px solid #efdab8; border-radius: 9px; color: #9d6c27; background: #fff9f0; font-size: 12px; }
.server-alert { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.server-alerts { list-style-position: inside; }
.openai-panel { display: grid; gap: 20px; min-width: 0; }
.openai-panel[hidden] { display: none; }
.ai-period { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.auth-body .ai-period label { margin: 0; font-size: 12px; }
.auth-body .ai-period input { width: 166px; margin: 0; padding: 9px 10px; font-size: 13px; }
.ai-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ai-cards .metric-value { font-size: clamp(22px, 2.1vw, 32px); overflow-wrap: anywhere; }
.ai-budget-card { background: #fbf7fc; border-color: #d9c4e2; }
.ai-billing { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.ai-billing > div + div { padding-left: 30px; border-left: 1px solid var(--enm-line); }
.ai-official-value { margin: 12px 0; font-size: 23px; font-weight: 650; font-variant-numeric: tabular-nums; }
.ai-link { color: var(--enm-brand); font-size: 12px; text-decoration: none; }
.ai-link:hover { text-decoration: underline; }
.ai-warning { font-size: 12px; line-height: 1.7; color: #9b612c; }
.ai-official-details { margin-top: 15px; font-size: 12px; }
.ai-official-details summary { cursor: pointer; color: var(--enm-brand); }
.ai-official-details dl { display: grid; grid-template-columns: 1fr auto; gap: 10px; max-height: 210px; overflow-y: auto; }
.ai-official-details dd { margin: 0; font-variant-numeric: tabular-nums; }
.ai-settings summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.ai-settings summary span { margin-left: 14px; font-weight: 400; }
.ai-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 24px; margin-top: 20px; border-top: 1px solid var(--enm-line); }
.ai-settings .metric-note { line-height: 1.8; }
.auth-body .ai-budget-input { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.auth-body .ai-budget-input input { max-width: 190px; margin: 0; }
.ai-history .server-history-heading { margin: 0 0 20px; }
.ai-chart svg { display: block; width: 100%; max-height: 210px; }
.ai-log { min-width: 0; }
.ai-table { min-width: 820px; }
.ai-table small { display: block; margin-top: 5px; color: #8e8197; font-size: 10px; overflow-wrap: anywhere; }
.ai-table td { font-size: 12px; font-variant-numeric: tabular-nums; }
.ai-table strong { font-size: 12px; }
@media (max-width: 1200px) { .ai-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .openai-panel { gap: 14px; }
  .openai-panel .server-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .ai-cards { gap: 10px; }
  .ai-cards .metric-value { font-size: 23px; }
  .ai-billing, .ai-settings-grid { grid-template-columns: 1fr; gap: 20px; }
  .ai-billing > div + div { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--enm-line); }
  .ai-chart { overflow-x: auto; }
  .ai-chart svg { min-width: 500px; }
  .admin-tabs { gap: 4px; }
  .admin-tabs button { padding-inline: 13px; font-size: 12px; }
}
@media (max-width: 1100px) { .server-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .server-charts { grid-template-columns: 1fr; } .server-details { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .server-cards { gap: 10px; }
  .server-card { padding: 18px 15px; }
  .server-card h3 { font-size: 12px; }
  .metric-value { font-size: 26px; }
  .metric-value.metric-traffic { font-size: 20px; }
  .metric-note { font-size: 10px; }
  .monitor-job { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .monitor-job > span:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 11px; color: #96899f; }
  .monitor-job .job-state { grid-column: 2; grid-row: 1; justify-self: end; }
  .monitor-job > small { text-align: right; }
  .server-alert { flex-wrap: wrap; }
}
.permissions-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 30px; border: 1px solid var(--enm-line); border-radius: 14px; color: var(--enm-ink); background: white; overflow-y: auto; box-shadow: 0 24px 90px #24102e26; }
.permissions-dialog::backdrop { background: #22122f66; backdrop-filter: blur(3px); }
.permissions-dialog h2 { margin: 0; font-size: 23px; }
.permissions-dialog fieldset { margin: 24px 0 0; padding: 0; border: 0; }
.permissions-dialog legend { margin-bottom: 8px; color: #8c7698; font-size: 12px; font-weight: 600; }
.auth-body label.permission-choice { display: flex; align-items: center; gap: 13px; margin: 9px 0 0; padding: 13px; border: 1px solid var(--enm-line); border-radius: 8px; cursor: pointer; }
.auth-body .permission-choice input { width: 17px; height: 17px; flex: 0 0 17px; margin: 0; accent-color: var(--enm-brand); }
.permission-choice strong, .permission-choice small { display: block; }
.permission-choice strong { color: #514059; font-size: 12px; }
.permission-choice small { color: #81708b; font-size: 10px; font-weight: 400; margin-top: 4px; }
.permission-choice:has(input:checked) { border-color: #cda9d5; background: #fcf8fd; }
.permission-footer { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--enm-line); }
.auth-body .permission-footer .primary { width: auto; margin: 0; padding: 9px 16px; }
.admin-all-features { display: inline-flex; align-items: center; gap: 6px; margin: 5px 10px 5px 0; color: #7a6485; font-size: 11px; white-space: nowrap; }
.admin-all-features::before { content: '✓'; color: #9563a3; font-size: 13px; }
.admin-role[data-role='master'] { background: #ede6f3; color: #69417e; font-weight: 650; }
.admin-actions button[aria-expanded='true'] { border-color: #bb92c8; color: var(--enm-brand); background: var(--enm-brand-soft); }
.admin-table .admin-permission-row > td { max-width: none; padding: 0 0 18px; }
.admin-table .admin-permission-row:hover { background: transparent; }
.admin-inline-permissions { padding: 22px; border: 1px solid #e1d3e7; border-radius: 12px; background: #fcfafd; }
.admin-permission-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.admin-permission-heading h3 { margin: 0; font-size: 14px; font-weight: 650; color: #4e385a; }
.admin-permission-heading p { margin: 5px 0 0; color: #897692; font-size: 12px; }
.admin-permission-count { flex: none; padding: 5px 10px; border-radius: 6px; background: #f0e7f4; color: #805a90; font-size: 11px; font-variant-numeric: tabular-nums; }
.admin-permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.admin-permission-grid legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.auth-body .admin-permission-grid .permission-choice { margin: 0; padding: 14px; background: #fff; transition: border-color .15s, background .15s; }
.auth-body .admin-permission-grid .permission-choice:hover { border-color: #c5accf; }
.auth-body .admin-permission-grid .permission-choice:has(input:checked) { border-color: #c9a6d3; background: #f7effa; }
.admin-table .admin-permission-grid .permission-choice strong { font-size: 12px; }
.admin-permission-grid .permission-choice small { line-height: 1.6; font-size: 11px; }
.admin-permission-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #e9deee; }
.admin-table .admin-permission-footer button { min-height: 36px; padding: 8px 12px; border-radius: 8px; font-size: 12px; }
.auth-body .admin-permission-footer .primary { width: auto; margin: 0; padding-inline: 16px; }
.admin-permission-status { margin: 14px 0 0; color: #a44755; font-size: 12px; }
.admin-permission-status:empty { display: none; }
.enm-session-bar.enm-session-bar--compact { position: static; width: 100%; max-width: 1000px; margin: 0 auto; flex-direction: row; align-items: center; padding: 15px 20px; border: 1px solid var(--enm-line); border-radius: 10px; }
.enm-session-bar--compact .enm-sidebar-brand { padding: 0; border: 0; margin-right: auto; }
.enm-session-bar--compact .enm-logo { width: 155px; }
.enm-session-bar--compact .enm-account { border: 0; padding: 0; }
.enm-session-bar--compact .enm-avatar { display: none; }
@media (min-width: 1600px) { body.enm-app { padding-left: calc(var(--enm-sidebar) + 64px); padding-right: 64px; } .enm-topbar { padding-inline: 64px; } }
@media (max-width: 1100px) { :root { --enm-sidebar: 214px; } .enm-logo { width: 167px; } body.enm-app { padding-inline: calc(var(--enm-sidebar) + 26px) 26px; } .enm-topbar { padding-inline: 26px; } .enm-session-bar { padding-inline: 14px; } .enm-session-bar .enm-nav-link { font-size: 12px; gap: 10px; padding-inline: 10px; } .auth-layout .auth-card { padding: 40px; } }
@media (max-width: 900px) {
  body.enm-app { padding: 98px 22px 28px; }
  .enm-topbar { left: 0; height: 70px; padding-inline: 22px; }
  .enm-breadcrumb, .enm-topbar-end time { display: none; }
  .enm-mobile-brand { display: block; margin-right: auto; }
  .enm-mobile-brand .enm-logo { width: 148px; }
  .enm-menu-toggle { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; background: #fff; border: 1px solid var(--enm-line); border-radius: 7px; color: var(--enm-brand); }
  .enm-session-bar:not(.enm-session-bar--compact) { z-index: 45; width: 250px; padding-top: 28px; transform: translateX(-100%); transition: transform .2s; visibility: hidden; }
  .enm-menu-open .enm-session-bar { transform: translateX(0); visibility: visible; }
  .enm-menu-open { overflow: hidden; }
  .enm-menu-open .enm-menu-overlay { display: block; position: fixed; inset: 70px 0 0 0; border: 0; z-index: 44; background: #22112e66; }
  .enm-menu-open .enm-session-bar:not(.enm-session-bar--compact) { top: 70px; }
  .enm-page-heading { align-items: flex-start; gap: 15px; }
  .enm-app .enm-page-heading h1 { font-size: 28px; }
  .auth-story { padding: 32px; }
  .auth-layout { grid-template-columns: .85fr 1fr; }
  .auth-layout .auth-card { padding: 35px; }
  .auth-story-title em { margin-left: 0; }
  .admin-directory { padding: 22px; }
}
@media (max-width: 640px) {
  .auth-body { padding: 20px 16px; }
  .auth-layout { display: block; min-height: 0; max-width: 480px; margin: 0 auto; border-radius: 14px; }
  .auth-story { min-height: auto; padding: 24px 28px; background: #fff; border-bottom: 1px solid var(--enm-line); }
  .auth-story .enm-logo { width: 185px; padding: 0; }
  .auth-story-copy, .auth-story-footer, .auth-orbit { display: none; }
  .auth-layout .auth-card { padding: 30px 28px; }
  .auth-card { margin: 32px auto; padding: 28px; }
  .auth-body h1 { font-size: 26px; }
  body.enm-app { padding: 94px 18px 28px; }
  .enm-topbar { padding-inline: 18px; }
  .enm-topbar-end { gap: 8px; }
  .enm-inquiries-link { padding: 6px 9px; font-size: 13px; }
  .enm-page-heading { flex-wrap: wrap; margin-bottom: 24px; }
  .enm-app .enm-page-heading h1 { font-size: 27px; }
  .enm-page-heading > a { display: none; }
  .admin-directory { padding: 19px 16px; }
  .admin-intro { gap: 16px; }
  .admin-intro .auth-brand { font-size: 10px; }
  .admin-notifications { padding: 20px; }
  .admin-table { min-width: 0; }
  .admin-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .admin-table tbody, .admin-table tr, .admin-table td { display: block; }
  .admin-table tr { padding: 17px 0; border-top: 1px solid var(--enm-line); }
  .admin-table td { max-width: none !important; padding: 6px 0; border: 0; }
  .admin-table td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 76px; margin-right: 8px; color: #82718c; font-size: 10px; }
  .admin-table td:first-child::before { display: none; }
  .admin-table td:first-child strong { font-size: 15px; }
  .admin-table td:last-child::before { display: none; }
  .admin-pagination { gap: 12px; }
  .permissions-dialog { padding: 24px 20px; }
  .admin-table .admin-permission-row { padding: 0 0 18px; border-top: 0; }
  .admin-table .admin-permission-row > td { padding: 0; }
  .admin-inline-permissions { padding: 16px; }
  .admin-permission-heading { align-items: flex-start; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
  .admin-permission-heading h3 { font-size: 13px; }
  .admin-permission-heading p { font-size: 11px; }
  .admin-permission-grid { grid-template-columns: 1fr; gap: 8px; }
  .auth-body .admin-permission-grid .permission-choice { padding: 12px; }
  .admin-permission-footer { gap: 16px; }
  .admin-permission-footer > .admin-actions:last-child { margin-left: auto; }
  .enm-session-bar--compact .enm-account-name { max-width: 100px; }
}
@media (max-height: 700px) {
  .enm-session-bar:not(.enm-session-bar--compact) { padding-top: 20px; padding-bottom: 16px; }
  .enm-sidebar-brand { padding-bottom: 18px; }
  .enm-sidebar-workspace { padding-top: 16px; }
  .enm-sidebar-label { margin-bottom: 8px; }
  .enm-sidebar-management, .enm-sidebar-bottom { padding-top: 14px; }
  .enm-sidebar-note { display: none; }
  .enm-sidebar-bottom .enm-account { padding-top: 14px; }
}
/* Keep normal document navigation, history, downloads and feature permissions intact. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .enm-topbar { view-transition-name: enm-topbar; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) {
    animation-duration: 180ms;
    animation-timing-function: ease-out;
  }
  html.enm-transition-pending::view-transition-old(*) { animation: none; opacity: 1; }
  html.enm-transition-pending::view-transition-new(*) { animation: none; opacity: 0; }
}
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .enm-session-bar:not(.enm-session-bar--compact) { view-transition-name: enm-sidebar; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* 통통통 인증번호 창은 계정 설정이 아닌 화면에도 뜬다. .auth-body 안에서만 걸리는
   버튼·입력칸 모양이 닿지 않으므로, 이 창에 필요한 만큼을 여기에 둔다. */
#verification-dialog { width: min(380px, calc(100vw - 32px)); padding: 26px; text-align: center; }
#verification-dialog .enm-credential-dialog-title { margin: 0 0 6px; font-size: 18px; }
#verification-dialog label { display: block; margin: 0 0 14px; color: #796b82; font-size: 13px; }
#verification-code { display: block; width: 100%; margin: 0 auto 14px; padding: 12px 10px; border: 1px solid var(--enm-line); border-radius: 9px; background: #fff; color: var(--enm-ink); font: 700 26px/1.3 var(--enm-font); letter-spacing: 8px; text-align: center; font-variant-numeric: tabular-nums; }
#verification-code:focus-visible { outline: 3px solid #b472c4; outline-offset: 2px; }
#verification-note, #verification-timer { margin: 0 0 4px; color: #796b82; font-size: 12px; }
#verification-timer { font-variant-numeric: tabular-nums; font-weight: 600; }
#verification-message:not(:empty) { margin: 10px 0 0; color: #a3243b; font-size: 12px; }
#verification-dialog .enm-account-actions { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
#verification-dialog .enm-account-actions button { width: auto; min-width: 92px; margin: 0; border-radius: 7px; font: 600 13px/1.6 var(--enm-font); cursor: pointer; }
#verification-submit { padding: 11px 18px; border: 1px solid var(--enm-brand); background: var(--enm-brand); color: #fff; }
#verification-submit:hover { background: var(--enm-brand-dark); }
#verification-cancel { padding: 11px 16px; border: 1px solid #e3dce7; background: #fff; color: #6c5d76; }
#verification-cancel:hover { background: #f7f2f9; }
