:root {
  color-scheme: dark;
  --bg: #020a14;
  --panel: rgba(8, 25, 43, 0.93);
  --panel-soft: rgba(13, 39, 65, 0.7);
  --line: rgba(101, 163, 255, 0.2);
  --line-strong: rgba(90, 187, 255, 0.42);
  --text: #f4f8ff;
  --muted: #91a8c0;
  --blue: #15a8ff;
  --red: #ef2635;
  --green: #18d28b;
  --amber: #ffb24a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --workspace-sidebar-width: 290px;
  --workspace-logo-width: 220px;
  --workspace-avatar-size: 48px;
  --workspace-nav-height: 54px;
  --workspace-nav-icon-size: 22px;
  --workspace-control-height: 46px;
  font-family: "Segoe UI Variable Text", "Segoe UI", "Aptos", Arial, sans-serif;
}

.component-admin-heading h1 span { color: var(--blue); }
.component-editor-dialog {
  width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0;
  color: var(--text); border: 1px solid var(--line-strong); border-radius: 22px;
  background: #06192a; box-shadow: 0 28px 90px rgba(0, 0, 0, .55); overflow: hidden;
}
.component-editor-dialog::backdrop { background: rgba(0, 8, 18, .78); backdrop-filter: blur(5px); }
.component-editor-dialog form { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: calc(100vh - 34px); }
.component-editor-dialog header,
.component-editor-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.component-editor-dialog footer { justify-content: flex-end; border-top: 1px solid var(--line); border-bottom: 0; }
.component-editor-dialog header h2 { margin: 3px 0 4px; font-size: 1.55rem; }
.component-editor-dialog header p:last-child { margin: 0; color: var(--muted); }
.component-editor-dialog header > button { border: 0; background: transparent; color: var(--muted); font-size: 2rem; cursor: pointer; }
.component-editor-body { padding: 24px 26px 30px; overflow: auto; }
.component-editor-specs { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.component-editor-specs h3 { margin: 0 0 15px; font-size: 1rem; }
.component-editor-check { display: flex; align-items: center; gap: 10px; color: var(--text); }
.component-editor-check input { width: 18px; height: 18px; accent-color: var(--blue); }
.component-editor-dialog .form-message[hidden] { display: none; }
.component-image-upload { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(2, 13, 25, .38); }
.component-image-upload-preview { display: grid; place-items: center; width: 150px; aspect-ratio: 4 / 3; overflow: hidden; border: 1px dashed var(--line-strong); border-radius: 11px; color: var(--muted); background: #fff; font-size: 11px; text-align: center; }
.component-image-upload-preview img { width: 100%; height: 100%; object-fit: contain; }
.component-image-upload-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.component-image-upload-controls strong, .component-image-upload-controls p, .component-image-upload-controls small { width: 100%; }
.component-image-upload-controls p { margin: 0; color: var(--muted); font-size: 12px; }
.component-image-upload-controls small { min-height: 18px; color: #77b9ec; }
.component-image-upload-button { position: relative; overflow: hidden; }
.component-image-upload-button input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.component-library-status.is-deleted { color: #ffb2b8; border-color: rgba(239, 38, 53, .38); background: rgba(239, 38, 53, .12); }
.component-library-action.is-danger { color: #ff9fa7; border-color: rgba(239, 38, 53, .42); background: rgba(239, 38, 53, .1); }
.component-delete-dialog { width: min(520px, calc(100vw - 32px)); padding: 0; color: var(--text); border: 1px solid rgba(239, 38, 53, .42); border-radius: 20px; background: #06192a; box-shadow: 0 28px 90px rgba(0, 0, 0, .6); }
.component-delete-dialog::backdrop { background: rgba(0, 8, 18, .8); backdrop-filter: blur(5px); }
.component-delete-dialog-body { padding: 26px; }
.component-delete-dialog h2 { margin: 4px 0 12px; }
.component-delete-dialog p { color: var(--muted); line-height: 1.55; }
.component-delete-dialog p strong { color: var(--text); }
.component-delete-dialog .component-delete-warning { color: #ff9fa7; font-weight: 700; }
.component-delete-dialog-body > div:last-child { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.component-price-dialog {
  width: min(1120px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0;
  color: var(--text); border: 1px solid var(--line-strong); border-radius: 22px;
  background: #06192a; box-shadow: 0 28px 90px rgba(0, 0, 0, .58); overflow: hidden;
}
.component-price-dialog::backdrop { background: rgba(0, 8, 18, .8); backdrop-filter: blur(5px); }
.component-price-dialog-shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: calc(100vh - 34px); }
.component-price-dialog header,
.component-price-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.component-price-dialog header h2 { margin: 3px 0 4px; font-size: 1.55rem; }
.component-price-dialog header p:last-child { margin: 0; color: var(--muted); }
.component-price-dialog header > button { border: 0; background: transparent; color: var(--muted); font-size: 2rem; cursor: pointer; }
.component-price-dialog-body { display: grid; gap: 18px; padding: 22px 26px 28px; overflow: auto; }
.component-price-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.component-price-steps li { display: flex; gap: 11px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(3, 18, 32, .55); }
.component-price-steps li > span { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 10px; color: #77d0ff; background: rgba(21, 168, 255, .14); font-weight: 800; }
.component-price-steps strong, .component-price-steps small { display: block; }
.component-price-steps strong { margin: 1px 0 4px; font-size: 13px; }
.component-price-steps small { color: var(--muted); line-height: 1.45; }
.component-price-upload-card { display: grid; grid-template-columns: minmax(240px, 1fr) auto; gap: 16px 24px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(12, 39, 64, .55); }
.component-price-upload-card h3, .component-price-preview h3, .component-price-errors h3 { margin: 0 0 6px; font-size: 1rem; }
.component-price-upload-card p, .component-price-preview p { margin: 0; color: var(--muted); line-height: 1.5; }
.component-price-upload-card > small { grid-column: 1 / -1; color: #77b9ec; }
.component-price-upload-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.component-price-file-button { position: relative; overflow: hidden; }
.component-price-file-button input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.component-price-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.component-price-summary article { padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(3, 18, 32, .55); }
.component-price-summary span, .component-price-summary small { display: block; }
.component-price-summary span { font-size: 1.45rem; font-weight: 750; }
.component-price-summary small { margin-top: 3px; color: var(--muted); }
.component-price-summary article.is-error span { color: #ff8f98; }
.component-price-errors { padding: 15px 17px; border: 1px solid rgba(239, 38, 53, .42); border-radius: 14px; color: #ffb0b6; background: rgba(239, 38, 53, .1); }
.component-price-errors ul { max-height: 160px; margin: 9px 0 0; padding-left: 20px; overflow: auto; line-height: 1.55; }
.component-price-preview { border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.component-price-preview-heading { padding: 15px 17px; background: rgba(12, 39, 64, .55); }
.component-price-preview-scroll { max-height: 290px; overflow: auto; }
.component-price-preview table { width: 100%; border-collapse: collapse; font-size: 12px; }
.component-price-preview th, .component-price-preview td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.component-price-preview th { position: sticky; top: 0; z-index: 1; color: #8fcfff; background: #071c30; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.component-price-preview td:first-child { width: 100%; white-space: normal; font-weight: 700; }
.component-price-dialog footer { align-items: center; border-top: 1px solid var(--line); border-bottom: 0; }
.component-price-dialog footer > div { display: flex; flex: 0 0 auto; gap: 10px; }
.component-price-confirm { display: flex; align-items: flex-start; gap: 10px; max-width: 620px; color: #c9d9e8; font-size: 12px; line-height: 1.45; }
.component-price-confirm input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }

@media (max-width: 720px) {
  .component-editor-dialog header, .component-editor-dialog footer, .component-editor-body { padding-left: 18px; padding-right: 18px; }
  .component-image-upload { grid-template-columns: 1fr; }
  .component-price-dialog header, .component-price-dialog footer, .component-price-dialog-body { padding-left: 18px; padding-right: 18px; }
  .component-price-steps, .component-price-summary { grid-template-columns: 1fr 1fr; }
  .component-price-upload-card { grid-template-columns: 1fr; }
  .component-price-upload-actions { justify-content: flex-start; }
  .component-price-dialog footer { align-items: stretch; flex-direction: column; }
  .component-price-dialog footer > div { justify-content: flex-end; }
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { min-height: 100vh; margin: 0; color: var(--text); background:
  radial-gradient(circle at 88% 4%, rgba(15, 127, 207, 0.2), transparent 35%),
  radial-gradient(circle at 15% 80%, rgba(239, 38, 53, 0.08), transparent 30%), var(--bg); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.auth-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr); min-height: 100vh; }
.auth-visual { display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: clamp(32px, 5vw, 80px); border-right: 1px solid var(--line); }
.brand img { display: block; width: min(270px, 70vw); height: auto; }
.auth-intro { max-width: 680px; padding: 80px 0; }
.eyebrow { margin: 0 0 14px; color: var(--red); font-size: 11px; font-weight: 750; letter-spacing: 0.15em; text-transform: uppercase; }
.auth-intro h1, .admin-heading h1 { margin: 0; font-size: clamp(38px, 5vw, 74px); font-weight: 620; line-height: 1.02; letter-spacing: -0.045em; }
.auth-intro h1 span, .admin-heading h1 span { color: var(--blue); }
.auth-intro > p:last-of-type { max-width: 590px; margin: 22px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.auth-footer { color: #698198; font-size: 11px; }
.auth-panel { display: grid; place-items: center; min-height: 100vh; padding: 28px; }
.auth-card { width: min(470px, 100%); padding: clamp(27px, 4vw, 46px); border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, rgba(11, 35, 59, 0.96), rgba(4, 17, 31, 0.97)); box-shadow: var(--shadow); }
.auth-card h2 { margin: 0; font-size: 28px; font-weight: 590; letter-spacing: -0.025em; }
.auth-card header p { margin: 10px 0 0; color: var(--muted); line-height: 1.5; }
.form-stack { display: grid; gap: 17px; margin-top: 28px; }
.field { display: grid; gap: 7px; color: #c8d6e5; font-size: 12px; font-weight: 580; }
.field input, .field select, .field textarea, .filter-field input, .filter-field select {
  width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid rgba(104, 164, 215, 0.25); border-radius: 11px;
  outline: none; color: var(--text); background: rgba(2, 15, 28, 0.76); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 92px; padding-top: 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .filter-field input:focus, .filter-field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21, 168, 255, 0.1); }
.field small { color: #6f879e; font-weight: 400; line-height: 1.45; }
.btn { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 1px solid transparent; border-radius: 11px; cursor: pointer; text-decoration: none; font-size: 12px; font-weight: 700; transition: transform .15s, border-color .15s, opacity .15s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:disabled { cursor: wait; opacity: .58; }
.btn-primary { color: #fff; background: linear-gradient(135deg, #ff2534, #d90918); box-shadow: 0 9px 28px rgba(239, 38, 53, 0.2); }
.btn-secondary { border-color: var(--line-strong); color: #eaf4ff; background: rgba(4, 19, 34, 0.72); }
.btn-quiet { border-color: var(--line); color: #9fc1df; background: transparent; }
.btn-danger { border-color: rgba(239, 38, 53, .35); color: #ff9da5; background: rgba(239, 38, 53, .08); }
.form-message { min-height: 20px; margin: 0; color: #ffadb3; font-size: 12px; line-height: 1.5; }
.form-message.is-success { color: #80e8b5; }
.auth-alternative { margin-top: 18px; color: #7088a0; font-size: 11px; text-align: center; }
.auth-text-link { color: #7bcaff; font-size: 11px; text-align: center; text-decoration: none; }
.auth-text-link:hover { color: #b9e4ff; text-decoration: underline; }

/* Login */
.auth-layout.auth-login {
  position: relative; isolation: isolate; grid-template-columns: minmax(0,1.42fr) minmax(450px,.82fr);
  overflow: hidden; background: #020b16 url("../planorapv-auth-background.png") center / cover no-repeat;
}
.auth-layout.auth-login::before {
  position: absolute; z-index: -1; inset: 0; content: ""; pointer-events: none;
  background: linear-gradient(90deg,rgba(1,9,19,.2) 0%,rgba(1,9,19,.08) 50%,rgba(1,11,23,.42) 72%,rgba(1,11,23,.65) 100%);
}
.auth-login .auth-visual { padding: clamp(34px,4.2vw,68px); border-right-color: rgba(99,184,255,.16); }
.auth-login .brand img { width: clamp(220px,16vw,290px); }
.auth-login .auth-intro { width: min(880px,100%); max-width: none; padding: 30px 0; }
.auth-login .eyebrow { color: #3cbcff; }
.auth-login .auth-intro h1 { font-size: clamp(43px,4.15vw,72px); line-height: 1.03; }
.auth-login .auth-intro > p:last-of-type { max-width: 680px; margin-top: 26px; color: #c2d0df; font-size: clamp(15px,1.15vw,18px); line-height: 1.7; }
.auth-capabilities { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px 20px; width: min(880px,100%); margin-top: 38px; }
.auth-capabilities article { display: grid; grid-template-columns: 46px minmax(0,1fr); gap: 12px; align-items: center; min-width: 0; padding: 12px 0; border-top: 1px solid rgba(120,184,240,.16); }
.auth-capabilities article > span { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(31,174,255,.72); border-radius: 50%; color: #7acfff; background: rgba(4,26,48,.42); box-shadow: inset 0 0 20px rgba(21,168,255,.05); }
.auth-capabilities svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.auth-capabilities strong,.auth-capabilities small { display: block; }
.auth-capabilities strong { color: #f4f8ff; font-size: 14px; font-weight: 620; }
.auth-capabilities small { margin-top: 5px; color: #9fb2c6; font-size: 11px; line-height: 1.42; }
.auth-login .auth-footer { display: flex; align-items: center; gap: 10px; color: #a9bed2; font-size: 12px; }
.auth-login .auth-footer svg,.auth-mobile-trust svg { width: 24px; height: 24px; fill: none; stroke: #6ec9ff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.auth-login .auth-panel { padding: clamp(24px,3vw,54px); background: linear-gradient(90deg,rgba(1,13,26,.18),rgba(2,18,35,.43)); }
.auth-login .auth-card { width: min(560px,100%); max-height: calc(100vh - 48px); overflow-y: auto; padding: clamp(34px,3.25vw,52px); border-color: rgba(91,183,255,.54); border-radius: 25px; background: linear-gradient(145deg,rgba(10,37,64,.9),rgba(3,20,38,.94)); box-shadow: 0 32px 90px rgba(0,0,0,.42),inset 0 1px rgba(255,255,255,.035); backdrop-filter: blur(15px); scrollbar-color: rgba(91,183,255,.35) transparent; }
.auth-login .auth-card h2 { font-size: clamp(30px,2.2vw,40px); font-weight: 620; }
.auth-login .auth-card header > p:last-child { max-width: 430px; margin-top: 15px; color: #b3c5d6; font-size: 15px; }
.auth-access-label { display: flex; align-items: center; gap: 11px; margin: 0 0 17px !important; }
.auth-access-label svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.auth-login .form-stack { gap: 19px; margin-top: 31px; }
.auth-login .field { gap: 9px; color: #f0f6fc; font-size: 13px; }
.auth-input { position: relative; display: block; }
.auth-input > svg { position: absolute; z-index: 1; width: 22px; height: 22px; top: 50%; left: 17px; transform: translateY(-50%); fill: none; stroke: #bdd2e6; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.auth-login .auth-input input { min-height: 58px; padding-left: 53px; border-color: rgba(119,176,224,.34); border-radius: 10px; background: rgba(31,59,88,.68); }
.auth-login .auth-input input[type="password"],.auth-login .auth-input input[type="text"] { padding-right: 54px; }
.auth-password-toggle { position: absolute; z-index: 2; display: grid; width: 42px; height: 42px; top: 50%; right: 7px; transform: translateY(-50%); place-items: center; padding: 0; border: 0; border-radius: 9px; color: #cfe3f5; background: transparent; cursor: pointer; }
.auth-password-toggle:hover,.auth-password-toggle:focus-visible { color: #fff; background: rgba(21,168,255,.11); outline: none; }
.auth-password-toggle svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.auth-login-form .auth-text-link { justify-self: end; margin-top: -7px; color: #35b8ff; font-size: 12px; }
.auth-recovery-form .auth-text-link { justify-self: center; color: #35b8ff; font-size: 12px; }
.auth-recovery .auth-alternative { max-width: 430px; }
.auth-login-submit { position: relative; min-height: 58px; margin-top: 2px; border-radius: 9px; font-size: 16px; font-weight: 620; }
.auth-login-submit svg { position: absolute; width: 24px; height: 24px; right: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.auth-login .auth-alternative { max-width: 400px; margin: 23px auto 0; color: #7892ab; line-height: 1.5; }
.auth-card-brand,.auth-mobile-trust { display: none; }
.mfa-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: mfa-step; }
.mfa-steps li { position: relative; display: grid; gap: 3px; min-height: 38px; padding-left: 48px; counter-increment: mfa-step; }
.mfa-steps li::before { position: absolute; top: 0; left: 0; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line-strong); border-radius: 10px; color: #8ed2ff; background: rgba(21,168,255,.1); content: counter(mfa-step, decimal-leading-zero); font-size: 10px; font-weight: 750; }
.mfa-steps strong { color: #ecf6ff; font-size: 12px; font-weight: 620; }
.mfa-steps span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.mfa-qr { width: min(240px, 100%); margin: 0 auto; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 12px 32px rgba(0,0,0,.24); }
.mfa-qr svg { display: block; width: 100%; height: auto; }
.copy-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.copy-field .btn { min-height: 46px; padding: 0 12px; }
.copy-field input { font-family: Consolas, "SFMono-Regular", monospace; letter-spacing: .08em; }
.mfa-recovery { margin-top: 28px; }
.mfa-recovery-warning { padding: 14px; border: 1px solid rgba(255,178,74,.32); border-radius: 12px; background: rgba(255,178,74,.07); }
.mfa-recovery-warning strong { color: #ffd18c; font-size: 13px; }
.mfa-recovery-warning p { margin: 7px 0 0; color: #b6a98f; font-size: 10px; line-height: 1.55; }
.mfa-recovery pre { overflow: auto; margin: 13px 0; padding: 15px; border: 1px solid var(--line); border-radius: 12px; color: #e7f4ff; background: rgba(2,15,28,.76); font: 600 12px/1.65 Consolas, "SFMono-Regular", monospace; letter-spacing: .08em; }
.mfa-recovery-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.admin-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar { position: sticky; top: 0; display: flex; height: 100vh; flex-direction: column; padding: 24px 18px; border-right: 1px solid var(--line); background: rgba(3, 15, 28, .9); }
.admin-sidebar .brand { padding: 7px 8px 28px; }
.admin-sidebar .brand img { width: 190px; }
.identity-card { display: grid; grid-template-columns: 43px minmax(0, 1fr); gap: 11px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: rgba(11, 36, 61, .64); }
.identity-mark { display: grid; width: 43px; height: 43px; place-items: center; border: 1px solid rgba(21, 168, 255, .48); border-radius: 13px; color: #fff; background: linear-gradient(145deg, rgba(21,168,255,.25), rgba(12,60,99,.55)); font-size: 12px; font-weight: 760; }
.identity-copy { min-width: 0; }
.identity-copy strong, .identity-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.identity-copy strong { font-size: 12px; }
.identity-copy span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.admin-nav { display: grid; gap: 7px; margin-top: 30px; }
.admin-nav-label { margin: 0 9px 4px; color: #647c94; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.admin-nav button { display: flex; min-height: 45px; align-items: center; gap: 11px; padding: 0 13px; border: 1px solid transparent; border-radius: 10px; color: #91a9c1; background: transparent; cursor: pointer; text-align: left; font-size: 12px; }
.admin-nav button::before { width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 3px; content: ""; }
.admin-nav button.is-active { border-color: var(--line); color: #fff; background: linear-gradient(90deg, rgba(21,168,255,.15), rgba(21,168,255,.035)); }
.sidebar-footer { display: grid; gap: 10px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.license-mini { color: #7890a8; font-size: 10px; line-height: 1.5; }
.license-mini strong { color: #b7cbde; font-weight: 560; }
.admin-main { min-width: 0; padding: clamp(22px, 3vw, 46px); }
.admin-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.admin-heading h1 { font-size: clamp(32px, 4vw, 50px); }
.admin-heading > div > p:last-child { margin: 11px 0 0; color: var(--muted); line-height: 1.5; }
.admin-heading-actions { display: flex; gap: 10px; }
.admin-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.admin-kpis article { display: grid; grid-template-columns: 39px minmax(0, 1fr); gap: 11px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.kpi-symbol { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 11px; color: #6fc6ff; background: rgba(21,168,255,.12); font-size: 14px; }
.admin-kpis strong, .admin-kpis span, .admin-kpis small { display: block; }
.admin-kpis strong { font-size: 23px; font-weight: 620; }
.admin-kpis span { color: #d5e2ef; font-size: 10px; }
.admin-kpis small { margin-top: 2px; color: #6f879f; font-size: 9px; }
.toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(150px, 230px)) auto; gap: 10px; margin-bottom: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: rgba(7, 26, 45, .76); }
.filter-field { display: grid; gap: 5px; }
.filter-field span { color: #7e96ae; font-size: 9px; }
.filter-field input, .filter-field select { min-height: 40px; font-size: 11px; }
.table-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: rgba(5, 21, 37, .88); box-shadow: var(--shadow); }
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.data-table th { padding: 13px 14px; border-bottom: 1px solid var(--line); color: #718ba5; font-size: 9px; font-weight: 650; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 13px 14px; border-bottom: 1px solid rgba(101,163,255,.1); color: #c4d3e2; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(21,168,255,.035); }
.cell-main { display: grid; gap: 3px; min-width: 150px; }
.cell-main strong { color: #fff; font-size: 12px; font-weight: 570; }
.cell-main small { color: #748ba2; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; color: #9eb0c2; background: rgba(126,150,174,.12); font-size: 9px; white-space: nowrap; }
.status::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.status.is-active { color: #69e8aa; background: rgba(24,210,139,.1); }
.status.is-inactive { color: #ff969f; background: rgba(239,38,53,.1); }
.status.is-pending, .status.is-scheduled { color: #ffc56f; background: rgba(255,178,74,.1); }
.status.is-expired { color: #ff969f; background: rgba(239,38,53,.1); }
.row-actions { display: flex; gap: 6px; }
.row-actions .btn { min-height: 32px; padding: 0 10px; font-size: 9px; }
.table-empty { padding: 50px 20px !important; color: var(--muted) !important; text-align: center; }
.panel-message { margin: 0 0 14px; padding: 12px 14px; border: 1px solid rgba(239,38,53,.3); border-radius: 11px; color: #ffafb6; background: rgba(239,38,53,.07); font-size: 11px; }
.panel-message.is-success { border-color: rgba(24,210,139,.3); color: #8ee9bd; background: rgba(24,210,139,.07); }

.drawer-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(0, 7, 14, .68); backdrop-filter: blur(4px); }
.drawer { position: fixed; z-index: 21; top: 0; right: 0; display: flex; width: min(570px, 100%); height: 100vh; flex-direction: column; border-left: 1px solid var(--line-strong); background: #061626; box-shadow: -24px 0 80px rgba(0,0,0,.45); }
.drawer header { display: flex; justify-content: space-between; gap: 20px; padding: 24px; border-bottom: 1px solid var(--line); }
.drawer header h2 { margin: 0; font-size: 24px; font-weight: 590; }
.drawer header p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.drawer-close { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; color: #b8c9da; background: transparent; cursor: pointer; font-size: 22px; }
.drawer-body { display: grid; gap: 18px; overflow-y: auto; padding: 24px; }
.drawer-footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: auto; padding: 18px 24px; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .field.is-wide { grid-column: 1 / -1; }
.section-card { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(3, 18, 32, .58); }
.section-card h3 { margin: 0 0 12px; font-size: 13px; font-weight: 580; }
.license-history { display: grid; gap: 8px; }
.license-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 11px; border: 1px solid rgba(101,163,255,.14); border-radius: 10px; }
.license-item strong, .license-item small { display: block; }
.license-item strong { font-size: 11px; font-weight: 570; }
.license-item small { margin-top: 4px; color: #758da5; font-size: 9px; }
.invitation-box { display: grid; gap: 10px; padding: 14px; border: 1px solid rgba(24,210,139,.3); border-radius: 12px; background: rgba(24,210,139,.07); }
.invitation-box strong { color: #93ebbf; font-size: 12px; }
.invitation-box p { margin: 0; color: #92a9bd; font-size: 10px; line-height: 1.5; }
.mfa-reset-card { border-color: rgba(239,38,53,.3); background: rgba(239,38,53,.045); }
.mfa-reset-card > p { margin: 0 0 14px; color: #aebfd0; font-size: 10px; line-height: 1.55; }
.mfa-reset-card .btn-danger { width: 100%; margin-top: 10px; }
.mfa-reset-confirm { display: flex; align-items: flex-start; gap: 9px; color: #c7d5e2; font-size: 10px; line-height: 1.45; }
.mfa-reset-confirm input { flex: 0 0 auto; margin-top: 2px; accent-color: var(--red); }
.copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.copy-row input { min-width: 0; }
.loading-cover { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; color: #b9ccde; background: rgba(2,10,20,.9); font-size: 12px; }
.project-area { display: grid; gap: 12px; }
.project-area-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.project-area-heading h3 { margin: 0; font-size: 15px; font-weight: 590; }
.project-area-heading p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.project-list { display: grid; gap: 8px; max-height: 360px; overflow-y: auto; }
.project-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(3, 18, 32, .58); }
.project-row-copy { min-width: 0; }
.project-row-copy strong, .project-row-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-row-copy strong { font-size: 12px; font-weight: 580; }
.project-row-copy span { margin-top: 5px; color: var(--muted); font-size: 9px; }
.project-row .btn { min-height: 34px; padding: 0 11px; font-size: 9px; }
.project-empty { margin: 0; padding: 25px 14px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 11px; text-align: center; }

@media (min-width: 941px) and (max-height: 850px) {
  .auth-login .auth-visual { padding: 28px 42px; }
  .auth-login .brand img { width: 205px; }
  .auth-login .auth-intro { padding: 15px 0; }
  .auth-login .auth-intro h1 { font-size: clamp(39px,3.65vw,57px); }
  .auth-login .auth-intro > p:last-of-type { margin-top: 16px; font-size: 14px; line-height: 1.55; }
  .auth-capabilities { gap: 5px 18px; margin-top: 20px; }
  .auth-capabilities article { grid-template-columns: 39px minmax(0,1fr); gap: 10px; padding: 8px 0; }
  .auth-capabilities article > span { width: 38px; height: 38px; }
  .auth-capabilities svg { width: 20px; height: 20px; }
  .auth-capabilities small { display: none; }
  .auth-login .auth-card { padding: 31px 36px; }
  .auth-login .auth-card h2 { font-size: 31px; }
  .auth-login .auth-card header > p:last-child { margin-top: 9px; font-size: 13px; }
  .auth-login .form-stack { gap: 13px; margin-top: 21px; }
  .auth-login .auth-input input { min-height: 50px; }
  .auth-login-submit { min-height: 51px; }
  .auth-login .auth-alternative { margin-top: 16px; }
}

@media (max-width: 940px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-layout.auth-login { grid-template-columns: 1fr; overflow: auto; background-position: 35% center; }
  .auth-login .auth-panel { min-height: 100vh; padding: 24px; background: rgba(1,12,24,.5); }
  .auth-login .auth-card { width: min(540px,100%); max-height: calc(100vh - 32px); padding: 38px; }
  .auth-card-brand { display: block; width: 210px; margin: 0 0 34px; }
  .auth-card-brand img { display: block; width: 100%; height: auto; }
  .auth-mobile-trust { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 20px 0 0; color: #8ca5bd; font-size: 11px; }
  .auth-mobile-trust svg { flex: 0 0 auto; width: 20px; height: 20px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .admin-sidebar .brand, .sidebar-footer { display: none; }
  .admin-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
  .admin-nav-label { grid-column: 1 / -1; }
  .toolbar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .auth-panel, .admin-main { padding: 14px; }
  .auth-card { padding: 24px 19px; border-radius: 18px; }
  .auth-login .auth-panel { padding: 12px; }
  .auth-login .auth-card { max-height: calc(100vh - 24px); padding: 28px 21px; border-radius: 18px; }
  .auth-card-brand { width: 175px; margin-bottom: 27px; }
  .auth-login .auth-card h2 { font-size: 29px; }
  .auth-login .auth-card header > p:last-child { font-size: 13px; }
  .auth-login .auth-input input { min-height: 52px; }
  .auth-login-submit { min-height: 53px; }
  .admin-heading { align-items: stretch; flex-direction: column; }
  .admin-heading-actions .btn { flex: 1; }
  .admin-kpis { grid-template-columns: 1fr; }
  .toolbar, .form-grid { grid-template-columns: 1fr; }
  .form-grid .field.is-wide { grid-column: auto; }
  .drawer { width: 100%; }
}

/* Geschütztes Mandanten-Dashboard */
.tenant-body { min-height: 100vh; background: #020b16; }
.tenant-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.tenant-sidebar { position: sticky; top: 0; z-index: 5; display: flex; height: 100vh; min-width: 0; flex-direction: column; padding: 20px 16px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(4,18,32,.98), rgba(3,15,28,.96)); }
.tenant-brand { display: block; padding: 4px 10px 24px; }
.tenant-brand img { display: block; width: 185px; max-width: 100%; height: auto; }
.tenant-identity { display: grid; grid-template-columns: 45px minmax(0,1fr) 32px; gap: 11px; align-items: center; padding: 13px 11px; border: 1px solid var(--line); border-radius: 14px; background: rgba(11,36,61,.64); }
.tenant-avatar { display: grid; width: 45px; height: 45px; place-items: center; border: 1px solid rgba(21,168,255,.48); border-radius: 13px; color: #fff; background: linear-gradient(145deg, rgba(21,168,255,.26), rgba(12,60,99,.56)); font-size: 11px; font-weight: 730; }
.tenant-identity-copy { min-width: 0; }
.tenant-identity-copy strong, .tenant-identity-copy > span, .tenant-identity-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tenant-identity-copy strong { font-size: 11px; font-weight: 620; }
.tenant-identity-copy > span { margin-top: 3px; color: #83a0bc; font-size: 8px; }
.tenant-identity-copy small { margin-top: 5px; color: #7f9ab4; font-size: 8px; }
.tenant-identity-copy small i { display: inline-block; width: 6px; height: 6px; margin: 0 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(24,210,139,.5); }
.tenant-icon-button { display: grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 0; border-radius: 9px; color: #7898b4; background: transparent; cursor: pointer; }
.tenant-icon-button:hover { color: #fff; background: rgba(21,168,255,.1); }
.tenant-icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.tenant-nav { display: grid; gap: 6px; margin-top: 28px; }
.tenant-nav p { margin: 10px 11px 4px; color: #617a92; font-size: 8px; letter-spacing: .15em; text-transform: uppercase; }
.tenant-nav > div { display: grid; gap: 6px; }
.tenant-nav a { display: grid; grid-template-columns: 23px minmax(0,1fr) auto; gap: 11px; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid transparent; border-radius: 10px; color: #8ca6bf; text-decoration: none; font-size: 11px; transition: color .15s, background .15s, border-color .15s; }
.tenant-nav a:hover, .tenant-nav a.is-active { border-color: var(--line); color: #fff; background: linear-gradient(90deg, rgba(21,168,255,.14), rgba(21,168,255,.025)); }
.tenant-nav a.is-active { box-shadow: inset 3px 0 0 var(--red); }
.tenant-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.tenant-nav a > small { min-width: 23px; padding: 3px 6px; border-radius: 999px; color: #79bde8; background: rgba(21,168,255,.1); font-size: 8px; text-align: center; }
.tenant-license { display: grid; gap: 11px; margin-top: auto; padding: 16px 12px 3px; border-top: 1px solid var(--line); }
.tenant-license-brand { display: flex; align-items: center; gap: 9px; color: #d4e4f2; font-size: 10px; }
.tenant-license-brand svg { width: 24px; height: 24px; color: var(--blue); fill: none; stroke: currentColor; stroke-width: 2; }
.tenant-license-main { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 8px; align-items: center; color: #7f97ae; font-size: 9px; }
.tenant-license-main svg { width: 20px; height: 20px; color: #83bce5; fill: none; stroke: currentColor; stroke-width: 2; }
.tenant-license-main strong { color: #bed0df; font-weight: 590; }
.tenant-license-status { display: grid; grid-template-columns: 7px minmax(0,1fr); gap: 5px 8px; align-items: center; color: #6fdba4; font-size: 8px; }
.tenant-license-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 9px currentColor; }
.tenant-license-status time { grid-column: 2; color: #647e96; }
.tenant-license-status.is-inactive { color: #ff8e97; }

.tenant-main { min-width: 0; padding: clamp(18px,2.2vw,34px); }
.tenant-content { width: min(1480px,100%); margin: 0 auto; }
.tenant-alert { margin-bottom: 16px; padding: 13px 15px; border: 1px solid rgba(239,38,53,.32); border-radius: 12px; color: #ffc0c5; background: rgba(239,38,53,.08); font-size: 10px; line-height: 1.55; }
.tenant-hero { display: grid; grid-template-columns: minmax(360px,.8fr) minmax(500px,1.2fr); min-height: 245px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(125deg, rgba(10,35,58,.98), rgba(4,19,34,.95)); box-shadow: 0 20px 55px rgba(0,0,0,.23); }
.tenant-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px,3vw,42px); }
.tenant-hero-copy h1 { margin: 0; font-size: clamp(31px,3vw,46px); font-weight: 620; line-height: 1; letter-spacing: -.04em; }
.tenant-hero-copy h1 span { color: var(--blue); }
.tenant-hero-copy > p:last-of-type { max-width: 510px; margin: 13px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.tenant-hero-actions { display: flex; gap: 9px; margin-top: 20px; }
.tenant-btn { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid var(--line); border-radius: 10px; color: #eaf5ff; background: rgba(4,19,34,.75); text-decoration: none; font-size: 10px; font-weight: 700; transition: transform .15s, border-color .15s; }
.tenant-btn:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.tenant-btn svg, .tenant-section-actions svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.tenant-btn-primary { border-color: rgba(255,55,67,.3); color: #fff; background: linear-gradient(135deg,#ff2f3d,#dc101f); box-shadow: 0 9px 28px rgba(239,38,53,.2); }
.tenant-featured { position: relative; min-height: 245px; overflow: hidden; background: #071a2c; }
.tenant-featured img { width: 100%; height: 100%; min-height: 245px; object-fit: cover; }
.tenant-featured::after { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(5,22,38,.3),rgba(4,18,31,.07) 45%,rgba(4,18,31,.45)),linear-gradient(0deg,rgba(3,14,25,.88),transparent 62%); content: ""; pointer-events: none; }
.tenant-featured-copy { position: absolute; z-index: 1; right: 20px; bottom: 18px; left: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.tenant-featured-copy > div { min-width: 0; }
.tenant-featured-copy span, .tenant-featured-copy strong, .tenant-featured-copy small { display: block; }
.tenant-featured-copy span { color: #8ea9c1; font-size: 8px; }
.tenant-featured-copy strong { overflow: hidden; margin-top: 5px; color: #fff; font-size: 16px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.tenant-featured-copy small { margin-top: 5px; color: #b3c3d2; font-size: 8px; }
.tenant-featured-copy .tenant-btn { flex: 0 0 auto; min-height: 34px; }
.tenant-featured-empty { position: absolute; z-index: 1; inset: 0; display: grid; place-content: center; gap: 8px; padding: 30px; color: #758da5; text-align: center; }
.tenant-featured-empty strong { color: #cfdfec; font-size: 13px; }
.tenant-featured-empty span { font-size: 9px; }

.tenant-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 14px 0 26px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: rgba(6,26,44,.86); }
.tenant-kpis article { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 11px; align-items: center; min-height: 76px; padding: 13px 16px; border-right: 1px solid rgba(101,163,255,.12); }
.tenant-kpis article:last-child { border-right: 0; }
.tenant-kpis .tenant-kpi-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: #65c5ff; background: rgba(21,168,255,.1); }
.tenant-kpi-icon.green { color: #48dfa1; background: rgba(24,210,139,.09); }
.tenant-kpi-icon.violet { color: #b484ff; background: rgba(154,96,255,.1); }
.tenant-kpi-icon.emerald { color: #2fe0b0; background: rgba(22,190,150,.1); }
.tenant-kpis .tenant-kpi-icon svg { display: block; width: 22px; height: 22px; margin: 0; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.tenant-kpis strong, .tenant-kpis span { display: block; }
.tenant-kpis strong { color: #fff; font-size: 20px; font-weight: 620; }
.tenant-kpis strong small { color: #a9bed0; font-size: 10px; }
.tenant-kpis article div > span { margin-top: 2px; color: #748da5; font-size: 8px; }

.tenant-project-section { min-width: 0; }
.tenant-section-heading, .tenant-page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.tenant-section-heading .eyebrow { margin-bottom: 5px; }
.tenant-section-heading h2 { margin: 0; font-size: 19px; font-weight: 610; }
.tenant-section-actions { display: flex; align-items: center; gap: 8px; }
.tenant-section-actions a { display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; border-radius: 8px; color: #65bfff; text-decoration: none; font-size: 9px; }
.tenant-section-actions a:hover { background: rgba(21,168,255,.08); }
.tenant-inline-message { min-height: 15px; margin: 0 0 8px; color: #ffadb3; font-size: 9px; }
.tenant-inline-message.is-success { color: #70e1ae; }
.tenant-project-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.tenant-project-grid-wide { grid-template-columns: repeat(4,minmax(0,1fr)); }
.tenant-project-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: rgba(6,26,44,.86); transition: transform .15s,border-color .15s; }
.tenant-project-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.tenant-project-image { position: relative; height: 125px; overflow: hidden; background: linear-gradient(135deg,#0c2c47,#061725); }
.tenant-project-image img { width: 100%; height: 100%; object-fit: cover; }
.tenant-project-placeholder { display: grid; height: 100%; place-items: center; color: #466983; }
.tenant-project-placeholder svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.tenant-project-status { position: absolute; top: 9px; right: 9px; padding: 5px 8px; border-radius: 999px; color: #9bd9ff; background: rgba(20,108,160,.85); font-size: 7px; backdrop-filter: blur(8px); }
.tenant-project-status.is-completed { color: #a7f5cd; background: rgba(13,126,82,.87); }
.tenant-project-body { padding: 13px 13px 10px; }
.tenant-project-body h3 { overflow: hidden; margin: 0; color: #fff; font-size: 12px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.tenant-project-body p { overflow: hidden; min-height: 14px; margin: 5px 0 0; color: #7992aa; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.tenant-project-metrics { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.tenant-project-metrics span { padding: 4px 6px; border: 1px solid rgba(101,163,255,.14); border-radius: 999px; color: #aec2d3; font-size: 7px; }
.tenant-project-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 13px 12px; }
.tenant-project-footer time { color: #647f98; font-size: 7px; }
.tenant-project-footer a { display: inline-flex; min-height: 29px; align-items: center; padding: 0 9px; border: 1px solid rgba(21,168,255,.45); border-radius: 8px; color: #86cff9; text-decoration: none; font-size: 7px; font-weight: 700; }
.tenant-project-empty { grid-column: 1/-1; padding: 45px 24px; border: 1px dashed var(--line); border-radius: 14px; color: #7891aa; text-align: center; font-size: 10px; }

.tenant-page { min-width: 0; }
.tenant-page-header { align-items: center; margin: 4px 0 24px; padding: 21px 23px; border: 1px solid var(--line); border-radius: 17px; background: rgba(7,27,46,.84); }
.tenant-page-header h1 { margin: 0; font-size: clamp(30px,3vw,44px); font-weight: 620; letter-spacing: -.035em; }
.tenant-page-header > div > p:last-child { margin: 9px 0 0; color: var(--muted); font-size: 10px; }
.tenant-toolbar { display: grid; grid-template-columns: minmax(260px,1fr) minmax(170px,240px) auto; gap: 10px; align-items: end; margin-bottom: 17px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(6,24,41,.82); }
.tenant-toolbar label { display: grid; gap: 5px; }
.tenant-toolbar label span { color: #758fa7; font-size: 8px; }
.tenant-toolbar input, .tenant-toolbar select { width: 100%; min-height: 39px; padding: 0 11px; border: 1px solid rgba(104,164,215,.24); border-radius: 9px; outline: none; color: #eaf5ff; background: rgba(2,15,28,.78); font-size: 9px; }
.tenant-toolbar input:focus, .tenant-toolbar select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,168,255,.09); }
.tenant-toolbar > strong { align-self: center; color: #8fa7bd; font-size: 9px; font-weight: 550; white-space: nowrap; }
.tenant-component-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.tenant-component-card { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 12px; align-items: center; min-height: 92px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(6,26,44,.86); }
.tenant-component-symbol { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 12px; color: #65c5ff; background: rgba(21,168,255,.1); }
.tenant-component-symbol svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.tenant-component-symbol img { width: 42px; height: 42px; border-radius: 9px; object-fit: contain; }
.tenant-component-card strong, .tenant-component-card span, .tenant-component-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tenant-component-card strong { color: #fff; font-size: 11px; }
.tenant-component-card span { margin-top: 4px; color: #a3b8cb; font-size: 9px; }
.tenant-component-card small { margin-top: 6px; color: #68839c; font-size: 7px; }
.tenant-loading { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; color: #b9ccde; background: rgba(2,10,20,.96); font-size: 11px; }
.tenant-body.is-ready .tenant-loading { display: none; }

/* Bestehende Dashboard-Oberfläche – nur die Datenquelle ist neu */
.tenant-shell { grid-template-columns: var(--workspace-sidebar-width) minmax(0,1fr); }
.tenant-sidebar { gap: 28px; padding: 30px 18px 22px; }
.tenant-brand { padding: 2px 12px 4px; }
.tenant-brand img { width: var(--workspace-logo-width); filter: drop-shadow(0 9px 20px rgba(0,145,255,.2)); }
.tenant-identity { position: relative; grid-template-columns: var(--workspace-avatar-size) minmax(0,1fr) 36px; gap: 13px; min-height: 78px; padding: 6px 10px; border: 0; background: transparent; }
.tenant-avatar { width: var(--workspace-avatar-size); height: var(--workspace-avatar-size); border-color: rgba(21,168,255,.48); border-radius: 15px 15px 15px 6px; font-size: 14px; }
.tenant-identity-copy strong,
.tenant-identity-copy > span {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.tenant-identity-copy strong { padding-right: 4px; color: #f5f9fd; font-size: 15px; font-weight: 520; line-height: 1.25; }
.tenant-identity-copy > span { margin-top: 3px; color: #70bfea; font-size: 11px; line-height: 1.3; }
.tenant-identity-copy small { display: flex; align-items: center; gap: 6px; overflow: visible; margin-top: 4px; font-size: 11px; line-height: 1.3; white-space: normal; }
.tenant-identity-copy small i { flex: 0 0 auto; margin: 0; }
.tenant-icon-button { width: 36px; height: 36px; }
.tenant-nav { gap: 26px; margin-top: 0; }
.tenant-nav > div { gap: 6px; }
.tenant-nav p { display: flex; align-items: center; gap: 12px; margin: 0 10px 7px; font-size: 10px; font-weight: 520; }
.tenant-nav p::after { height: 1px; flex: 1; content: ""; background: linear-gradient(90deg,rgba(92,142,187,.2),transparent); }
.tenant-nav a { position: relative; grid-template-columns: 24px minmax(0,1fr) auto; gap: 15px; min-height: var(--workspace-nav-height); padding: 9px 16px; border-radius: 9px; font-size: 15px; font-weight: 420; line-height: 1.25; }
.tenant-nav a > span { min-width: 0; overflow-wrap: anywhere; }
.tenant-nav a.is-active { box-shadow: none; }
.tenant-nav a.is-active::before { position: absolute; width: 3px; inset: 7px auto 7px -18px; border-radius: 0 3px 3px 0; content: ""; background: linear-gradient(180deg,#ff5361,#ef1f2d); }
.tenant-nav svg { width: var(--workspace-nav-icon-size); height: var(--workspace-nav-icon-size); color: #67b9f4; }
.tenant-nav a > small { min-width: 27px; padding: 4px 7px; font-size: 10px; }
.tenant-license { gap: 12px; padding: 17px 10px 2px; }
.tenant-license-brand { font-size: 13px; }
.tenant-license-main { font-size: 10px; }
.tenant-license-status { grid-template-columns: 8px auto minmax(0,1fr); font-size: 10px; }
.tenant-license-status time { grid-column: auto; justify-self: end; }
.tenant-main { width: 100%; padding: 26px; }
.tenant-content { width: 100%; margin: 0; }
.tenant-alert { padding: 14px 16px; font-size: 12px; }
.tenant-body .eyebrow { margin-bottom: 8px; font-size: 12px; font-weight: 900; }
.tenant-hero { min-height: 0; grid-template-columns: minmax(300px,.85fr) minmax(430px,1.45fr); gap: 22px; padding: 22px; border-radius: 22px; }
.tenant-hero-copy { align-self: center; padding: 8px 6px; }
.tenant-hero-copy h1 { font-size: clamp(30px,3.4vw,48px); line-height: 1.04; }
.tenant-hero-copy > p:last-of-type { max-width: 620px; margin-top: 15px; color: #cbd8e7; font-size: 16px; line-height: 1.52; }
.tenant-hero-actions { margin-top: 22px; }
.tenant-btn { min-height: 46px; padding: 0 20px; border-radius: 12px; font-size: 14px; font-weight: 850; }
.tenant-featured { min-height: 250px; border: 1px solid var(--line); border-radius: 18px; }
.tenant-featured img { position: absolute; inset: 0; min-height: 0; opacity: .82; }
.tenant-featured::after { inset: 35% 0 0; background: linear-gradient(180deg,transparent,rgba(2,10,20,.94)); }
.tenant-featured-copy { right: 18px; bottom: 18px; left: 18px; }
.tenant-featured-copy > div { max-width: 66%; padding: 14px 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(3,15,29,.76); backdrop-filter: blur(10px); }
.tenant-featured-copy span { font-size: 14px; }
.tenant-featured-copy strong { font-size: 21px; }
.tenant-featured-copy small { font-size: 12px; }
.tenant-featured-copy .tenant-btn { min-height: 46px; }
.tenant-featured-empty strong { font-size: 21px; }
.tenant-featured-empty span { font-size: 13px; }
.tenant-kpis { margin: 14px 0 0; border-radius: 18px; }
.tenant-kpis article { grid-template-columns: 38px minmax(0,1fr); gap: 10px; min-height: 78px; padding: 11px 14px; }
.tenant-kpis .tenant-kpi-icon { width: 38px; height: 38px; }
.tenant-kpis .tenant-kpi-icon svg { width: 22px; height: 22px; }
.tenant-kpis strong { display: flex; align-items: baseline; gap: 4px; font-size: clamp(21px,1.8vw,27px); }
.tenant-kpis strong small { font-size: 13px; }
.tenant-kpis article div > span { margin-top: 3px; font-size: 13px; }
.tenant-project-section { margin-top: 28px; }
.tenant-section-heading { align-items: center; margin-bottom: 16px; }
.tenant-section-heading h2 { font-size: 24px; }
.tenant-section-actions a { padding: 7px 0; font-size: 14px; font-weight: 800; }
.tenant-inline-message { min-height: 0; margin-bottom: 8px; font-size: 12px; }
.tenant-project-grid, .tenant-project-grid-wide { grid-template-columns: repeat(auto-fill,minmax(240px,310px)); justify-content: start; gap: 16px; }
.tenant-project-card { position: relative; min-height: 300px; display: flex; flex-direction: column; border-radius: 17px; cursor: pointer; }
.tenant-project-card.is-trash { cursor: default; }
.tenant-project-card.is-selected { border-color: rgba(21,168,255,.62); }
.tenant-project-card.is-selected::before { position: absolute; z-index: 4; top: 12px; left: 12px; padding: 5px 9px; border-radius: 999px; color: #fff; background: rgba(21,168,255,.9); content: "Ausgewählt"; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.tenant-project-image { height: auto; min-height: 132px; }
.tenant-project-image img { position: absolute; inset: 0; }
.tenant-project-status { z-index: 3; top: 10px; right: 10px; padding: 7px 10px; font-size: 11px; font-weight: 900; }
.tenant-project-body { flex: 1; padding: 14px; }
.tenant-project-body h3 { margin-bottom: 6px; font-size: 17px; }
.tenant-project-body p { min-height: 19px; margin: 0 0 11px; font-size: 13px; }
.tenant-project-metrics { gap: 6px; margin-top: 0; margin-bottom: 12px; }
.tenant-project-metrics span { padding: 4px 7px; font-size: 11px; }
.tenant-project-footer { margin-top: auto; padding: 0 14px 14px; }
.tenant-project-footer time { font-size: 11px; }
.tenant-project-footer a { min-height: 32px; padding: 0 10px; border: 0; border-radius: 999px; color: #fff; background: linear-gradient(135deg,#15a8ff,#0b75ff); font-size: 10px; font-weight: 900; }
.tenant-project-empty { font-size: 13px; }
.tenant-page { min-width: 0; }
.tenant-page-header { margin: 0; padding: 22px; border-radius: 22px; }
.tenant-page-header h1 { font-size: clamp(30px,3.4vw,48px); }
.tenant-page-header > div > p:last-child { font-size: 16px; }
.tenant-page-actions, .tenant-project-actions { display: flex; align-items: center; gap: 8px; }
.tenant-project-actions { margin-left: auto; }
.tenant-card-action { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; padding: 0; border: 1px solid rgba(101,163,255,.28); border-radius: 999px; color: #7dcaff; background: rgba(21,168,255,.07); cursor: pointer; }
.tenant-card-action:hover { color: #fff; border-color: rgba(21,168,255,.6); background: rgba(21,168,255,.16); }
.tenant-card-action.is-danger { color: #ff8f98; border-color: rgba(239,38,53,.3); background: rgba(239,38,53,.07); }
.tenant-card-action.is-danger:hover { color: #fff; border-color: rgba(239,38,53,.65); background: rgba(239,38,53,.2); }
.tenant-card-action svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tenant-card-action span { display: none; }
.tenant-confirm-dialog { width: min(470px,calc(100vw - 30px)); padding: 0; border: 1px solid rgba(101,163,255,.3); border-radius: 20px; color: var(--text); background: linear-gradient(145deg,#0b233b,#04111f); box-shadow: 0 30px 90px rgba(0,0,0,.58); }
.tenant-confirm-dialog::backdrop { background: rgba(0,7,15,.72); backdrop-filter: blur(5px); }
.tenant-confirm-dialog form { padding: 28px; }
.tenant-dialog-icon { display: grid; width: 48px; height: 48px; margin-bottom: 18px; place-items: center; border-radius: 14px; color: #ff8f98; background: rgba(239,38,53,.12); }
.tenant-dialog-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tenant-confirm-dialog h2 { margin: 0; font-size: 24px; font-weight: 620; }
.tenant-confirm-dialog form > p:not(.eyebrow) { margin: 12px 0 0; color: #9eb2c8; font-size: 14px; line-height: 1.55; }
.tenant-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; }
.tenant-btn-danger { border-color: rgba(239,38,53,.38); color: #fff; background: linear-gradient(135deg,#ef3542,#b80817); }
.tenant-alert.is-success { border-color: rgba(24,210,139,.32); color: #9af0c5; background: rgba(24,210,139,.08); }

/* Projektzentrale */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; }
.project-management-header { min-height: 0; margin: 0 0 12px; padding: 14px 17px; border-radius: 15px; }
.project-management-header h1 { font-size: clamp(28px,2.8vw,38px); }
.project-management-header > div > p:last-child { margin-top: 5px; font-size: 11px; }
.project-management-header .tenant-btn { min-height: 39px; }
.project-management-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0 0 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: rgba(6,26,44,.86); }
.project-management-kpis article { display: grid; min-width: 0; grid-template-columns: 32px minmax(0,1fr); gap: 10px; align-items: center; padding: 10px 14px; border-right: 1px solid rgba(101,163,255,.13); }
.project-management-kpis article:last-child { border-right: 0; }
.project-management-kpis article > svg { width: 21px; height: 21px; margin: auto; color: #62c4ff; fill: none; stroke: currentColor; stroke-width: 1.8; }
.project-management-kpis span,.project-management-kpis strong { display: block; }
.project-management-kpis article div > span { color: #7f9ab2; font-size: 9px; }
.project-management-kpis strong { margin-top: 2px; color: #fff; font-size: 21px; font-weight: 620; line-height: 1; }
.project-management-kpis strong small { color: #829db5; font-size: 10px; font-weight: 500; }
.project-management-toolbar { grid-template-columns: minmax(300px,1.7fr) minmax(125px,.55fr) minmax(150px,.65fr) minmax(165px,.7fr) minmax(155px,.65fr); margin-bottom: 12px; padding: 11px 12px 9px; border-radius: 14px; }
.project-management-toolbar label span { font-size: 9px; }
.project-management-toolbar input,.project-management-toolbar select { min-height: 39px; font-size: 10px; }
.project-search-control { position: relative; display: block; }
.project-search-control svg { position: absolute; z-index: 1; top: 50%; left: 12px; width: 17px; height: 17px; color: #668aa8; fill: none; stroke: currentColor; stroke-width: 2; transform: translateY(-50%); pointer-events: none; }
.project-management-toolbar .project-search-control input { padding-left: 39px; }
.project-management-toolbar > strong { grid-column: 1 / -1; justify-self: end; margin-top: -1px; font-size: 9px; }
.project-management-workspace { display: grid; min-width: 0; grid-template-columns: minmax(0,1fr) minmax(330px,365px); gap: 15px; align-items: start; }
.project-management-list,.project-detail-panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: rgba(5,24,41,.9); box-shadow: 0 18px 45px rgba(0,0,0,.16); }
.project-management-list > header,.tenant-project-row { display: grid; grid-template-columns: minmax(235px,1.45fr) minmax(122px,.6fr) minmax(130px,.78fr) minmax(105px,.58fr) minmax(130px,.68fr) 72px; gap: 11px; align-items: center; }
.project-management-list > header { padding: 12px 14px; color: #7390aa; border-bottom: 1px solid rgba(101,163,255,.14); background: rgba(11,39,64,.66); font-size: 9px; font-weight: 700; letter-spacing: .065em; text-transform: uppercase; }
.tenant-project-row { width: 100%; min-height: 92px; padding: 11px 14px; border: 0; border-bottom: 1px solid rgba(101,163,255,.12); outline-offset: -3px; color: var(--text); background: transparent; text-align: left; cursor: pointer; transition: background .15s,box-shadow .15s; }
.tenant-project-row:last-child { border-bottom: 0; }
.tenant-project-row:hover { background: rgba(21,168,255,.045); }
.tenant-project-row.is-selected { background: linear-gradient(90deg,rgba(21,168,255,.13),rgba(21,168,255,.025)); box-shadow: inset 3px 0 #15a8ff; }
.tenant-project-row-main { display: flex; min-width: 0; align-items: center; gap: 12px; }
.tenant-project-row-copy { min-width: 0; }
.tenant-project-row strong,.tenant-project-row small { display: block; }
.tenant-project-row strong { overflow: hidden; color: #edf6ff; font-size: 12px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.tenant-project-row small { overflow: hidden; margin-top: 4px; color: #7894ad; font-size: 9px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.tenant-project-row-customer { color: #9eb4c7 !important; }
.tenant-project-row-address { margin-top: 2px !important; color: #678198 !important; }
.tenant-project-status-control { display: grid; min-width: 0; grid-template-columns: 6px minmax(0,1fr); gap: 5px; align-items: center; padding: 2px 5px 2px 8px; border: 1px solid rgba(21,168,255,.16); border-radius: 999px; color: #79cfff; background: rgba(21,168,255,.1); }
.tenant-project-status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tenant-project-status-control select { min-width: 0; width: 100%; height: 24px; padding: 0 17px 0 0; border: 0; outline: 0; color: currentColor; background: transparent; font-size: 8px; font-weight: 600; cursor: pointer; }
.tenant-project-status-control select option { color: #eaf5ff; background: #071d30; }
.tenant-project-status-control select:disabled { cursor: default; opacity: .78; }
.tenant-project-status-control:focus-within { border-color: rgba(91,199,255,.7); box-shadow: 0 0 0 3px rgba(21,168,255,.1); }
.tenant-project-status-control.is-draft { color: #b7c1cb; border-color: rgba(145,161,176,.14); background: rgba(145,161,176,.1); }
.tenant-project-status-control.is-completed { color: #70e1ae; border-color: rgba(24,210,139,.17); background: rgba(24,210,139,.1); }
.tenant-project-row-preview { position: relative; width: 70px; height: 52px; flex: 0 0 auto; overflow: hidden; border: 1px solid rgba(101,163,255,.18); border-radius: 8px; background: linear-gradient(135deg,#0d3454,#061827); }
.tenant-project-row-preview img { width: 100%; height: 100%; object-fit: cover; }
.tenant-project-row-preview .tenant-project-placeholder svg { width: 25px; height: 25px; }
.tenant-project-row-progress { min-width: 0; }
.tenant-project-progress-track { display: block; height: 5px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: rgba(114,151,181,.16); }
.tenant-project-progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#0b78ff,#19b8ff); }
.tenant-project-progress-track.is-completed i { background: linear-gradient(90deg,#13b77d,#34e2a7); }
.tenant-project-row-action { display: flex; min-height: 32px; align-items: center; justify-content: center; gap: 2px; padding: 0 5px 0 8px; border: 1px solid rgba(74,183,255,.42); border-radius: 8px; color: #eaf8ff; background: rgba(17,126,198,.22); text-decoration: none; font-size: 8px; font-weight: 700; transition: border-color .15s,background .15s; }
.tenant-project-row:hover .tenant-project-row-action,.tenant-project-row-action:focus-visible { border-color: rgba(91,199,255,.8); color: #fff; background: rgba(16,137,219,.4); }
.tenant-project-row-chevron { display: grid; width: 20px; height: 32px; place-items: center; color: inherit; }
.tenant-project-row-chevron svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.project-detail-panel { position: sticky; top: 26px; }
.project-detail-preview { position: relative; height: 176px; overflow: hidden; background: linear-gradient(135deg,#0d3454,#061827); }
.project-detail-preview > img { width: 100%; height: 100%; object-fit: cover; opacity: .88; }
.project-detail-preview::after { position: absolute; inset: 35% 0 0; background: linear-gradient(180deg,transparent,rgba(3,15,28,.78)); content: ""; pointer-events: none; }
.project-detail-preview > span { position: absolute; z-index: 2; right: 12px; bottom: 11px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: #eaf6ff; background: rgba(4,23,39,.82); font-size: 10px; backdrop-filter: blur(7px); }
.project-detail-preview .tenant-project-placeholder svg { width: 42px; height: 42px; }
.project-detail-heading { padding: 15px 17px 11px; }
.project-detail-heading > div { min-width: 0; }
.project-detail-heading span { color: #66839e; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.project-detail-heading h2 { overflow: hidden; margin: 5px 0 4px; color: #fff; font-size: 20px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.project-detail-heading p { overflow: hidden; margin: 0; color: #a5bacb; font-size: 11px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.project-detail-heading small { display: block; overflow: hidden; margin-top: 3px; color: #718ba2; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.project-detail-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 0 17px 11px; }
.project-detail-contact a { display: grid; min-width: 0; grid-template-columns: 18px minmax(0,1fr); gap: 6px; align-items: center; padding: 8px 9px; border: 1px solid rgba(101,163,255,.14); border-radius: 8px; color: #89d4ff; background: rgba(21,168,255,.025); text-decoration: none; }
.project-detail-contact a[aria-disabled="true"] { color: #607b92; pointer-events: none; }
.project-detail-contact svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.project-detail-contact span { min-width: 0; }
.project-detail-contact small,.project-detail-contact strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-detail-contact small { color: #65829b; font-size: 8px; }
.project-detail-contact strong { margin-top: 3px; color: #c8d9e7; font-size: 9px; font-weight: 550; }
.project-detail-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; margin: 0 17px 12px; overflow: hidden; border: 1px solid rgba(101,163,255,.15); border-radius: 9px; background: rgba(101,163,255,.15); }
.project-detail-metrics div { min-width: 0; padding: 9px 6px; background: #061a2c; text-align: center; }
.project-detail-metrics dt { margin-top: 3px; color: #65819a; font-size: 7px; }
.project-detail-metrics dd { overflow: hidden; margin: 0; color: #e5f0f9; font-size: 10px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.project-detail-system { padding: 11px 17px 10px; border-top: 1px solid rgba(101,163,255,.11); }
.project-detail-system h3,.project-detail-progress-card h3 { margin: 0; color: #eaf4fd; font-size: 11px; font-weight: 620; }
.project-detail-system dl { display: grid; gap: 6px; margin: 9px 0 0; }
.project-detail-system dl div { display: grid; min-width: 0; grid-template-columns: 96px minmax(0,1fr); gap: 8px; }
.project-detail-system dt { color: #668198; font-size: 8px; }
.project-detail-system dd { overflow: hidden; margin: 0; color: #cbdbe8; font-size: 9px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.project-detail-progress-card { padding: 11px 17px 13px; border-top: 1px solid rgba(101,163,255,.11); background: rgba(8,31,52,.38); }
.project-detail-progress-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.project-detail-progress-card header p { margin: 4px 0 0; color: #718ca4; font-size: 8px; }
.project-detail-progress-card header > strong { color: #8dd8ff; font-size: 12px; font-weight: 650; white-space: nowrap; }
.project-detail-progress-card .tenant-project-progress-track { margin-top: 9px; }
.project-detail-documents { border-top: 1px solid rgba(101,163,255,.13); border-bottom: 1px solid rgba(101,163,255,.13); background: rgba(10,35,58,.54); }
.project-detail-documents summary { display: grid; min-height: 42px; grid-template-columns: auto minmax(0,1fr) 16px; gap: 8px; align-items: center; padding: 0 17px; color: #eaf4fd; cursor: pointer; list-style: none; font-size: 11px; font-weight: 620; }
.project-detail-documents summary::-webkit-details-marker { display: none; }
.project-detail-documents summary small { overflow: hidden; color: #6e8aa3; font-size: 8px; font-weight: 500; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.project-detail-documents summary b { color: #76bde9; font-size: 18px; font-weight: 300; transform: rotate(0); transition: transform .15s; }
.project-detail-documents[open] summary b { transform: rotate(90deg); }
.project-detail-documents > div { padding: 0 17px 12px; }
.project-detail-documents button { display: grid; width: 100%; min-height: 54px; grid-template-columns: 27px minmax(0,1fr) 20px; gap: 9px; align-items: center; margin-top: 7px; padding: 9px 10px; border: 1px solid rgba(101,163,255,.23); border-radius: 10px; color: #89d4ff; background: rgba(21,168,255,.055); text-align: left; cursor: pointer; }
.project-detail-documents button:disabled { color: #60788e; border-color: rgba(101,163,255,.1); background: rgba(95,122,145,.035); cursor: not-allowed; }
.project-detail-documents button > svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.project-detail-documents button strong,.project-detail-documents button small { display: block; }
.project-detail-documents button strong { color: #dcecf8; font-size: 10px; font-weight: 620; }
.project-detail-documents button small { margin-top: 3px; color: #6f8ba4; font-size: 8px; line-height: 1.3; }
.project-detail-documents button:disabled strong { color: #7d91a3; }
.project-detail-message { min-height: 0; margin: 9px 17px 0; color: #ff9da4; font-size: 9px; line-height: 1.4; }
.project-detail-open { display: flex; min-height: 46px; align-items: center; justify-content: center; gap: 9px; margin: 13px 17px 17px; border-radius: 11px; color: #fff; background: linear-gradient(135deg,#0b70bd,#0b3d68); text-decoration: none; font-size: 11px; font-weight: 800; }
.project-detail-open[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.project-detail-open svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

@media (max-width: 1250px) {
  .project-management-workspace { grid-template-columns: 1fr; }
  .project-detail-panel { position: static; display: grid; grid-template-columns: 230px minmax(245px,.85fr) minmax(290px,1.15fr); }
  .project-detail-preview { grid-row: 1 / span 7; height: 100%; min-height: 360px; }
  .project-detail-heading,.project-detail-contact,.project-detail-metrics { grid-column: 2; }
  .project-detail-system { grid-column: 3; grid-row: 1 / span 2; border-top: 0; }
  .project-detail-progress-card { grid-column: 3; grid-row: 3; }
  .project-detail-documents { grid-column: 3; grid-row: 4; }
  .project-detail-message { grid-column: 3; grid-row: 5; }
  .project-detail-open { grid-column: 3; grid-row: 6; align-self: end; }
}
@media (max-width: 1100px) {
  .project-management-toolbar { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .project-management-toolbar .project-search-field { grid-column: 1 / -1; }
  .project-management-toolbar > strong { grid-column: 1 / -1; }
  .project-management-list > header { display: none; }
  .tenant-project-row { grid-template-columns: minmax(235px,1fr) minmax(125px,.58fr) minmax(125px,.65fr) 72px; }
  .tenant-project-row-main { grid-column: 1; grid-row: 1 / span 2; }
  .tenant-project-status-control { grid-column: 2; grid-row: 1; }
  .tenant-project-row-progress { grid-column: 3; grid-row: 1; }
  .tenant-project-row-system { grid-column: 2; grid-row: 2; }
  .tenant-project-row-updated { grid-column: 3; grid-row: 2; }
  .tenant-project-row-action { grid-column: 4; grid-row: 1 / span 2; }
  .project-detail-panel { display: block; }
  .project-detail-preview { min-height: 190px; height: 190px; }
}

/* Zentrale Komponentenbibliothek */
.component-library { display: grid; gap: 18px; min-width: 0; }
.component-library-hero { padding: 25px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(140deg,rgba(10,37,62,.96),rgba(3,17,31,.98)); }
.component-library-hero h1 { margin: 5px 0 8px; font-size: clamp(31px,3vw,48px); font-weight: 620; }
.component-library-hero > div:first-child > p:last-child { max-width: 690px; margin: 0; color: #9eb2c8; line-height: 1.5; }
.component-manufacturer-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(245px,1fr)); gap: 12px; }
.component-manufacturer-card { min-height: 112px; display: grid; grid-template-columns: 82px minmax(0,1fr) 20px; gap: 15px; align-items: center; padding: 16px; border: 1px solid rgba(101,163,255,.24); border-radius: 17px; color: var(--text); text-align: left; background: linear-gradient(135deg,rgba(10,39,66,.96),rgba(4,22,39,.96)); cursor: pointer; }
.component-manufacturer-card:hover { transform: translateY(-1px); border-color: rgba(21,168,255,.55); }
.component-manufacturer-mark { width: 82px; height: 70px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: rgba(255,255,255,.96); color: #07192b; font-weight: 850; }
.component-manufacturer-mark img { max-width: 74px; max-height: 58px; object-fit: contain; }
.component-manufacturer-copy strong,.component-manufacturer-copy small,.component-manufacturer-copy em { display: block; }
.component-manufacturer-copy strong { font-size: 17px; font-weight: 620; }
.component-manufacturer-copy small { margin-top: 5px; color: #9db1c8; font-size: 11px; line-height: 1.35; }
.component-manufacturer-copy em { margin-top: 7px; color: #6f94b5; font-size: 11px; font-style: normal; }
.component-manufacturer-arrow { color: #75bdf0; font-size: 30px; font-weight: 200; }
.component-library-filters { display: grid; grid-template-columns: minmax(250px,1.4fr) minmax(160px,.7fr) minmax(180px,.8fr) auto; gap: 10px; align-items: end; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(5,25,43,.8); }
.component-library-filters-admin { grid-template-columns: minmax(230px,1.35fr) minmax(150px,.7fr) minmax(170px,.8fr) minmax(130px,.55fr) auto; }
.component-library-filters label { display: grid; gap: 6px; color: #82a2c0; font-size: 10px; }
.component-library-filters input,.component-library-filters select { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid rgba(101,163,255,.25); border-radius: 10px; color: var(--text); background: #031626; }
.component-library-table-shell { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(4,22,38,.9); }
.component-library-table-scroll { overflow-x: auto; }
.component-library-table { width: 100%; min-width: 1380px; border-collapse: collapse; }
.component-library-table th { padding: 13px 11px; color: #87a7c4; border-bottom: 1px solid rgba(101,163,255,.2); font-size: 10px; font-weight: 650; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
.component-library-table td { padding: 11px; color: #bfd0df; border-bottom: 1px solid rgba(101,163,255,.11); font-size: 11px; line-height: 1.4; vertical-align: middle; }
.component-library-table tbody tr:hover { background: rgba(21,168,255,.035); }
.component-library-table td > strong { color: #f3f8ff; font-size: 12px; }
.component-library-brand { display: flex; align-items: center; gap: 8px; min-width: 125px; }
.component-library-brand img { width: 42px; height: 26px; object-fit: contain; padding: 2px; border-radius: 5px; background: #fff; }
.component-library-thumbnail { width: 64px; height: 48px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; color: #708ba5; background: rgba(255,255,255,.06); font-size: 9px; text-align: center; }
.component-library-thumbnail img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.component-library-details { min-width: 170px; max-width: 260px; }
.component-library-price { min-width: 120px; color: #f2f7fd !important; }
.component-library-status { display: inline-flex; padding: 5px 8px; border: 1px solid rgba(255,142,150,.25); border-radius: 999px; color: #ff9aa1; background: rgba(239,38,53,.07); }
.component-library-status.is-active { color: #5fe2b0; border-color: rgba(20,196,135,.32); background: rgba(20,196,135,.08); }
.component-library-actions { display: flex; gap: 5px; }
.component-library-action { min-height: 29px; padding: 0 8px; border: 1px solid rgba(21,168,255,.35); border-radius: 8px; color: #83d0ff; background: rgba(21,168,255,.07); cursor: pointer; font-size: 9px; }
.component-library-action:hover { color: #fff; background: rgba(21,168,255,.17); }
.component-library-action.is-muted { color: #ff9aa1; border-color: rgba(239,38,53,.28); background: rgba(239,38,53,.06); }
.component-library-empty { padding: 30px !important; text-align: center; }
.component-library-table-shell > footer { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; color: #88a5bf; font-size: 11px; }
.component-library-table-shell > footer div { display: flex; align-items: center; gap: 8px; }
.component-library-table-shell > footer button { width: 31px; height: 31px; border: 1px solid rgba(101,163,255,.24); border-radius: 8px; color: #83cfff; background: rgba(21,168,255,.06); cursor: pointer; }
.component-library-table-shell > footer button:disabled { opacity: .35; cursor: default; }
.component-detail-dialog { width: min(760px,calc(100vw - 30px)); padding: 0; border: 1px solid rgba(101,163,255,.3); border-radius: 20px; color: var(--text); background: linear-gradient(145deg,#0b233b,#04111f); box-shadow: 0 30px 90px rgba(0,0,0,.58); }
.component-detail-dialog::backdrop { background: rgba(0,7,15,.74); backdrop-filter: blur(5px); }
.component-detail-dialog > header,.component-detail-dialog > footer { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.component-detail-dialog > footer { justify-content: flex-end; border-top: 1px solid var(--line); border-bottom: 0; }
.component-detail-dialog h2 { margin: 3px 0 0; font-size: 24px; }
.component-detail-dialog > header > button { border: 0; color: #9cb3c9; background: transparent; cursor: pointer; font-size: 28px; }
.component-detail-body { display: grid; grid-template-columns: 190px 1fr; gap: 20px; padding: 24px; }
.component-detail-image { min-height: 170px; display: grid; place-items: center; overflow: hidden; border-radius: 14px; color: #7894ad; background: #fff; }
.component-detail-image img { width: 100%; height: 100%; max-height: 220px; object-fit: contain; }
.component-detail-list { display: grid; gap: 8px; margin: 0; }
.component-detail-list div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(101,163,255,.12); }
.component-detail-list dt { color: #829fba; font-size: 11px; }
.component-detail-list dd { margin: 0; color: #edf5ff; font-size: 12px; }
.component-detail-description { grid-column: 1/-1; margin: 0; color: #a8bacb; line-height: 1.55; }

@media (max-width: 1180px) {
  .tenant-hero { grid-template-columns: 1fr 1fr; }
  .tenant-project-grid, .tenant-project-grid-wide { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .tenant-component-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .component-library-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .tenant-shell { grid-template-columns: 1fr; }
  .tenant-sidebar { position: static; height: auto; padding: 13px; }
  .tenant-brand, .tenant-license { display: none; }
  .tenant-identity { grid-template-columns: 40px minmax(0,1fr) 34px; }
  .tenant-avatar { width: 40px; height: 40px; }
  .tenant-nav { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 10px; }
  .tenant-nav p, .tenant-nav > div p { display: none; }
  .tenant-nav > div { display: contents; }
  .tenant-nav a { grid-template-columns: 20px minmax(0,1fr); }
  .tenant-nav a > small { display: none; }
  .tenant-main { padding: 14px; }
  .tenant-hero { grid-template-columns: 1fr; }
  .tenant-featured { min-height: 220px; }
  .tenant-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tenant-kpis article:nth-child(2) { border-right: 0; }
  .tenant-kpis article:nth-child(-n+2) { border-bottom: 1px solid rgba(101,163,255,.12); }
  .tenant-project-grid, .tenant-project-grid-wide { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-management-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-management-kpis article:nth-child(2) { border-right: 0; }
  .project-management-kpis article:nth-child(-n+2) { border-bottom: 1px solid rgba(101,163,255,.13); }
  .project-management-toolbar { grid-template-columns: 1fr 1fr; }
  .project-management-toolbar .project-search-field { grid-column: 1 / -1; }
  .project-management-toolbar > strong { grid-column: 1 / -1; }
  .project-detail-panel { grid-template-columns: 210px minmax(230px,.9fr) minmax(270px,1.1fr); }
}
@media (max-width: 620px) {
  .tenant-nav { grid-template-columns: 1fr; }
  .tenant-nav a { min-height: 40px; }
  .tenant-hero-copy { padding: 24px 20px; }
  .tenant-hero-copy h1 { font-size: 31px; }
  .tenant-kpis { grid-template-columns: 1fr; }
  .tenant-kpis article { border-right: 0; border-bottom: 1px solid rgba(101,163,255,.12); }
  .tenant-kpis article:last-child { border-bottom: 0; }
  .tenant-section-heading, .tenant-page-header { align-items: stretch; flex-direction: column; }
  .tenant-section-actions { justify-content: space-between; }
  .tenant-project-grid, .tenant-project-grid-wide, .tenant-component-grid { grid-template-columns: 1fr; }
  .tenant-toolbar { grid-template-columns: 1fr; }
  .tenant-featured-copy { align-items: stretch; flex-direction: column; }
  .tenant-featured-copy .tenant-btn { align-self: flex-start; }
  .tenant-page-actions { align-items: stretch; flex-direction: column; }
  .tenant-dialog-actions { flex-direction: column-reverse; }
  .tenant-dialog-actions .tenant-btn { width: 100%; }
  .component-library-filters { grid-template-columns: 1fr; }
  .component-manufacturer-grid { grid-template-columns: 1fr; }
  .component-detail-body { grid-template-columns: 1fr; }
  .component-detail-list div { grid-template-columns: 1fr; gap: 3px; }
  .project-management-kpis { grid-template-columns: 1fr 1fr; }
  .project-management-kpis article { padding: 13px; }
  .project-management-kpis strong { font-size: 20px; }
  .project-management-toolbar .project-search-field,.project-management-toolbar > strong { grid-column: auto; }
  .project-management-list > header { display: none; }
  .tenant-project-row { grid-template-columns: minmax(0,1fr) 18px; gap: 9px; min-height: 0; padding: 14px; }
  .tenant-project-row-main { grid-column: 1; }
  .tenant-project-status-control,.tenant-project-row-progress,.tenant-project-row-system,.tenant-project-row-updated { grid-column: 1; margin-left: 82px; }
  .tenant-project-status-control { grid-row: auto; width: max-content; max-width: calc(100% - 82px); }
  .tenant-project-row-action { grid-column: 2; grid-row: 1 / span 5; }
  .tenant-project-row-action > span { display: none; }
  .tenant-project-row-preview { width: 70px; }
  .project-detail-panel { display: block; }
  .project-detail-preview { min-height: 175px; height: 175px; }
  .project-detail-contact { grid-template-columns: 1fr; }
}

/* Administration */
.admin-shell {
  grid-template-columns: var(--workspace-sidebar-width) minmax(0,1fr);
  background:
    radial-gradient(circle at 76% -18%,rgba(0,111,190,.14),transparent 35%),
    linear-gradient(135deg,#020d19,#031423 62%,#020c17);
}
.admin-sidebar {
  z-index: 5;
  gap: 28px;
  padding: 30px 18px 22px;
  border-right-color: rgba(106,176,234,.16);
  background: linear-gradient(180deg,rgba(4,21,37,.98),rgba(2,15,27,.98));
  box-shadow: 14px 0 45px rgba(0,0,0,.1);
}
.admin-sidebar .brand { display: block; padding: 2px 12px 4px; }
.admin-sidebar .brand img { display: block; width: var(--workspace-logo-width); height: auto; filter: drop-shadow(0 9px 20px rgba(0,145,255,.2)); }
.identity-card {
  grid-template-columns: var(--workspace-avatar-size) minmax(0,1fr) 36px;
  gap: 13px;
  min-height: 78px;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.identity-mark {
  width: var(--workspace-avatar-size);
  height: var(--workspace-avatar-size);
  border-color: rgba(37,181,255,.62);
  border-radius: 15px 15px 15px 6px;
  background: linear-gradient(145deg,rgba(21,168,255,.26),rgba(12,60,99,.56));
  box-shadow: none;
  font-size: 14px;
  letter-spacing: .04em;
}
.identity-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #f5f9fd;
  font-size: 15px;
  font-weight: 520;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.identity-copy > span {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 3px;
  color: #93abc1;
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
}
.identity-copy small { display: flex; align-items: center; gap: 6px; margin-top: 3px; color: #7895ad; font-size: 11px; }
.identity-copy small i { width: 6px; height: 6px; border-radius: 50%; background: #20d795; box-shadow: 0 0 10px rgba(32,215,149,.55); }
.identity-copy small span { display: inline; overflow: visible; margin: 0; color: inherit; font-size: inherit; white-space: normal; }
.admin-identity-logout {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  color: #7898b4;
  background: transparent;
  cursor: pointer;
}
.admin-identity-logout:hover { color: #fff; background: rgba(21,168,255,.1); }
.admin-identity-logout:focus-visible { outline: 2px solid rgba(78,190,255,.72); outline-offset: 2px; }
.admin-identity-logout svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.admin-nav { gap: 6px; margin-top: 0; }
.admin-nav-label {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 10px 7px;
  color: #68839b;
  font-size: 10px;
  font-weight: 520;
  letter-spacing: .16em;
}
.admin-nav-label:not(:first-child) { margin-top: 20px; }
.admin-nav-label::after { height: 1px; flex: 1; background: rgba(104,143,178,.16); content: ""; }
.admin-nav button {
  position: relative;
  min-height: var(--workspace-nav-height);
  gap: 15px;
  padding: 11px 16px;
  border-radius: 9px;
  color: #9eb3c6;
  font-size: 15px;
  font-weight: 420;
  transition: color .16s ease,border-color .16s ease,background .16s ease;
}
.admin-nav button > span { min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }
.admin-nav button::before { display: none; }
.admin-nav button::after { position: absolute; width: 3px; top: 7px; bottom: 7px; left: -18px; border-radius: 0 3px 3px 0; background: transparent; content: ""; }
.admin-nav button svg {
  width: var(--workspace-nav-icon-size);
  height: var(--workspace-nav-icon-size);
  flex: 0 0 auto;
  fill: none;
  stroke: #6da9d6;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.admin-nav button:hover { color: #edf7ff; border-color: rgba(99,167,223,.15); background: rgba(20,96,150,.09); }
.admin-nav button:focus { outline: none; }
.admin-nav button:focus-visible { outline: 2px solid rgba(78,190,255,.72); outline-offset: 2px; }
.admin-nav button.is-active {
  border-color: rgba(86,160,219,.24);
  color: #fff;
  background: linear-gradient(90deg,rgba(14,83,132,.45),rgba(8,48,82,.23));
}
.admin-nav button.is-active::after { background: #ef2635; box-shadow: 0 0 16px rgba(239,38,53,.52); }
.admin-nav button.is-active svg { stroke: #62c7ff; }
.sidebar-footer { gap: 12px; padding: 18px 7px 0; border-top-color: rgba(100,155,199,.15); }
.sidebar-product { display: grid; grid-template-columns: 37px minmax(0,1fr); gap: 10px; align-items: center; }
.sidebar-product > span { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 11px; color: #53c3ff; background: rgba(21,168,255,.1); }
.sidebar-product svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-product strong,.sidebar-product small { display: block; }
.sidebar-product strong { color: #e9f4fd; font-size: 13px; font-weight: 620; }
.sidebar-product small { margin-top: 3px; color: #6f8ca4; font-size: 10px; }
.license-mini { padding: 10px 11px; border: 1px solid rgba(95,156,205,.15); border-radius: 11px; color: #829bb1; background: rgba(8,35,58,.47); font-size: 10px; line-height: 1.55; }

/* Einheitliche Lizenz- und Zugangskarte in allen Arbeitsbereichen. */
.tenant-license.workspace-license-card {
  display: grid;
  gap: 14px;
  margin-top: auto;
  padding: 15px;
  border: 1px solid rgba(86,160,219,.28);
  border-radius: 17px;
  background:
    radial-gradient(circle at 82% 18%,rgba(22,133,216,.11),transparent 48%),
    linear-gradient(145deg,rgba(8,39,65,.94),rgba(3,22,38,.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035),0 15px 34px rgba(0,0,0,.17);
}
.sidebar-footer { padding: 18px 0 0; }
.sidebar-footer .workspace-license-card {
  display: grid;
  gap: 14px;
  padding: 15px;
  border: 1px solid rgba(86,160,219,.28);
  border-radius: 17px;
  background:
    radial-gradient(circle at 82% 18%,rgba(22,133,216,.11),transparent 48%),
    linear-gradient(145deg,rgba(8,39,65,.94),rgba(3,22,38,.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035),0 15px 34px rgba(0,0,0,.17);
}
.workspace-license-brand {
  display: grid;
  grid-template-columns: 36px minmax(0,1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.workspace-license-brand > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(63,181,255,.22);
  border-radius: 11px;
  color: #27b7ff;
  background: rgba(14,111,174,.13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.workspace-license-brand svg {
  display: block;
  width: 23px;
  height: 23px;
  margin: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.workspace-license-brand strong {
  min-width: 0;
  color: #eef7ff;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.01em;
}
.workspace-license-brand [data-license-tenant-name] {
  color: #c8d9e7;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: .005em;
  overflow-wrap: anywhere;
}
.workspace-license-grid {
  display: grid;
  grid-template-columns: minmax(0,.95fr) minmax(0,1.2fr);
  align-items: stretch;
  min-width: 0;
}
.workspace-license-type {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding-right: 12px;
}
.workspace-license-type > span {
  color: #769ab8;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}
.workspace-license-type > strong {
  min-width: 0;
  color: #f3f8fc;
  font-size: 15px;
  font-weight: 670;
  line-height: 1.18;
  overflow-wrap: anywhere;
}
.workspace-license-state {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
  padding-left: 13px;
  border-left: 1px solid rgba(102,159,204,.23);
}
.workspace-license-state > span:first-child {
  display: flex;
  gap: 7px;
  align-items: center;
  min-width: 0;
  color: #37d99b;
}
.workspace-license-state i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 11px currentColor;
}
.workspace-license-state strong {
  min-width: 0;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.15;
}
.workspace-license-state time,
.workspace-license-state > span:last-child {
  min-width: 0;
  color: #6f91ad;
  font-size: 10px;
  line-height: 1.25;
  white-space: normal;
}
.workspace-license-state.is-inactive > span:first-child { color: #ff6e7b; }
.admin-license-card .workspace-license-grid { grid-template-columns: minmax(0,1.16fr) minmax(0,1fr); }
.admin-license-card .workspace-license-type > strong { font-size: 13px; }
.admin-main { width: 100%; min-width: 0; max-width: none; margin: 0; padding: 26px; }
.admin-main > section { min-width: 0; }
.admin-heading {
  align-items: center;
  margin-bottom: 17px;
  padding: clamp(22px,2.25vw,34px);
  border: 1px solid rgba(101,163,255,.2);
  border-radius: 22px;
  background: linear-gradient(135deg,rgba(10,39,65,.96),rgba(4,22,39,.95));
  box-shadow: 0 18px 55px rgba(0,0,0,.14),inset 0 1px rgba(255,255,255,.025);
}
.admin-heading .eyebrow { color: #ef3340; }
.admin-heading h1 { margin-top: 7px; font-size: clamp(30px,3.4vw,48px); font-weight: 620; letter-spacing: -.025em; }
.admin-heading h1 span { color: #20aefc; }
.admin-heading > div > p:last-child { max-width: 720px; margin-top: 8px; color: #cbd8e7; font-size: 16px; line-height: 1.52; }
.admin-heading-actions { flex: 0 0 auto; }
.admin-primary-action { min-height: 46px; gap: 9px; padding: 0 18px; border-radius: 10px; white-space: nowrap; font-size: 14px; font-weight: 850; }
.admin-primary-action svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.admin-kpis { gap: 11px; margin-bottom: 13px; }
.admin-kpis article {
  grid-template-columns: 38px minmax(0,1fr);
  gap: 10px;
  min-height: 78px;
  padding: 11px 14px;
  border-color: rgba(101,163,255,.2);
  border-radius: 18px;
  background: linear-gradient(140deg,rgba(7,31,52,.91),rgba(4,23,40,.88));
  box-shadow: inset 0 1px rgba(255,255,255,.02);
}
.admin-kpis .kpi-symbol {
  display: grid;
  width: 38px;
  height: 38px;
  margin: 0;
  place-items: center;
  border-radius: 10px;
}
.admin-kpis .kpi-symbol svg { display: block; width: 22px; height: 22px; margin: 0; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.admin-nav-count { min-width: 20px; margin-left: auto; padding: 3px 6px; border-radius: 999px; color: #7ccfff; background: rgba(21,168,255,.12); font-size: 9px; font-weight: 650; text-align: center; }
.privacy-badge { display: inline-flex !important; width: fit-content; margin-top: 5px; padding: 3px 7px; border: 1px solid rgba(78,190,255,.24); border-radius: 999px; color: #70caff !important; background: rgba(21,168,255,.07); font-size: 8px !important; letter-spacing: .05em; text-transform: uppercase; }
.row-delete-action { white-space: nowrap; }
.drawer-footer-spacer { flex: 1; }
.drawer-danger-action { margin-right: auto; }
.deletion-notice { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 14px; align-items: center; margin-bottom: 14px; padding: 15px 17px; border: 1px solid rgba(78,190,255,.18); border-radius: 14px; background: linear-gradient(120deg,rgba(21,168,255,.075),rgba(5,24,41,.55)); }
.deletion-notice > svg { width: 27px; height: 27px; margin: auto; fill: none; stroke: #4fc5ff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.deletion-notice strong,.deletion-notice span { display: block; }
.deletion-notice strong { color: #eef8ff; font-size: 12px; }
.deletion-notice span { margin-top: 3px; color: #86a1ba; font-size: 10px; line-height: 1.45; }
.admin-account-layout { display: grid; grid-template-columns: minmax(0,780px) minmax(260px,360px); gap: 16px; align-items: start; }
.admin-account-card { padding: clamp(22px,2.4vw,34px); border: 1px solid rgba(101,163,255,.2); border-radius: 19px; background: linear-gradient(145deg,rgba(8,35,58,.96),rgba(3,18,32,.94)); box-shadow: 0 18px 55px rgba(0,0,0,.14); }
.admin-account-card-heading { display: grid; grid-template-columns: 50px minmax(0,1fr); gap: 16px; align-items: start; margin-bottom: 25px; padding-bottom: 21px; border-bottom: 1px solid rgba(101,163,255,.14); }
.admin-account-card-heading > span { display: grid; width: 50px; height: 50px; place-items: center; border: 1px solid rgba(78,190,255,.23); border-radius: 14px; color: #55c3ff; background: rgba(21,168,255,.1); }
.admin-account-card-heading svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.admin-account-card-heading .eyebrow { margin: 0 0 5px; color: #ef3340; }
.admin-account-card-heading h2 { margin: 0; color: #f4f9fd; font-size: 22px; font-weight: 590; }
.admin-account-card-heading p:last-child { max-width: 650px; margin: 8px 0 0; color: #8da6bd; font-size: 11px; line-height: 1.55; }
.admin-account-card .field input[readonly] { color: #7894ac; border-color: rgba(101,163,255,.12); background: rgba(2,15,27,.58); cursor: not-allowed; }
.admin-account-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.admin-account-actions .btn { min-height: 45px; padding: 0 19px; }
.admin-account-security { display: grid; grid-template-columns: 43px minmax(0,1fr); gap: 13px; padding: 19px; border: 1px solid rgba(53,214,155,.2); border-radius: 16px; background: linear-gradient(140deg,rgba(14,90,72,.16),rgba(3,20,35,.82)); }
.admin-account-security > svg { width: 29px; height: 29px; margin: 3px auto 0; fill: none; stroke: #35d69b; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.admin-account-security strong { color: #e9f8f2; font-size: 12px; font-weight: 590; }
.admin-account-security p { margin: 6px 0 0; color: #83a79a; font-size: 10px; line-height: 1.58; }
.deletion-impact-cell { max-width: 320px; color: #8ea7bd !important; line-height: 1.45; }
.administration-delete-dialog { width: min(540px,calc(100vw - 30px)); padding: 0; border: 1px solid rgba(239,38,53,.35); border-radius: 20px; color: var(--text); background: linear-gradient(145deg,#0b233b,#04111f); box-shadow: 0 32px 100px rgba(0,0,0,.64); }
.administration-delete-dialog::backdrop { background: rgba(0,7,15,.78); backdrop-filter: blur(6px); }
.administration-delete-dialog form { padding: 28px; }
.administration-delete-icon { display: grid; width: 50px; height: 50px; margin-bottom: 17px; place-items: center; border: 1px solid rgba(239,38,53,.28); border-radius: 15px; color: #ff818c; background: rgba(239,38,53,.1); }
.administration-delete-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.administration-delete-dialog h2 { margin: 3px 0 10px; font-size: 25px; font-weight: 610; }
.administration-delete-dialog form > p:not(.eyebrow):not(.form-message) { margin: 0; color: #9db2c6; font-size: 13px; line-height: 1.58; }
.deletion-impact { display: grid; gap: 4px; margin: 18px 0; padding: 13px 15px; border: 1px solid rgba(101,163,255,.16); border-radius: 12px; background: rgba(3,17,30,.58); }
.deletion-impact strong { color: #e7f3fd; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.deletion-impact span { color: #8ba5bb; font-size: 11px; }
.destructive-step-up { margin-top: 19px; }
.administration-delete-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 23px; }
.kpi-symbol.is-blue { color: #55c3ff; background: rgba(21,168,255,.13); }
.kpi-symbol.is-green { color: #35d69b; background: rgba(24,210,139,.12); }
.kpi-symbol.is-red { color: #ff6e79; background: rgba(239,38,53,.12); }
.kpi-symbol.is-violet { color: #b58bff; background: rgba(142,92,246,.14); }
.admin-kpis strong { color: #fff; font-size: clamp(21px,1.8vw,27px); font-weight: 620; line-height: 1; }
.admin-kpis span { margin-top: 4px; color: #bfd1e1; font-size: 13px; }
.admin-kpis small { margin-top: 3px; color: #68839b; font-size: 10px; }
.toolbar {
  grid-template-columns: minmax(260px,1fr) repeat(2,minmax(150px,220px)) auto;
  gap: 9px;
  margin-bottom: 13px;
  padding: 13px;
  border-color: rgba(101,163,255,.19);
  border-radius: 14px;
  background: rgba(5,25,43,.78);
}
.filter-field span { color: #7898b4; font-size: 10px; font-weight: 560; }
.filter-field input,.filter-field select { min-height: 42px; border-color: rgba(101,163,255,.22); border-radius: 9px; color: #e7f2fb; background: rgba(2,18,32,.85); font-size: 12px; }
.table-panel { border-color: rgba(101,163,255,.2); border-radius: 16px; background: rgba(3,20,35,.9); box-shadow: 0 18px 55px rgba(0,0,0,.14); }
.data-table { font-size: 11px; }
.data-table th { padding: 13px 15px; border-bottom-color: rgba(101,163,255,.18); color: #6f90ac; font-size: 10px; letter-spacing: .09em; }
.data-table td { padding: 14px 15px; border-bottom-color: rgba(101,163,255,.09); color: #b9cad8; }
.data-table tbody tr { transition: background .14s ease; }
.data-table tbody tr:hover { background: rgba(21,168,255,.045); }
.cell-main strong { color: #f4f8fc; font-size: 12px; font-weight: 590; }
.cell-main small { margin-top: 2px; color: #6f8ca5; font-size: 10px; }
.status { padding: 5px 9px; border: 1px solid rgba(126,150,174,.2); font-size: 8px; }
.status.is-active { border-color: rgba(24,210,139,.27); }
.status.is-inactive,.status.is-expired { border-color: rgba(239,38,53,.28); }
.status.is-pending,.status.is-scheduled { border-color: rgba(255,178,74,.28); }
.row-actions .btn { min-height: 31px; border-radius: 8px; }
.panel-message { border-radius: 12px; }
.drawer { width: min(610px,100%); border-left-color: rgba(101,163,255,.28); background: linear-gradient(165deg,#071d31,#03111f); }
.drawer header { padding: 27px 28px 22px; border-bottom-color: rgba(101,163,255,.16); }
.drawer header h2 { font-size: 27px; }
.drawer-close { border-color: rgba(101,163,255,.22); border-radius: 11px; }
.drawer-body { gap: 20px; padding: 25px 28px; }
.drawer-footer { padding: 17px 28px; border-top-color: rgba(101,163,255,.16); background: rgba(2,15,27,.82); }
.section-card { padding: 18px; border-color: rgba(101,163,255,.18); border-radius: 14px; background: rgba(3,18,32,.64); }
.loading-cover { color: #bcd4e8; background: radial-gradient(circle at 50% 42%,rgba(12,73,116,.35),transparent 28%),#020d18; }
.component-library-filters-admin,.component-library-table-shell { border-color: rgba(101,163,255,.19); background: rgba(4,22,38,.86); }

/* Mandanten-Benutzerverwaltung innerhalb der Projektzentrale */
.tenant-users-page { display: grid; gap: 18px; align-content: start; }
.tenant-users-header { display: flex; justify-content: space-between; gap: 24px; }
.tenant-users-header > div { min-width: 0; }
.tenant-users-header .tenant-btn { flex: 0 0 auto; }
.tenant-users-message { margin: -4px 0 0; }
.tenant-users-message.is-success,.form-message.is-success { color: #69e8aa; }
.tenant-user-kpis { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; margin: 0; }
.tenant-user-kpis article { display: grid; min-height: 78px; grid-template-columns: 38px minmax(0,1fr); gap: 12px; align-items: center; padding: 11px 14px; border: 1px solid rgba(101,163,255,.19); border-radius: 18px; background: linear-gradient(145deg,rgba(8,36,59,.96),rgba(4,23,39,.91)); }
.tenant-user-kpis .tenant-user-kpi-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; }
.tenant-user-kpi-icon svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.tenant-user-kpi-icon.is-blue { color: #55c3ff; background: rgba(21,168,255,.13); }
.tenant-user-kpi-icon.is-green { color: #35d69b; background: rgba(24,210,139,.12); }
.tenant-user-kpi-icon.is-violet { color: #b58bff; background: rgba(142,92,246,.14); }
.tenant-user-kpis article > div > strong,.tenant-user-kpis article > div > span,.tenant-user-kpis article > div > small { display: block; }
.tenant-user-kpis strong { color: #fff; font-size: clamp(21px,1.8vw,27px); font-weight: 620; line-height: 1; }
.tenant-user-kpis span { margin-top: 4px; color: #bfd1e1; font-size: 13px; }
.tenant-user-kpis small { margin-top: 3px; color: #68839b; font-size: 10px; }
.tenant-user-toolbar { display: grid; grid-template-columns: minmax(280px,1fr) minmax(190px,240px) auto; gap: 12px; align-items: end; margin: 0; padding: 14px; border: 1px solid rgba(101,163,255,.19); border-radius: 14px; background: rgba(5,25,43,.78); }
.tenant-user-toolbar label { display: grid; gap: 7px; }
.tenant-user-toolbar label span { color: #7898b4; font-size: 12px; font-weight: 560; }
.tenant-user-toolbar input,.tenant-user-toolbar select { width: 100%; min-height: var(--workspace-control-height); padding: 0 13px; border: 1px solid rgba(101,163,255,.22); border-radius: 11px; outline: none; color: #e7f2fb; background: rgba(2,18,32,.85); font: inherit; font-size: 14px; }
.tenant-user-toolbar input:focus,.tenant-user-toolbar select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,168,255,.09); }
.tenant-user-table-panel { min-width: 0; overflow: hidden; align-self: start; border: 1px solid rgba(101,163,255,.2); border-radius: 16px; background: rgba(3,20,35,.9); box-shadow: 0 18px 55px rgba(0,0,0,.14); }
.tenant-user-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.tenant-user-table { width: 100%; min-width: 1080px; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.tenant-user-table th:nth-child(1) { width: 27%; }
.tenant-user-table th:nth-child(2) { width: 15%; }
.tenant-user-table th:nth-child(3) { width: 17%; }
.tenant-user-table th:nth-child(4) { width: 12%; }
.tenant-user-table th:nth-child(5) { width: 15%; }
.tenant-user-table th:nth-child(6) { width: 14%; }
.tenant-user-table th { padding: 14px 16px; border-bottom: 1px solid rgba(101,163,255,.18); color: #6f90ac; font-size: 11px; font-weight: 650; letter-spacing: .09em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.tenant-user-table td { padding: 16px; border-bottom: 1px solid rgba(101,163,255,.09); color: #b9cad8; vertical-align: middle; overflow-wrap: anywhere; }
.tenant-user-table tr:last-child td { border-bottom: 0; }
.tenant-user-table tbody tr:hover { background: rgba(21,168,255,.045); }
.tenant-user-identity { display: grid; gap: 3px; min-width: 190px; }
.tenant-user-identity strong { color: #f4f8fc; font-size: 14px; font-weight: 590; }
.tenant-user-identity small { color: #6f8ca5; font-size: 11px; overflow-wrap: anywhere; }
.tenant-user-actions { display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 8px; white-space: nowrap; }
.tenant-user-actions .tenant-btn-small { flex: 0 0 auto; min-height: 36px; padding: 0 12px; border-radius: 9px; font-size: 12px; white-space: nowrap; }
.tenant-user-self-note { color: #6f8ca5; font-size: 11px; white-space: normal; }
.tenant-user-empty { padding: 35px !important; color: #7891aa !important; text-align: center; }
.status.is-pending-activation { border-color: rgba(255,178,74,.28); color: #ffc56f; background: rgba(255,178,74,.1); }
.tenant-user-drawer .field > span { font-size: 13px; }
.tenant-user-drawer .field input,.tenant-user-drawer .field select { min-height: var(--workspace-control-height); font-size: 14px; }
.tenant-user-drawer .field small { color: #6f8ca5; font-size: 11px; line-height: 1.45; }

/* Benutzerlisten verwenden in Mandanten- und Systemadministration dasselbe
   kompakte Sechs-Spalten-Verhalten. Der Scrollbereich bleibt am Tabellenpanel. */
.admin-user-table { min-width: 1120px; table-layout: fixed; font-size: 13px; }
.admin-user-table th:nth-child(1) { width: 25%; }
.admin-user-table th:nth-child(2) { width: 23%; }
.admin-user-table th:nth-child(3) { width: 15%; }
.admin-user-table th:nth-child(4) { width: 11%; }
.admin-user-table th:nth-child(5) { width: 14%; }
.admin-user-table th:nth-child(6) { width: 12%; }
.admin-user-table th { font-size: 11px; }
.admin-user-table td { font-size: 13px; overflow-wrap: anywhere; }
.admin-user-table .row-actions { flex-wrap: nowrap; justify-content: flex-end; white-space: nowrap; }
.admin-user-table .row-actions .btn { flex: 0 0 auto; min-height: 36px; padding: 0 12px; border-radius: 9px; font-size: 12px; white-space: nowrap; }

/* MFA-Richtlinie und persönliche Kontosicherheit */
.tenant-mfa-policy-card {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(360px,520px);
  gap: 26px;
  align-items: end;
  padding: 22px;
  border: 1px solid rgba(101,163,255,.2);
  border-radius: 19px;
  background: linear-gradient(145deg,rgba(8,36,59,.96),rgba(4,23,39,.91));
}
.tenant-mfa-policy-card h2,.account-security-page h2 { margin: 0; color: #f4f8fc; font-size: 22px; font-weight: 620; letter-spacing: -.02em; }
.tenant-mfa-policy-card p:not(.eyebrow),.account-security-action p,.account-security-status p:not(.eyebrow),.account-recovery-codes p:not(.eyebrow) { margin: 8px 0 0; color: #8fa8be; font-size: 13px; line-height: 1.58; }
.tenant-mfa-policy-card small { display: block; min-height: 18px; margin-top: 9px; color: #6fc6ff; font-size: 11px; }
.tenant-mfa-policy-card form { display: grid; grid-template-columns: minmax(180px,1fr) auto; gap: 11px; align-items: end; }
.tenant-mfa-policy-card label { display: grid; gap: 7px; color: #a9bed1; font-size: 12px; font-weight: 580; }
.tenant-mfa-policy-card select { width: 100%; min-height: var(--workspace-control-height); padding: 0 13px; border: 1px solid rgba(101,163,255,.25); border-radius: 11px; outline: none; color: #eef7ff; background: rgba(2,18,32,.86); font-size: 14px; }
.tenant-mfa-policy-card select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,168,255,.09); }

.account-security-page { display: grid; gap: 18px; }
.account-security-page .tenant-page-header { margin: 0; }
.company-profile-card {
  display: grid;
  gap: 22px;
  padding: 24px;
  border: 1px solid rgba(101,163,255,.23);
  border-radius: 19px;
  background: linear-gradient(145deg,rgba(8,36,59,.97),rgba(3,20,35,.95));
}
.company-profile-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.company-profile-heading h2 { margin-top: 2px; }
.company-profile-heading p:not(.eyebrow) { margin: 8px 0 0; color: #8fa8be; font-size: 13px; line-height: 1.58; }
.company-profile-heading > span { flex: 0 0 auto; padding: 7px 11px; border: 1px solid rgba(239,38,53,.28); border-radius: 999px; color: #ff9ca5; background: rgba(239,38,53,.08); font-size: 11px; font-weight: 650; }
.company-profile-heading > span.is-complete { border-color: rgba(24,210,139,.28); color: #54e1ae; background: rgba(24,210,139,.08); }
.company-profile-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; padding-top: 20px; border-top: 1px solid rgba(101,163,255,.15); }
.company-profile-form .field { display: grid; gap: 7px; color: #b9c9d8; font-size: 12px; font-weight: 600; }
.company-profile-form .field.is-wide { grid-column: 1 / -1; }
.company-profile-form .field em { color: #ff6572; font-style: normal; }
.company-profile-form .field > span { color: #6f8ba3; font-size: 10px; font-weight: 500; }
.company-profile-form input { width: 100%; min-height: var(--workspace-control-height); padding: 0 14px; border: 1px solid rgba(101,163,255,.24); border-radius: 11px; outline: 0; color: #f0f7fd; background: rgba(2,18,32,.86); font: inherit; font-size: 14px; }
.company-profile-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,168,255,.09); }
.company-profile-actions { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 18px; padding-top: 4px; }
.company-profile-actions small { max-width: 640px; color: #8199ae; font-size: 11px; line-height: 1.5; }
.company-logo-panel { display: grid; grid-template-columns: minmax(230px,340px) minmax(0,1fr); gap: 24px; align-items: center; padding-top: 22px; border-top: 1px solid rgba(101,163,255,.15); }
.company-logo-preview { display: grid; min-height: 150px; place-items: center; gap: 8px; padding: 16px; border: 1px dashed rgba(101,163,255,.3); border-radius: 16px; color: #6d92b1; background: rgba(2,18,32,.64); }
.company-logo-preview img { display: block; max-width: 100%; max-height: 116px; object-fit: contain; }
.company-logo-preview svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.company-logo-preview span { font-size: 12px; }
.company-logo-copy h3 { margin: 0; color: #f3f8fc; font-size: 18px; font-weight: 640; }
.company-logo-copy p { max-width: 680px; margin: 8px 0 0; color: #8fa8be; font-size: 13px; line-height: 1.55; }
.company-logo-copy small { display: block; margin-top: 6px; color: #6f8ba3; font-size: 11px; }
.company-logo-copy > div { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 17px; }
.account-security-status,.account-security-action,.account-recovery-codes {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(360px,560px);
  gap: 28px;
  padding: 23px;
  border: 1px solid rgba(101,163,255,.2);
  border-radius: 19px;
  background: linear-gradient(145deg,rgba(8,36,59,.95),rgba(3,20,35,.93));
}
.account-security-status { grid-template-columns: 54px minmax(0,1fr); align-items: center; }
.account-security-shield { display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid rgba(24,210,139,.28); border-radius: 16px; color: #35d69b; background: rgba(24,210,139,.1); }
.account-security-shield svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.account-security-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.account-security-meta span { padding: 6px 10px; border: 1px solid rgba(101,163,255,.18); border-radius: 999px; color: #8fc4ec; background: rgba(2,18,32,.56); font-size: 11px; }
.account-security-action > form { display: grid; gap: 13px; align-self: start; }
.account-security-action .field { font-size: 13px; }
.account-security-action .field input { min-height: var(--workspace-control-height); font-size: 14px; }
.account-mfa-setup { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(220px,300px) minmax(280px,1fr); gap: 24px; align-items: center; padding-top: 19px; border-top: 1px solid rgba(101,163,255,.14); }
.account-mfa-setup img { display: block; width: min(280px,100%); aspect-ratio: 1; padding: 13px; border-radius: 17px; background: #fff; }
.account-mfa-setup > div,.account-mfa-setup form { display: grid; gap: 13px; }
.account-security-confirm { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid rgba(239,38,53,.25); border-radius: 11px; color: #d9abb0; background: rgba(239,38,53,.07); font-size: 12px; line-height: 1.45; }
.account-security-confirm input { flex: 0 0 auto; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--red); }
.account-recovery-codes { grid-template-columns: minmax(260px,.7fr) minmax(360px,1.3fr); align-items: start; border-color: rgba(255,178,74,.26); }
.account-recovery-code-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.account-recovery-code-grid code { display: block; padding: 11px; border: 1px solid rgba(255,178,74,.2); border-radius: 9px; color: #ffe2b4; background: rgba(2,15,28,.66); font: 650 13px/1.2 Consolas,"SFMono-Regular",monospace; letter-spacing: .08em; text-align: center; }
.account-recovery-codes .tenant-btn { grid-column: 2; justify-self: start; }

@media (max-width: 1180px) {
  .admin-shell { grid-template-columns: 290px minmax(0,1fr); }
  .admin-main { padding: 22px; }
  .toolbar { grid-template-columns: minmax(230px,1fr) minmax(150px,200px) auto; }
  .toolbar .filter-field:nth-of-type(3) { grid-column: 1 / 2; }
  .admin-account-layout { grid-template-columns: 1fr; }
  .tenant-user-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tenant-user-kpis article:last-child { grid-column: 1 / -1; }
  .tenant-mfa-policy-card,.account-security-action,.account-recovery-codes { grid-template-columns: 1fr; }
  .company-logo-panel { grid-template-columns: 1fr; }
  .account-recovery-codes .tenant-btn { grid-column: auto; }
}
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; padding: 14px; }
  .admin-sidebar .brand,.sidebar-footer { display: none; }
  .identity-card { grid-template-columns: 42px minmax(0,1fr) 36px; }
  .identity-mark { width: 42px; height: 42px; }
  .admin-nav { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 12px; }
  .admin-nav-label { display: none; }
  .admin-nav button { min-height: 44px; justify-content: center; padding: 0 10px; }
  .admin-main { padding: 14px; }
  .admin-heading { align-items: stretch; flex-direction: column; padding: 21px; }
  .admin-heading-actions .btn { width: 100%; }
  .admin-kpis { grid-template-columns: 1fr; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .toolbar .filter-field:nth-of-type(3) { grid-column: auto; }
  .tenant-users-header { align-items: stretch; flex-direction: column; }
  .tenant-users-header .tenant-btn { width: 100%; }
  .tenant-user-toolbar { grid-template-columns: 1fr 1fr; }
  .tenant-user-toolbar .tenant-btn { grid-column: 1 / -1; }
  .tenant-mfa-policy-card form { grid-template-columns: 1fr; }
  .account-mfa-setup { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .admin-nav { grid-template-columns: 1fr; }
  .admin-nav button { justify-content: flex-start; }
  .admin-heading h1 { font-size: 30px; }
  .toolbar,.form-grid { grid-template-columns: 1fr; }
  .toolbar .filter-field:nth-of-type(3),.form-grid .field.is-wide { grid-column: auto; }
  .admin-kpis article { min-height: 82px; }
  .drawer header,.drawer-body { padding-right: 19px; padding-left: 19px; }
  .drawer-footer { align-items: stretch; flex-direction: column-reverse; padding: 14px 19px; }
  .drawer-footer .btn { width: 100%; }
  .drawer-footer-spacer { display: none; }
  .administration-delete-actions { flex-direction: column-reverse; }
  .administration-delete-actions .btn { width: 100%; }
  .admin-account-card-heading { grid-template-columns: 1fr; }
  .admin-account-actions .btn { width: 100%; }
  .tenant-user-toolbar { grid-template-columns: 1fr; }
  .tenant-user-kpis { grid-template-columns: 1fr; }
  .tenant-user-kpis article:last-child { grid-column: auto; }
  .company-profile-heading,.company-profile-actions { align-items: stretch; flex-direction: column; }
  .company-profile-form { grid-template-columns: 1fr; }
  .company-profile-form .field.is-wide { grid-column: auto; }
}
