.portal-auth-body{background:#eef1f2}
.portal-shell{padding-top:28px}
.portal-logout{margin:0}
.portal-logout button{min-height:38px;padding:0 14px;border:1px solid rgba(255,255,255,.25);border-radius:8px;color:#fff;background:transparent;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.portal-logout button:hover{background:rgba(255,255,255,.1)}
.portal-profile-link{width:44px;height:44px;display:grid;place-items:center;flex:none;border:1px solid rgba(255,255,255,.32);border-radius:50%;color:#fff;background:#303c47;font-size:12px;font-weight:900;letter-spacing:.04em;text-decoration:none}
.portal-profile-link:hover,.portal-profile-link:focus-visible{border-color:#e45b35;background:#e45b35;outline:none}
.portal-quick-actions{display:flex;align-items:center;gap:9px;flex:none}.portal-header-shortcut{width:44px;height:44px;display:grid;place-items:center;flex:none;border:1px solid rgba(255,255,255,.32);border-radius:8px;color:#fff;background:rgba(255,255,255,.06);text-decoration:none}.portal-header-shortcut svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.portal-header-shortcut.is-lists:hover,.portal-header-shortcut.is-lists:focus-visible{border-color:#168064;background:#168064;outline:none}.portal-header-shortcut.is-timekeeping:hover,.portal-header-shortcut.is-timekeeping:focus-visible{border-color:#e45b35;background:#e45b35;outline:none}
.portal-header-actions{display:flex;align-items:center;gap:10px;flex:none}.portal-home-link{min-height:38px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.3);border-radius:8px;color:#fff;background:rgba(255,255,255,.06);font-size:12px;font-weight:800;text-decoration:none}.portal-home-link:hover,.portal-home-link:focus-visible{border-color:#fff;background:rgba(255,255,255,.14);outline:none}
.primary-action{min-height:48px;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--blue,#46535e);border-radius:8px;color:#fff;background:var(--blue,#46535e);font:inherit;font-size:14px;font-weight:800;text-align:center;text-decoration:none;cursor:pointer}
.primary-action:hover,.primary-action:focus-visible{border-color:var(--blue-dark,#303b44);background:var(--blue-dark,#303b44)}
.portal-auth-body .primary-action{width:100%;color:#fff;background:#46535e;border-color:#46535e}
.portal-auth-body .primary-action:hover,.portal-auth-body .primary-action:focus-visible{background:#303b44;border-color:#303b44}
.remember-login{display:grid!important;grid-template-columns:22px 1fr;align-items:start;gap:10px;padding:12px;border:1px solid #d7dee2;border-radius:8px;background:#f7f9f9;cursor:pointer}.remember-login input{width:20px!important;height:20px;margin:1px 0 0;accent-color:#46535e}.remember-login span,.remember-login strong,.remember-login small{display:block}.remember-login strong{color:#17212b;font-size:14px}.remember-login small{margin-top:3px;color:#687386;font-size:11px;line-height:1.4}
.portal-card{min-height:101px}
.portal-card small,.portal-app-grid .nav-card small{display:block;margin-top:4px;color:#687386;font-size:12px;line-height:1.35}
.time-card .card-icon{background:#e45b35;box-shadow:0 7px 16px rgba(228,91,53,.24)}
.calculator-card .card-icon{background:#0b5fae}
.calculation-card .card-icon{background:#087e8b;box-shadow:0 7px 16px rgba(8,126,139,.24)}
.lists-card .card-icon{background:#168064}
.documents-card .card-icon{background:#6a4fa3}
.wiki-card .card-icon{border:1px solid #d8dfe3;background:#fff;color:#6a4fa3;box-shadow:0 7px 16px rgba(23,33,43,.09)}
.tasks-card .card-icon{background:#fff5c9;color:#795a00}
.cloud-card .card-icon{background:#46535e}
.module-intro{margin:0 0 22px;color:#687386;line-height:1.55}
.module-status{display:inline-flex;align-items:center;min-height:30px;padding:0 12px;border-radius:999px;background:#edf1f3;color:#465361;font-size:12px;font-weight:900}
.module-empty{padding:28px;border:1px solid #dfe5e8;border-radius:16px;background:#fff;text-align:center}
.module-empty strong{display:block;margin-bottom:6px;font-size:18px}
.module-empty p{margin:0;color:#687386}
.module-card-copy{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%}
.module-status-group{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px}
.module-status.has-open{color:#96510a;background:#fff0d5}
@media(max-width:760px){.portal-shell{padding-top:16px}.portal-card{min-height:74px}.module-card-copy{align-items:flex-start;flex-direction:column}.module-status-group{justify-content:flex-start}.module-empty{padding:22px 16px}.portal-header-actions{gap:7px}.portal-home-link{min-height:36px;padding:0 10px;font-size:11px}.portal-quick-actions{gap:7px}.portal-header-shortcut,.portal-profile-link{width:38px;height:38px}.portal-header-shortcut svg{width:21px;height:21px}}
@media(max-width:360px){body.area-portal .header-inner{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right));gap:8px}.portal-quick-actions{gap:5px}}

body.area-portal{--blue:#46535e;--blue-dark:#303b44;--blue-soft:#edf0f1}
body.area-lists{--blue:#168064;--blue-dark:#0f654f;--blue-soft:#e7f3ef}
body.area-documents{--blue:#6a4fa3;--blue-dark:#513b82;--blue-soft:#f0ecf7}
body.area-admin{--accent:#46535e;--accent-dark:#303b44;--ci-orange:#46535e;--ci-orange-dark:#303b44;--action-orange:#46535e;--action-orange-hover:#303b44}
.portal-card{border-radius:8px;box-shadow:0 3px 12px rgba(23,33,43,.07)}
.portal-profile-link{border-radius:50%}
.module-empty,.mail-settings-form{border-radius:8px}.module-status{border-radius:5px}
body.area-lists .order-tabs,body.area-lists .order-tabs a,body.area-lists .order-card,body.area-lists .order-form fieldset,body.area-lists .detail-card,body.area-lists .history-card,body.area-lists .choice-card{border-radius:8px}
