/* iPhone-inspired opaque theme. Based on v2.52.3; no blur or glass. */
:root{--navy:#007aff;--navy2:#0064d6;--blue:#0069df;--mint:#34c759;--ink:#1c1c1e;--muted:#64646d;--line:#e5e5ea;--page:#f2f2f7;--red:#d92d38;--orange:#ab6200;--shadow:0 8px 28px #0000000a;font-family:-apple-system,BlinkMacSystemFont,Golos,"Segoe UI",sans-serif;background:var(--page);color:var(--ink)}
body{font-family:-apple-system,BlinkMacSystemFont,Golos,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased;background:var(--page);color:var(--ink)}
.portal-home{background:#f2f2f7}.portal-shell{width:min(1160px,calc(100% - 48px))}.portal-topbar{border-bottom:1px solid #dedee5;padding:24px 0}
.portal-brand .logo,.logo{background:#007aff;color:white;border-radius:12px;letter-spacing:-.04em}.portal-brand strong{color:#1c1c1e}.portal-brand span{color:var(--muted)}
.portal-main{padding-top:32px}.portal-intro{padding:8px 0 28px;border:0;border-radius:0;background:#f2f2f7;margin-bottom:8px}.portal-intro .kicker,.kicker{color:#64646d;font-size:11px;letter-spacing:.08em;font-weight:600}.portal-intro h1{color:#1c1c1e;font-size:clamp(30px,3.6vw,44px);letter-spacing:-.045em;font-weight:700}.portal-intro p:not(.kicker){color:#64646d}
.portal-search input,input[type="search"]{background:#e7e7ed;border:1px solid transparent;border-radius:12px;box-shadow:none}.portal-search input{height:44px;min-height:44px;font-size:15px}
.portal-account .notification-button,.portal-logout{background:white;color:#0069df;border:0;border-radius:50%;box-shadow:none}.portal-logout{border-radius:12px}.portal-account .avatar,.avatar{background:#e5f0ff;color:#0069df;border:0;border-radius:12px}
.portal-main .service-grid .service-card,#personalWorkspacePage>.cabinet-tile,.admin-module-grid .admin-module-entry{background:#fff!important;border:1px solid #e7e7ed!important;color:var(--ink)!important;border-radius:22px!important;box-shadow:0 3px 12px #00000004!important;transition:background .16s,box-shadow .16s}
.portal-main .service-grid .service-card{min-height:190px!important}.portal-main .service-grid .service-card .service-copy strong,#personalWorkspacePage>.cabinet-tile strong,.admin-module-entry h2{color:#1c1c1e;font-weight:600;letter-spacing:-.025em}
.portal-main .service-grid .service-card .service-copy span,#personalWorkspacePage>.cabinet-tile>span,.admin-module-entry p{color:#64646d!important;font-size:13px;line-height:1.5}
.portal-main .service-grid .personal-card::after{display:none}.module-illustration::after{display:none}
.portal-main .service-grid .service-card:hover,#personalWorkspacePage>.cabinet-tile:hover,.admin-module-entry:has(.module-tile-action:hover){background:#fafaff!important;box-shadow:0 6px 20px #0000000a!important;transform:none}
.portal-main .service-grid .service-icon,.module-illustration{width:54px;height:54px;border-radius:15px;background:#007aff!important;color:#fff!important;box-shadow:inset 0 1px 0 #ffffff25}
.portal-main .service-grid .helpdesk-card .service-icon,.admin-module-entry:nth-child(4n+2) .module-illustration{background:#5856d6!important}.portal-main .service-grid .people-card .service-icon,.admin-module-entry:nth-child(4n+3) .module-illustration{background:#248a3d!important}.portal-main .service-grid .knowledge-card .service-icon,.admin-module-entry:nth-child(4n+4) .module-illustration{background:#c87300!important}.portal-main .service-grid .more-card .service-icon{background:#6c6c76!important}
#personalWorkspacePage>.cabinet-tile{min-height:190px;padding:20px;gap:12px}#personalWorkspacePage>.cabinet-tile[data-page-link="taskWorkspace"]{background:white!important}
#personalWorkspacePage .cabinet-illustration{background:#eaf2ff;color:#007aff;width:64px;height:58px;border-radius:16px}#personalWorkspacePage [data-page-link="requests"] .cabinet-illustration{background:#fff2df;color:#a96500}#personalWorkspacePage [data-page-link="documents"] .cabinet-illustration{background:#eeedff;color:#5856d6}#personalWorkspacePage [data-page-link="taskWorkspace"] .cabinet-illustration{background:#e8f7ec;color:#248a3d}#personalWorkspacePage [data-page-link="personalOrgStructure"] .cabinet-illustration{background:#f4eafb;color:#9140b4}
#personalWorkspacePage>.personal-profile,.personal-profile{background:white;border:1px solid #e5e5ea;border-radius:20px;padding:20px}#personalWorkspacePage>.page-head h1,.page-head h1{color:#1c1c1e;letter-spacing:-.04em;font-weight:700}.personal-contacts span{background:#f2f2f7;color:#64646d;border-radius:7px}
.page>.page-head{align-items:flex-start}.page-head>.button{flex-shrink:0}.page-head .muted{color:#64646d}.workspace .main{background:#f2f2f7}
.panel,.employee-card,.document-card,.service-request-card,.knowledge-list .knowledge-card,.news-card,.stats article{background:#fff;border:1px solid #e5e5ea;border-radius:18px;box-shadow:none}.panel-head{background:#fff;border-bottom:1px solid #ededf1;padding:20px 22px}.panel-head h2{font-size:18px;font-weight:600}
.button,.portal-logout{font-size:14px;min-height:42px;border-radius:11px;font-weight:600;padding:10px 16px;box-shadow:none}.button.primary{background:#007aff;color:white;box-shadow:none}.button.primary:hover{background:#0064d6;box-shadow:none}.button.secondary{background:#e9e9ef;color:#0069df}.button.secondary:hover{background:#dedee8}.text-button{color:#0069df}.button.danger{background:#fff0f1;color:#c82b35}.button:disabled{opacity:.45}.button:active{transform:scale(.985)}
input,textarea,select{background:#fff;border-color:#dcdce3;border-radius:11px;color:#1c1c1e}input:focus,textarea:focus,select:focus{border-color:#007aff;box-shadow:0 0 0 3px #007aff18}label{color:#64646d;font-weight:500}button:focus-visible,a:focus-visible,.module-tile-action:focus-visible,#personalWorkspacePage>.cabinet-tile:focus-visible{outline:3px solid #007aff;outline-offset:3px}
.toolbar{background:#e9e9ef;border:0;padding:10px;border-radius:14px}.stats article{border-top:0;padding:20px}.stats strong{font-size:32px;font-weight:700;letter-spacing:-.04em}.stats article:nth-child(2) strong{color:#0069df}.stats article:nth-child(3) strong{color:#a96500}.stats article:nth-child(4) strong{color:#248a3d}
.task-tabs,.document-tabs{background:#e4e4eb;border-radius:12px;padding:4px;gap:4px}.task-tab,.document-tab{background:transparent;border:0;color:#50505a;border-radius:9px;min-height:36px}.task-tab.active,.document-tab.active{background:white;color:#1c1c1e;box-shadow:0 2px 5px #00000012}
.task-column,.board-column{background:#e9e9ef;border:1px solid #e1e1e8;border-radius:16px}.task-column header,.board-column header{background:#f7f7fa;border-bottom:1px solid #dddde5}.task-card,.board-card{background:white;border:1px solid #e5e5ea;border-radius:13px;box-shadow:0 2px 4px #00000004}.task-card h3{font-weight:600}.task-card:hover{border-color:#b7cbe7;box-shadow:0 3px 12px #00000008}
.badge,.service-request-status{border-radius:8px;font-weight:600}.status-new,.status-in_progress{background:#eaf2ff;color:#065dbf}.status-closed,.status-approved{background:#e7f5eb;color:#217837}.status-waiting{background:#eeeafd;color:#6941ad}.status-rejected{background:#fff0f1;color:#bb2831}
.user-row,.ticket-row{border-color:#ededf1}.user-row:hover,.ticket-row:hover{background:#f8f8fc}.employee-card{border-top:1px solid #e5e5ea}.department-label,.meta-chip,.personal-contacts span{background:#f2f2f7;color:#64646d}
.sidebar{background:#fff;color:#1c1c1e;border-right:1px solid #e5e5ea}.sidebar .logo{background:#007aff;color:white}.nav-item{color:#50505a;font-weight:500}.nav-item.active{background:#e9f2ff;color:#0069df;border-left:0}.nav-item:hover{background:#f2f2f7;color:#1c1c1e}.brand-button{color:#1c1c1e}.back-portal{color:#0069df}.back-portal:hover{color:#004fa8}.sidebar-foot{border-color:#e5e5ea}.user-mini span{color:#64646d}.sidebar .notification-button,.sidebar .icon-button{background:#f2f2f7;color:#0069df}
.mobile-head{background:#f2f2f7;color:#1c1c1e;border-bottom:1px solid #e5e5ea}.mobile-home{color:#1c1c1e}.mobile-head .icon-button,.mobile-head .notification-button{background:white;color:#0069df;border-radius:12px}
dialog{background:#fff;color:#1c1c1e;border-radius:24px;box-shadow:0 20px 80px #00000026}dialog::backdrop{background:#00000066;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}.dialog-head{background:#fff;border-color:#ededf1;padding:24px}.dialog-head h2{font-weight:600;letter-spacing:-.025em}.dialog-head .icon-button{background:#ededf2;color:#64646d;border-radius:50%}.dialog-body{padding:24px}
.notification-toolbar{background:#f7f7fa}.notification-item{border-color:#ededf1}.notification-item.unread{background:#f0f6ff}.notification-dot{background:transparent}.notification-item.unread .notification-dot{background:#007aff}.notification-badge{background:#e6323f;border-color:#fff!important}.notification-dialog{border-radius:22px}
.auth-screen{background:#f2f2f7;grid-template-columns:1fr;justify-items:center;align-content:center;gap:28px;padding:32px}.auth-brand{color:#1c1c1e;padding:0;width:min(440px,100%)}.auth-card{border:1px solid #e5e5ea;border-radius:24px;box-shadow:0 10px 50px #00000006;width:min(440px,100%);padding:32px}.auth-card h1{font-size:32px}.auth-brand span{opacity:1;color:#64646d}
.empty,.request-empty,.request-placeholder{background:#f8f8fb;color:#64646d;border-radius:16px}.empty strong,.request-empty strong{color:#1c1c1e}.toast{background:#28282d;border-radius:14px;box-shadow:0 6px 24px #00000020}.toast.error{background:#b92430}
.org-chart{background:#f7f7fa}.org-node,.org-person{border-color:#e0e0e7;box-shadow:none}.org-root{background:#eaf2ff}.org-structure-main .org-structure-panel{background:white}.document-section,.admin-controls,.description,.comment-body{background:#f5f5f9;border-color:#e5e5ea}.qr-approval-meta div{background:#f5f5f9;border-color:#e5e5ea}
@media(max-width:700px){.portal-shell{width:calc(100% - 32px)}.portal-topbar{padding:16px 0}.portal-main{padding-top:24px}.portal-intro{padding:0 0 20px}.portal-intro h1{font-size:32px}.portal-main .service-grid .service-card{min-height:180px!important}.auth-screen{padding:24px 16px;gap:22px}.auth-brand{padding:0}.auth-card{padding:28px 22px}.page-head h1{font-size:28px;line-height:1.15}.page-head .button{min-height:44px}.dialog-head,.dialog-body{padding:20px}dialog{max-height:calc(100dvh - 24px)}.mobile-head{padding-top:env(safe-area-inset-top);height:calc(64px + env(safe-area-inset-top))}.main{padding-bottom:calc(40px + env(safe-area-inset-bottom))}input,textarea,select{font-size:16px!important}}
@media(prefers-reduced-motion:reduce){.button:active{transform:none}.portal-main .service-grid .service-card,#personalWorkspacePage>.cabinet-tile,.admin-module-grid .admin-module-entry{transition:none}}
