* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scrollbar-gutter: stable; }
body { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; margin: 0; min-height: 100vh; }
a { color: var(--blue); text-decoration: none; }
.topbar { min-height: 58px; min-width: 0; display: flex; align-items: center; gap: 24px; padding: 10px 28px; background: #15252c; color: white; }
.topbar a { color: white; }
.brand { font-weight: 700; white-space: nowrap; }
nav { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.topbar nav { min-width: 0; flex: 1; flex-wrap: wrap; gap: 10px 16px; }
nav a, .nav-button { white-space: nowrap; }
nav form { margin: 0; }
.nav-button { min-height: 0; padding: 0; background: transparent; font: inherit; }
.admin-identity { margin-left: auto; color: #c8d8d5; font-size: 13px; overflow-wrap: anywhere; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 32px auto; }
.site-version { padding: 0 28px 16px; color: var(--muted); font-size: 12px; text-align: right; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: none; }
.login { width: min(440px, calc(100% - 24px)); margin: 9vh auto; }
h1 { margin: 0 0 8px; font-size: 25px; letter-spacing: 0; }
h2 { font-size: 18px; letter-spacing: 0; }
.muted { color: var(--muted); margin: 0 0 24px; }
.stack { display: grid; gap: 14px; }
.external-login { margin-bottom: 14px; }
.provider-login { width: 100%; }
button.provider-button, a.provider-button { gap: 12px; min-height: 48px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
button.provider-button:hover, a.provider-button:hover { background: var(--surface-soft); border-color: var(--blue); }
.bootstrap-note { margin: 12px 0 18px; color: var(--ink-soft); font-size: 13px; }
.separator { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 12px; }
.separator::before, .separator::after { content: ""; height: 1px; flex: 1; background: var(--line); }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; }
textarea { resize: vertical; }
textarea:focus-visible { outline: 3px solid var(--blue-focus); outline-offset: 3px; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--blue); color: white; font-weight: 600; cursor: pointer; white-space: nowrap; }
.button.secondary { background: var(--surface-soft); color: var(--blue-dark); }
.providers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
table { width: 100%; border-collapse: collapse; background: white; }
.table-wrap { overflow-x: auto; }
.section-title { margin-top: 32px; }
.page-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.page-heading-row > div { min-width: 0; }
.page-heading-row > .button, .page-heading-row > button { flex-shrink: 0; white-space: nowrap; }
.page-heading-row .muted { margin-bottom: 0; }
.secondary-id { margin-top: 4px; color: var(--muted); font-family: ui-monospace, "Cascadia Code", monospace; font-size: 12px; }
.current-user { margin-left: 8px; }
.empty-state { padding: 24px 12px; text-align: center; color: var(--muted); }
.role-membership { margin-top: 20px; }
.account-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.account-summary > div { display: grid; gap: 6px; min-width: 0; }
.account-summary code { overflow-wrap: anywhere; }
.account-provider-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.account-provider-actions form { margin: 0; }
.account-empty-state { background: white; border: 1px solid #e2e7e9; }
.action-band { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 24px 0 28px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.action-band h2 { margin: 0 0 6px; }
.action-band .muted { margin-bottom: 0; }
.field-label { color: var(--muted); font-size: 13px; }
.role-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.role-heading h3 { margin: 0; font-size: 16px; letter-spacing: 0; }
dialog.modal { width: min(680px, calc(100% - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: var(--radius); box-shadow: 0 18px 48px rgba(21, 37, 44, 0.24); }
dialog.modal::backdrop { background: rgba(21, 37, 44, 0.48); }
dialog.local-account-modal, dialog.modal-compact { width: min(520px, calc(100% - 32px)); }
.modal-content { padding: 24px; }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.modal-heading h2 { margin: 0 0 6px; }
.modal-heading .muted { margin-bottom: 0; }
.icon-button { width: 40px; min-width: 40px; padding: 0; background: var(--surface-soft); color: var(--blue-dark); font-size: 24px; line-height: 1; }
.checkbox-label { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.checkbox-label input { width: 16px; height: 16px; min-height: 0; padding: 0; flex: 0 0 16px; accent-color: var(--blue); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
body.modal-open { overflow: hidden; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid #e2e7e9; font-size: 14px; }
th { color: var(--ink-soft); background: #f8fafb; white-space: nowrap; }
time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.status { display: inline-block; padding: 3px 8px; border-radius: 10px; background: #e6f3ec; color: #165b43; font-size: 12px; white-space: nowrap; }
.status-pending { background: #fff4d6; color: #755000; }
.status-neutral, .status-unconfigured { background: var(--surface-soft); color: var(--ink-soft); }
.status-failed { background: #f2e9e8; color: #7a332d; }
.status.warning { background: #fff0d5; color: #755000; }
.notice { padding: 10px 12px; background: #e7f3ee; color: #165b43; border-radius: 10px; }
.row-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.row-actions form { margin: 0; }
.link-button { min-height: 0; padding: 0; border: 0; background: transparent; color: var(--blue); font: inherit; font-weight: 400; }
.danger-link { color: #9e2e25; }
.role-actions { flex-wrap: wrap; min-width: 260px; }
.button.danger { margin-right: auto; background: #a43d34; }
.error { padding: 10px; background: #fff0ef; color: #9e2e25; border-radius: 10px; }
.validation-summary-valid { display: none; }
.error ul { margin: 0; padding-left: 20px; }
.error-panel { max-width: 680px; margin: 8vh auto 0; }
.error-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.diagnostic-reference { margin: 24px 0 0; color: var(--muted); font-size: 12px; }
.diagnostic-reference code { overflow-wrap: anywhere; }
[aria-disabled="true"] { pointer-events: none; opacity: 0.72; }
.is-pending { cursor: wait; }
.filter-bar { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(140px, 1fr) auto auto; align-items: end; gap: 12px; margin: 16px 0; }
.filter-bar:has(.filter-actions) { grid-template-columns: minmax(220px, 2fr) minmax(140px, 1fr) auto; }
.filter-actions { display: flex; gap: 10px; }
.filter-actions > * { flex: 1; }
.provider-count { margin: 0 0 12px; }
.provider-table { min-width: 0; }
.provider-table .provider-identity { min-width: 150px; }
.provider-table .secondary-id { font-family: inherit; }
.provider-client-id { max-width: 150px; overflow-wrap: anywhere; }
.provider-next-step { max-width: 280px; margin: 6px 0 0; line-height: 1.6; color: var(--ink-soft); }
.provider-table .row-actions { min-width: 56px; }
.provider-status { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0; }
.provider-status > div { display: flex; align-items: center; gap: 6px; }
.provider-status dt { color: var(--muted); font-size: 12px; }
.provider-status dd { margin: 0; }
.provider-last-validation { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.provider-last-validation time { display: block; margin-top: 4px; }
.provider-table td[data-label="渠道"] { width: 30%; }
.provider-table td[data-label="状态"] { width: 44%; }
.client-table td:first-child { width: 23%; }
.client-table td[data-label="登录回调地址"] { width: 30%; }
.client-table td[data-label="登录渠道"] { width: 27%; }
.client-table .form-hint { margin: 6px 0 0; }
.provider-names { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.provider-names > span { flex: none; max-width: 100%; text-wrap: pretty; }
.filter-bar.audit-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.audit-more-filters { grid-column: 1 / -1; }
.audit-more-filters > summary, .identifier-editor > summary { margin: 0; min-height: 36px; padding: 8px 0; }
.audit-extra-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.identifier-editor > .stack { padding: 12px 0; }
.filter-bar.audit-filters button, .filter-bar.audit-filters .button { align-self: end; }
.pagination { justify-content: flex-end; margin-top: 18px; }
.identity-details { display: grid; gap: 6px; min-width: 420px; padding: 10px 0; color: var(--ink-soft); font-size: 12px; }
details summary { margin-top: 8px; color: var(--blue); cursor: pointer; font-size: 13px; }
.health-alerts { margin-top: 24px; padding: 16px 20px; border-left: 4px solid #ba7a12; background: #fffaf0; }
.health-alerts h2 { margin: 0 0 8px; }
.health-alerts ul { margin: 0; padding-left: 20px; }
.key-purpose-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.key-purpose-summary section { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 8px 0; }
.key-purpose-summary h2 { margin: 0; font-size: 15px; }
.key-purpose-summary .secondary-id { grid-column: 1 / -1; margin: 0; }
@media (max-width: 720px) { nav { overflow-x: auto; scrollbar-width: thin; } .topbar { padding: 0 16px; gap: 18px; } .providers, .account-summary, .key-purpose-summary { grid-template-columns: 1fr; } .filter-bar, .filter-bar.audit-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .page-heading-row { align-items: stretch; flex-direction: column; gap: 12px; } .page-heading-row .button, .page-heading-row > button { align-self: flex-start; } .modal-content { padding: 20px; } }
.admin-navigation { flex: 1; min-width: 0; }
.admin-navigation > summary { display: none; }
.topbar nav a[aria-current=page] { background: #304951; border-radius: 7px; color: white; }
.topbar nav > a { padding: 7px 8px; }
.topbar .nav-button { min-height: 36px; padding: 6px 8px; }
.topbar .nav-button:hover { background: #304951; }
td { vertical-align: top; overflow-wrap: anywhere; }
td .secondary-id, td code { overflow-wrap: anywhere; }
td[data-label="用途"] { white-space: nowrap; }
.table-wrap { border: 1px solid var(--line); border-radius: 12px; }
.row-actions { flex-wrap: wrap; gap: 8px 14px; }
.row-actions a, .row-actions .link-button, td[data-label="操作"] > a { min-height: 32px; display: inline-flex; align-items: center; white-space: nowrap; }
.role-duty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.role-duty-row form { margin: 0; }
.role-duty-row .form-hint { margin: 4px 0 0; }
.role-list { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.role-list > span { white-space: nowrap; }
.role-editor-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 8px; }
.role-editor-body > form .link-button { min-height: 40px; }
.identity-details { min-width: 0; max-width: 480px; overflow-wrap: anywhere; }
.compact-form { max-width: 680px; margin: 20px 0; }
.compact-form > button { justify-self: start; }
.policy-form { max-width: 900px; }
.policy-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.policy-fields input { max-width: 160px; }
.policy-form > button { justify-self: start; }
.choice-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 8px 0; }
.choice-list label { padding: 8px 4px; align-items: flex-start; font-weight: 400; }
.choice-list input { min-height: 0; margin-top: 3px; }
fieldset.choice-field { margin: 0; padding: 0; min-width: 0; border: 0; }
.choice-field legend { font-size: 14px; font-weight: 600; }
.choice-list small { display: block; margin-top: 3px; color: var(--muted); line-height: 1.5; }
dialog.modal { overflow: hidden; }
.modal-content { display: flex; flex-direction: column; max-height: calc(100dvh - 40px); }
.modal-content > form { min-height: 0; overflow-y: auto; padding: 6px 8px 0; overscroll-behavior: contain; scroll-padding-bottom: 84px; }
.modal-content input, .modal-content select, .modal-content textarea { scroll-margin-block: 12px 84px; }
.stack > .form-hint { margin: 0; }
.modal-content .help-steps { margin: 0; padding-left: 22px; line-height: 1.6; }
.provider-help > summary { margin: 0; min-height: 32px; display: list-item; }
.provider-help[open] > summary { margin-bottom: 10px; }
.modal-content .hint { margin: 0; color: var(--muted); font-size: 13px; }
.readonly-field { display: grid; gap: 6px; min-width: 0; font-size: 14px; }
.readonly-field > span { font-weight: 600; }
.readonly-field > code { font: inherit; line-height: 1.6; overflow-wrap: anywhere; user-select: all; }
.modal-heading { flex-shrink: 0; }
.dialog-actions { position: sticky; bottom: 0; z-index: 1; flex-wrap: wrap; padding: 14px 0 0; background: white; border-top: 1px solid var(--line); }
.audit-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0; }
.audit-toolbar .pagination { margin: 0; }
.audit-toolbar form { margin: 0; }
.audit-export-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.audit-details { min-width: 150px; }
.audit-details > summary { margin: 0; padding: 6px 0; }
.audit-details dl { display: grid; gap: 4px; font-size: 13px; margin: 8px 0; }
.audit-details dt { color: var(--muted); }
.audit-details dd { margin: 0 0 6px; overflow-wrap: anywhere; }
.section-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 12px 0; }
.section-links a { min-height: 40px; display: inline-flex; align-items: center; padding: 6px 0; }
.admin-session-section { margin-top: 32px; }
.admin-session-section > .form-hint { margin-bottom: 12px; }
.admin-session-device { margin-top: 8px; color: var(--muted); font-size: 13px; }
.member-session-link { display: flex; align-items: center; min-height: 32px; margin-top: 4px; }
.identity-detail + .identity-detail { padding-top: 10px; border-top: 1px solid var(--line); }
.identity-detail dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; margin: 8px 0 0; }
.identity-detail dt { color: var(--muted); }
.identity-detail dd { margin: 0; font-variant-numeric: tabular-nums; }
[id] { scroll-margin-top: 20px; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 24px 0; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.dashboard-metrics > div { display: grid; gap: 10px; align-content: start; }
.dashboard-metrics dt { color: var(--muted); font-size: 14px; }
.dashboard-metrics dd { margin: 0; font-size: 32px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.admin-factor-panel { max-width: 680px; }
.admin-factor-panel h2 { margin: 0; }
.admin-security-status { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 24px 0; }
.admin-security-status > div { display: grid; gap: 6px; }
.admin-security-status dt { color: var(--muted); font-size: 13px; }
.admin-security-status dd { margin: 0; font-weight: 600; }
.admin-factor-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.admin-factor-actions form { margin: 0; }
.client-connection-details { padding: 8px 0 12px; border-top: 1px solid var(--line); }
.client-connection-details dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px 14px; margin: 16px 0 0; font-size: 13px; line-height: 1.6; }
.client-connection-details dt { color: var(--muted); }
.client-connection-details dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.audit-filter-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.audit-filter-actions .checkbox-label { margin-right: auto; font-weight: 400; }
.policy-form h2 { margin: 16px 0 0; }
.policy-form h2:first-of-type { margin-top: 0; }
.policy-choice { display: grid; gap: 8px; }
.policy-choice .checkbox-label { align-items: flex-start; }
.policy-choice .checkbox-label input { margin-top: 4px; }
.policy-choice .form-hint { margin: 0; }
.audit-export-menu > summary { display: none; }
body.mobile-panel-open { overflow: hidden; }
.mobile-filter-toolbar { display: flex; align-items: flex-start; gap: 12px; margin: 16px 0; }
.mobile-filter-toolbar > button { flex-shrink: 0; min-height: 44px; touch-action: manipulation; }
.mobile-filter-summary { min-width: 0; margin: 0; padding: 4px 0; color: var(--ink-soft); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
dialog.mobile-panel { position: fixed; inset: 0 0 0 auto; width: min(360px, calc(100% - 24px)); max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: white; color: var(--ink); overflow: hidden; }
dialog.mobile-panel::backdrop { background: rgba(21, 37, 44, 0.48); }
.mobile-panel-content { display: flex; flex-direction: column; height: 100%; max-height: inherit; padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
.mobile-panel-heading { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.mobile-panel-heading h2 { margin: 0; font-size: 18px; }
.mobile-panel-heading .icon-button { min-width: 44px; min-height: 44px; touch-action: manipulation; }
.mobile-navigation-panel nav { display: flex; flex-direction: column; align-items: stretch; flex: 1; gap: 4px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.mobile-navigation-panel nav > a, .mobile-navigation-panel .nav-button { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 8px; font-size: 15px; touch-action: manipulation; }
.mobile-navigation-panel nav > a:hover, .mobile-navigation-panel nav > a[aria-current=page] { background: var(--surface-soft); color: var(--blue-dark); }
.mobile-navigation-panel .admin-identity { margin: 16px 12px 4px; color: var(--muted); }
.mobile-navigation-panel .nav-button { width: 100%; justify-content: flex-start; color: var(--blue); }
dialog.mobile-filter-panel { inset: auto 0 0; width: 100%; height: auto; max-height: calc(100dvh - 24px); border-radius: 18px 18px 0 0; }
.mobile-filter-panel .mobile-panel-content { height: auto; }
.mobile-filter-panel form.filter-bar { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; scroll-padding-block: 8px 120px; }
.mobile-filter-panel input, .mobile-filter-panel select { min-height: 44px; font-size: 16px; scroll-margin-block: 8px 120px; }
.mobile-filter-panel .checkbox-label input { min-height: 0; }
.mobile-filter-panel .audit-more-filters > summary { display: none; }
.mobile-filter-panel .audit-extra-fields { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
.mobile-filter-panel .filter-actions, .mobile-filter-panel .audit-filter-actions { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 14px 0 0; border-top: 1px solid var(--line); background: white; }
.mobile-filter-panel .filter-actions > *, .mobile-filter-panel .audit-filter-actions > button, .mobile-filter-panel .audit-filter-actions > a { flex: 1; min-height: 44px; touch-action: manipulation; }
.mobile-filter-panel .audit-filter-actions .checkbox-label { flex-basis: 100%; }
@media (max-width: 720px) {
    .audit-filter-actions { justify-content: flex-end; }
    .audit-filter-actions .checkbox-label { flex-basis: 100%; margin-right: 0; }
    .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
    .audit-extra-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .client-connection-details dl { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .client-connection-details dd { margin-bottom: 10px; }
    .topbar { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; padding: 10px 16px; gap: 8px 12px; }
    .admin-navigation:not([open]) { justify-self: end; }
    .admin-navigation[open] { grid-column: 1 / -1; }
    .admin-navigation > summary { display: block; margin: 0; padding: 8px 10px; border: 1px solid #527079; border-radius: 8px; color: white; font-size: 13px; }
    .topbar nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; padding-top: 12px; gap: 8px; }
    .topbar nav > a { padding: 10px; min-height: 42px; white-space: normal; }
    .admin-identity { grid-column: 1 / -1; margin: 8px 0 0; }
    .shell { margin-top: 24px; }
    .table-wrap:has(.responsive-table) { border: 0; overflow: visible; }
    table.responsive-table { display: block; min-width: 0; width: 100%; background: transparent; }
    .responsive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .responsive-table tbody { display: grid; gap: 14px; }
    .responsive-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; padding: 8px 0; border: 1px solid var(--line); border-radius: 12px; background: white; }
    .responsive-table td { display: block; width: 100%; min-width: 0; padding: 8px 14px; border: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
    .responsive-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 600; }
    .responsive-table td[data-label="操作"]::before, .responsive-table td[data-label="详情"]::before, .provider-table td[data-label="渠道"]::before, .provider-table td[data-label="状态"]::before { display: none; }
    .responsive-table td[data-label="操作"]:empty { display: none; }
    .responsive-table td:first-child, .responsive-table td:last-child, .responsive-table td[colspan], .responsive-table td[data-label="登录回调地址"], .responsive-table td[data-label="会话 ID"], .responsive-table td[data-label="操作者 / 用户"] { grid-column: 1 / -1; }
    .provider-table tr { grid-template-columns: minmax(0, 1fr); }
    .provider-table td[data-label="渠道"], .provider-table td[data-label="状态"] { width: 100%; }
    .responsive-table .row-actions, .responsive-table .provider-identity, .responsive-table .provider-next-step { min-width: 0; max-width: none; white-space: normal; }
    .responsive-table .row-actions a, .responsive-table .link-button { min-height: 40px; }
    .provider-client-id { max-width: none; }
    .client-table td:first-child, .client-table td[data-label="登录回调地址"], .client-table td[data-label="登录渠道"] { width: 100%; }
    .filter-bar, .filter-bar.audit-filters, .filter-bar:has(.filter-actions) { grid-template-columns: minmax(0, 1fr); }
    .filter-bar.audit-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .audit-filters .checkbox-label { grid-column: 1 / -1; }
    .policy-fields, .choice-list { grid-template-columns: minmax(0, 1fr); }
    .policy-fields input { max-width: none; }
    .dialog-actions { padding-top: 12px; }
    .dialog-actions:has(.danger) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dialog-actions .danger { grid-column: 1 / -1; margin-right: 0; }
    .modal-content > form:has(.dialog-actions .danger) { scroll-padding-bottom: 140px; }
    .audit-toolbar { align-items: stretch; flex-direction: column; }
    .audit-toolbar .pagination { justify-content: space-between; flex-wrap: wrap; }
    .audit-toolbar button { width: 100%; }
    .audit-export-actions { display: grid; gap: 10px; }
    .audit-export-menu > summary { display: list-item; min-height: 44px; margin: 0; padding: 12px 0; }
    .audit-export-menu[open] > summary { margin-bottom: 4px; }
    .section-links[role=tablist] { gap: 0; border-bottom: 1px solid var(--line); }
    .section-links [role=tab] { flex: 1; justify-content: center; min-height: 48px; padding: 10px 4px; font-size: 13px; border-bottom: 2px solid transparent; touch-action: manipulation; }
    .section-links [aria-selected=true] { border-bottom-color: var(--blue); color: var(--blue-dark); font-weight: 600; }
    .mobile-section-panel, .mobile-section-panel > .section-title { margin-top: 16px; }
    .page-heading-row { flex-direction: row; align-items: center; gap: 12px; }
    .page-heading-row > h1 { margin: 0; }
    .page-heading-row .button, .page-heading-row > button { align-self: center; min-height: 44px; }
    .client-table tr, .session-table tr, .audit-table tr, .member-table tr { grid-template-columns: minmax(0, 1fr) auto; }
    .client-table td:first-child, .session-table:not(.admin-session-table) td:first-child, .member-table td:first-child { grid-column: 1; grid-row: 1; }
    .client-table td[data-label="状态"], .session-table td[data-label="状态"], .audit-table td[data-label="结果"], .member-table td[data-label="状态"] { grid-column: 2; grid-row: 1; }
    .client-table td[data-label="登录渠道"], .session-table td[data-label="登录时间"], .session-table td[data-label="最近活动"], .session-table td[data-label="到期时间"], .audit-table td[data-label="本地时间"] { grid-column: 1 / -1; }
    .session-table td[data-label="登录时间"], .session-table td[data-label="最近活动"], .session-table td[data-label="到期时间"], .audit-table td[data-label="本地时间"] { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
    .session-table td[data-label="登录时间"]::before, .session-table td[data-label="最近活动"]::before, .session-table td[data-label="到期时间"]::before, .audit-table td[data-label="本地时间"]::before { margin: 0; font-weight: 400; }
    .member-table td[data-label="登录身份"], .member-table td[data-label="创建时间"], .local-account-table td[data-label="到期时间"] { grid-column: 1 / -1; }
    .member-table td[data-label="创建时间"], .local-account-table td[data-label="到期时间"] { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
    .member-table td[data-label="创建时间"]::before, .local-account-table td[data-label="到期时间"]::before { margin: 0; font-weight: 400; }
    .member-table td:first-child::before, .member-table td[data-label="状态"]::before, .administrator-table td:first-child::before { display: none; }
    .client-table td:first-child::before, .client-table td[data-label="状态"]::before, .session-table td:first-child::before, .session-table td[data-label="状态"]::before, .audit-table td[data-label="事件"]::before, .audit-table td[data-label="结果"]::before { display: none; }
    .audit-table td[data-label="事件"] { grid-column: 1; grid-row: 1; font-weight: 600; }
    .audit-table td[data-label="本地时间"] { grid-row: 2; }
    dialog.mobile-page-editor { width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
    .mobile-page-editor .modal-content { height: 100%; max-height: 100%; padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
    .mobile-page-editor .modal-content > form { display: flex; flex-direction: column; flex: 1; gap: 14px; }
    .mobile-page-editor .modal-content > form > * { flex-shrink: 0; }
    .mobile-page-editor .dialog-actions { margin-top: auto; }
    .mobile-page-editor .modal-heading .icon-button { min-width: 44px; min-height: 44px; }
    .modal input:not([type=checkbox]), .modal select, .modal textarea { font-size: 16px; }
    .modal .dialog-actions > button, .modal .dialog-actions > .button { min-height: 44px; }
}
