/* OOTB · Stil B für Appübersicht, Login, Konto, Benutzer & Rechte, Serveransicht und Dateien.
   Reine Gestaltungsschicht über explorer.css / ootb-brand.css / identity-panel.css / portal.css.
   Tokens aus ootb-theme.css. Keine Logik. */

:root { font-family: var(--ootb-font); color: var(--ootb-ink); }
body { background: var(--ootb-canvas); color: var(--ootb-ink); font-family: var(--ootb-font); font-size: 14px; line-height: 1.45; }
button, input, select, textarea { font-family: inherit; }
h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
h2 { font-size: 16px; font-weight: 700; }
.muted { color: var(--ootb-muted); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(0, 107, 166, 0.35); outline-offset: 2px; }

/* ——— Buttons ——— */
.button { min-height: 40px; padding: 8px 14px; border-radius: var(--ootb-r-s); border: 1px solid var(--ootb-input); background: var(--ootb-surface); color: var(--ootb-ink); font-size: 14px; font-weight: 600; gap: 8px; }
.button:hover { background: var(--ootb-fill); border-color: #c5d3de; }
.button .icon { width: 18px; height: 18px; }
.button.primary { background: var(--ootb-primary); border-color: var(--ootb-primary); color: #fff; }
.button.primary:hover { background: var(--ootb-primary-hover); border-color: var(--ootb-primary-hover); }
.button.quiet { background: transparent; border-color: transparent; color: var(--ootb-muted); }
.button.quiet:hover { background: var(--ootb-fill-2); color: var(--ootb-ink); }
.button.icon-only { min-width: 40px; padding: 8px; }
.badge { border: 0; border-radius: 6px; background: var(--ootb-primary-tint); color: var(--ootb-primary-tint-text); padding: 0 10px; min-height: 30px; font-size: 13px; font-weight: 600; gap: 6px; }
.badge .icon { width: 16px; height: 16px; }
.alert { border-radius: var(--ootb-r); border-color: #f0dca8; background: var(--ootb-warn-bg); color: var(--ootb-warn-text); font-size: 14px; }

/* ——— Rahmen: Navy-Seitenleiste ——— */
.server-shell { grid-template-columns: var(--ootb-side-w) minmax(0, 1fr); }
.sidebar { width: var(--ootb-side-w); background: var(--ootb-navy-900); border-right: 0; }
.sidebar-brand { height: auto; padding: 20px 16px 18px; background: transparent; display: block; }
.sidebar-brand .brand, .brand { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.brand .ootb-app-label { padding-left: 4px; margin: 0; font-size: 11px; color: var(--ootb-side-label); letter-spacing: 0.1em; }
.brand .brand-logo { width: 100%; max-width: 172px; }
.sidebar-body { padding: 4px 14px 16px; }
.sidebar-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--ootb-side-label); padding: 10px 12px 6px; margin: 0; }
.nav { gap: 2px; margin-bottom: 14px; }
.sidebar .nav-item { background: transparent; border: 0; justify-content: flex-start; min-height: 44px; padding: 8px 12px; gap: 12px; border-radius: var(--ootb-r); font-size: 14px; font-weight: 500; color: var(--ootb-side-text); line-height: 1.3; white-space: normal; text-align: left; }
.sidebar .nav-item .icon { flex: 0 0 auto; }
.sidebar .nav-item .icon { width: 20px; height: 20px; color: var(--ootb-side-icon); }
.sidebar .nav-item:hover { background: var(--ootb-navy-hover); color: #fff; }
.sidebar .nav-item.active { background: var(--ootb-navy-700); color: #fff; font-weight: 650; box-shadow: inset 3px 0 0 var(--ootb-yellow); }
.sidebar .nav-item.active > .icon { color: var(--ootb-yellow); }
.sidebar-footer { border-top: 1px solid var(--ootb-navy-line); color: var(--ootb-side-label); font-size: 12px; padding: 14px 24px; }
.tree-name { font-size: 13px; }

/* ——— Topbar ——— */
.topbar { height: auto; min-height: var(--ootb-top-h); padding: 10px 24px; background: var(--ootb-surface); border-bottom: 1px solid var(--ootb-line); }
.topbar-logo { display: none; }
.topbar-location { font-size: 14px; color: var(--ootb-muted); gap: 8px; }
.topbar-location strong { color: var(--ootb-ink); font-weight: 600; }
.account { gap: 10px; font-size: 14px; color: var(--ootb-muted); }
.account .button.quiet { color: var(--ootb-ink); }
.avatar { width: 36px; height: 36px; background: var(--ootb-yellow); color: var(--ootb-navy-900); font-size: 12px; font-weight: 800; }
.account-divider { background: var(--ootb-line); }
.sidebar-toggle { min-width: 44px; min-height: 44px; }

/* ——— Inhalt ——— */
.main { padding: 28px 32px 40px; }
.page-header { margin-bottom: 22px; align-items: flex-end; }
.page-header p { font-size: 15px; color: var(--ootb-muted); margin-top: 4px; }
.area-breadcrumbs { border: 0; background: transparent; padding: 0; min-height: 0; margin: -10px 0 18px; }
.area-breadcrumbs .button { font-size: 13px; min-height: 32px; padding: 4px 8px; color: var(--ootb-muted); }
.area-breadcrumbs .button:last-child { color: var(--ootb-ink); }
.area-breadcrumbs:has(> .button:only-child) { display: none; }

/* App-Kacheln: Arbeiten (groß, Navy-Kachel) und Verwalten (kompakt) */
.app-group { margin-bottom: 26px; }
.app-group > .section-label, .section-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ootb-label); margin: 0 0 12px; }
.project-folders { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 0 0 24px; }
.app-group .project-folders { margin: 0; }
.project-folder { position: relative; min-height: 96px; padding: 18px; gap: 14px; border: 1px solid var(--ootb-line); border-radius: var(--ootb-r-card); background: var(--ootb-surface); color: var(--ootb-ink); box-shadow: none; }
.project-folder:hover { border-color: #8fb3cc; box-shadow: none; }
.project-folder:focus-visible { outline: 3px solid rgba(0, 107, 166, 0.35); outline-offset: 2px; }
.project-folder .folder-icon { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--ootb-primary-tint); color: var(--ootb-primary-tint-text); }
.project-folder .folder-icon .icon { width: 24px; height: 24px; fill: none; stroke: currentColor; }
.project-folder strong { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.project-folder small { font-size: 13px; color: var(--ootb-muted); line-height: 1.45; }
.project-folder > .icon:last-child { color: var(--ootb-faint); width: 18px; height: 18px; }
.app-group.work .project-folders { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.app-group.work .project-folder { flex-direction: column; align-items: flex-start; min-height: 168px; padding: 20px; }
.app-group.work .project-folder .folder-icon { width: 52px; height: 52px; border-radius: 13px; background: var(--ootb-navy-900); color: var(--ootb-yellow); }
.app-group.work .project-folder .folder-icon .icon { width: 26px; height: 26px; }
.app-group.work .project-folder strong { font-size: 18px; }
.app-group.work .project-folder > .icon:last-child { position: absolute; top: 20px; right: 18px; margin: 0; }

/* ——— Datei-Explorer, Inventare, geschützte Dateien ——— */
.explorer, .secret-card { border: 1px solid var(--ootb-line); border-radius: var(--ootb-r-card); box-shadow: none; }
.explorer-top { padding: 14px 18px; border-color: var(--ootb-line-soft); }
.explorer-title h2 { font-size: 15px; }
.explorer-title small, .view-indicator { font-size: 12px; color: var(--ootb-muted); }
.toolbar { background: var(--ootb-surface-2); border-color: var(--ootb-line-soft); padding: 10px 16px; }
.breadcrumbs, .search-box { border-color: var(--ootb-input); border-radius: var(--ootb-r-s); min-height: 40px; }
.search-box { height: 40px; background: var(--ootb-fill); }
.search-box input { font-size: 14px; }
.crumb { font-size: 13px; color: var(--ootb-muted); min-height: 32px; }
.crumb:last-child { color: var(--ootb-ink); }
.file-table th, .inventory-table th { font-size: 11px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ootb-label); background: var(--ootb-surface-2); padding: 10px 18px; border-color: var(--ootb-line-soft); }
.file-table td, .inventory-table td { font-size: 13px; color: var(--ootb-muted); border-color: var(--ootb-line-soft); }
.file-table td:first-child, .inventory-table td:first-child { color: var(--ootb-ink); }
.file-table tbody tr:hover td { background: var(--ootb-fill); }
.file-name { font-size: 14px; color: var(--ootb-ink); min-height: 48px; }
.file-name.folder > .icon { fill: var(--ootb-yellow-soft); stroke: #b99b19; }
.file-subtype { font-size: 12px; color: var(--ootb-muted); }
.explorer-status { background: var(--ootb-surface-2); color: var(--ootb-muted); font-size: 12px; border-color: var(--ootb-line-soft); }
.content-note { color: var(--ootb-muted); font-size: 13px; }
.inventory-tabs { border-color: var(--ootb-line-soft); }
.tab { font-size: 14px; color: var(--ootb-muted); min-height: 44px; padding: 12px 0; }
.tab.active { color: var(--ootb-primary); border-bottom-color: var(--ootb-primary); font-weight: 650; }
.tab-count { background: var(--ootb-fill-2); color: var(--ootb-muted); font-size: 12px; border-radius: 5px; padding: 1px 6px; }
.protected-intro { background: var(--ootb-primary-tint); border-color: #cfe0ec; color: var(--ootb-primary-tint-text); border-radius: var(--ootb-r-card); font-size: 14px; }
.secret-card h3 { font-size: 14px; }
.secret-card p { font-size: 12px; color: var(--ootb-muted); }
.secret-symbol { background: var(--ootb-primary-tint); color: var(--ootb-primary-tint-text); }
.empty-state h3 { font-size: 16px; color: var(--ootb-ink); }
.empty-state p { font-size: 14px; color: var(--ootb-muted); }

/* ——— Dialoge und Meldungen ——— */
.dialog, .identity-dialog { border: 0; border-radius: var(--ootb-r-dialog); box-shadow: var(--ootb-shadow-pop); color: var(--ootb-ink); }
.dialog::backdrop, .identity-dialog::backdrop { background: var(--ootb-backdrop); backdrop-filter: none; }
.dialog-head { padding: 16px 16px 14px 22px; border-color: var(--ootb-line-soft); }
.dialog-head h2 { font-size: 18px; }
.dialog-head p { font-size: 12px; color: var(--ootb-muted); }
.dialog-body { padding: 20px 22px; }
.dialog-foot { padding: 12px 18px; background: var(--ootb-surface-2); border-color: var(--ootb-line-soft); font-size: 12px; color: var(--ootb-muted); }
.preview-text { border-radius: var(--ootb-r); background: var(--ootb-surface-2); border-color: var(--ootb-line); color: var(--ootb-ink); }
.field label { font-size: 13px; font-weight: 600; color: var(--ootb-field-label); }
.field input { min-height: 44px; border: 1px solid var(--ootb-input); border-radius: var(--ootb-r); font-size: 15px; }
.field input:focus { border-color: var(--ootb-primary); box-shadow: var(--ootb-focus); outline: none; }
.notifications { bottom: 24px; right: 24px; }
.toast { border: 0; border-radius: var(--ootb-r); background: var(--ootb-navy-900); color: #fff; font-size: 14px; font-weight: 500; padding: 12px 18px; box-shadow: 0 12px 30px -12px rgba(15, 44, 69, 0.5); }
.toast.error { background: var(--ootb-bad-bg); color: var(--ootb-bad-text); box-shadow: inset 0 0 0 1px var(--ootb-bad-edge), 0 12px 30px -12px rgba(15, 44, 69, 0.4); }
.initial-loading { font-size: 14px; color: var(--ootb-muted); }

/* ——— Benutzer & Rechte, Mein Konto (identity-panel im Portal) ——— */
.identity-panel { font-size: 14px; }
.identity-panel h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.identity-panel h2 { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.identity-panel > .row.spread { margin-bottom: 4px; align-items: center; }
.identity-panel > p.muted { margin: 0 0 16px; font-size: 15px; }
.identity-panel .muted, .identity-panel small { color: var(--ootb-muted); font-size: 13px; }
.identity-panel .panel { border: 1px solid var(--ootb-line); border-radius: var(--ootb-r-card); padding: 0; margin: 16px 0 0; overflow: hidden; }
.identity-panel .panel.login { padding: 24px; max-width: 520px; display: grid; gap: 14px; }
.identity-panel .panel.login h1 { font-size: 22px; }
.identity-panel input, .identity-panel select, .identity-panel textarea { min-height: 44px; border: 1px solid var(--ootb-input); border-radius: var(--ootb-r); padding: 9px 12px; font-size: 15px; color: var(--ootb-ink); background: var(--ootb-surface); box-sizing: border-box; }
.identity-panel input:focus, .identity-panel select:focus, .identity-panel textarea:focus { border-color: var(--ootb-primary); box-shadow: var(--ootb-focus); outline: none; }
.identity-panel input[readonly] { background: var(--ootb-fill); color: var(--ootb-muted); }
.identity-panel > input[type=search] { width: min(360px, 100%); background: var(--ootb-fill); border-color: var(--ootb-line); padding-left: 14px; }
.identity-panel label { gap: 6px; font-size: 13px; font-weight: 600; color: var(--ootb-field-label); }
.identity-panel label.check { font-size: 14px; font-weight: 500; color: var(--ootb-ink); min-height: 40px; gap: 10px; }
.identity-panel .check input { width: 20px; height: 20px; min-height: 20px; accent-color: var(--ootb-primary); padding: 0; }
.identity-panel button { min-height: 40px; border: 1px solid var(--ootb-input); border-radius: var(--ootb-r-s); padding: 8px 14px; background: var(--ootb-surface); color: var(--ootb-ink); font-size: 14px; font-weight: 600; }
.identity-panel button:hover { background: var(--ootb-fill); }
.identity-panel button.primary, .identity-panel .mail-draft { background: var(--ootb-primary); border-color: var(--ootb-primary); color: #fff; border-radius: var(--ootb-r-s); min-height: 40px; font-weight: 600; }
.identity-panel button.primary:hover, .identity-panel .mail-draft:hover { background: var(--ootb-primary-hover); }
.identity-panel fieldset { border: 1px solid var(--ootb-line); border-radius: var(--ootb-r); padding: 10px 14px 12px; margin: 0; }
.identity-panel legend { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ootb-label); padding: 0 6px; }
.identity-panel .checks { gap: 2px 16px; }
.identity-panel table { font-size: 14px; }
.identity-panel th { background: var(--ootb-surface-2); font-size: 11px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ootb-label); padding: 10px 14px; border-color: var(--ootb-line-soft); white-space: nowrap; }
.identity-panel td { padding: 12px 14px; border-color: var(--ootb-line-soft); vertical-align: middle; color: var(--ootb-ink); }
.identity-panel tbody tr:last-child td { border-bottom: 0; }
.identity-panel tbody tr:hover td { background: var(--ootb-fill); }
.identity-panel td strong { font-weight: 650; }
.identity-panel td small { font-size: 12px; }
.identity-panel td .badge, .identity-panel .badge { display: inline-flex; align-items: center; min-height: 24px; margin: 2px 4px 2px 0; padding: 0 8px; border-radius: 6px; background: var(--ootb-primary-tint); color: var(--ootb-primary-tint-text); font-size: 12px; font-weight: 600; }
.identity-panel td .row { flex-wrap: nowrap; gap: 8px; justify-content: flex-end; }
.identity-panel td:last-child { width: 1%; white-space: nowrap; }
.identity-panel .scroll { overflow-x: auto; }
.identity-panel .scope-selection { padding: 10px 14px 12px; }
.identity-panel .scope-options strong { color: var(--ootb-primary-tint-text); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.identity-panel .invitation-preview { border-radius: var(--ootb-r); background: var(--ootb-surface-2); border-color: var(--ootb-line); font-size: 14px; }
.identity-dialog { width: min(820px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 22px 26px 24px; }
.identity-dialog h2 { font-size: 20px; margin: 0 0 6px; }
.identity-dialog > p { margin: 0 0 12px; color: var(--ootb-muted); }
.identity-dialog form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; align-items: start; }
.identity-dialog form > * { grid-column: 1 / -1; }
.identity-dialog form > label:not(.check) { grid-column: auto; }
.identity-dialog form > h2 { margin-bottom: 2px; }
.identity-dialog form > small, .identity-dialog form > p.muted { margin-top: -6px; }
.identity-dialog form > .row, .identity-dialog > .row { justify-content: flex-start; flex-direction: row-reverse; gap: 10px; padding-top: 14px; border-top: 1px solid var(--ootb-line-soft); margin-top: 4px; }
.identity-dialog > .row { flex-direction: row; justify-content: flex-start; flex-wrap: wrap; border-top: 0; padding-top: 4px; }
.identity-dialog > .row:last-child { justify-content: flex-end; border-top: 1px solid var(--ootb-line-soft); padding-top: 14px; }
.identity-dialog label { display: grid; gap: 6px; }
.identity-dialog input, .identity-dialog select, .identity-dialog textarea { width: 100%; }
.identity-dialog .check input { width: 20px; }

/* ——— Login (Portal) ——— */
.ootb-login { background: var(--ootb-navy-900); border-top: 0; color: var(--ootb-ink); }
.ootb-login-card { max-width: 440px; border: 0; border-radius: var(--ootb-r-dialog); padding: 36px 36px 32px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.55); }
.ootb-login-logo { width: 220px; margin-bottom: 28px; }
.ootb-login h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.ootb-login-card > p { color: var(--ootb-muted); font-size: 15px; margin-bottom: 24px; }
.ootb-login .field { margin-bottom: 16px; }
.ootb-login .field label { font-size: 13px; color: var(--ootb-field-label); margin-bottom: 6px; }
.ootb-login input { min-height: 48px; border: 1px solid var(--ootb-input); border-radius: var(--ootb-r); font-size: 16px; }
.ootb-login input:focus { border-color: var(--ootb-primary); box-shadow: var(--ootb-focus); outline: none; }
.ootb-login .button { min-height: 50px; background: var(--ootb-primary); border-color: var(--ootb-primary); border-radius: var(--ootb-r); font-size: 16px; margin-top: 6px; }
.ootb-login .button:hover { background: var(--ootb-primary-hover); }
.ootb-login .alert { margin-bottom: 16px; }
.ootb-login-footer { color: var(--ootb-side-label); }

/* ——— Persönliches Portal (Vertreter, Kunden) ——— */
.personal-portal { background: var(--ootb-canvas); color: var(--ootb-ink); }
.personal-header { background: var(--ootb-navy-900); padding: 12px max(16px, 3vw); min-height: 68px; }
.personal-logo { background: var(--ootb-plate); border-radius: 12px; padding: 9px 14px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); }
.personal-logo img { width: 160px; height: 28px; }
.personal-header nav { gap: 8px; }
.personal-header .button { min-height: 44px; border: 1px solid var(--ootb-navy-edge); background: transparent; color: #fff; border-radius: var(--ootb-r); }
.personal-header .button:hover { background: var(--ootb-navy-hover); }
.personal-main { padding: 36px 28px 48px; }
.personal-welcome { color: var(--ootb-muted); font-weight: 600; }
.personal-intro h1 { font-size: 30px; }
.personal-intro > p:last-child { color: var(--ootb-muted); font-size: 15px; }
.personal-apps { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.personal-app { min-height: 210px; padding: 22px; border: 1px solid var(--ootb-line); border-radius: var(--ootb-r-card); box-shadow: none; color: var(--ootb-ink); max-width: none; }
.personal-app:hover { border-color: #8fb3cc; box-shadow: none; }
.personal-app-icon { width: 52px; height: 52px; border-radius: 13px; background: var(--ootb-navy-900); color: var(--ootb-yellow); margin-bottom: 16px; }
.personal-app h2 { font-size: 20px; font-weight: 700; }
.personal-app p { color: var(--ootb-muted); margin-bottom: 20px; }
.personal-app-open { color: var(--ootb-primary); font-weight: 650; gap: 8px; }
.personal-empty { border: 1px solid var(--ootb-line); }

/* ——— iPad quer ——— */
@media (max-width: 1180px) {
  .server-shell { grid-template-columns: 232px minmax(0, 1fr); }
  .sidebar { width: 232px; }
  .sidebar-brand { padding: 16px 12px 14px; }
  .sidebar-body { padding: 2px 12px 14px; }
  .main { padding: 22px 22px 32px; }
  .topbar { padding: 10px 20px; }
}

/* ——— iPad hoch und schmaler: Seitenleiste als Drawer, Kopfzeile Navy ——— */
@media (max-width: 900px) {
  .server-shell { grid-template-columns: minmax(0, 1fr); }
  .workspace { grid-column: 1; }
  .sidebar { width: 300px; max-width: 86vw; transform: translateX(-100%); transition: transform 0.2s; box-shadow: 12px 0 40px -12px rgba(0, 0, 0, 0.45); z-index: 40; }
  .server-shell.menu-open .sidebar { transform: translateX(0); }
  .server-shell.menu-open .sidebar-dismiss { display: block; position: fixed; inset: 0; z-index: 30; background: var(--ootb-backdrop); border: 0; }
  .topbar .button.sidebar-toggle { display: inline-flex; background: var(--ootb-navy-800); border-color: transparent; color: #fff; min-width: 46px; min-height: 46px; border-radius: var(--ootb-r); }
  .topbar .button.sidebar-toggle:hover { background: var(--ootb-navy-hover); color: #fff; }
  .topbar .button.sidebar-toggle .icon { width: 22px; height: 22px; }
  .topbar { position: sticky; top: 0; z-index: 20; background: var(--ootb-navy-900); border-bottom: 0; padding: 10px 12px; gap: 10px; justify-content: flex-start; min-height: 66px; }
  .topbar-logo { display: flex; flex: none; width: 46px; height: 46px; }
  .topbar-location { margin-right: auto; color: var(--ootb-side-text); font-size: 16px; min-width: 0; }
  .topbar-location > span, .topbar-location > .icon { display: none; }
  .topbar-location strong { color: #fff; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .account { gap: 8px; color: var(--ootb-side-text); }
  .account-name, .account-divider { display: none; }
  .account .button.quiet { color: #fff; border: 1px solid var(--ootb-navy-edge); min-height: 46px; border-radius: var(--ootb-r); }
  .account .button.quiet:hover { background: var(--ootb-navy-hover); }
  .account .button .icon { width: 18px; height: 18px; }
  .main { padding: 20px 16px 32px; }
  .page-header { flex-wrap: wrap; align-items: flex-start; }
  .page-header p { font-size: 14px; max-width: none; }
  .page-header > .badge { font-size: 13px; padding: 0 10px; }
  .project-folders, .app-group.work .project-folders { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .identity-dialog form { grid-template-columns: minmax(0, 1fr); }
  .identity-panel td .row { flex-direction: column; align-items: stretch; gap: 6px; }
  .identity-dialog form > label:not(.check) { grid-column: 1 / -1; }
  .file-table td { height: 52px; }
  .dialog { width: calc(100vw - 32px); }
}
@media (max-width: 560px) {
  .project-folders, .app-group.work .project-folders { grid-template-columns: minmax(0, 1fr); }
  .account .button.quiet:last-child { font-size: 0; min-width: 46px; padding: 8px; gap: 0; }
  .account .button.quiet:last-child .icon { width: 18px; height: 18px; }
  h1, .identity-panel h1 { font-size: 23px; }
  .personal-header { flex-direction: row; align-items: center; flex-wrap: wrap; }
}

/* Shared return to the permitted app overview. */
:root header a.apps-home-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;padding:8px 10px;flex-shrink:0;border:1px solid #12354b;border-radius:8px;background:#12354b;color:#ffdd00;text-decoration:none;line-height:1.2}
:root header a.apps-home-link:hover{background:#204b65;border-color:#204b65;color:#ffdd00}
:root header a.apps-home-link:focus-visible{outline:2px solid #ffdd00;outline-offset:3px}
:root header a.apps-home-link svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.ootb-account-menu{position:relative;max-width:260px;flex-shrink:1;min-width:0}.ootb-account-menu summary{display:flex;align-items:center;gap:9px;min-height:44px;padding:4px 10px;border:1px solid #d8e3ec;border-radius:8px;cursor:pointer;list-style:none;color:#12354b;background:#fff}.ootb-account-menu summary::-webkit-details-marker{display:none}.ootb-account-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ootb-account-menu summary>svg{width:16px;height:16px;flex:none}.ootb-account-options{position:absolute;right:0;top:100%;min-width:210px;padding:6px;background:#fff;border:1px solid #d8e3ec;border-radius:8px;box-shadow:0 6px 20px #12354b22;z-index:100}.ootb-account-options button{display:flex;width:100%;text-align:left;gap:8px;min-height:44px}.ootb-account-options svg{width:18px}.ootb-account-menu .avatar{flex:0 0 32px;width:32px;height:32px}.account,.personal-header>nav{min-width:0}
