:root {
  color-scheme: light dark;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px;
  --bg: #f5f7f9; --surface: #fff; --surface-soft: #eef3f5; --text: #17242d; --muted: #526471;
  --line: #d6e0e5; --brand: #087b75; --brand-strong: #05645f; --brand-soft: #dff3ef;
  --nav: #102f3b; --nav-text: #c8d8de; --danger: #b42318; --warning: #8a5b00; --success: #147647;
  --radius: 12px; --shadow: 0 12px 32px rgba(18, 48, 60, .10);
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); }
body { margin: 0; min-height: 100vh; background: var(--bg); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: 8px; z-index: 100; transform: translateY(-150%); padding: 10px 14px; border-radius: 8px; background: var(--surface); color: var(--text); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #159c94; outline-offset: 3px; }
[disabled] { cursor: not-allowed !important; opacity: .58; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 224px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 16px; background: var(--nav); color: var(--nav-text); }
.portal-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 28px; color: inherit; text-decoration: none; }
.portal-brand > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #54d0c5; color: #0a323d; font-weight: 900; }
.portal-brand strong, .portal-brand small { display: block; }
.portal-brand strong { color: #fff; font-size: 16px; }.portal-brand small { margin-top: 3px; color: #9bb4bd; font-size: 12px; }
#portalNav { display: grid; gap: 6px; }
.nav-item { width: 100%; min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--nav-text); cursor: pointer; text-align: left; }
.nav-item span { width: 20px; font-size: 18px; text-align: center; }.nav-item b { font-size: 14px; }
.nav-item:hover { background: rgba(255,255,255,.08); }.nav-item[aria-current="page"] { background: #245567; color: #fff; }
.sidebar-foot { margin-top: auto; display: grid; gap: 5px; padding: 18px 8px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: 12px; color: #9fb6be; }
.main { min-width: 0; padding: 0 clamp(20px, 4vw, 52px) 56px; }
.main:focus { outline: none; }.main:focus-visible { outline: none; }
.topbar { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.page-heading h1 { margin: 0; font-size: 24px; line-height: 1.2; }.page-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.search { width: min(360px, 32vw); height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }.search input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; }
.user-menu { position: relative; }.user-menu > button { height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; }
.user-menu > button span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); }
.dropdown { position: absolute; right: 0; top: 50px; z-index: 20; width: 220px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.dropdown div { padding: 8px; }.dropdown strong, .dropdown small { display: block; }.dropdown small { margin-top: 4px; color: var(--muted); }
.dropdown a, .dropdown button { width: 100%; display: block; padding: 10px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--text); text-align: left; text-decoration: none; cursor: pointer; }.dropdown a:hover, .dropdown button:hover { background: var(--surface-soft); }
.view { padding-top: 28px; }.view:not(.active) { display: none; }
.welcome { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 30px; border-radius: 16px; background: linear-gradient(120deg, #0d625f, #168a80); color: #fff; }
.eyebrow { color: #16837d; font-size: 11px; font-weight: 800; letter-spacing: .09em; }.welcome .eyebrow { color: #aee9e2; }.welcome h2 { margin: 6px 0; font-size: 28px; }.welcome p { margin: 0; color: #d5f2ee; }
.text-button { border: 0; background: transparent; color: var(--brand-strong); font-weight: 700; cursor: pointer; }.welcome .text-button { min-height: 40px; padding: 0 15px; border: 1px solid rgba(255,255,255,.45); border-radius: 9px; color: #fff; }
.content-section { margin-top: 28px; }.section-head, .view-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }.section-head h2, .section-head h3, .view-intro h2 { margin: 0; font-size: 19px; }.section-head p, .view-intro p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }.view-intro { margin-bottom: 22px; }
.architecture-hero { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 22px 24px; border: 1px solid #b8d8d4; border-radius: 12px; background: var(--brand-soft); }.architecture-hero strong { display: block; color: var(--brand-strong); font-size: 18px; }.architecture-hero p { max-width: 850px; margin: 8px 0 0; color: var(--muted); line-height: 1.7; }.architecture-badge { flex: 0 0 auto; padding: 8px 11px; border: 1px solid #9fcac5; border-radius: 999px; color: var(--brand-strong); font-size: 12px; font-weight: 700; }
.architecture-operation-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }.architecture-operation-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }.architecture-operation-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }.architecture-operation-top strong { min-width: 0; font-size: 13px; }.architecture-operation-card h4 { margin: 16px 0 6px; overflow-wrap: anywhere; font-size: 16px; }.architecture-operation-card p { min-height: 38px; margin: 0 0 11px; color: var(--muted); font-size: 12px; line-height: 1.55; }.architecture-operation-card small { color: var(--muted); font-size: 11px; line-height: 1.5; }.status.degraded { background: #fff0ca; color: var(--warning); }.status.not-run { background: var(--surface-soft); color: var(--muted); }
.architecture-layer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }.architecture-layer { min-height: 208px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }.architecture-layer-top { display: flex; align-items: center; justify-content: space-between; color: var(--brand-strong); }.architecture-layer-top span { font-size: 12px; font-weight: 900; }.architecture-layer-top small { color: var(--muted); }.architecture-layer h4 { margin: 10px 0 7px; font-size: 17px; }.architecture-layer p { min-height: 48px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }.architecture-layer strong { display: block; margin-top: 12px; font-size: 12px; }.architecture-system-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }.architecture-system-tags span { padding: 4px 7px; border-radius: 5px; background: var(--surface-soft); color: var(--muted); font-size: 11px; }.architecture-flow-path { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }.architecture-governance-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }.architecture-governance-card { padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }.architecture-governance-card > span { color: var(--brand-strong); font-size: 11px; font-weight: 800; }.architecture-governance-card h4 { margin: 8px 0 6px; font-size: 14px; }.architecture-governance-card p { min-height: 38px; margin: 0 0 10px; color: var(--muted); font-size: 12px; line-height: 1.55; }.architecture-governance-card small { color: var(--muted); font-size: 11px; }
.system-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.system-card { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.system-card:hover { transform: translateY(-2px); border-color: #9bc5c2; box-shadow: var(--shadow); }.system-card-link { min-height: 144px; display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: start; gap: 13px; padding: 20px 42px 18px 18px; color: var(--text); text-decoration: none; }
.system-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand-strong); font-size: 13px; font-weight: 900; }
.system-copy { min-width: 0; display: grid; gap: 6px; }.system-copy strong { font-size: 15px; }.system-copy small { min-height: 38px; color: var(--muted); line-height: 1.5; }.system-copy em { width: fit-content; padding: 3px 7px; border-radius: 5px; background: var(--surface-soft); color: var(--muted); font-size: 11px; font-style: normal; }.open-arrow { color: var(--brand); font-size: 18px; }
.favorite-button { position: absolute; top: 13px; right: 12px; z-index: 2; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #8a6600; font-size: 21px; cursor: pointer; }.favorite-button:hover { background: #fff5cf; }
.system-card.is-compact .system-card-link { min-height: 104px; }.system-card.is-compact .system-copy small { min-height: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.system-card.is-compact .system-copy em { display: none; }
.empty-state { padding: 34px 20px; border: 1px dashed #aec0c8; border-radius: var(--radius); color: var(--muted); text-align: center; background: var(--surface); }.empty-state strong { color: var(--text); }.empty-state p { margin: 7px 0 14px; }.empty-state button { border: 0; background: transparent; color: var(--brand-strong); font-weight: 700; cursor: pointer; }
.segments, .admin-tabs { display: flex; gap: 6px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: thin; }.segments button, .admin-tabs button { min-height: 38px; flex: 0 0 auto; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); cursor: pointer; }.segments button[aria-pressed="true"], .admin-tabs button[aria-selected="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; }
.admin-panel { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }.health-summary { margin: 8px 0 14px; color: var(--muted); }.admin-callout { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; background: var(--surface-soft); border-radius: 10px; }.admin-callout h3 { margin: 0 0 6px; }.admin-callout p { margin: 0; color: var(--muted); }
.primary, .secondary, .danger { min-height: 40px; display: inline-grid; place-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; font-weight: 700; text-decoration: none; cursor: pointer; }.primary { border-color: var(--brand); background: var(--brand); color: #fff; }.primary:hover { background: var(--brand-strong); }.secondary { background: var(--surface); color: var(--text); }.danger { border-color: var(--danger); background: var(--danger); color: #fff; }
.security-banner { display: flex; gap: 14px; margin: 0 0 14px; padding: 13px 15px; border-left: 4px solid var(--success); background: #e6f5ed; color: #235c42; }.table-panel { overflow: auto; border: 1px solid var(--line); border-radius: 10px; }table { width: 100%; min-width: 720px; border-collapse: collapse; }th, td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }th { background: var(--surface-soft); color: var(--muted); font-size: 12px; }td a { color: var(--brand-strong); }.table-buttons { display: flex; gap: 5px; }.table-buttons button { min-height: 32px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); cursor: pointer; }.danger-text { color: var(--danger) !important; }
.status { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 12px; }.status.healthy { background: #def4e8; color: var(--success); }.status.maintenance { background: #fff0ca; color: var(--warning); }.status.unavailable { background: #fee5e2; color: var(--danger); }
dialog { width: min(680px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: 0 24px 80px rgba(7,27,37,.35); }dialog::backdrop { background: rgba(7, 24, 33, .62); }dialog form { padding: 24px; }dialog header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }dialog h2 { margin: 5px 0 0; font-size: 21px; }.close { width: 34px; height: 34px; border: 0; border-radius: 8px; background: var(--surface-soft); color: var(--text); font-size: 22px; cursor: pointer; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.form-grid .full { grid-column: 1/-1; }dialog label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; }dialog input, dialog select, dialog textarea { width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }dialog footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }.form-hint { color: var(--muted); font-size: 12px; }.revealed { margin-top: 14px; padding: 14px; border-radius: 9px; background: var(--surface-soft); }.revealed dl { margin: 0; display: grid; gap: 10px; }.revealed div { display: grid; grid-template-columns: 74px 1fr; }.revealed dd { margin: 0; word-break: break-all; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 80; max-width: min(360px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 10px; background: var(--nav); color: #fff; box-shadow: var(--shadow); }
@media (max-width: 1100px) { .system-grid, .architecture-layer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }.architecture-operation-grid, .architecture-governance-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 720px) { .architecture-operation-grid, .architecture-governance-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
@media (prefers-color-scheme: dark) { :root { --bg: #0e171c; --surface: #162228; --surface-soft: #203038; --text: #edf4f6; --muted: #afbec5; --line: #35464e; --brand: #38b8ad; --brand-strong: #72d7ce; --brand-soft: #173c3b; --nav: #09171c; --danger: #ff8b82; --warning: #f2c668; --success: #68d59b; --shadow: 0 14px 34px rgba(0,0,0,.34); } .security-banner { background: #163428; color: #a7dfbf; } .favorite-button:hover { background: #41391c; } }

.dingtalk-auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .75fr); gap: 16px; align-items: start; }
.dingtalk-auth-summary { min-height: 48px; padding: 14px; border-radius: 10px; background: var(--surface-soft); }
.dingtalk-auth-summary .status { margin-right: 8px; }
.dingtalk-auth-summary p { display: inline; margin: 0; color: var(--muted); line-height: 1.6; }
.dingtalk-auth-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; }
.dingtalk-auth-details div { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.dingtalk-auth-details dt { color: var(--muted); font-size: 11px; }
.dingtalk-auth-details dd { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 12px; }
.dingtalk-device-card { display: grid; gap: 10px; padding: 18px; border: 1px solid #a9d9c1; border-radius: 10px; background: #effaf3; }
.dingtalk-device-card h3 { margin: 0; font-size: 16px; }
.dingtalk-device-card p, .dingtalk-device-card small { margin: 0; color: var(--muted); line-height: 1.6; font-size: 12px; }
.dingtalk-auth-link { width: fit-content; }
.dingtalk-device-code { display: grid; gap: 4px; }
.dingtalk-device-code span { color: var(--muted); font-size: 11px; }
.dingtalk-device-code code { color: var(--brand-strong); font-size: 20px; letter-spacing: .12em; }
.dingtalk-auth-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
@media (max-width: 720px) { .dingtalk-auth-layout { grid-template-columns: 1fr; } .dingtalk-auth-details { grid-template-columns: 1fr 1fr; } .dingtalk-auth-actions { justify-content: flex-start; flex-wrap: wrap; } }

.permission-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: 16px; align-items: start; }
.permission-matrix-panel { min-width: 0; }
#permissionMatrixTable { min-width: 1160px; }
#permissionMatrixTable th, #permissionMatrixTable td { min-width: 112px; vertical-align: middle; }
#permissionMatrixTable thead th { min-width: 128px; vertical-align: bottom; }
#permissionMatrixTable thead th:first-child, #permissionMatrixTable tbody th { min-width: 180px; }
#permissionMatrixTable thead th span, #permissionMatrixTable thead th small, #permissionMatrixTable tbody th strong, #permissionMatrixTable tbody th small { display: block; }
#permissionMatrixTable thead th small, #permissionMatrixTable tbody th small { margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 400; }
.permission-cell { width: 100%; min-height: 52px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); cursor: pointer; text-align: left; }
.permission-cell:hover, .permission-cell:focus-visible { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }
.permission-cell.granted { border-color: #a9d9c1; background: #effaf3; color: var(--success); }
.permission-cell.disabled { border-color: #e8c98a; background: #fff9e7; color: var(--warning); }
.permission-cell span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.matrix-empty { padding: 28px; color: var(--muted); text-align: center; }
.grant-editor { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.grant-editor .section-head { align-items: flex-start; margin-bottom: 12px; }
.grant-editor .section-head h3 { font-size: 17px; }
.identity-note { margin: 0 0 14px; padding: 10px 12px; border-left: 3px solid var(--brand); background: var(--surface); color: var(--muted); font-size: 12px; line-height: 1.6; }
.grant-editor .form-grid { gap: 10px; }
.grant-editor label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.grant-editor input, .grant-editor select, .grant-editor textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }
.checkbox-label { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; }
.checkbox-label input { width: auto; }
.grant-editor footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.grant-editor footer button { min-height: 36px; }
.effective-panel { margin-top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.effective-panel .section-head { margin-bottom: 10px; }
.effective-permission { min-height: 54px; padding: 12px; border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 13px; }
.effective-permission dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.effective-permission dl div { min-width: 0; }
.effective-permission dt { color: var(--muted); font-size: 11px; }
.effective-permission dd { margin: 5px 0 0; color: var(--text); line-height: 1.5; overflow-wrap: anywhere; }
.permission-denied { color: var(--danger); }
@media (max-width: 1050px) { .permission-layout { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .permission-layout { display: block; } .grant-editor { margin-top: 14px; } .effective-permission dl { grid-template-columns: 1fr 1fr; } }
@media (prefers-color-scheme: dark) { .permission-cell.granted { background: #17382a; border-color: #2d7355; } .permission-cell.disabled { background: #3a311a; border-color: #78602d; } }

.section-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.batch-grant-editor { margin-bottom: 16px; }
.batch-selection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.batch-selection-grid fieldset, .batch-grant-config { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.batch-selection-grid legend, .batch-grant-config legend { padding: 0 5px; color: var(--text); font-size: 12px; font-weight: 700; }
.directory-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; margin-bottom: 7px; }
.directory-search-row input { min-width: 0; }
.directory-search-status { min-height: 18px; margin: 0 0 8px; }
.directory-search-status[data-tone="success"] { color: var(--success); }
.directory-search-status[data-tone="warning"] { color: var(--warning); }
.directory-search-status[data-tone="error"] { color: var(--danger); }
.batch-option-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 7px; max-height: 190px; overflow: auto; }
.batch-option { min-width: 0; display: flex !important; align-items: flex-start; gap: 8px !important; padding: 8px; border: 1px solid transparent; border-radius: 7px; background: var(--surface-soft); cursor: pointer; }
.batch-option:hover, .batch-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.batch-option.is-disabled { cursor: not-allowed; opacity: .65; }
.batch-option input { flex: 0 0 auto; width: auto !important; margin-top: 3px; }
.batch-option span { min-width: 0; display: grid; gap: 3px; }
.batch-option strong, .batch-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-option strong { color: var(--text); font-size: 12px; }
.batch-option small { color: var(--muted); font-size: 11px; }
.batch-option em { color: var(--brand-strong); font-size: 10px; font-style: normal; }
.directory-account-notice { display: grid; gap: 5px; margin-top: 10px; padding: 10px 12px; border: 1px solid #a9d9c1; border-radius: 8px; background: #effaf3; color: var(--text); font-size: 12px; line-height: 1.5; }
.directory-account-notice span { color: var(--muted); }
.directory-account-notice ul { margin: 0; padding-left: 18px; }
.directory-account-notice code { color: var(--brand-strong); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.batch-config-list { display: grid; gap: 10px; margin-top: 12px; }
.batch-grant-config legend small { margin-left: 5px; color: var(--muted); font-weight: 400; }
.batch-grant-config .form-grid { gap: 10px; }
@media (max-width: 720px) { .section-actions { width: 100%; justify-content: flex-start; } .batch-selection-grid { grid-template-columns: 1fr; } .batch-option-list { max-height: 160px; } }

#systemAccessTable { min-width: 860px; }
#systemAccessTable th, #systemAccessTable td { vertical-align: top; }
#systemAccessTable tbody th strong, #systemAccessTable tbody th small { display: block; }
#systemAccessTable tbody th small { margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 400; }
.access-user-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.access-user-list li { min-width: 300px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 8px; background: var(--surface-soft); }
.access-user-list li.disabled { background: #fff9e7; }
.access-user-list li.expired { background: #fee5e2; }
.access-user-main { min-width: 0; }
.access-user-list strong, .access-user-list small { display: block; }
.access-user-list small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.access-user-list .status { margin-top: 5px; }
.access-user-hint { color: var(--warning) !important; }
.access-user-actions { flex: 0 0 auto; }
.access-action { min-height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); cursor: pointer; font-size: 12px; font-weight: 700; white-space: nowrap; }
.access-action:hover { border-color: var(--brand); background: var(--brand-soft); }
.access-count-note { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.access-empty, .table-muted { color: var(--muted); }
#credentialRows th small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 400; }
#credentialRows .table-buttons { min-width: max-content; }
#credentialRows .status { white-space: nowrap; }
