[hidden]{display:none!important}.container{max-width:1270px;padding:24px 28px 42px}.container>header{flex-direction:row;align-items:center;padding:0 0 22px;border-bottom:1px solid #dfe5ec;margin-bottom:26px}.home-brand{display:flex;align-items:center;gap:8px;color:#29455e;text-decoration:none;letter-spacing:-.03em;white-space:nowrap}.home-brand svg{width:34px;height:34px;stroke:currentColor}.home-brand span{font-weight:500;letter-spacing:0}.user{gap:12px;min-width:0}.user #identity{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:230px}.profile-button{width:43px;height:43px;padding:9px;border:1px solid #cdd7e0;border-radius:50%;background:#fff;color:#36566d;flex-shrink:0}.profile-button svg{width:100%;height:100%;stroke:currentColor}.intro{margin:0 0 19px;gap:12px}.intro h1{font-size:32px;letter-spacing:-.04em}.intro p{margin:4px 0;color:#6b7989}.dashboard-context{display:flex;align-items:center;gap:22px;margin:0 0 22px;flex-wrap:wrap}.dashboard-context label{margin:0;font-size:12px;color:#53657a;min-width:220px;max-width:450px;flex:1}.dashboard-context select{background:#fff;border-radius:7px}.main-modules{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.home-module{display:flex;flex-direction:column;text-decoration:none;aspect-ratio:1/1;min-width:0;min-height:218px;padding:18px 19px;border:1px solid #dce3eb;border-radius:13px;background:#fff;color:#26384b;transition:border-color .15s,transform .15s,box-shadow .15s}.home-module:hover,.home-module:focus-visible{border-color:#6b879f;box-shadow:0 6px 20px #2b465518;transform:translateY(-2px);outline-offset:3px}.home-icon{width:78px;height:78px;color:#68869d;stroke:currentColor;flex-shrink:0;margin-bottom:12px}.home-module h3{font-size:21px;font-weight:650;line-height:1.26;letter-spacing:-.015em;margin:0 0 14px;overflow-wrap:anywhere}.kpi-list{display:grid;gap:7px;margin-top:0}.kpi-line{display:flex;align-items:baseline;gap:4px;flex-wrap:wrap;line-height:1.35;font-size:15px;font-weight:600;color:#253c51}.kpi-line strong{font:inherit;color:inherit;font-variant-numeric:tabular-nums}.kpi-line span{overflow-wrap:anywhere}.module-state{font-size:15px;font-weight:600;color:#253c51;margin-top:0}.home-admin-links{display:flex;gap:12px;margin:18px 0}.home-admin-links a,.property-open{font-size:13px;font-weight:650}.property-open{display:block;margin-top:12px}.portfolio-details{border-top:1px solid #dce3eb;padding-top:16px;color:#64748b;font-size:14px}.portfolio-details summary{cursor:pointer}.profile-dialog{width:min(440px,calc(100% - 32px));border:1px solid #dce3eb;border-radius:16px;padding:24px;color:#25384b;box-shadow:0 15px 70px #102a4140}.profile-dialog::backdrop{background:#1b2b405e}.dialog-header{display:flex;align-items:center;justify-content:space-between}.profile-dialog dt{font-size:12px;color:#64748b}.profile-dialog dd{margin:0 0 13px;font-weight:600;overflow-wrap:anywhere}.profile-links{display:grid;gap:10px;font-size:13px;margin:22px 0}.group-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}.group-link{min-height:120px;background:white;border:1px solid #dce3eb;border-radius:12px;padding:18px;text-decoration:none;color:#29455e}.group-link h2{margin-bottom:8px}.group-link p{font-size:13px;margin:0}.group-link:hover{border-color:#6b879f}.group-link:focus-visible{outline:2px solid #587b96}.group-back{font-size:13px}.message{margin-top:0}#kpiNotice{font-size:12px}#loginPanel h1{font-size:30px}@media(max-width:1050px){.main-modules{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.container{padding:16px}.main-modules{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.home-module{padding:13px;min-height:205px}.home-icon{width:56px;height:56px;margin-bottom:9px}.home-module h3{font-size:17px}.kpi-line,.module-state{font-size:14px}.home-brand span{display:none}.home-brand{font-size:17px}.user #identity{max-width:125px;font-size:12px}.profile-button{width:36px;height:36px;padding:7px}.intro{flex-direction:row;align-items:center}.intro h1{font-size:26px}.intro p{font-size:13px}}@media(prefers-reduced-motion:reduce){.home-module{transition:none}.home-module:hover{transform:none}}

.home-icon,.home-brand svg,.profile-button svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* Allow dense cards to grow instead of clipping long KPI labels. */
.home-module{height:auto;overflow-wrap:anywhere}.kpi-line strong{font-variant-numeric:tabular-nums}.kpi-line span{min-width:0}@media(max-width:360px){.main-modules{grid-template-columns:1fr}}

/* Fixed account header on home */
body:has(#profileButton) .container{padding-top:84px}body:has(#profileButton) .container>header{position:fixed;top:0;left:0;right:0;height:60px;background:white;z-index:11000;margin:0;padding:0 clamp(12px,3vw,32px);border-bottom:1px solid #dfe5ec}body:has(#profileButton) .user #identity{max-width:min(48vw,420px)}

/* Same viewport geometry as the common module header. */
body:has(#profileButton) .container>header{box-sizing:border-box;width:100%;max-width:none;min-height:60px;flex-direction:row;justify-content:space-between;gap:10px}body:has(#profileButton) .container>header .user{margin-left:auto;justify-content:flex-end;min-width:0}body:has(#profileButton) .home-brand{flex:none}body:has(#profileButton) .profile-button{width:38px;height:38px;flex:none}body:has(#profileButton) .user #identity{min-width:0} @media(max-width:360px){body:has(#profileButton) .container>header{padding:0 8px;gap:6px}body:has(#profileButton) .home-brand{font-size:15px;gap:4px}body:has(#profileButton) .user{gap:6px}body:has(#profileButton) .profile-button{width:32px;height:32px}}
.user-directory{margin-top:24px;padding:20px;background:#fff;border:1px solid #dce3eb;border-radius:12px}.user-directory h2{margin:0 0 12px}.directory-scroll{overflow:auto}.user-directory table{width:100%;border-collapse:collapse;font-size:14px}.user-directory th,.user-directory td{text-align:left;padding:10px 12px;border-bottom:1px solid #e6ebf1;white-space:nowrap}.user-directory th{background:#f2f5f9}.user-directory p{font-size:13px;color:#64748b}

/* Users: same card geometry and visual language as Objektangaben. */
.group-links.user-group-links{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch}.user-group-links .group-link{display:flex;align-items:center;gap:18px;background:#fff;color:#253b57;border:1px solid #dbe4ee;border-radius:16px;padding:20px;min-width:0;min-height:112px;box-shadow:0 6px 22px #153b6c0b;transition:transform .15s,border-color .15s}.user-group-links .group-link:hover{transform:translateY(-2px);border-color:#5288e3;background:#f8fbff}.user-group-icon{width:67px;height:61px;fill:none;stroke:#3c72bd;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.user-group-copy{min-width:0;overflow-wrap:anywhere}.user-group-copy h2{font-size:16px;font-weight:700;margin:0 0 5px}.user-group-copy p{font-size:12px;color:#64748b;margin:0}@media(max-width:760px){.group-links.user-group-links{gap:6px}.user-group-links .group-link{flex-direction:column;justify-content:center;text-align:center;gap:5px;padding:8px 3px;min-height:105px}.user-group-icon{width:38px;height:34px}.user-group-copy h2{font-size:clamp(10px,2.7vw,15px)}.user-group-copy p{font-size:clamp(9px,2.3vw,12px)}}@media(prefers-reduced-motion:reduce){.user-group-links .group-link{transition:none}.user-group-links .group-link:hover{transform:none}}

.contract-overview-panel{background:white;border:1px solid #dfe5ec;border-radius:12px;padding:18px}.contract-overview-panel table{width:100%;border-collapse:collapse;font-size:13px;min-width:780px}.contract-overview-panel th,.contract-overview-panel td{padding:10px 9px;border-bottom:1px solid #dfe5ec;text-align:left;white-space:nowrap}.contract-overview-panel th{font-size:11px;text-transform:uppercase;letter-spacing:.03em;color:#64748b;background:#fafbfc}.contract-overview-panel tbody tr[tabindex]{cursor:pointer}.contract-overview-panel tbody tr[tabindex]:hover{background:#f1f5f9}.contract-overview-panel td.empty{text-align:center;padding:30px;color:#64748b}
/* V453.256: never reveal the legacy portfolio or local account controls on startup. */
#appPanel .home-admin-links,#appPanel .portfolio-details,#appPanel .dashboard-context{display:none!important}
/* V453.257: one contract area for both all-object and single-object context. */
.contract-group-links{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.contract-group-links .group-link{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:16px 8px;min-width:0;min-height:130px;overflow-wrap:anywhere}.contract-group-links .group-link[aria-current=page]{border-color:#5288e3;background:#f8fbff}.contract-group-links h2{font-size:clamp(11px,1.5vw,17px)}.contract-card-icon{height:48px;width:48px;stroke:#3c72bd;fill:none;stroke-width:1.6;margin-bottom:8px}.contract-title-row{display:flex;justify-content:space-between;align-items:center;gap:12px}.contract-title-row button{margin-left:auto;white-space:nowrap}.contract-table-wrap{overflow-x:auto;border:1px solid #dfe5ec;border-radius:11px}.contract-pdf-button{background:transparent!important;color:#253b57!important;padding:5px 8px!important;font-size:19px;border:0}.contract-editor-dialog{width:min(980px,96vw);height:min(820px,94dvh);padding:0;border:0;border-radius:14px;background:#f5f7fb;overflow:hidden}.contract-editor-dialog::backdrop{background:#17283f80}.contract-editor-dialog iframe{display:block;width:100%;height:100%;border:0}.contract-editor-close{position:absolute;right:9px;top:8px;background:#fff;color:#253b57;padding:6px 12px;border:1px solid #dce3eb}.contract-property-picker{padding:28px;display:grid;gap:16px}.contract-property-picker select{margin:0}@media(max-width:640px){.contract-group-links{gap:5px}.contract-group-links .group-link{padding:8px 3px;min-height:100px}.contract-group-links p{display:none}.contract-card-icon{width:34px;height:34px}}

.contract-overview-panel{margin-top:20px}.contract-title-row h2{margin:0}.contract-pdf-button:disabled{opacity:.35;cursor:default}

.contract-editor-dialog.maintenance-contract-dialog{width:90vw;max-width:90vw}.maintenance-contract-dialog .contract-editor-close{z-index:2;right:16px;top:12px;width:42px;height:42px;font-size:26px;line-height:1;padding:0}

/* V453.305: independent tool link inside the technical card. */
.technical-module-main{display:flex;flex-direction:column;flex:1;color:inherit;text-decoration:none;min-width:0}.technical-module-tool{display:block;margin-top:12px;padding:8px 10px;border:1px solid #cdd7e0;border-radius:7px;background:#eef3f8;color:#29455e;font-size:13px;font-weight:600;text-align:center;text-decoration:none;line-height:1.35}.technical-module-tool:hover{background:#dfe9f3}.technical-module a:focus-visible{outline:2px solid #36566d;outline-offset:3px}
