/* Shared section-navigation accent plus owner/account surfaces. */
:root{--section-switch-accent:#7652d6;--section-switch-accent-hover:#6844c8;--section-switch-accent-soft:#f1edfb}
.ownerPage{margin:0;color:var(--ink);background:var(--bg);font:14px Arial,sans-serif}.ownerPage *{box-sizing:border-box}
.ownerTop{display:flex;justify-content:space-between;gap:16px;padding:20px;max-width:1120px;margin:auto;color:var(--muted)}.ownerTop a,.ownerPage a{color:#83b7ff;text-decoration:none}
#ownerApp{max-width:1080px;margin:16px auto 60px;padding:0 16px}.ownerCard{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:24px}.ownerAuthCard{max-width:440px;margin:24px auto}.ownerCard h1{font-size:25px;margin:0 0 12px}.ownerCard h2{font-size:20px}.ownerCard p{line-height:1.55;color:#bdcbd6}.ownerForm{display:grid;gap:16px;margin-top:22px}.ownerForm label{display:grid;gap:7px;font-size:14px}.ownerForm input{width:100%;min-height:46px;border:1px solid #366079;border-radius:8px;padding:11px 12px;background:#102b3c;color:var(--ink);font:inherit}.ownerButton{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 16px;min-height:44px;border:1px solid var(--line);border-radius:8px;background:#102b3c;color:var(--ink);font:inherit;text-decoration:none;cursor:pointer}.ownerButton.primary{background:var(--blue);border-color:var(--blue);color:#fff}.ownerLinks{display:flex;flex-wrap:wrap;gap:18px;margin-top:20px}.ownerMessage{padding:12px;border-radius:8px;background:#1d3b51;line-height:1.5;margin:14px 0}.ownerMessage:empty{display:none}.ownerMessage.error{border:1px solid #dc6878}.ownerLayout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:20px}.ownerNav{display:flex;flex-direction:column;gap:8px;align-items:stretch;height:auto;margin:0}.ownerNav a{padding:12px;border-radius:8px;white-space:nowrap;color:var(--muted)}.ownerNav a[aria-current=page]{background:#1d3b51;color:white}.ownerNav button{height:auto;color:var(--ink);border:1px solid var(--line)}.ownerEmpty{padding:30px 0}.ownerProfileValue{display:block;padding:10px 0;overflow-wrap:anywhere}.ownerNav svg,.ownerPublicAuth svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ownerPublicAuth{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:6px;min-height:40px}.ownerPublicAuth a,.ownerPublicAuth button{color:#17233b;background:transparent;border:0;font:inherit;text-decoration:none;padding:8px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:6px}.ownerPublicAuth.ownerAuthPending{visibility:hidden}@media(min-width:761px){.ownerPublicAuth.ownerAuthPending{min-width:250px}}.ownerMenu{box-sizing:border-box;color:var(--ink,#edf3fa);background:var(--panel,#071c28);border:1px solid var(--line,#203340);border-radius:14px;width:min(360px,calc(100vw - 24px));padding:20px;font:14px/1.45 Arial,"Segoe UI",sans-serif}.ownerMenu::backdrop{background:#0008}.ownerMenu .ownerMenuItems{display:grid;gap:8px}.ownerMenu .ownerMenuItems>a,.ownerMenu .ownerMenuItems>button{box-sizing:border-box;width:100%;height:50px;min-height:50px;display:flex;align-items:center;justify-content:flex-start;padding:0 16px;text-align:left;color:var(--ink,#edf3fa);background:#102b3c;border:1px solid #294d66;border-radius:13px;font:inherit;font-size:15px;font-weight:600;text-decoration:none;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,transform .08s ease}.ownerMenu .ownerMenuItems>a:hover,.ownerMenu .ownerMenuItems>button:hover{background:#16384e;border-color:#3f708f}.ownerMenu .ownerMenuItems>a:active,.ownerMenu .ownerMenuItems>button:active{background:#0c2231;border-color:#315d78;transform:translateY(1px)}.ownerMenu .ownerMenuItems>a:focus-visible,.ownerMenu .ownerMenuItems>button:focus-visible,.ownerMenu button.close:focus-visible{outline:2px solid #78adff;outline-offset:2px}.ownerMenu .ownerMenuItems>a[href*="view=login"]{background:var(--blue,#006aff);border-color:#4c9aff;color:#fff}.ownerMenu .ownerMenuItems>a[href*="view=login"]:hover{background:#1d82ff;border-color:#79b4ff}.ownerMenu .ownerMenuItems>a[href*="view=login"]:active{background:#005edb;border-color:#2d7fe8}.ownerMenu .ownerMenuItems>button{background:#3a1720;border-color:#b91935;color:#fff}.ownerMenu .ownerMenuItems>button:hover{background:#551d29;border-color:#e13b55}.ownerMenu .ownerMenuItems>button:active{background:#2d1118;border-color:#98142b}.ownerMenu button.close{float:right;box-sizing:border-box;width:44px;height:44px;min-height:44px;padding:0;text-align:center;color:#fff;background:#c92b43;border:1px solid #e04a60;border-radius:12px;font:inherit;font-size:25px;line-height:1;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease}.ownerMenu button.close:hover{color:#fff;background:#df3650;border-color:#f06479}.ownerMenu button.close:active{color:#fff;background:#a91931;border-color:#c92b43}.ownerMenu h2{font-size:20px}.ownerPublicAuth .ownerBell{width:36px}
@media(max-width:760px){.ownerPublicAuth{gap:0}.ownerPublicAuth>a{display:none}header{gap:8px}.ownerPublicAuth button{padding:6px}.ownerLayout{grid-template-columns:1fr}.ownerNav{flex-direction:row;overflow-x:auto;align-items:center;padding-bottom:8px}.ownerNav a{padding:10px;font-size:13px}.ownerCard{padding:20px}.ownerTop{padding:16px;font-size:12px}.ownerAuthCard{margin:8px auto}.ownerEmpty{padding:16px 0}}

.ownerTop .ownerBell{display:inline-flex;align-items:center;min-width:36px;min-height:36px}.ownerTop .ownerBell svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:760px){.ownerPublicAuth>a.ownerBell{display:inline-flex}.ownerTop>span{margin-left:auto}}

.ownerPublicAuth>a.ownerLogin{display:inline-flex;background:var(--red);color:#fff;border-radius:8px;padding:9px 16px;font-weight:600}

/* Mobile public header: auth actions share the deal row; the existing bell sits by the brand. */
.ownerMobileActions{display:flex;gap:6px;align-items:center}
.ownerMobileActions>a,.ownerMobileActions>button{height:40px;min-height:40px;border-radius:8px;color:#fff;font-size:12px;font-weight:600;white-space:nowrap;padding:0 10px}
.ownerMobileActions>.ownerMobileDashboard{background:#102b3c;min-width:104px}
.ownerMobileActions>.ownerMobileLogout{background:var(--red);min-width:54px}
@media(min-width:761px){header .ownerPublicAuth{position:relative}header .ownerPublicAuth>.ownerBell{position:absolute;top:-49px;right:0;min-height:40px;width:36px}}
@media(max-width:760px){
 header:has(.ownerPublicAuth){display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:46px 46px;align-items:center;column-gap:8px;row-gap:6px;height:112px;min-height:112px;padding:8px 16px 6px}
 header:has(.ownerPublicAuth) .logo{grid-column:1/-1;grid-row:1;justify-self:start}
 header:has(.ownerPublicAuth) nav[aria-label="Тип сделки"]{grid-column:1;grid-row:2;margin:0}
 header .ownerPublicAuth{grid-column:2;grid-row:2;justify-self:end;margin:0;min-width:166px}
 header .ownerPublicAuth>.ownerBell{position:absolute;top:9px;right:16px;min-height:40px;width:36px}
 header .ownerMobileActions{display:flex;gap:6px;align-items:center}
 header .ownerMobileActions>a,header .ownerMobileActions>button{height:40px;min-height:40px;border-radius:8px;color:#fff;font-size:12px;font-weight:600;white-space:nowrap;padding:0 8px}
 header .ownerMobileActions>.ownerMobileDashboard{background:#102b3c;min-width:104px}
 header .ownerMobileActions>.ownerMobileLogout{background:var(--red);min-width:54px}
 header .ownerPublicAuth>a.ownerLogin{height:40px;min-height:40px;padding:0 16px}
}
@media(max-width:374px){
 header:has(.ownerPublicAuth){padding-inline:10px;column-gap:6px}
 header:has(.ownerPublicAuth) nav[aria-label="Тип сделки"] button{padding-inline:10px}
 header .ownerPublicAuth>.ownerBell{right:10px}
 header .ownerMobileActions{gap:4px}
 header .ownerMobileActions>.ownerMobileDashboard{min-width:98px;padding-inline:6px}
 header .ownerMobileActions>.ownerMobileLogout{min-width:50px;padding-inline:6px}
}

/* Reuse catalogue request visuals, confined to the dashboard content. */
.ownerPage .ownerLoadState{position:relative;inset:auto;transform:none;min-height:240px;width:100%;margin:12px 0;z-index:1;box-shadow:none}
.ownerCard>.ownerLoadState~.ownerLoadState{display:none}
@media(max-width:760px){.ownerPage .ownerLoadState{min-height:210px;padding:20px}.ownerLoadState strong{font-size:24px}}

/* Owner header controls only; navigation and public headers remain unchanged. */
.ownerPage .ownerTop{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px}
.ownerPage .ownerTop .ownerBackButton{justify-self:start;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;padding:8px 12px;border:1px solid #366079;border-radius:8px;background:#102b3c;color:var(--ink,#edf5fa);white-space:nowrap;font-size:14px}
.ownerPage .ownerTopTitle{margin:0;text-align:center;font-size:24px;line-height:1.2;font-weight:700;color:var(--ink,#edf5fa)}
.ownerPage .ownerTop .ownerBell{justify-self:end;justify-content:center;grid-column:3;grid-row:1}
@media(max-width:760px){
 .ownerPage .ownerTop{gap:8px}
 .ownerPage .ownerTopTitle{max-width:128px;font-size:16px}
 .ownerPage .ownerTop .ownerBackButton{font-size:12px;padding:8px 6px}
}
@media(max-width:380px){
 .ownerPage .ownerTop{grid-template-columns:1fr auto}
 .ownerPage .ownerTopTitle{grid-column:1/-1;grid-row:2;max-width:none;font-size:18px}
 .ownerPage .ownerTop .ownerBell{grid-column:2}
}

/* Dedicated centered heading row between the upper controls and navigation. */
.ownerPage .ownerTop{grid-template-columns:1fr auto}
.ownerPage .ownerTopTitle{grid-column:1/-1;grid-row:2;justify-self:stretch;width:100%;max-width:none;box-sizing:border-box;text-align:center}
.ownerPage .ownerTop .ownerBell{grid-column:2;grid-row:1}

/* Tighten only the heading-to-tabs gap by 12px. */
.ownerPage .ownerTop{padding-bottom:8px}
@media(max-width:760px){.ownerPage .ownerTop{padding-bottom:4px}}

.ownerAdministratorBadge{grid-column:1/-1;justify-self:center;display:inline-flex;align-items:center;gap:10px;width:min(100%,310px);padding:8px 14px;border:1.5px solid #e5ad47;border-radius:14px;background:#062333;color:#f8d37d;box-shadow:0 5px 14px #0003}
.ownerAdministratorBadge[hidden]{display:none}
.ownerAdministratorBadge svg{flex:0 0 42px;width:42px;height:34px;fill:#efb33c;stroke:#ffd879;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ownerAdministratorBadge span{display:grid;min-width:0;line-height:1.05}
.ownerAdministratorBadge strong{font-size:15px;letter-spacing:.035em;white-space:nowrap}
.ownerAdministratorBadge small{margin-top:4px;color:#f2f5f7;font-size:14px;line-height:1}
.ownerTop.hasAdministratorBadge .ownerAdministratorBadge{grid-row:2}
.ownerTop.hasAdministratorBadge .ownerTopTitle{grid-row:3}
@media(max-width:430px){.ownerAdministratorBadge{width:min(100%,286px);gap:8px;padding:7px 11px;border-radius:12px}.ownerAdministratorBadge svg{flex-basis:38px;width:38px;height:30px}.ownerAdministratorBadge strong{font-size:14px}.ownerAdministratorBadge small{font-size:13px}}

/* Mobile header follows the approved three-row reference. */
@media(max-width:760px){
 .ownerPage .ownerTop{grid-template-columns:1fr auto;column-gap:8px;row-gap:18px;padding-bottom:0}
 .ownerPage .ownerTop .ownerBackButton{grid-column:1;grid-row:1}
 .ownerPage .ownerTopTitle{grid-column:1/-1;grid-row:2;max-width:none;font-size:18px}
 .ownerPage .ownerTop .ownerBell{grid-column:2;grid-row:1}
 .ownerPage #ownerApp{margin-top:12px}
 .ownerPage .ownerNav{--tab-scroll-size:36%;--tab-scroll-position:0%;flex-wrap:nowrap;padding-bottom:9px;scrollbar-width:none;background-image:linear-gradient(#3f708f,#3f708f),linear-gradient(#102b3c,#102b3c);background-repeat:no-repeat;background-size:var(--tab-scroll-size) 4px,100% 4px;background-position:var(--tab-scroll-position) 100%,0 100%}
 .ownerPage .ownerNav:not(.ownerNavScrollable){background-image:none}
 .ownerPage .ownerNav::-webkit-scrollbar{display:none;width:0;height:0}
 .ownerPage .ownerNav>a,.ownerPage .ownerNav>button{flex-shrink:0}
}

/* Existing header artwork, compactly reused by the two listing tabs. */
.ownerPage .ownerNav>a{display:flex;align-items:center;gap:7px}
.ownerTabIcon{width:22px;height:22px;flex:0 0 22px;object-fit:contain}
.ownerAdminFrame{display:block;width:100%;min-height:720px;border:0;background:transparent}
.ownerAdminFrame.ownerAdminModalFrame{position:fixed;inset:0;z-index:5000;width:100vw;height:100dvh!important;min-height:0;background:transparent}
.ownerAdminModalOpen{overflow:hidden}
.ownerCardAdmin{padding:18px;overflow:hidden}
@media(max-width:760px){.ownerCardAdmin{padding:14px}.ownerAdminFrame{min-height:820px}}

/* Administration stays inside the existing account navigation. */
.ownerAdminGroup{display:grid;gap:5px}
.ownerAdminGroup>.ownerAdminRoot{margin:0}
.ownerAdminSubnav{display:grid;gap:3px;margin:0 0 4px 18px;padding:6px 0 6px 10px;border-left:1px solid #31566e}
.ownerAdminSubnav button{min-height:36px;padding:7px 9px;border:0;border-radius:7px;background:transparent;color:var(--muted);text-align:left;font:inherit;font-size:13px;cursor:pointer}
.ownerAdminSubnav button:hover,.ownerAdminSubnav button[aria-current=page]{background:#1d3b51;color:#fff}
@media(max-width:760px){.ownerAdminGroup{display:flex;align-items:center}.ownerAdminSubnav{display:flex;margin:0;padding:0 0 0 4px;border:0}.ownerAdminSubnav button{white-space:nowrap}.ownerCardAdmin{padding-top:8px}}

button .ownerExitIcon{display:inline-block;width:16px;height:16px;flex-shrink:0;vertical-align:middle;margin-left:3px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.opSummaryAccountActions .opSummaryLogout{gap:3px}

/* Keep Admin controls outside the primary tab scroller and size embedded content to its report. */
.ownerNavStack,.ownerCard{min-width:0}
.ownerAdminFrame{height:100px;min-height:0}
@media(max-width:760px){
 .ownerPage #ownerApp{padding-inline:8px}
 .ownerNavStack{display:grid;gap:8px}
 .ownerAdminGroup{display:grid;gap:6px}
 .ownerAdminGroup>.ownerAdminRoot{width:max-content;padding:8px 10px}
 .ownerAdminSubnav{display:flex;max-width:100%;margin:0;padding:0 0 7px;overflow-x:auto;border:0;scrollbar-width:thin}
 .ownerAdminSubnav button{flex:0 0 auto;white-space:nowrap}
 .ownerCardAdmin{padding:0}
 .ownerAdminFrame{min-height:0}
}

/* Shared owner/Admin containment: size grid items instead of clipping overflow. */
.ownerLayout,.ownerNavStack,.ownerCard,.ownerAdminGroup,.ownerAdminFrame{min-width:0;max-width:100%}
.ownerCardAdmin{width:100%;overflow:visible}
@media(max-width:760px){
 .ownerPage #ownerApp,.ownerLayout,.ownerNavStack,.ownerCard,.ownerAdminGroup{width:100%}
 .ownerPage .ownerNav,.ownerPage .ownerAdminSubnav{width:100%;max-width:100%;min-width:0;overscroll-behavior-inline:contain}
 .ownerPage .ownerAdminGroup>.ownerAdminRoot{max-width:100%}
 .ownerPage .ownerMobileActions{min-width:0;max-width:100%;justify-content:flex-end}
 .ownerPage .ownerMobileActions>a,.ownerPage .ownerMobileActions>button{min-width:0;max-width:100%}
}
