/* Owner console149 only. Public participant styles and authentication stay separate. */
.workspace{--owner-touch:44px;max-width:1600px;min-width:0}
.workspace-main,.app-header,.header-main,.header-right,.heading>div,.actions,.panel,.table-wrap{min-width:0}
.workspace-main{overflow-wrap:anywhere}
.app-header{padding:0 28px}
.header-main{height:78px}
.header-right{gap:14px}
.header-right>.icon-button{min-width:44px;min-height:44px;border:1px solid var(--line);background:#fff}
.owner-account{display:inline-grid;place-items:center;flex-shrink:0;width:44px;height:44px;border-radius:50%;background:var(--accent-soft);border:1px solid #efced1;color:#9e2431;font-size:12px;font-weight:600}
.owner-account:hover{background:#f7dfe3}
.owner-account-note{font-size:13px;line-height:1.7;margin-bottom:20px;color:var(--muted)}
.owner-password-form{display:grid;gap:10px;max-width:520px}
.owner-password-form>label{font-size:13px;font-weight:500;margin-top:8px}
.owner-password-form>input{width:100%;min-width:0;min-height:48px;border:1px solid #d3d3da;background:#fff;border-radius:12px;padding:12px;color:var(--text)}
.owner-password-form .form-hint{margin:0;line-height:1.6}
.owner-password-form>.error{font-size:12px;line-height:1.5;min-height:18px;margin:0}
.owner-password-form>.actions{margin-top:10px;gap:12px;flex-wrap:wrap}
.main-nav{padding:8px 0 16px;gap:9px}
.main-nav button,.main-nav .public-site-link{transform:none;border-radius:12px;min-height:44px;font-size:12px}
.main-nav button>*,.main-nav .public-site-link>span{transform:none}
.main-nav button:hover,.main-nav button:focus-visible,.main-nav .public-site-link:hover,.main-nav .public-site-link:focus-visible{transform:none;box-shadow:0 2px 8px #20202614}
.main-nav button::before,.main-nav .public-site-link::before{display:none}
.live.is-stale{color:var(--red)}
.live.is-stale .dot{background:#b4232c;box-shadow:0 0 0 4px #fcecee}
.snapshot-error{margin-bottom:18px;line-height:1.7}
.snapshot-error .text-link{min-height:44px}
.heading h1:focus{outline:none}
.platform-stats .platform-card.email .platform-icon{background:#f1eafa;color:#6b4a8c}
.owner-mobile-nav{display:none}
#owner-more{width:min(600px,calc(100vw - 24px));max-width:100%;max-height:calc(100dvh - 32px);overflow:auto;padding:20px}
.owner-more-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.owner-more-head .icon-button{min-width:44px;min-height:44px;background:var(--panel2)}
#owner-more nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#owner-more nav>*{display:flex;align-items:center;gap:10px;min-width:0;min-height:52px;padding:12px;border:1px solid var(--line);border-radius:12px;text-align:left;line-height:1.4;overflow-wrap:anywhere}
#owner-more nav>* svg{flex-shrink:0}
#owner-more nav [aria-current=page]{background:var(--accent-soft);color:#a31320;border-color:#eec5cb}
.owner-payment-history{margin-top:22px;padding:18px 0}
.owner-payment-history>summary{cursor:pointer;min-height:44px;display:list-item;padding:10px 8px;font-weight:600}
.owner-payment-history>.chart-note{margin:12px 0 20px}
.owner-promotion-metrics .promotion-free{display:flex;flex-direction:column;justify-content:center;gap:10px;padding:24px;background:#f2f6f2;border:1px solid #dce7dd;border-radius:22px;min-width:0}
.promotion-free>span{font-size:32px;font-weight:600;color:var(--green)}
.promotion-free>b{font-size:12px;font-weight:500}
.promotion-free>small{font-size:11px;line-height:1.5}
.workspace .filter-chips button,.workspace .sub-tabs button,.workspace .segments button{min-height:44px}
.workspace .filter-group,.workspace .filter-chips,.workspace .actions,.workspace .search-row{flex-wrap:wrap;max-width:100%}
.workspace .filter-chips button{white-space:normal;overflow-wrap:anywhere;max-width:100%}
.workspace .table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.workspace table{min-width:560px}
.workspace .table-wrap td,.workspace .table-wrap th{overflow-wrap:anywhere}
.owner-user-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;margin-bottom:20px}
.owner-user-tools>.search{min-width:0;width:100%;max-width:none}
.owner-user-tools>.result-count{margin:0;white-space:nowrap}
.owner-user-filters{grid-column:1/-1;border:1px solid var(--line);border-radius:14px;min-width:0;background:#fcfcfd}
.owner-user-filters>summary{display:flex;align-items:center;gap:12px;min-height:48px;padding:12px 14px;cursor:pointer;list-style:none;font-size:13px;font-weight:550}
.owner-user-filters>summary::-webkit-details-marker{display:none}
.owner-user-filters>summary>small{margin-left:auto;font-size:11px;font-weight:400;line-height:1.4;text-align:right}
.owner-user-filters>summary>svg{flex-shrink:0;transition:transform .15s}
.owner-user-filters[open]>summary>svg{transform:rotate(90deg)}
.owner-filter-count{display:inline-grid;place-items:center;min-width:22px;height:22px;margin-left:5px;border-radius:7px;background:var(--accent-soft);color:#a31320;font-size:11px}
.owner-user-filter-fields{display:grid;gap:18px;padding:4px 14px 16px}
.owner-user-filter-fields>.filter-group{margin:0;align-items:flex-start}
.workspace .tag,dialog .tag{max-width:100%;white-space:normal;overflow-wrap:anywhere}
dialog .detail-title,dialog .timeline-text,dialog .properties dd,dialog .case-context span{min-width:0;overflow-wrap:anywhere}
dialog .detail-header{position:sticky;top:0;background:#fff;z-index:2;align-items:flex-start}
dialog .detail-header>.icon-button{min-width:44px;min-height:44px;flex-shrink:0;background:var(--panel2)}
dialog .properties{grid-template-columns:minmax(100px,.7fr) minmax(0,1fr)}
dialog .conversation,dialog .chat-message p,dialog textarea{overflow-wrap:anywhere}
dialog .actions{flex-wrap:wrap}
@media(max-width:760px){
 .app-header{padding:0 14px}
 .header-main{height:70px;gap:8px}
 .header-main .brand{font-size:17px;gap:8px}
 .header-main .brand img{height:36px;width:36px;border-radius:10px}
 .header-main .brand small{font-size:9px}
 .header-right{gap:6px}
 .header-right>.live,.header-right>.owner-chip,.header-inbox>span{display:none}
 .header-inbox{min-height:44px;padding:8px;gap:6px}
 .header-inbox b{font-size:11px}
 .workspace .main-nav{display:none}
 .workspace-main{padding:22px 14px calc(94px + env(safe-area-inset-bottom))}
 .owner-mobile-nav{position:fixed;z-index:30;inset:auto 0 0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:7px 5px calc(7px + env(safe-area-inset-bottom));background:#fffffff5;border-top:1px solid var(--line);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
 .owner-mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:52px;padding:5px 2px;border-radius:10px;font-size:10px;line-height:1.3;color:#63636d}
 .owner-mobile-nav button[aria-current=page],.owner-mobile-nav button.active{background:var(--accent-soft);color:#a31320;font-weight:600}
 #owner-more{width:calc(100vw - 16px);margin:auto auto calc(8px + env(safe-area-inset-bottom));border-radius:22px;padding:16px;max-height:calc(100dvh - 24px)}
 #owner-more nav>*{font-size:12px}
 .heading{gap:10px;align-items:flex-start;margin-bottom:20px}
 .heading h1{font-size:27px;letter-spacing:-.6px}
 .heading .page-kicker{font-size:9px}
 .heading p{max-width:100%;font-size:12px}
 .heading>.actions{flex-direction:row;gap:6px;flex-shrink:0;flex-wrap:nowrap}
 .heading>.actions .button{min-width:44px;min-height:44px;padding:10px}
 .heading>.actions .button span{display:none}
 .filterbar{gap:12px}
 .segments{width:100%;display:flex;flex-wrap:wrap;gap:3px}
 .segments button{flex:1;min-width:52px;padding:8px 5px;font-size:11px}
 .filterbar .switch{min-height:44px;font-size:12px}
 .workspace .search{min-width:0;width:100%}
 .workspace .search input{width:100%;font-size:16px}
 .workspace .filter-chips{gap:7px}
 .workspace .filter-chips button{font-size:12px;min-height:44px;padding:9px 11px}
 .workspace .filter-group{gap:8px}
 .owner-user-tools{gap:10px;margin-bottom:16px}
 .owner-user-tools>.search{grid-column:1/-1}
 .owner-user-tools>.result-count{grid-column:1/-1;justify-self:start;font-size:11px}
 .owner-user-filters>summary{padding:10px 12px;gap:8px}
 .owner-user-filter-fields{padding:4px 12px 14px;gap:16px}
 .owner-user-filter-fields>.filter-group{display:grid;gap:8px}
 .journey-hero{display:none}
 .overview-metrics{gap:10px;margin-bottom:18px}
 .overview-metrics .action-metric{min-width:0;padding:16px 13px;border-radius:16px}
 .overview-metrics .action-metric .metric-top{font-size:11px;gap:6px}
 .overview-metrics .action-metric strong{font-size:30px}
 .overview-metrics .action-metric small{font-size:11px}
 .workspace .panel{padding:18px 14px;border-radius:18px}
 .workspace .timeline{gap:10px;flex-wrap:wrap}
 .workspace .timeline .timeline-text{flex:1;min-width:120px}
 .workspace .platform-card{min-height:64px}
 .workspace .owner-people-table{display:block;min-width:0;width:100%;white-space:normal}
 .owner-people-table thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .owner-people-table tbody{display:grid;gap:12px}
 .owner-people-table tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:14px;padding:12px;gap:12px 8px;background:#fff}
 .owner-people-table td{display:block;min-width:0;padding:0!important;border:0;font-size:13px}
 .owner-people-table td:nth-child(1),.owner-people-table td:nth-child(2),.owner-people-table td:nth-child(6){grid-column:1/-1}
 .owner-people-table td:nth-child(1){grid-row:1;padding-right:44px!important}
 .owner-people-table td:last-child{grid-column:3;grid-row:1;justify-self:end}
 .owner-people-table td:last-child .icon-button{min-width:44px;min-height:44px}
 .owner-people-table td:nth-child(3)::before,.owner-people-table td:nth-child(4)::before,.owner-people-table td:nth-child(5)::before{display:block;font-size:10px;line-height:1.5;color:var(--muted);margin-bottom:4px}
 .owner-people-table td:nth-child(3)::before{content:'За рулём'}
 .owner-people-table td:nth-child(4)::before{content:'Пассажиром'}
 .owner-people-table td:nth-child(5)::before{content:'Создал заявок'}
 .owner-people-table .user-cell{gap:9px;align-items:flex-start;min-width:0}
 .owner-people-table .user-cell>div{min-width:0}
 .owner-people-table .user-name{white-space:normal;overflow-wrap:anywhere;text-align:left}
 .owner-people-table .inline-tags{flex-wrap:wrap;gap:6px}
 dialog:not(#owner-more){width:calc(100vw - 12px);max-height:calc(100dvh - 12px);border-radius:18px;margin:auto}
 dialog .detail-header,dialog .detail-body{padding:16px 14px}
 dialog .detail-title h2{font-size:20px;line-height:1.3}
 dialog .detail-title .avatar.big{width:42px;height:42px;font-size:16px}
 dialog .detail-body .button{min-height:44px;white-space:normal;text-align:center}
 dialog .detail-body textarea,dialog .detail-body input{font-size:16px}
 dialog .detail-grid{grid-template-columns:minmax(0,1fr)}
 .footer{line-height:1.7;font-size:11px}
 .owner-promotion-metrics .promotion-free{padding:20px;border-radius:18px}
}
@media(max-width:359px){.header-inbox{display:none}.heading h1{font-size:24px}.owner-more-head h2{font-size:18px}.owner-mobile-nav button{font-size:9px}.owner-people-table tr{padding:10px}.heading>.actions{gap:3px}.heading>.actions .button{min-width:40px;padding:8px}}
@media(prefers-reduced-motion:reduce){.workspace *,#owner-more *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
