/* Admin-only layout. Shared document tables and business forms keep their own styles. */
.ops-toolbar { display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0; }
.ops-toolbar select,.ops-toolbar button { min-height:44px; }
.ops-stats { display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:20px 0; }
.ops-stats .card { padding:16px;display:flex;flex-direction:column;gap:8px; }
.ops-stats strong { font:600 24px var(--font-num);color:var(--t1); }
.ops-stats span { color:var(--t2); }
.ops-chart { margin:20px 0;border:1px solid var(--line);border-radius:8px;padding:16px; }
.ops-chart svg { width:100%;display:block;overflow:visible; }
.ops-chart polyline { stroke:var(--brand);stroke-width:2;fill:none;vector-effect:non-scaling-stroke; }
.ops-chart text { fill:var(--t2);font-size:12px; }
.ops-chart-scale,.ops-chart-labels { font-size:12px;color:var(--t2); }
.ops-chart-labels { display:flex;justify-content:space-between;gap:16px; }
.ops-chart-labels time:last-child { text-align:right; }
.ops-axis { stroke:var(--line);fill:none;vector-effect:non-scaling-stroke; }
.ops-details summary { cursor:pointer;min-height:44px;padding:10px 0; }
.ops-table-wrap { overflow:auto;max-height:520px; }
.ops-table { width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap; }
.ops-table th,.ops-table td { text-align:left;padding:10px;border-bottom:1px solid var(--line); }
.ops-warning { color:var(--t1);border-left:3px solid var(--brand);padding-left:12px; }
.adm-binding-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; align-items:start; }
.adm-binding-grid .adm-ent { min-width:0; margin:0; padding:16px; }
.adm-binding-grid .adm-ent.editing { grid-column:1 / -1; background:var(--brand-lighter); }
.adm-binding-grid .adm-ent-head { flex-wrap:nowrap; gap:8px; }
.adm-binding-grid .adm-ent-name { min-width:0; overflow-wrap:anywhere; }
.adm-binding-grid .adm-ent-head .pill { flex-shrink:0; font-size:12px; }
.adm-binding-grid .adm-members { border:0; display:flex; gap:4px 14px; flex-wrap:wrap; }
.admin-surface .adm-binding-grid .adm-mrow { display:inline-flex; min-height:28px; padding:0; border:0; gap:6px; font-size:14px; line-height:28px; }
.adm-binding-grid .adm-mrow .muted { font-size:12px; }
.adm-binding-grid .adm-member-preview { max-height:60px; overflow:hidden; }
.adm-binding-grid .adm-member-preview.expanded { max-height:none; }
.admin-surface .adm-binding-grid .adm-members-more { min-height:32px; margin-top:4px; border:0; padding:2px 0; }
.adm-binding-grid .editing .adm-ent-head { flex-wrap:wrap; }
.adm-binding-grid .editing .adm-cands { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); background:var(--card); }
.adm-bind-search { display:block; max-width:480px; margin:16px 0; }
.adm-bind-search .f-input { margin-top:6px; }
.admin-surface .adm-switch .adm-sw + .adm-sw { border-inline-start:1px solid var(--ui-line-c5d0d9, #C5D0D9); }
.adm-org-tree { margin-top:20px; }
.adm-org-tree .adm-org-intro { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.adm-org-tree h2 { font-size:18px; margin:0 0 4px; }
.adm-org-tree .adm-org-intro p,.adm-org-tree .adm-org-meta { margin:0; color:var(--t2); font-size:13px; }
.adm-org-tree .adm-org-meta { margin:12px 0; line-height:1.8; }
.adm-org-tree .adm-org-toolbar { display:flex; align-items:flex-end; flex-wrap:wrap; gap:12px; }
.adm-org-tree .adm-org-toolbar label { display:block; flex:1; min-width:180px; max-width:480px; margin-bottom:0; }
.adm-org-tree .adm-org-toolbar input { display:block; margin-top:6px; }
.adm-org-tree .adm-org-actions { display:flex; gap:8px; }
.adm-org-tree .adm-org-actions .btn-mini { min-height:44px; }
.adm-org-tree .adm-org-dept { border:1px solid var(--line); border-radius:6px; background:var(--card); margin:10px 0; min-width:0; }
.adm-org-tree summary { cursor:pointer; list-style:none; display:flex; align-items:center; gap:10px; padding:13px 16px; line-height:1.5; }
.adm-org-tree summary::-webkit-details-marker { display:none; }
.adm-org-tree summary b { overflow-wrap:anywhere; min-width:0; }
.adm-org-tree summary .muted { flex-shrink:0; margin-left:auto; font-size:12px; }
.adm-org-tree .adm-org-arrow { font-size:22px; line-height:1; transition:transform .12s; }
.adm-org-tree details[open] > summary > .adm-org-arrow { transform:rotate(90deg); }
.adm-org-tree summary:focus-visible { outline:2px solid var(--brand); outline-offset:-2px; }
.adm-org-tree .adm-org-branch { margin:0 14px 10px 24px; }
.adm-org-tree .adm-org-member { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) minmax(0,1fr) minmax(0,.85fr) minmax(0,.9fr) minmax(112px,.9fr); gap:12px; padding:14px 12px; border-top:1px solid var(--line); font-size:14px; overflow-wrap:anywhere; }
.adm-org-tree .adm-org-userid { font-family:var(--font-num); font-size:12px; user-select:text; }
.adm-org-tree .adm-org-access { display:flex; gap:8px; align-items:center; min-height:44px; cursor:pointer; font-size:12px; }
.adm-org-tree .adm-org-access input { appearance:none; position:relative; flex:none; width:44px; height:26px; margin:0; border:1px solid var(--t3); border-radius:16px; background:var(--t3); cursor:pointer; }
.adm-org-tree .adm-org-access input::after { content:''; position:absolute; width:20px; height:20px; left:2px; top:2px; border-radius:50%; background:var(--card); }
.adm-org-tree .adm-org-access input:checked { background:var(--brand); border-color:var(--brand); }
.adm-org-tree .adm-org-access input:checked::after { left:20px; }
.adm-org-tree .adm-org-access input:disabled { opacity:.55; cursor:default; }
.adm-org-tree .adm-org-person { display:flex; flex-direction:column; gap:5px; }
.adm-org-tree .adm-org-person small,.adm-org-tree dt { color:var(--t2); font-size:12px; }
.adm-org-tree dl { margin:0; min-width:0; }
.adm-org-tree dd { margin:5px 0 0; }
.adm-org-tree dd .pill { margin-left:6px; font-size:11px; white-space:normal; }
.adm-org-tree .adm-org-leader { color:var(--brand); font-weight:600; }
.adm-org-tree .adm-org-warning,.adm-org-tree .adm-org-empty { margin:0; padding:6px 12px 10px; color:var(--t2); font-size:13px; }
.adm-org-tree .adm-org-error { margin:12px 0; padding:12px; background:var(--brand-lighter); border-left:3px solid var(--brand); line-height:1.8; }
@media(max-width:767px) {
  .adm-org-tree .adm-org-intro { align-items:flex-start; }
  .adm-org-tree .adm-org-intro .btn-mini { flex-shrink:0; }
  .adm-org-tree .adm-org-toolbar label { max-width:none; flex-basis:100%; }
  .adm-org-tree summary { padding:12px 10px; gap:6px; }
  .adm-org-tree .adm-org-branch { margin-left:8px; margin-right:6px; }
  .adm-org-tree .adm-org-dept .adm-org-dept .adm-org-dept .adm-org-branch { margin-left:0; }
  .adm-org-tree .adm-org-member { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; padding:14px 6px; }
  .adm-org-tree .adm-org-person { grid-column:1 / -1; }
}
.adm-section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.adm-access-block { padding:18px 0; border-bottom:1px solid var(--line); scroll-margin-top:130px; }
.adm-access-block:first-of-type { padding-top:0; }
.adm-access-block h3,.cc-stage h3,.cc-confirm h3 { font-size:16px; line-height:1.6; font-weight:600; margin:0; }
.adm-access-block h4 { font-size:14px; font-weight:600; margin:20px 0 10px; }
.adm-rule-summary { font-size:14px; line-height:1.8; margin:8px 0 12px; overflow-wrap:anywhere; }
.adm-access .adm-help { margin:8px 0 12px; }
.adm-warning { padding:10px 12px; margin:10px 0; background:var(--brand-lighter); color:var(--t1); font-size:13px; line-height:1.7; }
.adm-radio-group { border:0; padding:0; margin:10px 0; display:flex; flex-wrap:wrap; gap:4px 24px; }
.adm-radio-group legend { font-size:13px; color:var(--t2); padding:0; }
.adm-access-pair { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:24px; }
.adm-access-pair > fieldset { min-width:0; border:0; padding:0; }
.adm-access-pair > fieldset > legend { padding:0; font-weight:600; font-size:14px; margin-bottom:10px; }
.adm-people { margin:12px 0; min-width:0; }
.adm-people-selected { display:flex; flex-wrap:wrap; gap:6px; align-items:baseline; font-size:13px; line-height:1.7; }
.adm-people-label { min-width:5em; color:var(--t2); }
.adm-people details { margin-top:6px; }
.adm-people summary { cursor:pointer; color:var(--brand); font-size:13px; padding:8px 0; }
.adm-people .f-input { margin:6px 0; font-size:16px; }
.adm-people-choices { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); max-height:220px; overflow:auto; gap:0 12px; padding:0 4px; }
.adm-people-choices .adm-access-check { min-height:44px; }
.adm-people [hidden] { display:none; }
.adm-savebar { position:sticky; bottom:0; z-index:3; display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:12px; padding:14px 0; background:var(--card); border-top:1px solid var(--line); margin-top:18px; }
.adm-savebar > span { margin-right:auto; color:var(--t2); font-size:13px; }
.admin-surface .adm-savebar .btn { flex:0 0 auto; width:auto; }
.adm-confirm-changes { padding-left:20px; line-height:1.8; }
.adm-confirm-changes li { margin:10px 0; overflow-wrap:anywhere; }
@media(max-width:1199px) { .adm-binding-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .adm-access-pair { grid-template-columns:1fr; gap:16px; } }
@media(max-width:767px) { .adm-binding-grid { grid-template-columns:1fr; } .adm-binding-grid .editing .adm-cands { grid-template-columns:1fr; } .adm-access-pair { grid-template-columns:1fr; } .adm-savebar { bottom:0; padding-bottom:max(12px,env(safe-area-inset-bottom)); } .adm-savebar > span { flex-basis:100%; } .adm-people .adm-access-check { min-height:48px; } .adm-access-block { scroll-margin-top:80px; } }
.admin-surface { min-width: 0; }
.admin-surface .adm-tabs { gap: 4px; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 20px; }
.admin-surface .adm-tab { min-height: 44px; border-radius: 4px; border-color: transparent; background: transparent; padding: 8px 14px; white-space: nowrap; }
.admin-surface .adm-tab.on { background: var(--brand-light); color: var(--brand-dark); }
.admin-surface :is(.btn-mini,.btn,.adm-knob-sel) { min-height: 40px; white-space: nowrap; flex-shrink: 0; }
.admin-surface :is(button,summary):focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.admin-surface .adm-toggle { width: 48px; height: 30px; }
.admin-surface .adm-toggle::after { width: 24px; height: 24px; }
.admin-surface .adm-toggle.on::after { left: 20px; }
.admin-surface .adm-table td { word-break: normal; overflow-wrap: anywhere; line-height: 1.65; padding: 12px; }
.admin-surface .adm-table th { padding: 10px 12px; background: var(--brand-lighter); }
.admin-surface .adm-table [data-compact] { white-space: nowrap; overflow-wrap: normal; }
.admin-surface .adm-table td .btn-mini + .btn-mini { margin-left: 8px; }
.admin-surface .adm-table-wrap { max-width: 100%; }
.admin-surface .adm-table { table-layout: auto; }
.admin-surface .adm-mrow { gap: 12px; min-height: 52px; flex-wrap: wrap; }
.admin-surface .adm-mrow > :first-child { min-width: 0; overflow-wrap: anywhere; }
.admin-surface .adm-cand { min-height: 44px; }
.admin-surface .adm-del { min-width: 40px; min-height: 40px; }
.admin-surface .adm-nrow { min-height: 52px; gap: 10px; }
.admin-surface .adm-notify-row { flex-wrap: nowrap; justify-content: space-between; padding: 14px 0; gap: 20px; }
.admin-surface .adm-notify-row p { margin-top: 4px; }
.admin-surface .adm-khint { color: var(--t2); }
.admin-surface .adm-acts { flex-wrap: wrap; }
.admin-surface .adm-opt-row .f-input { min-width: 0; }
.admin-surface .adm-enum { border: 0; }
.admin-surface .adm-enum-head .mono { overflow-wrap: anywhere; }
.admin-surface .adm-chips { margin-top: 12px; }
.admin-surface .pill { white-space: normal; overflow-wrap: anywhere; }
.adm-global-setting { display: flex; align-items: center; gap: 16px; padding: 12px 16px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); font-size: 14px; }
.adm-global-setting > div { flex: 1; }
.adm-global-setting b { font-weight: 500; margin-right: 16px; }
.adm-global-setting > div > span { color: var(--t2); font-size: 13px; }
.adm-template-timeout-setting { background: var(--brand-lighter); }
.adm-timeout-label { display: block; margin: 16px 0 8px; font-weight: 500; }
.adm-timeout-help { display: block; margin-top: 8px; font-size: 12px; line-height: 1.6; }
.adm-nowrap { white-space: nowrap; font-variant-numeric: tabular-nums; }
.adm-workspace { display: grid; grid-template-columns: 224px minmax(0,1fr); align-items: start; gap: 20px; }
.adm-flow-directory { position: sticky; top: 80px; min-width: 0; }
.adm-directory-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px; font-size: 14px; }
.adm-flow-directory .f-input { font-size: 14px; min-height: 44px; }
.adm-flow-results { max-height: calc(100dvh - 290px); min-height: 150px; overflow-y: auto; overscroll-behavior: contain; margin-top: 12px; padding: 2px; }
.adm-flow-choice { display: block; text-align: left; width: 100%; padding: 12px; border-radius: var(--r-s); margin-bottom: 4px; }
.adm-flow-choice:hover { background: var(--brand-lighter); }
.adm-flow-choice.selected { background: var(--brand-light); color: var(--brand-dark); }
.adm-flow-choice b { display: block; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.adm-flow-choice > span { display: flex; justify-content: space-between; gap: 8px; color: var(--t2); font-size: 12px; margin-top: 5px; }
.adm-flow-panel { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); }
.adm-flow-heading { position: sticky; top: 64px; z-index: 2; padding: 20px 24px 14px; background: var(--card); border-radius: var(--r-m); }
.adm-flow-heading h2 { font-size: 20px; font-weight: 600; margin: 0 0 4px; overflow-wrap: anywhere; }
.adm-flow-sticky { position:sticky; top:64px; z-index:2; background:var(--card); border-radius:var(--r-m) var(--r-m) 0 0; }
.adm-flow-sticky .adm-flow-heading { position:static; }
#frame:not(.pc-mode) .adm-flow-sticky { position:static; }
.adm-directory-back { display: none; }
.adm-flow-tabs { display: flex; gap: 24px; padding: 0 24px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.adm-flow-tabs button { flex-shrink: 0; white-space: nowrap; }
/* Per-flow permissions use labeled native controls and bounded object lists. */
.adm-access-section { border-top: 1px solid var(--line); padding: 16px 0; }
.adm-access-section > summary { cursor: pointer; font-weight: 600; min-height: 36px; }
.adm-access-subjects { border: 0; padding: 8px 0; min-width: 0; }
.adm-access-subjects legend { color: var(--t2); font-size: 13px; padding: 0; }
.adm-access-check { display: flex; align-items: flex-start; gap: 8px; padding: 9px 0; line-height: 1.5; cursor: pointer; overflow-wrap: anywhere; }
.adm-access-check[hidden] { display: none; }
.adm-access-check input { flex-shrink: 0; margin-top: 4px; accent-color: var(--brand); }
.adm-access-check small { display: block; color: var(--t2); }
.adm-access-rule { padding: 16px; margin: 12px 0; border: 1px solid var(--line); border-radius: 6px; }
.adm-access-rule-head, .adm-access-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.adm-access-actions { justify-content: flex-start; padding: 18px 0 0; flex-wrap: wrap; }
.adm-access .f-select { margin-top: 8px; }
#frame:not(.pc-mode) .adm-access-rule { padding: 12px; }
#frame:not(.pc-mode) .adm-flow-tabs { gap: 14px; }
.adm-flow-tabs button { min-height: 46px; font-size: 14px; border-bottom: 2px solid transparent; color: var(--t2); }
.adm-flow-tabs button[aria-current="page"] { color: var(--brand); border-color: var(--brand); font-weight: 600; }
.adm-flow-content { padding: 20px 24px 24px; }
.adm-self-setting { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.adm-self-setting b { font-size: 14px; font-weight: 500; }
.adm-self-setting p { font-size: 13px; color: var(--t2); margin-top: 5px; max-width: 65ch; }
.adm-help { font-size: 13px; line-height: 1.7; color: var(--t2); margin: 0 0 18px; }
.adm-self-setting + .adm-help { margin-top: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.adm-disclosure { border-bottom: 1px solid var(--line); }
.adm-disclosure:last-child { border-bottom: 0; }
.adm-disclosure-head { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 8px; text-align: left; }
.adm-disclosure-head:hover { background: var(--brand-lighter); }
.adm-disclosure-head[aria-expanded="true"] { background: var(--brand-lighter); }
.adm-disclosure-head b { font-size: 14px; font-weight: 500; }
.adm-disclosure-head small { display: block; font-size: 12px; color: var(--t2); margin-top: 5px; overflow-wrap: anywhere; }
.adm-node-identity { flex: 1; min-width: 0; }
.adm-node-values { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: flex-end; color: var(--t2); font-size: 12px; max-width: 48%; }
.adm-node-values > span { white-space: nowrap; }
.adm-disclosure-body { padding: 12px 8px 20px; }
.adm-disclosure-body > .adm-nrow > .adm-mname,.adm-disclosure-body > .adm-nrow > .pill { display: none; }
.adm-node-controls .adm-table-wrap { overflow: visible; }
.adm-node-controls :is(table,tbody) { display: block; }
.adm-node-controls thead { display: none; }
.adm-node-controls tr { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; padding-top: 18px; }
.admin-surface .adm-node-controls td { display: block; padding: 0; border: 0; }
.adm-node-controls td:nth-child(-n+3) { display: none; }
.adm-node-controls td::before { content: attr(data-label); display: block; font-size: 13px; color: var(--t2); margin-bottom: 8px; }
.adm-node-controls td:last-child { grid-column: 1 / -1; }
.adm-node-controls [data-knob-timeout] { min-width: 100px; }
.adm-node-controls .adm-knob-sel { min-width: 108px; }
.adm-template-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.adm-template-tabs .selected { background: var(--brand-light); border-color: var(--brand); }
.adm-template-meta { display: grid; gap: 0; font-size: 14px; }
.adm-template-meta > div { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.adm-template-meta dt { color: var(--t2); }
.adm-template-meta dd { overflow-wrap: anywhere; }
.adm-empty { padding: 24px 12px; color: var(--t2); font-size: 14px; }
.adm-audit-detail { max-width: 60ch; min-width: 0; }
.adm-audit-detail summary { cursor: pointer; overflow-wrap: anywhere; white-space: normal; }
.adm-audit-detail dl { padding-top: 12px; }
.adm-audit-detail dt { color: var(--t2); }
.adm-audit-detail pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; margin: 6px 0 12px; }
.adm-audit-filters, .adm-nfilter { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.adm-nfilter { grid-template-columns: minmax(150px,200px) minmax(130px,170px) minmax(240px,1fr) minmax(120px,150px) auto; }
.adm-nlist { padding: 4px 16px; }
.adm-nline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.adm-nline:last-child { border-bottom: none; }
.adm-nline b { font-weight: 600; }
.adm-nline .mono, .adm-nline .muted, .adm-nline .adm-nerr { font-size: 13px; }
.adm-nline .adm-nerr { color: var(--red); overflow-wrap: anywhere; }
.adm-nline .btn { margin-left: auto; }
.adm-audit-field { min-width: 0; }
.adm-audit-field label { display: block; margin-bottom: 6px; color: var(--t2); font-size: 13px; }
.adm-audit-field :is(input,button,select) { width: 100%; min-height: 44px; }
.adm-audit-select { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-audit-target { grid-column: span 2; }
.adm-audit-actions { display: flex; gap: 12px; align-items: end; }
.adm-audit-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.adm-audit-toolbar > div { display: flex; align-items: center; gap: 12px; }
.adm-audit-toolbar select { width: auto; }
.adm-audit-account { display: block; color: var(--t2); font-size: 11px; overflow-wrap: anywhere; }
.adm-audit-results .adm-table { table-layout: fixed; width: 100%; }
.adm-audit-results th:nth-child(1) { width: 160px; }
.adm-audit-results th:nth-child(2) { width: 120px; }
.adm-audit-results th:nth-child(3) { width: 165px; }
.adm-audit-results th:nth-child(4) { width: 210px; }
.adm-audit-results td { overflow-wrap: anywhere; white-space: normal; }
.adm-audit-detail summary > span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.adm-audit-detail[open] summary > span { display: block; }
.adm-audit-pager { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px; }
.adm-audit-error { padding: 12px 0; color: var(--red); }
#frame:not(.pc-mode) .adm-audit-filters, #frame:not(.pc-mode) .adm-nfilter { grid-template-columns: minmax(0,1fr); }
#frame:not(.pc-mode) .adm-nline { font-size: 15px; }
#frame:not(.pc-mode) .adm-nline .btn { margin-left: 0; min-height: 44px; }
#frame:not(.pc-mode) .adm-audit-target { grid-column: auto; }
#frame:not(.pc-mode) .adm-audit-filters :is(input,button,select), #frame:not(.pc-mode) .adm-nfilter :is(input,button,select) { min-height: 48px; font-size: 16px; }
#frame:not(.pc-mode) .adm-audit-results .adm-table { width: 100%; }
.pc-mode .sheet.adm-template-dialog { width: min(1080px, calc(100vw - 48px)); max-width: none; }
.adm-template-dialog .adm-tpl-sheet { max-height: 72dvh; }
@media (min-width: 900px) and (max-width: 1199px) {
  .pc-mode .adm-workspace { grid-template-columns: 180px minmax(0,1fr); gap: 12px; }
  .pc-mode .adm-flow-content,.pc-mode .adm-flow-heading { padding-left: 16px; padding-right: 16px; }
  .pc-mode .adm-node-summary { flex-wrap: wrap; }
  .pc-mode .adm-node-values { max-width: 100%; width: 100%; justify-content: flex-start; order: 3; }
}
#frame:not(.pc-mode) .admin-surface .adm-tabs { flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 10px; gap: 0; }
#frame:not(.pc-mode) .admin-surface .adm-tab { flex: none; }
#frame:not(.pc-mode) .adm-global-setting { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; }
#frame:not(.pc-mode) .adm-global-setting > div > span { display: block; margin-top: 4px; }
#frame:not(.pc-mode) .adm-workspace { display: block; }
#frame:not(.pc-mode) .adm-flow-directory { position: static; }
#frame:not(.pc-mode) .adm-flow-results { max-height: none; overflow: visible; }
#frame:not(.pc-mode) .adm-flow-panel { display: none; }
#frame:not(.pc-mode) .adm-workspace.show-detail .adm-flow-directory { display: none; }
#frame:not(.pc-mode) .adm-workspace.show-detail .adm-flow-panel { display: block; }
#frame:not(.pc-mode) .adm-flow-heading { position: static; padding: 16px; }
#frame:not(.pc-mode) .adm-directory-back { display: inline-flex; margin-bottom: 12px; }
#frame:not(.pc-mode) .adm-flow-content { padding: 16px; }
#frame:not(.pc-mode) .adm-flow-tabs { gap: 20px; padding: 0 16px; }
#frame:not(.pc-mode) .adm-node-summary { flex-wrap: wrap; }
#frame:not(.pc-mode) .adm-node-values { max-width: 100%; width: 100%; order: 3; justify-content: flex-start; }
#frame:not(.pc-mode) .admin-surface :is(.btn-mini,.btn,.adm-knob-sel,.adm-del,.adm-toggle) { min-height: 44px; }
#frame:not(.pc-mode) .admin-surface .adm-toggle { height: 44px; min-height: 44px; background: transparent; border: 0; margin: 0; }
#frame:not(.pc-mode) .admin-surface .adm-toggle::before { content: ''; position: absolute; inset: 7px 0; border: 1px solid var(--line); border-radius: 15px; background: var(--gray-bg); }
#frame:not(.pc-mode) .admin-surface .adm-toggle.on::before { background: var(--brand); border-color: var(--brand); }
#frame:not(.pc-mode) .admin-surface .adm-toggle::after { top: 10px; left: 3px; }
#frame:not(.pc-mode) .admin-surface .adm-toggle.on::after { left: 21px; }
#frame:not(.pc-mode) .admin-surface .adm-table-wrap { overflow: visible; }
#frame:not(.pc-mode) .admin-surface :is(.adm-table,.adm-table tbody) { display: block; }
#frame:not(.pc-mode) .admin-surface .adm-table thead { display: none; }
#frame:not(.pc-mode) .admin-surface .adm-table tr { display: block; border-bottom: 1px solid var(--line); padding: 12px 0; }
#frame:not(.pc-mode) .admin-surface .adm-table td { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 8px; padding: 6px 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
#frame:not(.pc-mode) .admin-surface .adm-table td::before { content: attr(data-label); color: var(--t2); font-size: 12px; }
#frame:not(.pc-mode) .admin-surface .adm-table td > .pill { justify-self: start; align-self: start; }
#frame:not(.pc-mode) .admin-surface .adm-table td[data-label="操作"] { display: flex; flex-wrap: wrap; align-items: center; }
#frame:not(.pc-mode) .admin-surface .adm-node-controls tr { display: flex; flex-direction: column; gap: 16px; border: 0; }
#frame:not(.pc-mode) .admin-surface .adm-node-controls td { display: block; }
#frame:not(.pc-mode) .admin-surface .adm-node-controls td:nth-child(-n+3) { display: none; }
#frame:not(.pc-mode) .adm-template-meta > div { grid-template-columns: 86px minmax(0,1fr); gap: 12px; }
#frame:not(.pc-mode) .adm-template-dialog .adm-tpl-sheet { max-height: 80dvh; }
@media (prefers-reduced-motion: reduce) { .admin-surface * { transition: none !important; scroll-behavior: auto !important; } }
.external-scope-dialog {position:fixed;inset:0;margin:auto;width:min(760px,94vw);max-height:90dvh;overflow-y:auto;border:1px solid var(--ui-line-d6dce0, #d6dce0);border-radius:12px;padding:24px;box-sizing:border-box;}
.external-scope-dialog::backdrop {background:#17283399;}
.external-scope-dialog fieldset {margin:12px 0;border:1px solid var(--ui-line-dddddd, #ddd);padding:16px;}
.external-scope-dialog .scope-dept {display:block;padding:6px;}
.external-scope-dialog details {margin:12px 0;}
.external-scope-dialog .scope-actions {display:flex;flex-wrap:wrap;gap:12px;}
