:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --surface: #121923;
  --surface-2: #192331;
  --border: #2a3748;
  --text: #eef3f8;
  --muted: #9eabba;
  --accent: #e9a23b;
  --accent-strong: #ffb84d;
  --danger: #ff6b6b;
  --success: #43d19e;
  font-size: 80.5%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scrollbar-gutter: stable; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top right, #182535 0, var(--bg) 36rem); color: var(--text); }
html.modal-open, body.modal-open, html.overlay-open, body.overlay-open { overflow: hidden; overscroll-behavior: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.login-shell { display: grid; min-height: 100vh; place-items: center; padding: 1.5rem; }
.login-card { width: min(460px, 100%); padding: 2rem; }
.login-card .product-logo { margin-bottom: 1.25rem; }
.login-card form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.login-recovery-link { margin: 1rem 0 0; text-align: center; } .login-passkey { width: 100%; margin-top: .75rem; }
.login-progress { display: grid; min-height: 14rem; place-items: center; align-content: center; gap: .8rem; color: var(--muted); text-align: center; }
.login-progress strong { color: var(--text); font-size: 1.15rem; }
.login-progress-spinner { width: 2.5rem; height: 2.5rem; border: 4px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: login-progress-spin .8s linear infinite; }
@keyframes login-progress-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .login-progress-spinner { animation: none; } }
.remember-device { display: flex; align-items: center; gap: .55rem; }
.remember-device input { width: auto; }
.app-header { display: flex; justify-content: space-between; align-items: center; padding: 1.15rem 3rem .65rem; }
.product-brand { display: flex; align-items: center; gap: .9rem; }
.product-logo { display: block; width: min(15rem, 70vw); height: auto; }
.product-brand h1 { font-size: clamp(1.55rem, 2.6vw, 2rem); }
h1, h2, p { margin-top: 0; }
h1, h2, h3, h4, h5, h6, th { font-weight: 650; }
h1 { margin-bottom: 0; font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -.04em; }
h2 { margin-bottom: 0; }
.eyebrow { margin-bottom: .35rem; color: var(--accent); font-size: .72rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.header-account-controls { display: flex; align-items: center; gap: .75rem; }
.header-organization-switcher { display: grid; grid-template-columns: auto minmax(12rem, 18rem); align-items: center; gap: .5rem; color: var(--muted); font-size: .78rem; font-weight: 650; }
.header-organization-switcher select { min-height: 2.75rem; padding: .55rem 2.1rem .55rem .75rem; }
.header-account-email { max-width: 19rem; overflow: hidden; color: var(--muted); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.account-menu { position: relative; }
.account-menu-trigger { display: grid; width: 2.75rem; height: 2.75rem; padding: .55rem; place-items: center; border-color: var(--border); border-radius: 50%; background: var(--surface-2); color: var(--text); }
.account-menu-trigger:hover, .account-menu-trigger[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.account-menu-trigger svg { width: 100%; fill: currentColor; }
.account-menu-panel { position: absolute; z-index: 20; top: calc(100% + .65rem); right: 0; width: min(22rem, calc(100vw - 2rem)); padding: 1rem; }
.account-menu-identity { display: grid; gap: .2rem; padding: 0 .25rem .85rem; border-bottom: 1px solid var(--border); }
.account-menu-identity span, .account-current-organization { color: var(--muted); font-size: .78rem; }
.account-current-organization { margin: 0 0 .75rem; }
.account-menu-actions { display: grid; gap: .25rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.account-menu-action { display: block; width: 100%; padding: .65rem .75rem; border: 0; border-radius: .45rem; background: transparent; color: var(--text); text-align: left; text-decoration: none; }
.account-menu-action:hover { background: var(--surface-2); }
.danger-text { color: #ff9ba0; }
.about-dialog { padding: 1.25rem; }
.about-dialog .dialog-heading { align-items: center; }
.about-dialog .profile-detail-list { margin-top: 1rem; }
.about-dialog .row-secondary { margin-bottom: 0; }
.profile-dialog { width: min(760px, calc(100vw - 2rem)); padding: 0; overflow: hidden; }
.profile-dialog[open] { display: flex; max-height: min(720px, calc(100vh - 2rem)); flex-direction: column; }
.profile-dialog > .dialog-heading { flex: 0 0 auto; align-items: center; margin: 0; padding: 1.25rem 1.5rem 1rem; background: #172231; }
.profile-tabs { flex: 0 0 auto; gap: 0; margin: 0; padding: 0 1.5rem; background: #172231; }
.profile-tabs .section-tab { min-height: 3rem; padding: .75rem 1rem; }
.profile-tabs .section-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.profile-section-panel { display: none; min-height: 0; overflow-y: auto; padding: 1.5rem; }
.profile-section-panel.active:not([hidden]) { display: block; }
.profile-section-heading { margin-bottom: 1rem; }
.profile-section-heading h3, .profile-section-heading p { margin: 0; }
.profile-section-heading p { margin-top: .3rem; color: var(--muted); }
.profile-detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 0; }
.profile-detail-list > div { min-width: 0; padding: 1rem; border: 1px solid var(--border); border-radius: 10px; background: #0c121a; }
.profile-detail-list dt { margin-bottom: .3rem; color: var(--muted); font-size: .7rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.profile-detail-list dd { margin: 0; overflow-wrap: anywhere; }
.profile-setting-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.25rem; padding: 1rem; border: 1px solid var(--border); border-radius: 10px; background: #0c121a; }
.profile-setting-card + .profile-setting-card { margin-top: .75rem; }
.profile-setting-card h3, .profile-setting-card p { margin: 0; }
.profile-setting-card p { margin-top: .35rem; color: var(--muted); }
.profile-setting-card button { flex: 0 0 auto; }
.profile-dialog > .dialog-actions { flex: 0 0 auto; margin: 0; padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: #101720; }
.totp-enrollment { display: grid; justify-items: center; gap: .7rem; margin: 1rem 0; }
.totp-qr { width: 256px; max-width: 100%; border: .65rem solid #fff; border-radius: .5rem; background: #fff; }
.totp-secret { max-width: 100%; padding: .7rem .9rem; overflow-wrap: anywhere; color: #ffe3b8; letter-spacing: .12em; user-select: all; }
.totp-recovery { margin: 1rem 0; padding: 1rem; border: 1px solid var(--warning-border); border-radius: .65rem; background: var(--warning-surface); }
.recovery-code-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1.5rem; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
#e2ee-status.ready { border-color: #2e8b6f; color: #8ce0c3; }
.tabs { display: flex; gap: .25rem; padding: 0 3rem; border-bottom: 1px solid var(--border); }
.tab { border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); padding: .9rem 1.2rem; }
.tab.active { border-color: var(--accent); color: var(--text); }
.section-tabs { display: flex; gap: .35rem; margin: 1.25rem 0 1.5rem; border-bottom: 1px solid var(--border); }
.section-tab { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); }
.section-tab-with-badge { display: inline-flex; align-items: center; gap: .45rem; }
.section-tab-label { white-space: nowrap; }
.section-tab-badge { margin-left: 0; }
.section-tab.active { border-color: var(--accent); color: var(--text); }
.access-section-panel, .organization-section-panel,
.recovery-section-panel, .governance-section-panel { display: none; }
.access-section-panel.active, .organization-section-panel.active,
.recovery-section-panel.active, .governance-section-panel.active { display: block; }
.nested-section-tabs { margin: 0; }
.recovery-section-panel.active, .governance-section-panel.active { display: grid; gap: 1rem; }
.subsection-heading { margin-top: 0; }
main { max-width: 1500px; margin: auto; padding: 1rem 3rem 2rem; }
#application-main.organization-switching > :not(#organization-switch-loading) { display: none !important; }
.organization-switch-loading { display: grid; min-height: calc(100vh - 11rem); place-items: center; }
.organization-switch-status { display: grid; max-width: 32rem; justify-items: center; gap: .8rem; color: var(--muted); text-align: center; }
.organization-switch-status strong { color: var(--text); font-size: 1.15rem; }
.organization-switch-spinner { width: 2.5rem; height: 2.5rem; border: 4px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: organization-switch-spin .8s linear infinite; }
@keyframes organization-switch-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .organization-switch-spinner { animation: none; } }
.view { display: none; }
.view.active { display: block; }
.surface { background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 20px #0003; }
.organization-lifecycle-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding: 1rem 1.25rem; }
.organization-id-help { max-width: 48rem; color: var(--muted); font-size: .82rem; }
.organization-usage-card { padding: 1rem 1.25rem; }
.organization-usage-grid { display: grid; grid-template-columns: repeat(5, minmax(9rem, 1fr)); gap: .75rem; }
.organization-usage-grid > div { display: grid; gap: .2rem; padding: .75rem; border: 1px solid var(--border); border-radius: 8px; background: #0c121a; }
.organization-usage-grid span { color: var(--muted); font-size: .78rem; }
.organization-usage-grid strong { font-size: 1.2rem; }
.organization-archive-status { margin: 1rem 0 0; color: var(--muted); }
.organization-archive-status.organization-archive-available { color: #8ee0b8; }
.organization-archive-status.organization-archive-blocked { color: #ffb2b5; }
#organization-recovery-panel.active, #organization-governance-panel.active { display: grid; gap: 1.25rem; padding-top: .25rem; }
#organization-recovery-panel > .subsection-heading, #organization-recovery-panel > .section-intro,
#organization-governance-panel > .subsection-heading, #organization-governance-panel > .section-intro { margin: 0; }
.recovery-status-card { display: grid; gap: 1.25rem; padding: 1.25rem; }
.recovery-status-card .deployment-overview { margin: 0; border: 1px solid var(--border); border-radius: 10px; background: #0c121a; }
.recovery-custodian-section { padding: 0 .25rem; }
.recovery-custodian-section h3 { margin: 0 0 .65rem; }
.recovery-custodian-section ul { margin: 0; padding-left: 1.25rem; }
.recovery-status-card > .dialog-actions { margin: 0; padding-top: 1rem; border-top: 1px solid var(--border); }
.recovery-verification { display: grid; gap: .85rem; margin: 0; padding: 1.25rem; }
.recovery-verification h3, .recovery-verification p, .recovery-verification .dialog-actions { margin: 0; }
.toolbar { display: grid; grid-template-columns: minmax(13rem, 1fr) minmax(12rem, .8fr) auto minmax(16rem, 1.4fr) auto; gap: .7rem; padding: .7rem; align-items: end; }
.vault-toolbar { grid-template-columns: minmax(13rem, .8fr) minmax(18rem, 1.5fr) auto auto; margin-bottom: .35rem; padding: 0 0 .45rem; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.toolbar-checkbox { display: flex; min-height: 2.7rem; align-items: center; gap: .5rem; padding: 0 .25rem; color: var(--text); white-space: nowrap; }
.toolbar-checkbox input { width: auto; margin: 0; }
label { display: grid; gap: .4rem; color: var(--muted); font-size: .82rem; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid var(--border); border-radius: 5px; background: #0c121a; color: var(--text); padding: .7rem .8rem; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #e9a23b22; }
.toolbar-actions, .danger-actions, .dialog-actions, .section-actions { display: flex; gap: .65rem; justify-content: flex-end; }
button, .button-link { border: 1px solid transparent; border-radius: 5px; padding: .68rem .9rem; font-weight: 650; text-decoration: none; }
strong, b { font-weight: 650; }
button:disabled { cursor: not-allowed; opacity: .45; }
.primary { background: var(--accent); color: #15100a; }
.primary:hover { background: var(--accent-strong); }
.secondary { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.danger-outline { background: transparent; border-color: #7d3c43; color: #ff9ba0; }
.small { padding: .35rem .55rem; font-size: .75rem; }
.summary-row, .section-heading { display: flex; align-items: end; justify-content: space-between; margin: 2rem 0 1rem; }
.section-actions { align-items: end; }
.compact-select { min-width: 15rem; } .search-field-control { position: relative; display: block; }.search-field-control input { padding-right: 3rem; }.search-field-clear { position: absolute; top: 50%; right: .45rem; display: grid; width: 1.55rem; height: 1.55rem; padding: 0; place-items: center; transform: translateY(-50%); border: 1px solid var(--border); border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 1rem; line-height: 1; }.search-field-clear:hover { border-color: var(--accent); color: var(--accent); }
.searchable-select { min-width: 15rem; }
.searchable-select-control { position: relative; z-index: 10; display: block; width: 100%; border: 1px solid var(--border); border-radius: 8px; background: #0c121a; }
.searchable-select-control:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #e9a23b22; }
.searchable-select-control input { width: 100%; min-width: 0; padding-right: 5.2rem; border: 0; background: transparent; box-shadow: none; }
.searchable-select-control input:focus { border-color: transparent; box-shadow: none; }
.searchable-select-toggle { position: absolute; top: 50%; right: 2.25rem; display: grid; width: 1.55rem; height: 1.55rem; padding: 0; place-items: center; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); font-size: 1.05rem; line-height: 1; }
.searchable-select-toggle:hover, .searchable-select-toggle:focus-visible { color: var(--accent); }
.searchable-select-clear { position: absolute; top: 50%; right: .45rem; display: grid; width: 1.55rem; height: 1.55rem; padding: 0; place-items: center; transform: translateY(-50%); border: 1px solid var(--border); border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 1rem; line-height: 1; }
.searchable-select-clear:hover { border-color: var(--accent); color: var(--accent); }
.searchable-select-options { position: fixed; z-index: var(--overlay-layer, 130); top: var(--select-options-top, 0); left: var(--select-options-left, 0); display: grid; width: var(--select-options-width, 15rem); max-height: var(--select-options-max-height, 16rem); margin: 0; overflow-y: auto; gap: .2rem; padding: .35rem; border: 1px solid #53667d; border-radius: 10px; background: #1d2a3a; box-shadow: 0 18px 40px #000c; }
.searchable-select-options:popover-open { display: grid; }
.searchable-select-options[hidden] { display: none; }
.searchable-select-option { display: block; width: 100%; padding: .7rem .75rem; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--text); text-align: left; }
.searchable-select-option:hover, .searchable-select-option[aria-selected="true"], .searchable-select-option:focus-visible { border-color: #b87926; background: #e9a23b2b; color: #ffd28b; }
.searchable-select-option:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.searchable-select-empty { padding: .7rem .75rem; color: var(--muted); }
.compact-checkbox { min-height: 2.7rem; align-self: end; white-space: nowrap; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .7rem .75rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
td { font-size: .9rem; }
tbody tr:last-child td { border-bottom: 0; }
tfoot td { padding: .7rem 1rem; border-top: 1px solid var(--border); border-bottom: 0; background: #0e151e; }
.table-summary-row, .table-page-controls { display: flex; align-items: center; gap: .65rem; }
.table-summary-row { justify-content: space-between; color: var(--muted); font-size: .78rem; }
.table-page-controls > span { min-width: 6rem; text-align: center; }
.table-page-controls button:disabled { cursor: not-allowed; opacity: .45; }
.table-refresh { width: 2.15rem; height: 2.15rem; padding: 0; border-color: var(--border); background: var(--surface-2); color: var(--text); font-size: 1.2rem; line-height: 1; }
.table-refresh:hover { border-color: var(--accent); color: var(--accent); }
.row-title { font-weight: 650; }
.row-url { display: block; color: var(--muted); font-size: .76rem; max-width: 26rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.consumer-field > span { color: var(--muted); font-size: .82rem; font-weight: 650; }
.consumer-list { display: grid; gap: .45rem; margin: .45rem 0 0; padding: 0; list-style: none; }
.consumer-list li { border: 1px solid var(--border); border-radius: 7px; background: #0c121a; }
.consumer-link { display: flex; width: 100%; justify-content: space-between; gap: 1rem; padding: .55rem .65rem; border: 0; background: transparent; color: var(--text); text-align: left; }
.consumer-link:hover { background: var(--surface-2); }
.consumer-link span { color: var(--muted); font-size: .75rem; white-space: nowrap; }
.consumer-list .empty-consumer { color: var(--muted); }
.consumer-usage-dialog { width: min(1180px, calc(100vw - 2rem)); }
.consumer-usage-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 1rem; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.consumer-usage-summary div { padding: .8rem 1rem; border-right: 1px solid var(--border); }
.consumer-usage-summary div:last-child { border-right: 0; }
.consumer-usage-summary dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.consumer-usage-summary dd { margin: .25rem 0 0; font-weight: 650; }
.consumer-usage-table { min-width: 960px; }
.reveal-dialog-tabs { gap: 0; margin: 0 -1.5rem 1rem; padding: 0 1.5rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.reveal-dialog-tabs .section-tab { min-height: 3rem; padding: .75rem 1rem; }
.reveal-dialog-tabs .section-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.reveal-section-panel { display: none; min-height: 0; }
.reveal-section-panel.active:not([hidden]) { display: block; }
.reveal-history-table-wrap { max-height: 22rem; overflow: auto; }
.reveal-history-table { min-width: 640px; }
.reveal-history-table .consumer-link { padding: 0; }
.reveal-history-table .consumer-link .row-secondary { font-weight: 500; }
.row-secondary { display: block; margin-top: .15rem; color: var(--muted); font-size: .72rem; text-transform: capitalize; }
.status { display: inline-flex; border-radius: 999px; padding: .25rem .55rem; background: #1d342d; color: #7de4bc; font-size: .72rem; }
.status.success { background: #1d342d; color: #7de4bc; }
.status.denied { background: #3c2025; color: #ff9ba0; }
.status.failed { background: #3c2025; color: #ff9ba0; }
.status.disabled, .status.archived { background: #35282a; color: #f2a2a7; }
.status.warning { margin-left: .35rem; background: #3e301d; color: #f6c66c; }
.row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
.folder-root-drop { margin-bottom: .65rem; padding: .65rem .9rem; border: 1px dashed var(--border); border-radius: 9px; color: var(--muted); font-size: .8rem; text-align: center; transition: border-color 120ms ease, background-color 120ms ease; }
.folder-root-drop.drag-over, .folder-table tr.drag-over { border-color: var(--accent); background: #e9a23b18; }
.folder-table tr.dragging { opacity: .45; }
.vault-tree-row.drag-over { border-radius: 9px; outline: 2px solid var(--accent); background: #e9a23b18; }
.key-table tr[draggable="true"] { cursor: grab; }
.key-table tr.dragging { opacity: .45; }
.folder-table th:first-child, .folder-table td:first-child { width: 8rem; padding-right: .35rem; }
.folder-tree-name { display: flex; align-items: center; gap: .45rem; min-height: 2.25rem; }
.tree-indent { display: inline-flex; align-self: stretch; }
.tree-guide { position: relative; width: 1.5rem; flex: 0 0 1.5rem; }
.tree-guide::before { position: absolute; top: -.95rem; bottom: -.95rem; left: .75rem; width: 1px; background: #40526a; content: ''; }
.tree-guide-end::after { position: absolute; top: 50%; left: .75rem; width: .75rem; height: 1px; background: #40526a; content: ''; }
.tree-toggle, .tree-toggle-spacer { display: inline-grid; width: 1.5rem; height: 1.5rem; flex: 0 0 1.5rem; place-items: center; padding: 0; border: 0; background: transparent; color: var(--accent); }
.tree-toggle:hover { background: var(--surface-2); }
.folder-tree-toggle-target { display: inline-flex; min-width: 0; align-items: center; gap: .45rem; padding: .25rem; border: 0; background: transparent; color: inherit; text-align: left; }
button.folder-tree-toggle-target:hover .row-title, button.folder-tree-toggle-target:focus-visible .row-title { color: var(--accent-strong); text-decoration: underline; text-underline-offset: .2em; }
.folder-tree-leaf { cursor: default; }
.tree-folder { position: relative; width: 1.15rem; height: .82rem; flex: 0 0 1.15rem; border: 1px solid #b87925; border-radius: 2px; background: #49351a; }
.tree-folder::before { position: absolute; top: -.3rem; left: -.05rem; width: .55rem; height: .3rem; border: 1px solid #b87925; border-bottom: 0; border-radius: 2px 2px 0 0; background: #49351a; content: ''; }
.tree-collection { width: 1.1rem; height: .85rem; flex: 0 0 1.1rem; border: 1px solid #6f9fca; border-radius: 3px; background: #243c55; box-shadow: .18rem -.18rem 0 -1px #0f1823, .18rem -.18rem 0 0 #6f9fca; }
.action-menu { position: relative; }
.action-menu summary { min-width: 6rem; padding: .45rem .7rem; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-2); color: var(--text); cursor: pointer; font-size: .78rem; font-weight: 650; list-style: none; text-align: center; }
.action-menu summary::-webkit-details-marker { display: none; }
.action-menu summary::after { margin-left: .45rem; color: var(--muted); content: '▾'; }
.table-row-actions { justify-content: flex-start; flex-wrap: nowrap; }
.compact-action-menu summary { min-width: 2.8rem; font-size: 1.15rem; line-height: .8; }
.compact-action-menu summary::after { display: none; }
.compact-action-menu .action-menu-popover { right: auto; left: 0; }
.action-menu.context-menu-open .action-menu-popover { position: fixed; top: var(--context-menu-top); right: auto; left: var(--context-menu-left); z-index: var(--overlay-layer, 140); }
.action-menu[open] summary { border-color: var(--accent); }
.action-menu-popover { position: absolute; z-index: 8; top: calc(100% + .35rem); right: 0; display: grid; width: max-content; min-width: 11rem; padding: .35rem; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); box-shadow: 0 16px 34px #0009; }
.action-menu-item { width: 100%; padding: .55rem .7rem; border: 0; background: transparent; color: var(--text); font-size: .78rem; text-align: left; }
.action-menu-item:hover:not(:disabled) { background: #ffffff0d; }
.danger-menu-item { color: #ff9ba0; }
.folder-table-wrap, .client-table-wrap { overflow: visible; }
.table-wrap:has(.action-menu[open]) { overflow: visible; }
.permission-group-table-wrap { overflow: visible; }
table th:first-child:has(.sr-only),
table td:first-child:has(.table-row-actions),
table td:first-child:has(> .action-menu) { width: 1%; padding-right: .2rem; white-space: nowrap; }
table th:first-child:has(.sr-only) + th,
table td:first-child:has(.table-row-actions) + td,
table td:first-child:has(> .action-menu) + td { padding-left: .35rem; }
.vault-browser { --vault-folder-width: 35%; display: grid; grid-template-columns: minmax(15rem, var(--vault-folder-width)) .7rem minmax(0, 1fr); gap: 0; align-items: start; }
.vault-browser.folders-collapsed { grid-template-columns: minmax(0, 1fr); }
.vault-browser.folders-collapsed .vault-folders-column { display: none; }
.vault-browser.folders-collapsed .vault-resizer { display: none; }
.vault-folders-column { position: sticky; top: 1rem; min-width: 0; }
.vault-resizer { position: relative; min-width: 0; cursor: col-resize; touch-action: none; user-select: none; }
.vault-resizer::after { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; border-radius: 2px; background: var(--border); content: ''; transform: translateX(-50%); transition: background-color 120ms ease, width 120ms ease; }
.vault-resizer:hover::after, .vault-resizer:focus-visible::after { width: 4px; background: var(--accent); }
.vault-resizer:focus-visible { outline: 0; }
.keys-panel { min-width: 0; }
.keys-heading { display: flex; min-height: 3.7rem; align-items: flex-end; justify-content: space-between; gap: .75rem; }
.vault-tree-panel { display: flex; min-width: 0; max-height: calc(100vh - 20rem); padding: .7rem; flex-direction: column; }
.vault-tree-heading, .vault-items-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 3rem; margin-bottom: .8rem; }
.vault-tree-heading h3, .vault-items-heading h3 { margin: 0; }
.vault-tree-heading .eyebrow, .vault-items-heading .eyebrow { margin-bottom: .2rem; }
.vault-tree-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
.section-heading-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
.vault-folder-tree { display: grid; min-height: 0; overflow-y: auto; align-content: start; grid-auto-rows: max-content; gap: .2rem; padding-right: .3rem; scrollbar-gutter: stable; }
.vault-tree-row { display: flex; min-width: 0; align-items: center; }
.vault-tree-row[data-depth="0"] { margin-bottom: .35rem; padding-bottom: .45rem; border-bottom: 1px solid var(--border); }
.vault-tree-guides { display: inline-flex; align-self: stretch; }
.vault-tree-guide { position: relative; width: 1.25rem; flex: 0 0 1.25rem; }
.vault-tree-guide::before { position: absolute; inset: -.2rem auto -.2rem .6rem; width: 1px; background: #40526a; content: ''; }
.vault-tree-guide.end::after { position: absolute; top: 50%; left: .6rem; width: .65rem; height: 1px; background: #40526a; content: ''; }
.vault-tree-toggle, .vault-tree-toggle-spacer { display: inline-grid; width: 1.7rem; height: 1.9rem; flex: 0 0 1.7rem; place-items: center; padding: 0; border: 0; background: transparent; color: var(--accent); }
.vault-tree-toggle:hover { background: var(--surface-2); }
.vault-tree-select { display: flex; min-width: 0; flex: 1; align-items: center; gap: .55rem; padding: .52rem .6rem; border: 1px solid transparent; background: transparent; color: var(--text); text-align: left; }
.vault-tree-select:hover { border-color: var(--border); background: #ffffff08; }
.vault-tree-select.selected { border-color: #9b6d2d; background: #e9a23b18; color: #ffd18c; }
.vault-tree-select .tree-folder { margin-left: .1rem; }
.vault-tree-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vault-tree-count { margin-left: auto; border-radius: 999px; padding: .12rem .4rem; background: var(--surface-2); color: var(--muted); font-size: .68rem; font-variant-numeric: tabular-nums; }
.vault-folder-menu { margin-left: .25rem; }
.vault-folder-menu summary { min-width: 2.35rem; padding: .42rem .45rem; font-size: 1rem; line-height: .8; }
.vault-folder-menu summary::after { display: none; }
.vault-items-panel { min-width: 0; }
.audit-table { min-width: 1180px; }
.audit-row { cursor: pointer; transition: background-color 140ms ease; }
.audit-row:hover, .audit-row.selected { background: #1a2532; }
.audit-row:focus-within { outline: 2px solid var(--accent); outline-offset: -3px; }
.audit-row code { color: #dce8f4; }
.audit-reason { min-width: 15rem; max-width: 28rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-row-open { width: 2.5rem; color: var(--accent); font-size: 1.5rem; text-align: center; }
.audit-row-button { min-width: 2rem; padding: .2rem .55rem; border: 0; background: transparent; color: var(--accent); font-size: 1.5rem; }
.audit-row-button:focus { outline: 0; }
.audit-filters { display: grid; grid-template-columns: 1.25fr 1.25fr .8fr .8fr .8fr auto; gap: .8rem; margin-bottom: 1rem; padding: 1rem; align-items: end; }
.audit-filter-actions { display: flex; gap: .65rem; }
.empty { color: var(--muted); text-align: center; padding: 3rem; }
.toast-region { position: fixed; inset: auto 1.25rem 1.25rem auto; z-index: 1000; display: grid; width: min(26rem, calc(100vw - 2rem)); margin: 0; padding: 0; border: 0; gap: .65rem; background: transparent; pointer-events: none; }
.toast-region:not(:popover-open) { display: none; }
.toast-region::backdrop { display: none; }
.toast { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: .75rem; padding: .9rem 1rem; border: 1px solid #2a7057; border-radius: 10px; background: #19372e; color: #f4f7fb; box-shadow: 0 14px 38px rgb(0 0 0 / 45%); pointer-events: auto; animation: toast-arrive 180ms ease-out; }
.toast-error { background: #3c2025; border-color: #883d48; }
.toast-message { min-width: 0; overflow-wrap: anywhere; }
.toast-close { min-width: 1.5rem; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: 1.25rem; line-height: 1; cursor: pointer; }
.toast-leaving { opacity: 0; transform: translateY(.5rem); transition: opacity 180ms ease, transform 180ms ease; }
@keyframes toast-arrive { from { opacity: 0; transform: translateY(.75rem); } }
.message { margin-bottom: 1rem; padding: .9rem 1rem; border-radius: 9px; background: #19372e; border: 1px solid #2a7057; }
.message.error { background: #3c2025; border-color: #883d48; }
.dialog-inline-status { margin: .75rem 0 0; padding: .75rem; border: 1px solid #5b6470; border-radius: 8px; background: #17202b; }
.dialog-inline-status.error { background: #3c2025; border-color: #883d48; color: #ffb4bd; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.device-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.deployment-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.deployment-card { display: flex; flex-direction: column; }
.deployment-card .device-card-actions { margin-top: auto; padding-top: 1rem; }
.deployment-detail-heading { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.deployment-tabs { display: flex; gap: .35rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); }
.runtime-detail-section { display: none; }
.runtime-detail-section.active { display: block; }
.administrative-access-table-wrap { max-height: min(58vh, 46rem); }
.administrative-access-cell { display: grid; grid-template-columns: minmax(7.5rem, 1fr) auto; align-items: center; gap: .35rem; min-width: 10.5rem; }
#administrative-access-dialog { width: min(1500px, calc(100vw - 2rem)); }
.deployment-tab { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); }
.deployment-tab.active { border-color: var(--accent); color: var(--text); }
.deployment-panel { display: none; }
.deployment-panel.active { display: block; }
.deployment-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; }
.deployment-overview div { padding: 1rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.deployment-overview dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.deployment-overview dd { margin: .35rem 0 0; overflow-wrap: anywhere; }
.card { padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.card-meta { color: var(--muted); font-size: .78rem; }
.section-intro { max-width: 56rem; color: var(--muted); }
.permission-summary { padding: 1rem; border: 1px solid var(--border); border-radius: 9px; background: #0d141d; }
.permission-summary p { margin: .4rem 0 0; color: var(--muted); } .authorization-verification { margin-top: 1rem; } .authorization-verification label { margin-top: .85rem; }
.device-card-heading, .device-card-heading > div { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.device-card-heading h3 { margin: 0; }
.device-card-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.device-details { display: grid; gap: .7rem; margin: 1rem 0 0; }
.device-details div { display: grid; grid-template-columns: 7rem 1fr; gap: .5rem; }
.device-details dt { color: var(--muted); font-size: .75rem; text-transform: uppercase; }
.device-details dd { margin: 0; overflow-wrap: anywhere; }
dialog, .base-modal { width: min(720px, calc(100vw - 2rem)); min-width: min(320px, calc(100vw - 2rem)); min-height: 180px; max-width: calc(100vw - 1.5rem); max-height: calc(100vh - 1.5rem); overflow: auto; resize: both; container-type: inline-size; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); padding: 1.4rem; box-shadow: 0 30px 80px #000c; }
.wide-dialog { width: min(1200px, calc(100vw - 2rem)); }
.key-history-table-wrap { margin-top: 1rem; overflow: auto; }
.key-history-table { min-width: 900px; }
.key-history-table .status { margin-left: .55rem; }
#key-version-view-recovery-codes, #key-version-view-match-url { display: block; white-space: pre-wrap; }
dialog::backdrop { background: rgb(2 5 10 / 50%); backdrop-filter: blur(6px); }
.dialog-heading { display: flex; justify-content: space-between; margin-bottom: 1rem; }
.base-modal-title-handle { cursor: grab; touch-action: none; user-select: none; }
.base-modal-title-handle.dragging { cursor: grabbing; }
#key-dialog { width: 95vw; height: 95vh; max-width: 1400px; max-height: 95vh; overflow: hidden; padding: 0; }
#key-form { display: flex; height: 100%; max-height: none; flex-direction: column; }
.key-dialog-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--border); background: #172231; }
.key-dialog-header .dialog-heading { flex: 1 1 auto; margin-bottom: 0; }
.key-dialog-header .dialog-actions { margin-top: 0; }
.key-submit-help { position: relative; display: inline-flex; }
.key-submit-help[data-disabled="true"] { cursor: not-allowed; }
.key-submit-help[data-disabled="true"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 5px; }
.key-submit-tooltip { position: absolute; z-index: 2; top: calc(100% + .45rem); right: 0; display: none; width: min(22rem, calc(100vw - 3rem)); padding: .65rem .75rem; border: 1px solid var(--border); border-radius: 8px; background: #0c121a; box-shadow: 0 16px 40px #000b; color: var(--text); font-size: .78rem; font-weight: 500; line-height: 1.4; pointer-events: none; }
.key-submit-help[data-disabled="true"]:hover .key-submit-tooltip, .key-submit-help[data-disabled="true"]:focus-within .key-submit-tooltip { display: block; }
.key-dialog-body { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; overflow: hidden; }
.key-dialog-tabs { flex: 0 0 auto; gap: 0; margin: 0; padding: 0 1.4rem; background: #101720; }
.key-dialog-tabs .section-tab { min-height: 3rem; padding: .75rem 1rem; }
.key-dialog-tabs .section-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.key-section-panel { display: none; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 1.4rem; }
.key-section-panel.active:not([hidden]) { display: block; }
.form-grid.key-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem 1rem; }
.key-form-grid .key-span-2 { grid-column: span 2; }
.key-form-grid .key-full { grid-column: 1 / -1; }
.key-secret-fields { display: contents; }
.key-secret-field { display: grid; gap: .4rem; color: var(--muted); font-size: .82rem; font-weight: 650; }
.protected-fields-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.protected-fields-toolbar p { margin: 0; color: var(--muted); }
.key-form-grid input[readonly] { color: var(--muted); cursor: not-allowed; }
.key-form-grid .key-generate { align-self: end; justify-self: start; min-height: 2.7rem; }
.key-form-grid textarea { min-height: 7rem; }
.key-match-urls-field, .key-match-urls-control { display: grid; gap: .45rem; } .key-match-url-row { display: flex; align-items: center; gap: .45rem; } .key-match-url-row input { flex: 1 1 auto; min-width: 0; } .key-match-url-row button { flex: 0 0 auto; }
.key-consumer-table-wrap { max-height: 9rem; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.key-consumer-table th, .key-consumer-table td { padding: .5rem .7rem; }
.key-consumer-table th { background: #0c121a; color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.key-consumer-table .consumer-link { padding: 0; }
.key-consumer-table .empty-consumer td { color: var(--muted); }
.key-detail-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 0 0 1.25rem; }
.key-detail-list > div { min-width: 0; padding: 1rem; border: 1px solid var(--border); border-radius: 10px; background: #0c121a; }
.key-detail-list dt { margin-bottom: .3rem; color: var(--muted); font-size: .7rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.key-detail-list dd { margin: 0; overflow-wrap: anywhere; }
.key-detail-list .copy-value { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.key-detail-list code { user-select: all; }
.key-section-panel .consumer-field { display: grid; gap: .45rem; }
.icon-button { display: grid; width: 2.5rem; height: 2.5rem; padding: 0; place-items: center; border: 0; background: transparent; color: var(--muted); font-size: 1.8rem; line-height: 1; }
.dialog-heading-actions { display: flex; align-items: center; gap: .35rem; }
.heading-with-help { display: flex; align-items: center; gap: .55rem; }
.heading-with-help h3 { margin: 0; }
.context-help { position: relative; flex: 0 0 auto; line-height: 1; }
.context-help summary { display: grid; width: 2.5rem; height: 2.5rem; cursor: help; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: #0c121a; color: var(--muted); font-size: 1.15rem; font-weight: 650; line-height: 1; list-style: none; }
.context-help summary::-webkit-details-marker { display: none; }
.context-help[open] summary, .context-help summary:hover, .context-help summary:focus-visible { border-color: var(--accent); color: var(--text); }
.context-help-content { position: absolute; z-index: 20; top: calc(100% + .45rem); right: 0; width: min(24rem, calc(100vw - 4rem)); padding: .8rem .9rem; border: 1px solid var(--border); border-radius: 9px; background: #0c121a; box-shadow: 0 16px 40px #000b; color: var(--text); font-size: .82rem; font-weight: 500; line-height: 1.45; }
.context-help:not([open]) .context-help-content { display: none; }
.context-help:not([open]):hover .context-help-content, .context-help:not([open]):focus-within .context-help-content { display: block; }
.optional-label { color: var(--muted); font-size: .8em; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-help {
  display: block;
  margin-top: .4rem;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.4;
}
.read-only-value { display: block; min-height: 2.7rem; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: 8px; background: #0c121a; color: var(--text); }
.compact-dialog { width: min(600px, calc(100vw - 2rem)); }
.trusted-unlock-section { margin: 1rem 0; }
.trusted-unlock-section h3, #trusted-unlock-dialog h3 { margin: 0 0 .65rem; }
.trusted-unlock-list { display: grid; gap: .55rem; }
.trusted-unlock-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem; border: 1px solid var(--border); border-radius: 9px; background: #0c121a; }
.trusted-unlock-row > div:first-child { display: grid; gap: .18rem; min-width: 0; }
.trusted-unlock-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trusted-unlock-row small { color: var(--muted); } .trusted-unlock-row small.warning { color: var(--warning, #f5c26b); }
.trusted-unlock-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.trusted-unlock-enroll-actions { margin: .8rem 0 1.2rem; }
.trusted-unlock-options { display: grid; gap: .75rem; margin: .8rem 0 1.2rem; }
.trusted-unlock-options section { display: grid; gap: .55rem; padding: .8rem; border: 1px solid var(--border); border-radius: 9px; background: #0c121a; }
.trusted-unlock-options p { margin: 0; }
.trusted-unlock-options button { justify-self: start; }
.trusted-unlock-advanced { margin-top: .85rem; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: 9px; background: #0c121a; }
.trusted-unlock-advanced summary { cursor: pointer; font-weight: 650; }
.trusted-unlock-advanced > p, .trusted-unlock-advanced > section:first-of-type { margin-top: .8rem; }
.section-divider { display: flex; align-items: center; gap: .7rem; margin: 1rem 0; color: var(--muted); font-size: .75rem; text-transform: uppercase; }
.section-divider::before, .section-divider::after { height: 1px; flex: 1; background: var(--border); content: ''; }
.compact-form-grid { gap: .75rem; }
.folder-move-tree { max-height: min(44vh, 24rem); overflow: auto; padding: .65rem; border: 1px solid var(--border); border-radius: 9px; background: #0c121a; }
.folder-move-tree-panel { overflow: hidden; border: 1px solid var(--border); border-radius: 9px; background: #0c121a; }
.folder-move-tree-panel > summary { cursor: pointer; padding: .7rem .8rem; color: var(--text); font-weight: 700; }
.folder-move-tree-panel[open] > summary { border-bottom: 1px solid var(--border); }
.folder-move-tree-panel > .folder-move-tree { border: 0; border-radius: 0; background: transparent; }
.folder-move-tree ul { margin: 0; padding-left: 1.25rem; list-style: none; }
.folder-move-tree > ul { padding-left: 0; }
.folder-move-tree li { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr) auto; align-items: center; }
.folder-move-tree li > ul { grid-column: 1 / -1; }
.folder-move-option { display: flex; width: auto; min-width: 0; align-items: center; gap: .55rem; padding: .5rem .65rem; border: 1px solid transparent; background: transparent; color: var(--text); text-align: left; }
.folder-move-option:hover:not(:disabled), .folder-move-option.selected { border-color: #875d22; background: #e9a23b18; color: #ffd28b; }
.folder-move-option:disabled { opacity: .35; }
.folder-move-toggle, .folder-move-toggle-spacer { width: 1.8rem; height: 1.8rem; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--accent); }
.folder-move-toggle { cursor: pointer; }
.folder-move-menu { width: 0; justify-self: end; }
.folder-move-collection-row { display: flex; align-items: end; gap: .65rem; }
.folder-move-collection-row .searchable-select { min-width: 0; flex: 1 1 auto; }
.folder-move-collection-row > button { flex: 0 0 auto; white-space: nowrap; }
.import-destination-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.import-destination-toolbar h3 { margin: 0; }
.import-destination-toolbar p { margin: .25rem 0 0; } .import-destination-filters { display: grid; gap: .75rem; margin-bottom: .75rem; } .import-destination-filters > label { margin: 0; }
.import-destination-collection-row { margin-bottom: .75rem; } .import-destination-filters .import-destination-collection-row { margin-bottom: 0; }
#key-import-destination-tree { min-height: 12rem; }
#folder-move-dialog { width: min(720px, calc(100vw - 2rem)); }
#user-dialog { width: min(620px, calc(100vw - 2rem)); padding: 1.1rem; }
#user-dialog .dialog-heading { margin-bottom: .75rem; }
#user-dialog .form-grid { gap: .75rem; }
#user-dialog fieldset { margin: .75rem 0; }
#user-dialog .warning { margin: .75rem 0 0; }
#user-dialog .dialog-actions { margin-top: 1rem; }
.full { grid-column: 1 / -1; }
.checkbox { display: flex; align-items: center; gap: .55rem; }
.checkbox input { width: auto; }
.dialog-actions { margin-top: 1.5rem; }
.installer-dialog { width: min(820px, calc(100vw - 2rem)); min-width: min(520px, calc(100vw - 2rem)); min-height: min(560px, calc(100vh - 2rem)); height: min(700px, calc(100vh - 2rem)); overflow: hidden; } .installer-dialog[open] { display: flex; flex-direction: column; } .installer-dialog .dialog-heading { flex: 0 0 auto; align-items: center; } .installer-dialog-body { min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: .15rem .4rem .15rem 0; scrollbar-gutter: stable; } .installer-dialog-body > :first-child { margin-top: 0; } .installer-dialog .dialog-actions { flex: 0 0 auto; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
@container (max-width: 44rem) { .base-modal .form-grid, .base-modal .form-grid.key-form-grid, .base-modal .key-detail-list, .base-modal .profile-detail-list, .base-modal .audit-detail-list, .base-modal .metadata-grid, .base-modal .deployment-overview, .base-modal .consumer-usage-summary, .base-modal .resource-access-settings { grid-template-columns: 1fr; } .base-modal .key-dialog-header, .base-modal .dialog-header, .base-modal .protected-fields-toolbar, .base-modal .folder-move-collection-row, .base-modal .import-destination-toolbar, .base-modal .trusted-unlock-row, .base-modal .profile-setting-card { align-items: stretch; flex-direction: column; grid-template-columns: 1fr; } .base-modal .dialog-actions { flex-wrap: wrap; } }
.secret-list { display: grid; gap: 1rem; }
.secret-list div { padding-bottom: .75rem; border-bottom: 1px solid var(--border); }
.secret-list dt { color: var(--muted); font-size: .75rem; text-transform: uppercase; }
.secret-list dd { margin: .35rem 0 0; white-space: pre-wrap; word-break: break-word; }
.secret-list code { color: #ffe3b8; margin-right: .6rem; }
.warning { padding: .75rem; border-radius: 8px; background: #382b1c; color: #f2ca8d; font-size: .82rem; }
.governance-summary { margin: 0; }
.governance-issue-table, .governance-review-table { min-width: 58rem; }
.governance-review-table th:first-child, .governance-review-table td:first-child { width: 11rem; }
.governance-review-table th:nth-child(2), .governance-review-table td:nth-child(2) { width: 18rem; }
.governance-review-table button { white-space: nowrap; }
.governance-resource-name strong, .governance-resource-name small,
.governance-review-name strong, .governance-review-name small { display: block; }
.governance-resource-name small, .governance-review-name small { margin-top: .3rem; color: var(--muted); font-size: .75rem; line-height: 1.35; }
.governance-issue-table td:last-child { min-width: 22rem; }
.status.high, .status.overdue { background: #51242a; color: #ffb4bd; }
.status.medium, .status.due-soon { background: #44331d; color: #ffd18a; }
.status.current { background: #193b31; color: #83e5bd; }
fieldset { margin: 1rem 0; border: 1px solid var(--border); border-radius: 9px; }
legend { color: var(--muted); padding: 0 .4rem; }
.check-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .5rem; }
.check-list label { display: flex; align-items: center; gap: .45rem; }
.check-list input { width: auto; }
.resource-access-dialog { width: min(1320px, calc(100vw - 2rem)); }
.resource-access-heading { align-items: flex-start; gap: 1.25rem; }
.resource-access-heading-actions { display: flex; align-items: flex-start; gap: .75rem; }
.resource-access-filter { width: min(18rem, 32vw); }
.resource-access-settings { display: grid; grid-template-columns: minmax(16rem, 1fr) minmax(20rem, 1.6fr); gap: 1rem; margin-bottom: 1rem; align-items: end; }
.resource-access-settings:empty { display: none; }
.permission-state { min-width: 7.4rem; font-weight: 650; border-width: 2px; }
.permission-state.effective-yes { color: #9ee6b0; border-color: #2f8150; background: #10271b; }
.permission-state.effective-no { color: #ff9da7; border-color: #91434c; background: #2c1519; }
.permission-state.state-auto { border-style: dashed; }
.permission-state:disabled { opacity: .72; cursor: not-allowed; filter: saturate(.35); }
.permission-state.dependency-locked:disabled { border-color: #7b3f48; background: #321a1f; color: #e18b96; opacity: .82; filter: saturate(.65); }
.permission-table-wrap { max-height: min(48vh, 34rem); margin-bottom: 1rem; border: 1px solid var(--border); border-radius: 9px; }
.permission-table { min-width: 1080px; }
.permission-table th { white-space: nowrap; }
.permission-table th:first-child, .permission-table td:first-child { width: 17rem; min-width: 17rem; }
.permission-table th:not(:first-child), .permission-table td:not(:first-child) { width: 8rem; text-align: center; }
.permission-table input { width: auto; }
.permission-table [data-permission-all] { display: block; width: 2.75rem; height: 2.75rem; margin: auto; padding: 0; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(50% - .22rem) 50%, calc(50% + .22rem) 50%; background-repeat: no-repeat; background-size: .28rem .28rem; color: transparent; }
.permission-table [data-permission-all] option { color: var(--text); }
.permission-admin-cell { text-align: center; }
.permission-admin { display: inline-flex; min-width: 8rem; min-height: 2.75rem; align-items: center; justify-content: center; border: 2px solid #2f8150; border-radius: 5px; background: #10271b; color: #9ee6b0; font-weight: 650; }
.token-output { display: block; padding: 1rem; border: 1px solid #7d5c29; background: #0a0e13; word-break: break-all; color: #ffd697; }
.automation-collection-list { max-height: 12rem; overflow: auto; padding: .75rem; border: 1px solid var(--border); border-radius: 9px; background: #0c121a; }
.totp-dialog { width: min(480px, calc(100vw - 2rem)); text-align: center; }
.totp-dialog .dialog-heading { text-align: left; }
.totp-code { display: block; margin: 1.5rem 0 .75rem; color: #ffe3b8; font-size: clamp(2.8rem, 12vw, 4.5rem); font-weight: 650; letter-spacing: .16em; } .reveal-totp-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, .65fr); gap: 1rem; align-items: start; } .reveal-totp-section { margin: 0; padding: .75rem; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface-muted); } .reveal-totp-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; } .reveal-totp-heading h3 { margin: 0; font-size: .85rem; } .reveal-totp-code { margin: .5rem 0 .2rem; font-size: 2rem; letter-spacing: .1em; }
.totp-validity { color: var(--muted); font-variant-numeric: tabular-nums; }
.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; }
.drawer-open { overflow: hidden; }
.base-drawer-backdrop, .drawer-backdrop { position: fixed; inset: 0; z-index: var(--overlay-layer, 100); border: 0; border-radius: 0; background: rgb(2 5 10 / 50%); opacity: 0; pointer-events: none; backdrop-filter: blur(6px); transition: opacity 180ms ease; }
.base-drawer-backdrop.open, .drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.base-drawer, .audit-drawer { position: fixed; inset: 0 0 0 auto; z-index: var(--overlay-layer, 101); width: min(560px, 100vw); min-width: min(320px, 100vw); max-width: calc(100vw - .75rem); height: 100dvh; overflow: auto; padding: 1.5rem; border-left: 1px solid var(--border); background: linear-gradient(180deg, #172231 0, var(--surface) 12rem); box-shadow: -24px 0 70px #000b; transform: translateX(102%); visibility: hidden; transition: transform 220ms ease, visibility 220ms; }
.base-drawer.open, .audit-drawer.open { transform: translateX(0); visibility: visible; }
.base-drawer-resizer { position: fixed; z-index: calc(var(--overlay-layer, 101) + 1); top: 0; bottom: 0; left: -5px; width: 10px; cursor: col-resize; touch-action: none; }
.base-drawer-resizer::after { position: absolute; top: 0; bottom: 0; left: 4px; width: 2px; background: transparent; content: ''; transition: background 120ms ease; }
.base-drawer-resizer:hover::after, .base-drawer-resizer:focus-visible::after { background: var(--accent); }
.drawer-heading { position: sticky; top: -1.5rem; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; margin: -1.5rem -1.5rem 1.25rem; padding: 1.5rem; border-bottom: 1px solid var(--border); background: #172231f2; backdrop-filter: blur(12px); }
.audit-drawer-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border: 1px solid #3a4b60; border-radius: 12px; background: #0d141d99; }
.audit-drawer-summary > div { display: grid; gap: .3rem; min-width: 0; }
.audit-drawer-summary strong { overflow-wrap: anywhere; }
.detail-label, .audit-detail-list dt { color: var(--muted); font-size: .7rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.audit-detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 1.25rem 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.audit-detail-list > div { min-width: 0; padding: .85rem 1rem; border-bottom: 1px solid var(--border); }
.audit-detail-list > div:nth-child(odd):not(.full-detail) { border-right: 1px solid var(--border); }
.audit-detail-list > div:last-child { border-bottom: 0; }
.audit-detail-list .full-detail { grid-column: 1 / -1; }
.audit-detail-list dt { margin-bottom: .3rem; }
.audit-detail-list dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.audit-detail-list code { color: #dce8f4; }
.audit-detail-section h3 { margin: 0 0 .65rem; font-size: .9rem; }
.audit-detail-section pre { min-height: 7rem; margin: 0; padding: 1rem; overflow: auto; border: 1px solid var(--border); border-radius: 10px; background: #090e14; color: #cfe0ef; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (min-width: 601px) {
  body:has(#application-main:not([hidden]) #vault-view.active) { display: flex; height: 100vh; min-height: 0; overflow: hidden; flex-direction: column; }
  body:has(#application-main:not([hidden]) #imports-view.active) { display: flex; height: 100vh; min-height: 0; overflow: hidden; flex-direction: column; }
  body:has(#application-main:not([hidden]) #vault-view.active) #application-header,
  body:has(#application-main:not([hidden]) #vault-view.active) #application-nav,
  body:has(#application-main:not([hidden]) #imports-view.active) #application-header,
  body:has(#application-main:not([hidden]) #imports-view.active) #application-nav { flex: 0 0 auto; }
  body:has(#application-main:not([hidden]) #vault-view.active) #application-main,
  body:has(#application-main:not([hidden]) #imports-view.active) #application-main { width: 100%; min-height: 0; flex: 1 1 auto; overflow: hidden; padding-top: .35rem; padding-bottom: .5rem; }
  #vault-view.active { display: flex; height: 100%; min-height: 0; flex-direction: column; }
  #vault-view.active .vault-toolbar { flex: 0 0 auto; }
  #vault-view.active .vault-browser { min-height: 0; flex: 1 1 auto; overflow: hidden; align-items: stretch; }
  #vault-view.active .vault-folders-column,
  #vault-view.active .keys-panel { display: flex; min-height: 0; flex-direction: column; }
  #vault-view.active .vault-folders-column { position: static; }
  #vault-view.active .keys-heading { flex: 0 0 auto; }
  #vault-view.active .vault-tree-panel,
  #vault-view.active .key-table-wrap { min-height: 0; max-height: none; flex: 1 1 auto; }
  #vault-view.active .vault-folder-tree { min-height: 0; flex: 1 1 auto; overflow-y: auto; }
  #vault-view.active .key-table-wrap,
  #vault-view.active .key-table-wrap:has(.action-menu[open]) { overflow: auto; scrollbar-gutter: stable; }
  #vault-view.active .key-table thead { position: sticky; z-index: 2; top: 0; background: var(--surface); }
  #imports-view.active { display: flex; height: 100%; min-height: 0; flex-direction: column; } #imports-view.active .import-workspace { min-height: 0; flex: 1 1 auto; overflow: hidden; align-items: stretch; } #imports-view.active .import-navigation-panel, #imports-view.active .import-records-panel { min-height: 0; max-height: none; overflow: hidden; display: flex; flex-direction: column; } #imports-view.active .import-batches-panel { flex: 0 0 auto; max-height: 14rem; overflow-y: auto; } #imports-view.active .import-folder-panel { min-height: 0; flex: 1 1 auto; display: flex; overflow: hidden; flex-direction: column; } #imports-view.active .import-folder-panel .vault-folder-tree { min-height: 0; max-height: none; flex: 1 1 auto; overflow-y: auto; } #imports-view.active #import-record-tree { min-height: 0; flex: 1 1 auto; overflow-y: auto; scrollbar-gutter: stable; }
  .import-render-more { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .9rem; color: var(--muted); }
}
@media (max-width: 920px) {
  .app-header, .tabs, main { padding-left: 1rem; padding-right: 1rem; }
  .app-header { align-items: flex-start; gap: 1rem; }
  .header-organization-switcher { grid-template-columns: auto minmax(10rem, 1fr); }
  .header-account-email { display: none; }
  .tabs { overflow-x: auto; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .vault-toolbar { grid-template-columns: 1fr 1fr; }
  .vault-toolbar .toolbar-actions { grid-column: 1 / -1; }
  .vault-browser { grid-template-columns: minmax(12rem, var(--vault-folder-width)) .7rem minmax(0, 1fr); }
  .audit-filters { grid-template-columns: repeat(3, 1fr); }
  .key-detail-list { grid-template-columns: 1fr 1fr; }
  .toolbar-actions { grid-column: 1 / -1; flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .permission-audit-selectors { grid-template-columns: 1fr; }
  .toolbar, .form-grid { grid-template-columns: 1fr; }
  .form-grid.key-form-grid { grid-template-columns: 1fr; }
  .key-form-grid .key-span-2 { grid-column: auto; }
  .key-form-grid .key-full { grid-column: auto; }
  .vault-browser { grid-template-columns: 1fr; }
  .vault-resizer { display: none; }
  .vault-folders-column { position: static; }
  .vault-tree-panel { max-height: none; }
  .vault-folder-tree { overflow-y: visible; }
  .resource-access-settings { grid-template-columns: 1fr; } .reveal-totp-layout { grid-template-columns: 1fr; }
  .resource-access-heading { flex-direction: column; }
  .resource-access-heading-actions { width: 100%; }
  .resource-access-filter { width: 100%; }
  .audit-filters { grid-template-columns: 1fr; }
  .audit-filter-actions { justify-content: flex-end; }
  .key-dialog-header { align-items: stretch; flex-direction: column; }
  .trusted-unlock-row { align-items: stretch; flex-direction: column; }
  .trusted-unlock-actions { justify-content: flex-start; }
  .full, .toolbar-actions { grid-column: auto; }
  .summary-row, .section-heading, .organization-lifecycle-card { align-items: flex-start; gap: 1rem; flex-direction: column; }
  .organization-usage-grid { grid-template-columns: repeat(2, minmax(9rem, 1fr)); }
  .danger-actions, .section-actions { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .compact-select { min-width: min(100%, 18rem); }
  .consumer-link { align-items: flex-start; flex-direction: column; }
  .device-card-grid, .deployment-card-grid, .deployment-overview { grid-template-columns: 1fr; }
  .deployment-detail-heading { grid-template-columns: 1fr; }
  .consumer-link span { white-space: normal; }
  .consumer-usage-summary { grid-template-columns: 1fr; }
  .consumer-usage-summary div { border-right: 0; border-bottom: 1px solid var(--border); }
  .consumer-usage-summary div:last-child { border-bottom: 0; }
  .table-summary-row { align-items: flex-start; flex-direction: column; }
  .table-page-controls { width: 100%; flex-wrap: wrap; }
  .key-table th:nth-child(5), .key-table td:nth-child(5) { display: none; }
  .audit-drawer { width: 100vw; padding: 1rem; }
  .drawer-heading { top: -1rem; margin: -1rem -1rem 1rem; padding: 1rem; }
  .audit-detail-list { grid-template-columns: 1fr; }
  .audit-detail-list > div:nth-child(odd):not(.full-detail) { border-right: 0; }
  .audit-detail-list .full-detail { grid-column: auto; }
  .section-tabs { overflow-x: auto; }
  .profile-detail-list { grid-template-columns: 1fr; }
  .key-detail-list { grid-template-columns: 1fr; }
  .profile-setting-card { grid-template-columns: 1fr; align-items: stretch; }
  .profile-setting-card button { justify-self: start; }
  .installer-dialog { width: calc(100vw - 1rem); min-width: calc(100vw - 1rem); min-height: calc(100vh - 1rem); height: calc(100vh - 1rem); padding: 1rem; } .installer-dialog .dialog-actions { align-items: stretch; flex-direction: column-reverse; } .installer-dialog .dialog-actions > * { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .toast, .toast-leaving { animation: none; transition: none; }
  .audit-row, .drawer-backdrop, .audit-drawer { transition: none; }
}

.permission-group-member-list { list-style: none; margin: 0.5rem 0; padding: 0; display: grid; gap: 0.35rem; max-height: 18rem; overflow-y: auto; }
.permission-group-member-list .checkbox { align-items: flex-start; }
.permission-audit-result { margin-top: 1rem; padding: 1rem; display: grid; gap: 0.75rem; }
.permission-audit-selectors { display: grid; grid-template-columns: minmax(12rem, 16rem) minmax(18rem, 1fr) minmax(16rem, 24rem); gap: .75rem; }
.permission-audit-tabs { margin: -.25rem 0 .25rem; }
.permission-audit-section-panel { display: none; }
.permission-audit-section-panel.active { display: block; }
.permission-audit-summary { display: grid; gap: 0.5rem; }
.permission-audit-summary .eyebrow, .permission-audit-summary .row-title { display: block; }
.permission-audit-readiness { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; }
.permission-audit-readiness div { display: grid; gap: 0.15rem; }
.permission-audit-readiness dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.7; }
.permission-audit-readiness dd { margin: 0; font-size: 1.25rem; font-weight: 600; }
.permission-audit-folder-tree { display: grid; gap: .65rem; }
.permission-audit-folder-tree details { border: 1px solid var(--border); border-radius: 10px; background: #0c121a; }
.permission-audit-folder-tree details details { margin: 0 .75rem .75rem 1.5rem; }
.permission-audit-folder-tree summary { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(20rem, 1.5fr); align-items: center; gap: .75rem; padding: .75rem; cursor: pointer; list-style: none; }
.permission-audit-folder-tree summary::-webkit-details-marker { display: none; }
.permission-audit-folder-identity { display: flex; min-width: 0; align-items: center; gap: .55rem; }
.permission-audit-expand-indicator { width: 1rem; color: var(--accent); font-size: 1.45rem; font-weight: 650; line-height: 1; transform-origin: center; transition: transform .15s ease; }
.permission-audit-folder-tree details[open] > summary .permission-audit-expand-indicator { transform: rotate(90deg); }
.permission-audit-folder-tree summary:hover .row-title, .permission-audit-folder-tree summary:hover .folder-audit-collection { color: var(--accent-strong); }
.permission-audit-folder-tree .folder-audit-actions { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 .75rem .75rem 1.75rem; }
.permission-audit-folder-tree .folder-audit-paths { padding: 0 .75rem .75rem 1.75rem; }
.permission-audit-folder-tree .folder-audit-collection { margin: .25rem 0; color: var(--muted); font-size: .78rem; font-weight: 650; text-transform: uppercase; }
.audit-path-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; font-size: 0.85rem; }
.matching-toolbar { grid-template-columns: minmax(13rem, .7fr) minmax(18rem, 1.5fr) auto; margin-bottom: 1rem; }
.matching-workspace-tabs, .runtime-filters { margin-bottom: 1rem; }
.matching-section-panel, .matching-editor-panel { display: none; }
.matching-section-panel.active, .matching-editor-panel.active { display: block; }
.matching-test-panel { padding: 1.25rem; }
.matching-fixture { min-height: 12rem; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .82rem; line-height: 1.45; }
.matching-result { overflow: auto; max-height: 24rem; padding: 1rem; border: 1px solid var(--border); border-radius: 10px; background: #0c121a; color: var(--text); }
.matching-editor-tabs { margin-bottom: 1rem; }
.matching-editor-panel { min-height: 18rem; }
.metadata-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin: 0 0 1rem; }
.metadata-grid div { padding: 1rem; border: 1px solid var(--border); border-radius: 10px; background: #0c121a; }
.metadata-grid dt { color: var(--muted); font-size: .75rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.metadata-grid dd { margin: .45rem 0 0; overflow-wrap: anywhere; }
.matching-version-history { display: grid; gap: .75rem; }
.matching-version-history article { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; padding: .85rem; }
.matching-version-history article small { grid-column: 1 / -1; color: var(--muted); overflow-wrap: anywhere; }
.matching-disabled-filter { align-self: end; min-height: 2.75rem; white-space: nowrap; }
.matching-definition { min-height: 24rem; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .82rem; line-height: 1.45; tab-size: 2; }
.matching-table td:nth-child(2) { min-width: 18rem; }
.matching-table td:nth-child(3), .matching-table td:nth-child(4) { white-space: nowrap; }

@media (max-width: 920px) {
  .permission-audit-selectors { grid-template-columns: minmax(12rem, 16rem) minmax(18rem, 1fr); }
  .permission-audit-filter { grid-column: 1 / -1; }
  .matching-toolbar { grid-template-columns: 1fr 1fr; }
  .matching-disabled-filter { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .permission-audit-selectors { grid-template-columns: 1fr; }
  .permission-audit-filter { grid-column: auto; }
  .matching-toolbar { grid-template-columns: 1fr; }
  .matching-disabled-filter { grid-column: auto; }
}
.runtime-workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.runtime-workspace-panel,
.runtime-readiness-panel {
  padding: 1rem;
}
.runtime-readiness-panel {
  margin-top: 1rem;
}

.runtime-child-overrides {
  display: grid;
  gap: 1rem;
}

.runtime-child-card {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
}

.runtime-child-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.runtime-child-heading span {
  display: block;
  color: var(--muted);
}

.runtime-readiness-list {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.25rem;
}

.runtime-readiness-list li span {
  display: block;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.runtime-ready {
  color: var(--success, #7ecf9a);
}

.runtime-binding-editor {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem;
}

.runtime-path-options {
  display: grid;
  gap: 0.4rem;
  max-height: 20rem;
  overflow: auto;
  margin-top: 0.65rem;
}

.runtime-path-options button {
  justify-content: flex-start;
  text-align: left;
}

.runtime-path-options button.active {
  border-color: var(--accent);
  color: var(--accent);
}

.runtime-path-options button span,
.runtime-path-node > span {
  margin-left: 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.runtime-path-node {
  padding-left: calc(var(--runtime-path-depth) * 1rem);
}

@media (max-width: 1000px) {
  .runtime-workspace-grid {
    grid-template-columns: 1fr;
  }
}

.import-upload-panel { display: grid; grid-template-columns: minmax(10rem, 0.5fr) minmax(18rem, 2fr) auto; gap: 1rem; align-items: end; padding: 1rem; margin-bottom: 1rem; }

.import-workspace {
  display: grid;
  grid-template-columns: minmax(14rem, 0.7fr) minmax(32rem, 2fr);
  gap: 1rem;
}

.import-navigation-panel { display: flex; min-width: 0; max-height: calc(100vh - 20rem); padding: 0.7rem; flex-direction: column; gap: 1rem; } .import-navigation-panel .import-batches-panel { padding: 0; } .import-navigation-heading { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-bottom: 0.5rem; } .import-navigation-heading h3 { margin: 0; } .import-folder-panel { min-height: 0; padding-top: 0.8rem; border-top: 1px solid var(--border); } .import-folder-panel .vault-tree-heading { margin-bottom: 0.5rem; } .import-folder-panel .vault-folder-tree { max-height: 24rem; }
.import-batches-panel, .import-records-panel { padding: 1rem; min-width: 0; }
.import-records-panel > .keys-heading { flex: 0 0 auto; min-height: 0; gap: 1rem; padding-bottom: .85rem; }
.import-records-panel > .keys-heading > div:first-child { display: grid; min-width: 0; align-content: end; gap: .2rem; }
.import-records-panel > .keys-heading .eyebrow,
.import-records-panel > .keys-heading h3,
.import-records-panel > .keys-heading .row-secondary { margin: 0; }
.import-record-controls { display: grid; grid-template-columns: minmax(14rem, 22rem) minmax(9rem, 12rem) auto; align-items: end; gap: .65rem; }
.import-record-controls .compact-select { min-width: 0; }
.import-record-controls > button { min-height: 2.7rem; white-space: nowrap; }
.import-selection-controls { display: grid; gap: .3rem; justify-items: end; }
.import-selection-controls .row-secondary { margin: 0; text-transform: none; }
.import-selection-actions { display: flex; gap: .45rem; }
.import-selection-actions button { min-height: 2.7rem; white-space: nowrap; }
.import-batch { display: flex; width: 100%; flex-direction: column; align-items: flex-start; margin: 0.35rem 0; text-align: left; }
.import-batch span, .import-record small, .import-record-state { color: var(--muted); font-size: 0.8rem; }
.import-batch.active { border-color: var(--accent); }
.import-record { display: grid; grid-template-columns: auto minmax(14rem, 1fr) auto auto auto; gap: 0.65rem; align-items: center; padding: 0.65rem 0.75rem; border-top: 1px solid var(--border); }
.import-record > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.import-record.inactive { opacity: 0.65; }
.import-warning { color: var(--warning); font-size: 0.8rem; }
.raw-import-heading h3 { margin: 0; }
.raw-import-heading p { color: var(--muted); }
.raw-import-table-wrap { overflow: auto; margin-top: 1rem; }
.raw-import-table { width: 100%; border-collapse: collapse; }
.raw-import-table th, .raw-import-table td { padding: .65rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.raw-import-table th { color: var(--muted); font-size: .75rem; text-transform: uppercase; }
.raw-import-table td:last-child { white-space: pre-wrap; word-break: break-word; }

@media (max-width: 900px) { .import-upload-panel, .import-workspace { grid-template-columns: 1fr; } .folder-move-collection-row { align-items: stretch; flex-direction: column; } .import-record-controls { width: 100%; grid-template-columns: minmax(12rem, 1fr) minmax(9rem, .5fr) auto; } }
@media (max-width: 900px) { .import-records-panel > .keys-heading { align-items: stretch; flex-direction: column; } }
@media (min-width: 601px) and (max-width: 900px) { #imports-view.active .import-workspace { grid-template-rows: minmax(12rem, .75fr) minmax(18rem, 1.25fr); } }
@media (max-width: 600px) { #imports-view.active .import-navigation-panel { max-height: none; } #imports-view.active .import-batches-panel { max-height: 12rem; overflow-y: auto; } #imports-view.active .import-folder-panel .vault-folder-tree { max-height: 18rem; overflow-y: auto; } #imports-view.active #import-record-tree { max-height: 32rem; overflow-y: auto; } .import-record-controls { grid-template-columns: 1fr; } .import-selection-controls { justify-items: stretch; } .import-selection-actions { flex-wrap: wrap; } .import-selection-actions button { flex: 1 1 auto; } }
