:root {
  --navy-950: #0b1726;
  --navy-900: #10233c;
  --navy-800: #16314f;
  --navy-700: #1e4268;
  --blue-700: #1c5f9f;
  --blue-600: #2874ba;
  --blue-100: #e6f2fb;
  --cyan-500: #3aa7a3;
  --green-700: #247558;
  --green-100: #e6f5ee;
  --amber-700: #9a6416;
  --amber-100: #fff2d8;
  --red-700: #a43a42;
  --red-100: #fdebed;
  --purple-700: #6650a3;
  --purple-100: #eee9fb;
  --slate-950: #17202b;
  --slate-800: #344153;
  --slate-700: #4b596c;
  --slate-600: #667387;
  --slate-500: #7f8b9c;
  --slate-400: #aab3c0;
  --slate-300: #cfd5dd;
  --slate-200: #e2e6eb;
  --slate-100: #eef1f4;
  --slate-50: #f7f8fa;
  --white: #fff;
  --page-bg: #f4f6f8;
  --border: #dde2e8;
  --shadow-sm: 0 1px 2px rgba(16, 35, 60, .05), 0 4px 14px rgba(16, 35, 60, .04);
  --shadow-lg: 0 24px 70px rgba(5, 21, 38, .18);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --sidebar-width: 260px;
  --focus: 0 0 0 3px rgba(40, 116, 186, .24);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--slate-950);
  background: var(--page-bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; font-size: 15px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .56; }
input, select, textarea { color: var(--slate-950); }
input::placeholder, textarea::placeholder { color: var(--slate-400); }
[hidden] { display: none !important; }

:focus-visible { outline: none; box-shadow: var(--focus); }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10000; padding: 10px 14px; border-radius: 6px; color: var(--white); background: var(--navy-950); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

/* Authentication */
.auth-page { background: var(--navy-950); }
.auth-shell { display: grid; grid-template-columns: minmax(360px, 44%) 1fr; min-height: 100vh; }
.auth-intro { position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: clamp(44px, 7vw, 112px); color: var(--white); background: linear-gradient(145deg, #0d2037 0%, #183d62 68%, #1e506f 100%); }
.auth-intro::before { content: ""; position: absolute; width: 440px; height: 440px; right: -240px; top: -180px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.02); }
.auth-intro::after { content: ""; position: absolute; width: 250px; height: 250px; left: -140px; bottom: -100px; border: 1px solid rgba(93, 192, 188, .28); border-radius: 50%; box-shadow: 0 0 0 50px rgba(58,167,163,.04); }
.brand-mark { position: relative; z-index: 1; display: grid; width: 52px; height: 52px; margin-bottom: 64px; place-items: center; border: 1px solid rgba(255,255,255,.32); border-radius: 14px; color: var(--white); background: rgba(255,255,255,.08); font-size: 22px; font-weight: 800; letter-spacing: -.04em; }
.eyebrow { margin: 0 0 8px; color: var(--blue-600); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.auth-intro .eyebrow { color: #72c7c4; }
.auth-intro h1 { position: relative; z-index: 1; margin: 0; font-size: clamp(36px, 4vw, 58px); line-height: 1.18; letter-spacing: -.055em; }
.auth-intro-copy { max-width: 480px; margin: 24px 0 0; color: rgba(255,255,255,.68); font-size: 17px; line-height: 1.8; }
.auth-points { position: relative; z-index: 1; display: grid; gap: 14px; padding: 0; margin: 64px 0 0; list-style: none; color: rgba(255,255,255,.79); }
.auth-points li { display: flex; align-items: center; gap: 14px; }
.auth-points span { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: #86d1ce; font-size: 10px; }
.auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; background: var(--slate-50); }
.auth-card { width: min(100%, 440px); padding: 44px; border: 1px solid var(--border); border-radius: 22px; background: var(--white); box-shadow: var(--shadow-lg); }
.auth-card-heading { display: flex; gap: 16px; margin-bottom: 30px; }
.auth-card-heading h2 { margin: 0; font-size: 29px; letter-spacing: -.04em; }
.auth-card-heading p:last-child { margin: 8px 0 0; color: var(--slate-600); font-size: 14px; }
.mobile-brand { display: none; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 11px; color: var(--white); background: var(--navy-800); font-weight: 800; }
.auth-security-note { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 24px 0 0; color: var(--slate-500); font-size: 12px; }
.auth-security-note span { color: var(--green-700); font-size: 8px; }
.auth-footer { margin: 22px 0 0; color: var(--slate-500); font-size: 12px; }

/* Forms and controls */
.form-stack { display: grid; gap: 20px; }
.field { min-width: 0; }
.field label, .choice-fieldset > legend { display: block; margin-bottom: 7px; color: var(--slate-800); font-size: 13px; font-weight: 700; }
.field label em { margin-left: 3px; color: var(--red-700); font-style: normal; font-size: 11px; }
.field label span { color: var(--slate-500); font-size: 11px; font-weight: 500; }
.label-row { display: flex; align-items: center; justify-content: space-between; }
.field input, .field select, .field textarea, .filter-select select, .search-field input {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--slate-300); border-radius: var(--radius-sm); background: var(--white); transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; }
.input-with-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.inline-options { display: flex; gap: 16px; margin: 0 0 9px; }
.inline-options label { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--slate-600); font-size: 12px; font-weight: 600; cursor: pointer; }
.inline-options input { width: 15px; min-height: auto; height: 15px; padding: 0; }
.field input:hover, .field select:hover, .field textarea:hover, .filter-select select:hover, .search-field input:hover { border-color: var(--slate-400); }
.field input:focus, .field select:focus, .field textarea:focus, .filter-select select:focus, .search-field input:focus { outline: none; border-color: var(--blue-600); box-shadow: var(--focus); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--red-700); }
.field-help { margin: 7px 0 0; color: var(--slate-500); font-size: 12px; }
.field-error { margin: 6px 0 0; color: var(--red-700); font-size: 12px; }
.text-button { padding: 2px 0; border: 0; color: var(--blue-700); background: transparent; font-size: 12px; font-weight: 700; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 7px; padding: 9px 17px; border: 1px solid transparent; border-radius: var(--radius-sm); text-decoration: none; font-size: 13px; font-weight: 750; white-space: nowrap; transition: transform .12s, background .15s, border-color .15s, box-shadow .15s; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button-primary { color: var(--white); border-color: var(--navy-800); background: var(--navy-800); }
.button-primary:hover { border-color: var(--navy-700); background: var(--navy-700); }
.button-secondary { color: var(--slate-800); border-color: var(--slate-300); background: var(--white); }
.button-secondary:hover { border-color: var(--slate-400); background: var(--slate-50); }
.button-ghost { color: var(--slate-600); border-color: transparent; background: transparent; }
.button-ghost:hover { color: var(--slate-950); background: var(--slate-100); }
.button-danger { color: var(--red-700); border-color: #edc9cd; background: var(--red-100); }
.button-large { min-height: 50px; font-size: 14px; }
.button-compact { min-height: 36px; padding: 7px 12px; }
.button-full { width: 100%; }
.button-spinner, .spinner { width: 17px; height: 17px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .65s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.alert { padding: 12px 14px; margin-bottom: 20px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--slate-800); background: var(--white); font-size: 13px; }
.alert-danger { color: var(--red-700); border-color: #edc9cd; background: var(--red-100); }
.alert-success { color: var(--green-700); border-color: #bfe1d1; background: var(--green-100); }
.alert-warning { color: var(--amber-700); border-color: #ecd49f; background: var(--amber-100); }

/* Main application shell */
.app-page { background: var(--page-bg); }
.app-loading { display: flex; min-height: 100vh; align-items: center; justify-content: center; gap: 12px; color: var(--slate-600); }
.app-loading .spinner { color: var(--blue-600); }
.app-shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: fixed; z-index: 100; inset: 0 auto 0 0; display: flex; width: var(--sidebar-width); flex-direction: column; color: #dae4ef; background: var(--navy-950); }
.sidebar-brand { display: flex; min-height: 82px; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-mark-small { width: 40px; height: 40px; flex: 0 0 auto; margin: 0; border-radius: 11px; font-size: 17px; }
.sidebar-brand strong { display: block; color: var(--white); font-size: 15px; letter-spacing: -.02em; }
.sidebar-brand div > span { display: block; margin-top: 2px; color: #71879e; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.sidebar-close { display: none; margin-left: auto; color: var(--white); }
.main-nav { flex: 1; overflow-y: auto; padding: 18px 12px; }
.nav-label { padding: 0 12px; margin: 0 0 7px; color: #687e95; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.nav-section-gap { margin-top: 25px; }
.nav-link { display: flex; min-height: 43px; align-items: center; gap: 12px; padding: 9px 12px; margin: 3px 0; border-radius: 8px; color: #aebdcd; text-decoration: none; font-size: 13px; font-weight: 650; transition: color .15s, background .15s; }
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.055); }
.nav-link.is-active { color: var(--white); background: #1a3a5d; box-shadow: inset 3px 0 #56b3ae; }
.nav-icon { display: grid; width: 20px; height: 20px; place-items: center; color: #7692ad; font-size: 17px; }
.nav-link.is-active .nav-icon { color: #6fc6c2; }
.nav-count { min-width: 20px; margin-left: auto; padding: 1px 6px; border-radius: 10px; color: var(--white); background: var(--red-700); font-size: 10px; text-align: center; }
.sidebar-footer { padding: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-user { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.avatar { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--white); background: #285479; font-size: 12px; font-weight: 800; }
.sidebar-user strong { display: block; overflow: hidden; max-width: 150px; color: var(--white); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user span:last-child { display: block; margin-top: 1px; color: #8296aa; font-size: 10px; }
.sidebar-footer .button { color: #aebdcd; border-color: rgba(255,255,255,.12); }
.sidebar-footer .button:hover { color: var(--white); background: rgba(255,255,255,.06); }
.app-body { grid-column: 2; min-width: 0; }
.topbar { position: sticky; z-index: 50; top: 0; display: flex; min-height: 82px; align-items: center; gap: 18px; padding: 14px clamp(20px, 3vw, 44px); border-bottom: 1px solid var(--border); background: rgba(255,255,255,.93); backdrop-filter: blur(12px); }
.topbar h1 { margin: 0; font-size: 20px; letter-spacing: -.035em; }
.topbar-kicker { margin: 0 0 1px; color: var(--slate-500); font-size: 10px; font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-button { display: grid; width: 38px; height: 38px; padding: 0; place-items: center; border: 0; border-radius: 8px; color: inherit; background: transparent; font-size: 20px; }
.icon-button:hover { background: rgba(255,255,255,.08); }
.menu-button { display: none; color: var(--slate-800); }
.health-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 18px; color: var(--slate-600); background: var(--white); font-size: 11px; font-weight: 650; }
.health-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--slate-400); }
.health-pill.health-good { color: var(--green-700); border-color: #c8e1d6; background: var(--green-100); }
.health-pill.health-good i { background: var(--green-700); }
.health-pill.health-warning { color: var(--amber-700); border-color: #ead6ac; background: var(--amber-100); }
.health-pill.health-warning i { background: var(--amber-700); }
.main-content { width: min(100%, 1540px); min-height: calc(100vh - 82px); padding: clamp(24px, 3.5vw, 48px) clamp(18px, 3.5vw, 48px) 80px; margin: 0 auto; }
.view { animation: view-in .18s ease-out; }
@keyframes view-in { from { opacity: .4; transform: translateY(4px); } }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-heading h2 { margin: 0; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.25; letter-spacing: -.05em; }
.section-heading p:last-child { margin: 7px 0 0; color: var(--slate-600); }
.section-heading-actions { align-items: center; }
.updated-at { color: var(--slate-500); font-size: 11px; }

/* Cards / dashboard */
.card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric-card { min-height: 135px; padding: 21px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.metric-label { display: flex; align-items: center; justify-content: space-between; color: var(--slate-600); font-size: 12px; font-weight: 650; }
.metric-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; color: var(--blue-700); background: var(--blue-100); font-size: 14px; }
.metric-value { margin: 17px 0 0; font-size: 29px; font-weight: 800; line-height: 1; letter-spacing: -.045em; }
.metric-foot { margin: 9px 0 0; color: var(--slate-500); font-size: 11px; }
.skeleton-card { background: linear-gradient(90deg, var(--white) 20%, var(--slate-50) 45%, var(--white) 70%); background-size: 300% 100%; animation: shimmer 1.3s infinite linear; }
@keyframes shimmer { to { background-position: -300% 0; } }
.dashboard-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 18px; }
.dashboard-grid .card { min-width: 0; padding: 22px; }
.card-span-2 { grid-column: span 2; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.card-heading > div { min-width: 0; }
.card-heading > div:first-child:has(.step-number) { display: flex; align-items: center; gap: 10px; }
.card-heading h3 { margin: 0; font-size: 15px; letter-spacing: -.025em; }
.card-heading p { margin: 4px 0 0; color: var(--slate-500); font-size: 11px; }
.text-link { color: var(--blue-700); font-size: 12px; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.empty-placeholder { display: grid; min-height: 120px; place-items: center; color: var(--slate-500); font-size: 12px; }
.product-distribution { display: grid; gap: 14px; }
.distribution-row { display: grid; grid-template-columns: 94px minmax(80px, 1fr) 48px; align-items: center; gap: 12px; }
.distribution-label { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 12px; font-weight: 650; }
.distribution-label i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--blue-600); }
.distribution-bar { height: 7px; overflow: hidden; border-radius: 10px; background: var(--slate-100); }
.distribution-bar i { display: block; height: 100%; border-radius: inherit; background: var(--blue-600); }
.distribution-value { color: var(--slate-600); font-size: 11px; text-align: right; }
.capacity-ring { --percent: 0; display: grid; width: 114px; height: 114px; margin: 6px auto 18px; place-items: center; border-radius: 50%; background: conic-gradient(var(--cyan-500) calc(var(--percent) * 1%), var(--slate-100) 0); }
.capacity-ring::before { content: ""; grid-area: 1 / 1; width: 86px; height: 86px; border-radius: 50%; background: var(--white); }
.capacity-ring span { z-index: 1; grid-area: 1 / 1; font-size: 20px; font-weight: 800; }
.capacity-stats { display: flex; justify-content: center; gap: 25px; }
.capacity-stats div { text-align: center; }
.capacity-stats b { display: block; font-size: 15px; }
.capacity-stats small { color: var(--slate-500); font-size: 10px; }
.compact-list { display: grid; min-height: 120px; }
.compact-list-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--slate-100); }
.compact-list-item:last-child { border-bottom: 0; }
.compact-list-item strong { display: block; font-size: 12px; }
.compact-list-item small { color: var(--slate-500); font-size: 10px; }
.quick-actions { display: grid; gap: 8px; }
.quick-action { display: flex; align-items: center; gap: 11px; padding: 11px; border: 1px solid var(--slate-200); border-radius: 9px; color: var(--slate-800); text-decoration: none; transition: border-color .15s, background .15s; }
.quick-action:hover { border-color: var(--slate-300); background: var(--slate-50); }
.quick-action span { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 7px; color: var(--blue-700); background: var(--blue-100); }
.quick-action strong { font-size: 12px; }

/* Account creation mode tabs */
.create-mode-tabs { display: inline-flex; flex: 0 0 auto; gap: 4px; padding: 5px; border: 1px solid #dce5f1; border-radius: 12px; background: #eaf0f8; }
.create-mode-tab { display: inline-flex; min-width: 108px; min-height: 40px; align-items: center; justify-content: center; padding: 8px 18px; border-radius: 8px; color: var(--slate-600); font-size: 11px; font-weight: 800; text-decoration: none; transition: color .15s, background .15s, box-shadow .15s; }
.create-mode-tab:hover { color: var(--blue-700); background: rgba(255,255,255,.6); }
.create-mode-tab.is-active { color: #2458de; background: var(--white); box-shadow: 0 3px 12px rgba(36,88,222,.1); }
.create-mode-tab:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue-600) 24%, transparent); outline-offset: 2px; }

/* Tags and statuses */
.tag, .status-badge { display: inline-flex; align-items: center; gap: 5px; width: max-content; padding: 3px 7px; border-radius: 5px; font-size: 10px; font-style: normal; font-weight: 750; white-space: nowrap; }
.tag-blue { color: var(--blue-700); background: var(--blue-100); }
.tag-purple { color: var(--purple-700); background: var(--purple-100); }
.tag-neutral { color: var(--slate-700); background: var(--slate-100); }
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-good { color: var(--green-700); background: var(--green-100); }
.status-warning { color: var(--amber-700); background: var(--amber-100); }
.status-danger { color: var(--red-700); background: var(--red-100); }
.status-neutral { color: var(--slate-600); background: var(--slate-100); }
.status-info { color: var(--blue-700); background: var(--blue-100); }

/* Customer account directory */
.member-account-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.member-product-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border: 1px solid #dce5f1; border-radius: 12px; background: #eaf0f8; }
.member-product-tab { display: inline-flex; min-height: 44px; align-items: center; gap: 7px; padding: 7px 12px; border: 0; border-radius: 9px; color: var(--slate-600); background: transparent; font-size: 11px; font-weight: 750; }
.member-product-tab > span { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 7px; color: var(--slate-700); background: rgba(255,255,255,.55); font-size: 10px; }
.member-product-tab small { color: var(--slate-500); font-size: 9px; }
.member-product-tab.is-active { color: #2458de; background: var(--white); box-shadow: 0 3px 12px rgba(36,88,222,.1); }
.member-product-tab.is-active > span { color: var(--white); background: #3867f5; }
.member-product-tab.is-active small { color: #5274cc; }
.member-bulk-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.member-bulk-actions > span { margin-right: 2px; color: var(--slate-500); font-size: 10px; }
.member-bulk-actions > span strong { color: var(--slate-950); }
.member-button-soft { color: #2458de; border-color: #dce7ff; background: #eef4ff; }
.member-button-soft:hover { border-color: #bfd1ff; background: #e5edff; }
.member-button-primary { color: var(--white); border-color: #3867f5; background: #3867f5; }
.member-button-primary:hover { border-color: #2856df; background: #2856df; }
.member-summary-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.member-summary-card { --tone: var(--blue-600); --tone-soft: var(--blue-100); position: relative; min-height: 118px; overflow: hidden; padding: 17px 19px; border: 1px solid var(--border); border-radius: 13px; color: inherit; background: var(--white); box-shadow: var(--shadow-sm); text-align: left; }
.member-summary-card::after { content: ""; position: absolute; right: -22px; bottom: -31px; width: 92px; height: 92px; border-radius: 50%; background: var(--tone-soft); opacity: .7; }
.member-summary-card > span { display: flex; align-items: center; gap: 7px; color: var(--slate-700); font-size: 11px; font-weight: 750; }
.member-summary-card > span::before { content: ""; width: 7px; height: 7px; flex: 0 0 auto; border: 4px solid var(--tone-soft); border-radius: 50%; background: var(--tone); box-sizing: content-box; }
.member-summary-card strong { position: relative; z-index: 1; display: block; margin-top: 12px; color: var(--navy-950); font-size: 26px; line-height: 1; }
.member-summary-card small { position: relative; z-index: 1; display: block; margin-top: 8px; color: var(--slate-500); font-size: 9px; }
.member-summary-card.is-active { border-color: color-mix(in srgb, var(--tone) 38%, white); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 16%, white), var(--shadow-sm); }
.member-summary-card.tone-green { --tone: var(--green-700); --tone-soft: var(--green-100); }
.member-summary-card.tone-amber { --tone: #d28a1d; --tone-soft: var(--amber-100); }
.member-summary-card.tone-red { --tone: #dc5360; --tone-soft: var(--red-100); }
.member-summary-card.tone-cyan { --tone: var(--cyan-500); --tone-soft: #e2f6f4; }
.member-directory-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.member-directory-heading h3 { margin: 0; font-size: 16px; }
.member-directory-heading p:last-child { margin: 4px 0 0; color: var(--slate-500); font-size: 10px; }
.member-search-form { display: flex; align-items: center; gap: 8px; }
.member-search-form .search-field { width: min(300px, 34vw); }
.member-search-form .search-field input { min-height: 38px; }
.member-sync-badge { padding: 6px 9px; border-radius: 16px; color: var(--green-700); background: var(--green-100); font-size: 9px; font-weight: 800; }
.member-directory-table { min-width: 1460px; }
.member-directory-table th:first-child, .member-directory-table td:first-child { width: 44px; padding-right: 6px; text-align: center; }
.member-directory-table input[type="checkbox"], #member-select-all { width: 15px; height: 15px; accent-color: #3867f5; }
.member-directory-table td { min-height: 84px; padding-top: 16px; padding-bottom: 16px; }
.member-product-chip { display: grid; width: 36px; min-height: 42px; place-items: center; padding: 5px; border-radius: 9px; color: var(--green-700); background: var(--green-100); font-size: 10px; font-weight: 850; line-height: 1.15; text-align: center; }
.member-product-chip.product-p1 { color: var(--blue-700); background: var(--blue-100); }
.member-product-chip.product-p2 { color: var(--green-700); background: var(--green-100); }
.member-product-chip.product-p3 { color: var(--purple-700); background: var(--purple-100); }
.member-product-chip.product-p4 { color: var(--amber-700); background: var(--amber-100); }
.member-product-chip.product-p5 { color: #17716d; background: #e2f6f4; }
.member-connection-state { display: grid; gap: 4px; min-width: 145px; }
.member-connection-state small, .member-expiry small { color: var(--slate-500); font-size: 9px; }
.member-secret-state, .member-dealer-chip { display: inline-flex; padding: 4px 8px; border-radius: 6px; font-size: 9px; font-weight: 750; white-space: nowrap; }
.member-secret-state { color: var(--slate-700); background: var(--slate-100); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.member-password-reset-needed { display: inline-flex; padding: 4px 8px; border-radius: 6px; color: var(--amber-700); background: var(--amber-100); font-size: 9px; font-weight: 750; white-space: nowrap; }
.member-dealer-chip { color: #2458de; background: #eef4ff; }
.member-assignment { display: grid; max-width: 150px; gap: 2px; color: var(--slate-800); font-size: 10px; }
.member-assignment strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-profile-badges { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 3px; }
.member-profile-badge { display: inline-flex; align-items: center; min-height: 20px; padding: 2px 5px; border: 1px solid var(--slate-200); border-radius: 5px; color: var(--slate-600); background: var(--slate-50); font-size: 8px; font-weight: 850; }
.member-profile-badge.is-active { color: var(--white); border-color: var(--green-700); background: var(--green-700); box-shadow: 0 0 0 2px var(--green-100); }
.member-expiry { display: grid; min-width: 132px; gap: 5px; }
.member-remaining { width: max-content; padding: 4px 8px; border-radius: 7px; color: var(--green-700); background: var(--green-100); font-size: 11px; font-weight: 800; }
.member-remaining.is-warning { color: var(--amber-700); background: var(--amber-100); }
.member-remaining.is-expired { color: var(--red-700); background: var(--red-100); }
.member-expiry.is-expired small { color: var(--red-700); }
.member-row-actions { display: flex; min-width: 255px; flex-wrap: wrap; align-items: center; gap: 5px 10px; }
.member-row-action { padding: 0; border: 0; color: #2458de; background: transparent; font-size: 10px; font-weight: 750; }
.member-row-action.action-extend { color: var(--green-700); }
.member-row-action.action-delete { color: var(--red-700); }
.member-row-action:hover { text-decoration: underline; }
.member-dialog { width: min(600px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; overflow: auto; border: 0; border-radius: 14px; background: transparent; box-shadow: 0 24px 70px rgba(8,24,43,.28); }
.member-dialog::backdrop { background: rgba(8,24,43,.55); backdrop-filter: blur(2px); }
.member-dialog-card { padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--white); }
.member-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.member-dialog-heading h2 { margin: 2px 0 0; font-size: 19px; }
.member-dialog-heading p:last-child { margin: 5px 0 0; color: var(--slate-500); font-size: 11px; }
.member-dialog-close { width: 34px; height: 34px; flex: 0 0 auto; padding: 0; border: 1px solid var(--slate-200); border-radius: 50%; color: var(--slate-600); background: var(--white); font-size: 20px; line-height: 1; }
.member-dialog-help { padding: 12px 14px; margin: 0 0 18px; border-radius: 8px; color: var(--slate-600); background: var(--slate-50); font-size: 11px; }
.member-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.member-renew-actions { justify-content: flex-start; margin-top: 0; }
.member-edit-grid { align-items: start; }

/* Filters and tables */
.filter-bar { display: grid; grid-template-columns: minmax(220px, 1fr) 160px 160px auto; gap: 10px; margin-bottom: 14px; }
.search-field { position: relative; }
.search-field span { position: absolute; top: 50%; left: 13px; color: var(--slate-500); transform: translateY(-50%); }
.search-field input { padding-left: 38px; }
.filter-select select { min-height: 44px; }
.table-card { overflow: hidden; }
.table-summary { padding: 15px 20px; border-bottom: 1px solid var(--border); color: var(--slate-600); font-size: 12px; }
.table-summary strong { color: var(--slate-950); }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { padding: 11px 16px; color: var(--slate-600); background: var(--slate-50); font-size: 10px; font-weight: 750; letter-spacing: .02em; text-align: left; white-space: nowrap; }
.data-table td { padding: 14px 16px; border-top: 1px solid var(--slate-100); color: var(--slate-700); vertical-align: middle; }
.data-table tbody tr:hover { background: #fbfcfd; }
.data-table strong { color: var(--slate-950); }
.account-cell strong, .primary-cell strong { display: block; }
.account-cell small, .secondary-text { display: block; max-width: 220px; overflow: hidden; margin-top: 2px; color: var(--slate-500); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.protocol-list { display: flex; gap: 3px; }
.protocol-list span { padding: 2px 4px; border-radius: 3px; color: var(--slate-600); background: var(--slate-100); font-size: 8px; font-weight: 800; }
.empty-state { padding: 54px 24px; text-align: center; }
.empty-state > span { display: grid; width: 46px; height: 46px; margin: 0 auto 13px; place-items: center; border-radius: 50%; color: var(--slate-600); background: var(--slate-100); font-size: 20px; }
.empty-state h3 { margin: 0; font-size: 14px; }
.empty-state p { margin: 6px 0 0; color: var(--slate-500); font-size: 12px; }
.pagination { display: flex; justify-content: center; gap: 5px; padding: 15px; border-top: 1px solid var(--slate-100); }
.pagination button { min-width: 34px; height: 34px; padding: 0 8px; border: 1px solid var(--slate-200); border-radius: 6px; color: var(--slate-700); background: var(--white); font-size: 11px; }
.pagination button.is-current { color: var(--white); border-color: var(--navy-800); background: var(--navy-800); }

/* Create forms */
.form-layout { display: grid; width: min(100%, 920px); gap: 16px; }
.form-card { padding: 24px; }
.step-number { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 7px; color: var(--blue-700); background: var(--blue-100); font-size: 10px; font-weight: 800; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
.field-full { grid-column: 1 / -1; }
.choice-fieldset { padding: 0; margin: 0; border: 0; }
.platform-fieldset { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--slate-100); }
.product-choice-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; padding: 4px; border-radius: 11px; background: var(--slate-100); }
.product-choice, .duration-choice { position: relative; display: block; cursor: pointer; }
.product-choice input, .duration-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.product-choice > span, .duration-choice > span { display: flex; min-height: 77px; flex-direction: column; justify-content: center; padding: 14px; border: 1px solid var(--slate-300); border-radius: 9px; background: var(--white); transition: border-color .15s, box-shadow .15s, background .15s; }
.product-choice > span { min-height: 68px; padding: 10px; border-color: transparent; text-align: center; }
.product-choice b { justify-content: center; }
.product-choice input:checked + span, .duration-choice input:checked + span { border-color: var(--blue-600); background: #f6faff; box-shadow: inset 0 0 0 1px var(--blue-600); }
.product-choice input:focus-visible + span, .duration-choice input:focus-visible + span { box-shadow: var(--focus); }
.product-choice b, .duration-choice b { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 13px; }
.product-choice small, .duration-choice small { margin-top: 5px; color: var(--slate-500); font-size: 10px; }
.duration-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 560px; }
.duration-choice > span { min-height: 70px; }
.form-notice { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; margin-top: 15px; border-radius: 8px; color: var(--slate-600); background: var(--slate-50); font-size: 11px; }
.form-notice > span { display: grid; width: 17px; height: 17px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--white); background: var(--slate-500); font-size: 10px; font-weight: 800; }
.form-notice p { margin: 0; }
.privacy-notice { margin: 0 0 14px; border: 1px solid var(--slate-200); background: var(--white); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.form-actions-left { justify-content: flex-start; }
.one-time-result { width: min(100%, 920px); padding: 24px; margin-top: 16px; border-color: #bfe1d1; background: #fbfffd; }
.one-time-result h3 { margin: 0; font-size: 17px; }
.one-time-result > div > p:last-child { margin: 6px 0 0; color: var(--slate-600); font-size: 12px; }
.one-time-result dl { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1px; overflow: hidden; padding: 1px; margin: 20px 0; border-radius: 8px; background: var(--slate-200); }
.one-time-result dl div { min-width: 0; padding: 11px 13px; background: var(--white); }
.one-time-result dt { color: var(--slate-500); font-size: 10px; }
.one-time-result dd { overflow: hidden; margin: 3px 0 0; color: var(--slate-950); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

/* Batch */
.batch-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(250px, .8fr); align-items: start; gap: 16px; }
.batch-options { min-width: 0; }
.batch-guide { padding: 24px; }
.batch-guide h3 { margin: 0 0 19px; font-size: 15px; }
.batch-guide ol { display: grid; gap: 19px; padding: 0; margin: 0; list-style: none; }
.batch-guide li { display: flex; gap: 11px; }
.batch-guide li > span { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border: 1px solid var(--slate-300); border-radius: 50%; color: var(--slate-600); font-size: 9px; font-weight: 800; }
.batch-guide p { margin: 0; color: var(--slate-500); font-size: 11px; }
.batch-guide b { display: block; margin-bottom: 2px; color: var(--slate-800); font-size: 12px; }
.batch-preview { margin-top: 18px; }
.batch-preview-heading, .infrastructure-table-heading { padding: 20px; margin: 0; border-bottom: 1px solid var(--border); }
.batch-secret-warning { margin: 16px 20px 0; }
.batch-result-actions { padding: 16px 20px; border-top: 1px solid var(--slate-100); }
.secret-value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .025em; }

/* Infrastructure */
.settings-section-tabs { position: sticky; z-index: 18; top: 82px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 7px; margin: -6px 0 18px; border: 1px solid var(--slate-200); border-radius: 11px; background: rgba(255,255,255,.96); box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); }
.settings-section-tab { min-height: 42px; padding: 8px 12px; border: 1px solid transparent; border-radius: 8px; color: var(--slate-600); background: transparent; font-size: 11px; font-weight: 800; }
.settings-section-tab:hover { color: var(--navy-800); border-color: var(--slate-200); background: var(--slate-50); }
.settings-section-tab.is-active { color: var(--white); border-color: var(--navy-800); background: var(--navy-800); }
.settings-scroll-anchor { scroll-margin-top: 150px; }
.settings-subsection { padding: 18px; margin-bottom: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.settings-subsection-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 7px; }
.settings-subsection-heading h3 { margin: 0; font-size: 15px; }
.settings-subsection-heading p { margin: 4px 0 0; color: var(--slate-500); font-size: 10px; }
.settings-search-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 20px; border-bottom: 1px solid var(--slate-100); background: var(--white); }
.settings-search-field { display: block; width: min(100%, 520px); }
.settings-search-field input { width: 100%; min-height: 38px; padding: 8px 11px; border: 1px solid var(--slate-300); border-radius: 7px; color: var(--slate-800); background: var(--white); font-size: 11px; }
.settings-search-field input:focus { outline: none; border-color: var(--blue-600); box-shadow: var(--focus); }
.settings-result-summary { flex: 0 0 auto; margin: 0; color: var(--slate-500); font-size: 10px; font-weight: 750; }
.settings-node-scroll { max-height: 520px; padding: 3px; overflow: auto; }
.settings-node-scroll .node-grid { margin-bottom: 0; }
.settings-table-scroll { max-height: 560px; overflow: auto; scrollbar-gutter: stable; }
.settings-table-scroll .data-table thead { position: sticky; z-index: 4; top: 0; box-shadow: 0 1px 0 var(--slate-200); }
.product-inventory-table-scroll { max-height: none; overflow-x: auto; overflow-y: visible; }
.inventory-row-selected { background: #f3f7ff; }
.data-table tbody tr.inventory-row-selected:hover { background: #edf4ff; }
.node-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.node-card { padding: 18px; }
.node-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.node-card h3 { margin: 0; font-size: 14px; }
.node-card-address { display: block; margin-top: 3px; color: var(--slate-500); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.node-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; margin-top: 17px; border-radius: 7px; background: var(--slate-200); }
.node-stats div { padding: 9px; background: var(--slate-50); text-align: center; }
.node-stats b { display: block; font-size: 13px; }
.node-stats small { color: var(--slate-500); font-size: 9px; }
.node-admin-fields { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 7px; margin-top: 12px; }
.node-admin-fields label { min-width: 0; }
.node-admin-fields span { display: block; margin-bottom: 4px; color: var(--slate-500); font-size: 9px; font-weight: 750; }
.node-admin-fields input { width: 100%; min-height: 34px; padding: 6px 8px; border: 1px solid var(--slate-300); border-radius: 6px; color: var(--slate-800); background: var(--white); font-size: 10px; }
.node-admin-fields input:focus { outline: none; border-color: var(--blue-600); box-shadow: var(--focus); }
.node-card-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-top: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 11px; color: var(--slate-500); font-size: 10px; }
.legend span { display: flex; align-items: center; gap: 4px; }
.dot { width: 6px; height: 6px; border-radius: 50%; }
.dot-good { background: var(--green-700); }.dot-warning { background: var(--amber-700); }.dot-danger { background: var(--red-700); }
.order-cell { display: flex; align-items: center; gap: 5px; }
.order-number { min-width: 24px; color: var(--slate-600); font-weight: 800; }
.order-button { display: grid; width: 27px; height: 27px; padding: 0; place-items: center; border: 1px solid var(--slate-200); border-radius: 5px; color: var(--slate-700); background: var(--white); font-size: 12px; }
.order-button:hover:not(:disabled) { border-color: var(--slate-400); background: var(--slate-50); }
.capacity-cell { min-width: 120px; }
.capacity-line { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; color: var(--slate-600); font-size: 10px; }
.mini-progress { height: 5px; overflow: hidden; border-radius: 5px; background: var(--slate-100); }
.mini-progress i { display: block; height: 100%; border-radius: inherit; background: var(--cyan-500); }
.pool-badge { display: inline-block; padding: 3px 7px; border-radius: 5px; color: var(--slate-700); background: var(--slate-100); font-size: 9px; font-weight: 800; }
.inventory-workflow, .product-inventory-card { margin-bottom: 18px; }
.inventory-workflow { padding: 20px; border-color: #cbdbea; }
.inventory-workflow-heading { margin-bottom: 16px; }
.inventory-toolbar { display: flex; align-items: end; gap: 12px; margin-bottom: 14px; }
.inventory-toolbar .field { width: min(100%, 440px); }
.inventory-heading-actions { display: flex; align-items: center; gap: 8px; }
.compact-select { min-height: 36px; padding: 7px 34px 7px 10px; border: 1px solid var(--slate-300); border-radius: 7px; color: var(--slate-800); background: var(--white); font-size: 12px; }
.inventory-note { padding: 10px 20px; margin: 0; border-bottom: 1px solid var(--slate-100); color: var(--slate-600); background: var(--slate-50); font-size: 11px; }
.inventory-state { padding: 11px 20px; border-bottom: 1px solid var(--slate-100); color: var(--slate-700); background: var(--slate-50); font-size: 12px; }
.inventory-workflow .inventory-state { padding: 10px 12px; margin-bottom: 12px; border: 1px solid var(--slate-200); border-radius: 7px; }
.inventory-state.state-ready { color: var(--green-700); background: var(--green-100); }
.inventory-state.state-draft { color: var(--amber-700); background: var(--amber-100); }
.inventory-state.state-error { color: var(--red-700); background: var(--red-100); }
.inventory-state.is-loading { color: var(--blue-700); background: var(--blue-100); }
.inventory-bulk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 20px; border-bottom: 1px solid var(--slate-100); background: var(--white); }
.inventory-select-all { display: inline-flex; align-items: center; gap: 7px; color: var(--slate-700); font-size: 11px; font-weight: 750; white-space: nowrap; }
.inventory-select-all input { width: 16px; height: 16px; accent-color: var(--blue-600); }
.bulk-move-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.bulk-move-controls label { color: var(--slate-500); font-size: 10px; font-weight: 700; }
.bulk-move-controls .inventory-number-input { width: 66px; }
.slot-allocation-summary { display: grid; gap: 2px; margin-top: 4px; color: var(--slate-500); font-size: 9px; white-space: nowrap; }
.slot-allocation-summary .slot-remaining { color: var(--blue-700); font-weight: 800; }
.slot-allocation-summary .slot-empty { color: var(--red-700); }
.inventory-pager { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 20px; border-top: 1px solid var(--slate-100); color: var(--slate-600); background: var(--slate-50); font-size: 10px; font-weight: 750; }
.inventory-pager[hidden] { display: none; }
.inventory-editor-table { min-width: 1260px; }
.inventory-editor-table input { border: 1px solid var(--slate-300); border-radius: 6px; background: var(--white); }
.inventory-editor-table input:focus { outline: none; border-color: var(--blue-600); box-shadow: var(--focus); }
.inventory-editor-table input:disabled { color: var(--slate-400); background: var(--slate-100); }
.inventory-check { width: 17px; height: 17px; accent-color: var(--blue-600); }
.inventory-number-input { width: 74px; min-height: 34px; padding: 6px 8px; }
.inventory-text-input { width: min(220px, 24vw); min-width: 160px; min-height: 36px; padding: 7px 9px; }
.usage-pair { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.usage-pair b { min-width: 22px; text-align: right; }
.switch-control { display: inline-flex; align-items: center; gap: 6px; color: var(--slate-600); font-size: 10px; font-weight: 700; white-space: nowrap; }
.switch-control input { width: 16px; height: 16px; accent-color: var(--green-700); }
.inventory-save-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; border-top: 1px solid var(--slate-100); }
.inventory-save-bar p { max-width: 820px; margin: 0; color: var(--slate-500); font-size: 11px; }
.traffic-value { display: block; min-width: 108px; white-space: nowrap; }
.traffic-value b { display: block; font-size: 11px; }
.traffic-value small { display: block; margin-top: 2px; color: var(--slate-500); font-size: 9px; }
.product-membership-list { display: flex; min-width: 118px; flex-wrap: wrap; gap: 4px; }
.common-endpoint-label { display: inline-block; padding: 2px 5px; margin-right: 6px; border-radius: 4px; color: var(--blue-700); background: var(--blue-100); font-size: 8px; font-weight: 900; vertical-align: 1px; white-space: nowrap; }
.field select optgroup { color: var(--slate-700); font-weight: 800; }
.field select option:disabled { color: var(--slate-500); }
.inline-name-editor { display: flex; min-width: 210px; align-items: center; gap: 5px; }
.inline-name-editor input { width: 150px; min-height: 32px; padding: 5px 7px; border: 1px solid var(--slate-300); border-radius: 6px; color: var(--slate-800); background: var(--white); font-size: 10px; }
.inline-name-editor input:focus { outline: none; border-color: var(--blue-600); box-shadow: var(--focus); }

/* Authentication setup wizard */
.auth-setup-guard { margin: 0 0 14px; }
.auth-setup-summary-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 21px; margin-bottom: 14px; border-left: 4px solid var(--blue-600); }
.auth-setup-summary-card h3 { margin: 2px 0 4px; font-size: 16px; }
.auth-setup-summary-card p:last-child { margin: 0; color: var(--slate-600); font-size: 11px; }
.auth-setup-summary-card > .status-badge { flex: 0 0 auto; }
.auth-setup-wizard { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; counter-reset: auth-setup; }
.auth-setup-step { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 16px; padding: 20px; border-left: 4px solid var(--slate-300); }
.auth-setup-step.is-ready, .auth-setup-step.is-complete { border-left-color: var(--green-700); }
.auth-setup-step.is-test-ready { border-left-color: var(--blue-600); }
.auth-setup-step.is-blocked { border-left-color: var(--amber-700); }
.auth-setup-step-number { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: var(--slate-600); background: var(--slate-100); font-size: 15px; font-weight: 900; }
.auth-setup-step.is-ready .auth-setup-step-number, .auth-setup-step.is-complete .auth-setup-step-number { color: var(--green-700); background: var(--green-100); }
.auth-setup-step.is-test-ready .auth-setup-step-number { color: var(--blue-700); background: var(--blue-100); }
.auth-setup-step.is-blocked .auth-setup-step-number { color: var(--amber-700); background: var(--amber-100); }
.auth-setup-step-content { min-width: 0; }
.auth-setup-step-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.auth-setup-step-heading h3 { margin: 2px 0 0; color: var(--slate-950); font-size: 14px; }
.auth-setup-step-heading > .status-badge { flex: 0 0 auto; }
.auth-setup-step-content > p { margin: 8px 0 0; color: var(--slate-600); font-size: 11px; line-height: 1.65; }
.auth-setup-step-content code { padding: 1px 4px; border-radius: 4px; color: var(--blue-700); background: var(--blue-100); font-size: 10px; font-weight: 750; }
.auth-setup-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 0; margin: 12px 0 0; list-style: none; }
.auth-setup-checks li { display: grid; grid-template-columns: 21px minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; padding: 9px 10px; border: 1px solid var(--slate-200); border-radius: 7px; background: var(--slate-50); }
.auth-setup-checks li > span { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; color: var(--amber-700); background: var(--amber-100); font-size: 9px; font-weight: 900; }
.auth-setup-checks li.is-ready > span { color: var(--green-700); background: var(--green-100); }
.auth-setup-checks strong { display: block; overflow: hidden; color: var(--slate-800); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.auth-setup-checks p { margin: 2px 0 0; color: var(--slate-600); font-size: 9px; }
.auth-setup-step-content > .auth-setup-caveat { padding: 8px 10px; border-radius: 6px; color: var(--slate-600); background: #f7f8fb; font-size: 10px; }
.auth-setup-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.auth-setup-actions .button { min-height: 34px; padding: 6px 11px; font-size: 9px; }
.auth-setup-footer-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.auth-setup-footer-notes .form-notice { margin: 0; }

/* Notices */
.notice-workspace { display: grid; grid-template-columns: minmax(320px, .72fr) minmax(560px, 1.28fr); align-items: start; gap: 18px; }
.notice-form { margin: 0; }
.notice-field-grid { grid-template-columns: 1fr; }
.notice-field-grid textarea { min-height: 132px; resize: vertical; }
.notice-list-card { min-width: 0; }
.notice-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--slate-50); }
.notice-toolbar h3 { margin: 0; font-size: 14px; }
.notice-toolbar p { margin: 3px 0 0; color: var(--slate-500); font-size: 10px; }
.notice-toolbar .table-summary { padding: 0; margin-left: auto; border: 0; }
.notice-table { min-width: 660px; }
.notice-content-cell { min-width: 280px; max-width: 520px; }
.notice-content-cell p { display: -webkit-box; overflow: hidden; margin: 5px 0 0; color: var(--slate-500); font-size: 10px; line-height: 1.55; white-space: pre-line; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.notice-actions { display: flex; flex-wrap: wrap; gap: 5px; }

/* Authentication operations */
.auth-operation-notices { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); gap: 12px; margin-bottom: 16px; }
.auth-operation-notices .form-notice { margin: 0; }
.auth-access-note { display: flex; align-items: center; min-height: 44px; padding: 10px 13px; border: 1px solid var(--slate-200); border-radius: 8px; color: var(--slate-600); background: var(--slate-50); font-size: 11px; font-weight: 700; }
.auth-access-note.can-write { color: var(--green-700); border-color: #b7dfd1; background: var(--green-100); }
.auth-access-note.is-read-only { color: var(--amber-700); border-color: #ead8a7; background: var(--amber-100); }
.auth-workflow-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; padding: 7px; margin-bottom: 16px; border: 1px solid var(--slate-200); border-radius: 10px; background: var(--white); box-shadow: var(--shadow-sm); }
.auth-workflow-tab { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 43px; gap: 6px; padding: 7px 9px; border: 1px solid transparent; border-radius: 7px; color: var(--slate-600); background: transparent; font-size: 10px; font-weight: 800; white-space: nowrap; }
.auth-workflow-tab > span { display: grid; flex: 0 0 20px; height: 20px; place-items: center; border-radius: 50%; color: var(--slate-500); background: var(--slate-100); font-size: 9px; }
.auth-workflow-tab > b { display: grid; min-width: 19px; height: 19px; padding: 0 5px; place-items: center; border-radius: 10px; color: var(--slate-600); background: var(--slate-100); font-size: 9px; }
.auth-workflow-tab:hover { color: var(--navy-800); border-color: var(--slate-200); background: var(--slate-50); }
.auth-workflow-tab.is-active { color: var(--white); border-color: var(--navy-800); background: var(--navy-800); }
.auth-workflow-tab.is-active > span, .auth-workflow-tab.is-active > b { color: var(--navy-800); background: var(--white); }
.auth-workflow-tab:focus-visible { outline: 3px solid rgba(37,99,235,.22); outline-offset: 2px; }
.auth-tab-panel[hidden] { display: none; }
.auth-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.auth-status-card { min-height: 132px; padding: 17px 18px; }
.auth-status-service { border-top: 3px solid var(--blue-600); }
.auth-status-device { border-top: 3px solid var(--navy-700); }
.auth-status-pending { border-top: 3px solid var(--amber-700); }
.auth-status-success { border-top: 3px solid var(--green-700); }
.auth-status-failure { border-top: 3px solid var(--red-700); }
.auth-status-expired { border-top: 3px solid var(--slate-400); }
.auth-status-card > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--slate-500); font-size: 10px; font-weight: 800; }
.auth-status-card > strong { display: block; overflow: hidden; margin-top: 18px; color: var(--slate-950); font-size: 23px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.auth-status-card > p { margin: 7px 0 0; color: var(--slate-500); font-size: 10px; }
.skeleton-card { overflow: hidden; background: linear-gradient(100deg, var(--slate-50) 20%, var(--white) 40%, var(--slate-50) 60%); background-size: 200% 100%; animation: auth-skeleton 1.2s ease-in-out infinite; }
@keyframes auth-skeleton { to { background-position-x: -200%; } }
.auth-one-time-token { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(300px, 1.3fr) auto; align-items: center; gap: 18px; padding: 20px; margin-bottom: 16px; border: 2px solid var(--amber-700); background: #fffdf5; }
.auth-one-time-token[hidden] { display: none; }
.auth-one-time-token h3 { margin: 3px 0 5px; font-size: 15px; }
.auth-one-time-token p:last-child { margin: 0; color: var(--slate-600); font-size: 11px; }
.auth-one-time-token pre { overflow: auto; max-height: 140px; padding: 13px; margin: 0; border: 1px solid #e5d29d; border-radius: 7px; color: var(--slate-950); background: var(--white); font: 700 11px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.auth-one-time-token .form-actions { margin: 0; }
#auth-operations-unavailable { margin-bottom: 16px; }
.auth-operations-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.auth-operation-card { min-width: 0; padding: 20px; }
.auth-operation-wide { grid-column: 1 / -1; }
.auth-operation-card > .card-heading { align-items: flex-start; margin-bottom: 17px; }
.auth-operation-card > .card-heading h3 { margin: 0; font-size: 14px; }
.auth-operation-card > .card-heading p { margin: 4px 0 0; color: var(--slate-500); font-size: 10px; }
.auth-count { display: grid; min-width: 29px; height: 25px; padding: 0 7px; place-items: center; border: 1px solid var(--slate-200); border-radius: 13px; color: var(--slate-700); background: var(--slate-50); font-size: 10px; font-weight: 800; }
.auth-operation-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 15px; margin-bottom: 16px; border: 1px solid var(--slate-200); border-radius: 8px; background: var(--slate-50); }
.auth-operation-form-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.auth-operation-form .field-full { grid-column: 1 / -1; }
.auth-operation-form > .button { align-self: end; justify-self: end; }
.auth-operation-form.is-read-only { opacity: .72; }
.auth-operation-form.is-read-only::after { grid-column: 1 / -1; content: '조회 전용 권한'; color: var(--slate-500); font-size: 10px; font-weight: 800; text-align: right; }
.auth-operation-form select[multiple] { min-height: 67px; padding: 7px 9px; background-image: none; }
.auth-check { display: flex; align-items: center; align-self: end; min-height: 40px; gap: 7px; color: var(--slate-700); font-size: 10px; font-weight: 700; }
.auth-check input { width: 16px; height: 16px; accent-color: var(--blue-600); }
.auth-inline-notice { margin: 0 0 14px; }
.auth-route-bulk-toolbar { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; padding: 9px 11px; margin-bottom: 9px; border: 1px solid var(--slate-200); border-radius: 7px; color: var(--slate-600); background: var(--slate-50); font-size: 10px; font-weight: 750; }
.auth-route-bulk-toolbar label { display: flex; align-items: center; margin-right: auto; gap: 6px; }
.auth-route-bulk-toolbar input, .auth-route-select input { width: 16px; height: 16px; accent-color: var(--blue-600); }
.auth-route-bulk-toolbar .button { min-height: 31px; padding: 5px 10px; font-size: 9px; }
.auth-record-list { display: grid; max-height: 350px; gap: 7px; overflow: auto; }
.auth-record-list-roomy { max-height: 560px; }
.auth-record { display: flex; align-items: flex-start; justify-content: space-between; min-width: 0; gap: 12px; padding: 11px 12px; border: 1px solid var(--slate-200); border-radius: 7px; background: var(--white); }
.auth-route-record { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; }
.auth-route-select { display: grid; padding-top: 2px; place-items: center; }
.auth-route-main { min-width: 0; }
.auth-consent-badges { display: flex; gap: 4px; }
.auth-consent-badges span { padding: 3px 6px; border: 1px solid var(--slate-200); border-radius: 10px; color: var(--slate-500); background: var(--slate-50); font-size: 8px; font-weight: 850; }
.auth-consent-badges .is-active { color: var(--green-700); border-color: #b7dfd1; background: var(--green-100); }
.auth-consent-badges .is-missing { color: var(--amber-700); border-color: #ead8a7; background: var(--amber-100); }
.auth-record > div { min-width: 0; }
.auth-record-side { display: flex; flex: 0 0 auto; align-items: flex-end; flex-direction: column; gap: 8px; }
.auth-record-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.auth-record-action.button { min-height: 28px; padding: 4px 8px; border-radius: 5px; font-size: 9px; }
.auth-record strong { display: block; overflow: hidden; color: var(--slate-900); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.auth-record p { margin: 4px 0 0; color: var(--slate-500); font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.auth-record time { display: block; margin-top: 4px; color: var(--slate-400); font-size: 9px; }
.auth-notice-record details { margin-top: 7px; color: var(--slate-600); font-size: 9px; }
.auth-notice-record summary { width: max-content; cursor: pointer; color: var(--blue-600); font-weight: 750; }
.auth-notice-record details p { max-width: 920px; max-height: 180px; padding: 9px; overflow: auto; border-radius: 6px; color: var(--slate-700); background: var(--slate-50); line-height: 1.65; white-space: pre-wrap; }
.auth-record-empty { padding: 25px 14px; border: 1px dashed var(--slate-300); border-radius: 7px; color: var(--slate-500); background: var(--slate-50); font-size: 10px; text-align: center; }
.auth-request-legend { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; padding: 9px 12px; margin-bottom: 10px; border-radius: 7px; color: var(--slate-600); background: var(--slate-50); font-size: 9px; font-weight: 750; }
.auth-request-legend i { color: var(--slate-400); font-style: normal; }
.auth-events-card { margin-top: 16px; }
.auth-readiness-card { padding: 20px; margin-top: 16px; }
.auth-readiness-card > .card-heading { align-items: flex-start; margin-bottom: 14px; }
.auth-readiness-card > .card-heading h3 { margin: 0; font-size: 14px; }
.auth-readiness-card > .card-heading p { margin: 4px 0 0; color: var(--slate-500); font-size: 10px; }
.auth-readiness-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0; list-style: none; }
.auth-readiness-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 9px; min-width: 0; padding: 11px; border: 1px solid var(--slate-200); border-radius: 7px; background: var(--slate-50); }
.auth-readiness-list li > span { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; color: var(--amber-700); background: var(--amber-100); font-size: 10px; font-weight: 900; }
.auth-readiness-list li.is-ready > span { color: var(--green-700); background: var(--green-100); }
.auth-readiness-list strong { display: block; color: var(--slate-900); font-size: 10px; }
.auth-readiness-list p { margin: 3px 0 0; color: var(--slate-500); font-size: 9px; line-height: 1.55; }
.auth-readiness-list .button { grid-column: 2; width: max-content; min-height: 28px; padding: 4px 8px; font-size: 9px; }
.auth-consumer-contract { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 11px; margin-top: 10px; border-radius: 7px; color: var(--slate-600); background: #f4f7ff; font-size: 9px; }
.auth-consumer-contract strong { color: var(--blue-700); }
.auth-consumer-contract code { margin-left: auto; color: var(--slate-600); font-size: 9px; }
.auth-events-heading { padding: 18px 20px; margin: 0; border-bottom: 1px solid var(--border); }
.auth-events-heading h3 { margin: 0; font-size: 14px; }
.auth-events-heading p { margin: 4px 0 0; color: var(--slate-500); font-size: 10px; }
.auth-events-heading .table-summary { padding: 0; border: 0; }

/* Jobs */
.job-view-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 7px; margin-bottom: 7px; border: 1px solid var(--slate-200); border-radius: 11px; background: var(--white); box-shadow: var(--shadow-sm); }
.job-view-tab { display: flex; align-items: center; justify-content: center; min-height: 42px; gap: 8px; padding: 8px 13px; border: 1px solid transparent; border-radius: 8px; color: var(--slate-600); background: transparent; font-size: 11px; font-weight: 800; }
.job-view-tab:hover { color: var(--navy-800); border-color: var(--slate-200); background: var(--slate-50); }
.job-view-tab.is-active { color: var(--white); border-color: var(--navy-800); background: var(--navy-800); }
.job-view-tab span { display: inline-grid; min-width: 22px; height: 22px; padding: 0 6px; place-items: center; border-radius: 11px; color: var(--slate-600); background: var(--slate-100); font-size: 9px; }
.job-view-tab.is-active span { color: var(--navy-800); background: var(--white); }
.job-view-summary { margin: 0 0 14px; color: var(--slate-500); font-size: 10px; font-weight: 700; }
.job-list { display: grid; gap: 10px; }
.job-card { display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(180px, 1fr) 120px; align-items: center; gap: 20px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.job-title { display: flex; align-items: center; gap: 10px; }
.job-title h3 { margin: 0; font-size: 13px; }
.job-title p { margin: 3px 0 0; color: var(--slate-500); font-size: 10px; }
.job-progress-info { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; color: var(--slate-500); font-size: 10px; }
.job-progress { height: 6px; overflow: hidden; border-radius: 5px; background: var(--slate-100); }
.job-progress i { display: block; height: 100%; border-radius: inherit; background: var(--blue-600); }
.job-meta { text-align: right; }
.job-meta time { display: block; margin-top: 5px; color: var(--slate-500); font-size: 9px; }
.job-error { grid-column: 1 / -1; padding: 8px 10px; border-radius: 6px; color: var(--red-700); background: var(--red-100); font-size: 10px; }

/* Toasts */
.toast-region { position: fixed; z-index: 1000; right: 20px; bottom: 20px; display: grid; width: min(360px, calc(100vw - 32px)); gap: 8px; }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; border: 1px solid var(--border); border-left: 3px solid var(--green-700); border-radius: 8px; background: var(--white); box-shadow: 0 12px 30px rgba(16,35,60,.16); animation: toast-in .2s ease-out; }
.toast.is-error { border-left-color: var(--red-700); }
.toast strong { display: block; font-size: 12px; }
.toast p { margin: 2px 0 0; color: var(--slate-600); font-size: 11px; }
.scroll-top-button { position: fixed; z-index: 900; right: 22px; bottom: 94px; width: 46px; height: 46px; padding: 0; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: var(--white); background: var(--navy-800); box-shadow: 0 8px 24px rgba(16,35,60,.24); font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.scroll-top-button:hover { background: var(--navy-700); transform: translateY(-1px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (min-width: 1181px) {
  #member-create-form.form-layout { width: 100%; grid-template-columns: minmax(270px, .9fr) minmax(440px, 1.45fr) minmax(250px, .75fr); align-items: stretch; gap: 12px; }
  #member-create-form > .form-card { height: 100%; padding: 18px; }
  #member-create-form > .form-actions { grid-column: 1 / -1; }
  #member-create-form .field-grid { gap: 13px; }
  #member-create-form textarea { min-height: 68px; }
  #member-create-form .product-choice-grid { grid-template-columns: repeat(4, minmax(72px, 1fr)); }
  #member-create-form .platform-fieldset { padding-top: 14px; margin-top: 14px; }
}

/* Responsive */
@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-account-toolbar { align-items: stretch; flex-direction: column; }
  .member-bulk-actions { justify-content: flex-start; }
  .member-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .card-span-2 { grid-column: span 1; }
  .product-choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .node-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-readiness-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-workflow-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .auth-operations-grid { grid-template-columns: 1fr; }
  .auth-operation-form-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-one-time-token { grid-template-columns: 1fr; }
  .auth-one-time-token .form-actions { justify-content: flex-start; }
  .auth-setup-footer-notes { grid-template-columns: 1fr; }
  .notice-workspace { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-intro { display: none; }
  .mobile-brand { display: grid; }
  .auth-panel { min-height: 100vh; }
  .app-shell { display: block; }
  .app-body { grid-column: auto; }
  .sidebar { transform: translateX(-102%); transition: transform .2s ease; box-shadow: 16px 0 36px rgba(5,21,38,.2); }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-close, .menu-button { display: grid; }
  .sidebar-scrim { position: fixed; z-index: 90; inset: 0; background: rgba(6,17,30,.48); }
  .filter-bar { grid-template-columns: minmax(200px, 1fr) 140px 140px auto; }
  .member-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-directory-heading { align-items: stretch; flex-direction: column; }
  .member-search-form .search-field { width: 100%; }
  .batch-layout { grid-template-columns: 1fr; }
  .batch-guide { order: -1; }
  .auth-operation-notices { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 14px; }
  .auth-panel { padding: 20px; }
  .auth-card { padding: 28px 24px; border-radius: 16px; }
  .topbar { min-height: 70px; padding: 12px 16px; }
  .topbar-kicker, .health-pill { display: none; }
  .topbar-actions .button { width: 38px; min-height: 38px; padding: 0; font-size: 0; }
  .topbar-actions .button span { font-size: 17px; }
  .main-content { min-height: calc(100vh - 70px); padding: 25px 14px 64px; }
  .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 20px; }
  .section-heading-actions { flex-direction: row; align-items: center; }
  .section-heading-actions > div { min-width: 0; }
  .section-heading-actions > div p:last-child { display: none; }
  .create-mode-tabs { width: 100%; }
  .create-mode-tab { min-width: 0; flex: 1; }
  .section-heading h2 { font-size: 24px; }
  .metric-grid, .dashboard-grid, .field-grid, .node-grid { grid-template-columns: 1fr; }
  .metric-grid { gap: 9px; }
  .metric-card { min-height: 104px; padding: 17px; }
  .metric-value { margin-top: 11px; font-size: 25px; }
  .card-span-2 { grid-column: auto; }
  .dashboard-grid .card, .form-card { padding: 18px; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .filter-bar .button { grid-column: 1 / -1; }
  .member-product-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-product-tab { justify-content: flex-start; }
  .member-summary-grid { grid-template-columns: 1fr; }
  .member-summary-card { min-height: 96px; }
  .member-search-form { align-items: stretch; flex-direction: column; }
  .member-sync-badge { width: max-content; }
  .product-choice-grid { grid-template-columns: 1fr; }
  .duration-choices { grid-template-columns: 1fr 1fr; }
  .form-actions .button { flex: 1; }
  .one-time-result dl { grid-template-columns: 1fr; }
  .job-card { grid-template-columns: 1fr; gap: 13px; }
  .job-meta { text-align: left; }
  .job-error { grid-column: auto; }
  .toast-region { right: 16px; bottom: 16px; }
  .inventory-toolbar, .inventory-save-bar, .inventory-heading-actions { align-items: stretch; flex-direction: column; }
  .settings-section-tabs { position: static; grid-template-columns: 1fr; }
  .settings-subsection-heading, .settings-search-toolbar { align-items: stretch; flex-direction: column; }
  .settings-search-field { width: 100%; }
  .settings-result-summary { align-self: flex-start; }
  .node-admin-fields { grid-template-columns: 1fr; }
  .inventory-bulk-toolbar { align-items: stretch; flex-direction: column; }
  .bulk-move-controls { justify-content: flex-start; }
  .inventory-toolbar .field, .compact-select, .inventory-save-bar .button { width: 100%; }
  .notice-toolbar { align-items: stretch; flex-direction: column; }
  .notice-toolbar .table-summary { margin-left: 0; }
  .auth-workflow-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-workflow-tab { justify-content: flex-start; }
  .auth-status-grid, .auth-operation-form { grid-template-columns: 1fr; }
  .auth-readiness-list { grid-template-columns: 1fr; }
  .auth-operation-form .field-full { grid-column: auto; }
  .auth-operation-form > .button { width: 100%; justify-self: stretch; }
  .auth-one-time-token { padding: 16px; }
  .auth-setup-summary-card { align-items: flex-start; flex-direction: column; }
  .auth-setup-step { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .auth-setup-step-number { width: 36px; height: 36px; font-size: 12px; }
  .auth-setup-checks { grid-template-columns: 1fr; }
  .auth-route-bulk-toolbar { align-items: stretch; flex-direction: column; }
  .auth-route-bulk-toolbar label { margin-right: 0; }
  .auth-route-bulk-toolbar .button { width: 100%; }
  .auth-route-record { grid-template-columns: auto minmax(0, 1fr); }
  .auth-route-record .auth-record-side { grid-column: 1 / -1; align-items: flex-start; padding-left: 25px; }
  .auth-route-record .auth-record-actions { justify-content: flex-start; }
  .auth-request-legend i { display: none; }
}

@media (max-width: 460px) {
  .auth-card-heading { gap: 12px; }
  .auth-card-heading h2 { font-size: 25px; }
  .field-grid { gap: 15px; }
  .duration-choices { grid-template-columns: 1fr; }
  .section-heading-actions { align-items: stretch; flex-direction: column; }
  .section-heading-actions .button { width: 100%; }
  .filter-bar { grid-template-columns: 1fr; }
  .search-field, .filter-bar .button { grid-column: auto; }
  .job-view-tabs { grid-template-columns: 1fr; }
  .product-choice-grid { grid-template-columns: 1fr; }
  .bulk-move-controls .button { flex: 1 1 40%; }
  .auth-workflow-tabs { grid-template-columns: 1fr; }
  .auth-setup-step { grid-template-columns: 1fr; }
  .auth-setup-step-heading { align-items: flex-start; flex-direction: column; }
  .auth-setup-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .sidebar, .topbar, .filter-bar, .button, .form-actions, .toast-region, .scroll-top-button, .auth-operation-form, .auth-one-time-token { display: none !important; }
  .app-body { grid-column: 1; }
  .main-content { width: 100%; padding: 0; }
  .card, .metric-card { box-shadow: none; break-inside: avoid; }
}
.admin-language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border, #d8e0ea);
  border-radius: 999px;
  background: var(--surface, #fff);
}

.admin-language-switch button {
  min-height: 30px;
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted, #64748b);
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-language-switch button.is-active {
  background: var(--brand, #142d4c);
  color: #fff;
}

.auth-language-switch {
  float: right;
  margin: -4px 0 14px 16px;
}
