@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--bg:#f8faf7;--surface:#fff;--ink:#19352d;--muted:#7a8780;--line:#e5ebe4;--lime:#c5f564;--soft:#f1f6ed;--forest:#193f32;--shadow:0 20px 70px #17372b16}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 Manrope,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button{border:0}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #8bb83f;outline-offset:4px}input:focus,select:focus,textarea:focus{outline:2px solid #91bd4b}button:disabled{opacity:.55;cursor:not-allowed}.sidebar{width:226px;position:fixed;inset:0 auto 0 0;background:var(--surface);border-right:1px solid var(--line);padding:30px 22px;display:flex;flex-direction:column;z-index:20}.brand{font-size:29px;font-weight:800;letter-spacing:-1.6px;display:flex;align-items:center;gap:9px}.brand-icon{background:var(--lime);color:#19352d;width:35px;height:35px;display:grid;place-items:center;border-radius:12px;font-size:29px;line-height:1}.brand-dot{color:#81b739;margin-left:-9px}.community{color:var(--muted);font-size:11px;margin:20px 0 36px;display:flex;align-items:center;gap:7px}.pulse{height:6px;width:6px;border-radius:50%;background:#7dab4e}.nav-item{width:100%;text-align:left;display:flex;gap:12px;align-items:center;padding:14px 15px;margin-bottom:7px;background:none;color:var(--muted);border-radius:12px;font-weight:600}.nav-item.active{background:var(--lime);color:#19352d}.nav-item svg{width:20px;height:20px;flex-shrink:0}.sidebar-bottom{margin-top:auto}.small-route{background:var(--forest);color:#fff;border-radius:18px;padding:20px 18px;height:182px;position:relative;overflow:hidden;margin-bottom:22px}.small-route span{font-size:9px;letter-spacing:2px;color:#c5f564}.small-route div{font-size:18px;font-weight:600;margin-top:10px}.small-route svg{width:150px;position:absolute;bottom:-3px;right:-7px;fill:var(--lime);stroke:var(--lime);stroke-width:2}.small-route path{fill:none;stroke-dasharray:4 5}.sidebar-link{display:block;font-size:11px;background:none;padding:7px 0;color:var(--muted)}.version{font-size:9px;color:var(--muted);display:block;margin-top:12px}.app{margin-left:226px}.topbar{height:88px;padding:0 40px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.top-label{color:var(--muted);font-size:12px}.top-actions{display:flex;align-items:center;gap:16px}.icon-button{width:39px;height:39px;display:grid;place-items:center;border:1px solid var(--line);background:var(--surface);border-radius:50%;font-size:20px}.icon-button svg{width:18px;height:18px}.user-button{display:flex;gap:10px;align-items:center;background:transparent;font-size:12px;font-weight:700}.avatar{height:42px;width:42px;display:grid;place-items:center;background:#e2ecda;color:#365b42;font-weight:800;letter-spacing:-.5px;border-radius:50%;flex-shrink:0}.avatar-small{height:33px;width:33px;font-size:10px;background:var(--forest);color:var(--lime)}main{max-width:1440px;margin:auto;padding:32px 40px 20px}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:700;color:var(--muted);text-transform:uppercase}.hero{display:flex;justify-content:space-between;align-items:center;margin-bottom:27px;gap:24px}.hero h1{font-size:42px;line-height:1.17;font-weight:800;letter-spacing:-1.8px;margin:7px 0 10px}.hero h1 em{font-style:normal;position:relative;z-index:0}.hero h1 em:after{content:'';position:absolute;background:var(--lime);height:14px;inset:auto -3px 1px;z-index:-1;border-radius:3px}.hero p{color:var(--muted);font-size:13px;margin:0}.button{background:var(--lime);color:#19352d;border-radius:12px;display:inline-flex;justify-content:center;align-items:center;gap:10px;padding:13px 19px;font-weight:800;font-size:12px;white-space:nowrap;transition:transform .2s,filter .2s}.button:hover{filter:brightness(.97);transform:translateY(-1px)}.button svg{height:17px;width:17px}.button.secondary{background:var(--surface);border:1px solid var(--line);color:var(--ink)}.button.dark{background:var(--forest);color:#fff}.button.full{width:100%}.search-panel{background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:0 4px 14px #19352d04;margin-bottom:25px;padding:18px}.mode-switch{display:flex;gap:4px;margin-bottom:17px}.mode-switch button{background:none;padding:8px 15px;font-size:11px;font-weight:700;border-radius:8px;color:var(--muted)}.mode-switch button.active{background:var(--soft);color:var(--ink)}.search-fields{display:grid;grid-template-columns:1fr 40px 1fr .8fr 130px;align-items:center;gap:12px}.field label{display:block;color:var(--muted);font-size:9px;font-weight:700;letter-spacing:1px;text-transform:uppercase;margin-bottom:5px}.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);background:var(--surface);color:var(--ink);padding:12px;border-radius:10px;font-size:12px;min-height:44px}.search-fields .field input,.search-fields .field select{border:0;padding:0;min-height:26px;background:transparent}.search-fields .field{border-right:1px solid var(--line);padding:0 12px}.swap{border:1px solid var(--line);border-radius:50%;width:32px;height:32px;background:var(--surface);font-size:18px}.results-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px;gap:12px}.results-title{display:flex;gap:10px;align-items:center;font-size:15px;font-weight:800}.count{background:var(--soft);font-size:10px;padding:2px 7px;border-radius:6px;color:var(--muted)}.chips{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.chip{border:1px solid var(--line);background:var(--surface);color:var(--muted);padding:7px 10px;border-radius:8px;font-size:10px;font-weight:600}.chip.active{background:var(--forest);border-color:var(--forest);color:#fff}.workspace{display:grid;grid-template-columns:minmax(320px,.92fr) minmax(360px,1.25fr);gap:22px;align-items:start}.ride-list{display:flex;flex-direction:column;gap:12px}.ride-card{border:1px solid var(--line);border-radius:17px;padding:18px;background:var(--surface);transition:border-color .2s,box-shadow .2s;cursor:pointer}.ride-card:hover,.ride-card.selected{border-color:#99bf64;box-shadow:0 5px 22px #19352d08}.card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:8px}.time{font-size:24px;font-weight:800;letter-spacing:-1px}.arrival{color:var(--muted);font-size:10px;margin-left:8px}.price{font-size:17px;font-weight:800;text-align:right;white-space:nowrap}.price small{display:block;color:var(--muted);font-size:8px;letter-spacing:.2px;font-weight:500}.ride-route{position:relative;margin-bottom:15px;padding-left:21px;font-size:11px;font-weight:700}.ride-route:before{content:'';position:absolute;left:4px;top:8px;bottom:10px;width:1px;background:#adc5aa}.stop{position:relative;display:flex;justify-content:space-between;gap:10px;margin-bottom:9px}.stop:before{content:'';position:absolute;left:-21px;top:5px;width:7px;height:7px;background:var(--surface);border:2px solid #8bb669;border-radius:50%}.stop:last-child:before{background:var(--lime);border-color:var(--lime)}.stop small{font-size:9px;color:var(--muted);font-weight:500}.card-bottom{border-top:1px solid var(--line);padding-top:12px;display:flex;align-items:center;gap:9px}.driver{font-size:11px;font-weight:800;flex:1}.driver small{display:block;font-size:9px;font-weight:500;color:var(--muted);margin-top:2px}.driver .star{color:#779944}.seat-badge{background:var(--soft);color:#5e7d50;font-size:9px;padding:5px 8px;border-radius:6px;white-space:nowrap}.card-arrow{font-size:21px;color:var(--ink);background:none;padding:4px}.map-panel{position:sticky;top:22px;border:1px solid var(--line);border-radius:20px;overflow:hidden;background:#ecf0e7;min-height:590px}.map{height:590px;width:100%;background:#edf0e7}.map-caption{position:absolute;left:17px;top:17px;z-index:500;background:var(--surface);padding:12px 15px;border-radius:11px;box-shadow:0 4px 20px #17372b12;font-size:11px;pointer-events:none}.map-caption strong{display:block}.map-caption small{color:var(--muted);font-size:9px}.map-key{position:absolute;left:17px;bottom:28px;z-index:500;border-radius:10px;padding:9px 12px;background:var(--surface);font-size:9px;box-shadow:0 4px 20px #17372b12;max-width:240px}.map-key span{display:inline-block;width:7px;height:7px;background:var(--lime);border:1px solid #5c7c36;border-radius:50%;margin-right:4px}.map-pin{background:#fff;border:2px solid var(--forest);color:var(--ink);border-radius:11px;padding:7px 11px;box-shadow:0 4px 14px #19352d30;font-size:11px;font-weight:800;white-space:nowrap;position:relative}.map-pin:after{content:'';position:absolute;bottom:-6px;left:17px;height:8px;width:8px;background:inherit;transform:rotate(45deg);border-bottom:2px solid var(--forest);border-right:2px solid var(--forest)}.map-pin.active{background:var(--lime)}.campus-pin{background:var(--forest);color:#fff;border-radius:9px;padding:8px 12px;font-size:10px;font-weight:800;white-space:nowrap;box-shadow:0 3px 15px #17372b33}.map-fallback{position:absolute;inset:0;background:repeating-linear-gradient(18deg,transparent 0 73px,#fff 74px 80px,transparent 81px 144px),repeating-linear-gradient(105deg,#edf0e6 0 63px,#fff 64px 70px,#edf0e6 71px 142px)}.map-fallback svg{width:100%;height:100%}.map-fallback .fallback-label{position:absolute;left:20px;top:100px;font-size:20px;font-weight:800;color:#7d927c}.info-strip{display:flex;gap:16px;margin-top:24px;border-top:1px solid var(--line);padding-top:19px;align-items:center}.info-strip .info-icon{border-radius:10px;background:var(--soft);padding:9px;display:grid;place-items:center}.info-strip svg{width:20px;height:20px}.info-strip b{font-size:11px}.info-strip p{color:var(--muted);font-size:10px;margin:3px 0}.info-strip button{margin-left:auto;background:none;font-size:10px;text-decoration:underline;white-space:nowrap}.footer{max-width:1440px;margin:auto;padding:25px 40px;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:9px;gap:12px}.footer button{background:none;color:var(--muted);font-size:9px}.mobile-brand,.bottom-nav{display:none}.modal-backdrop{position:fixed;inset:0;background:#102c2370;backdrop-filter:blur(5px);z-index:2000;display:flex;align-items:center;justify-content:center;padding:25px}.modal-backdrop[hidden]{display:none}.modal{position:relative;background:var(--surface);max-width:520px;width:100%;border-radius:24px;padding:30px;max-height:90dvh;overflow:auto;box-shadow:var(--shadow)}.modal-close{position:absolute;right:18px;top:18px;width:30px;height:30px;font-size:13px}.modal h2{font-size:27px;letter-spacing:-1px;margin:10px 32px 20px 0;line-height:1.3}.modal p{font-size:12px;color:var(--muted)}.modal .ride-route{font-size:13px;margin:22px 0}.detail-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}.detail-metrics div{border:1px solid var(--line);border-radius:12px;padding:12px}.detail-metrics b{display:block;font-size:18px}.detail-metrics small{color:var(--muted);font-size:9px}.note{background:var(--soft);padding:13px 15px;border-radius:12px;font-size:11px;color:var(--muted);margin:14px 0;line-height:1.7}.note b{color:var(--ink)}.detail-driver{display:flex;align-items:center;gap:12px;background:var(--soft);padding:14px;border-radius:13px}.modal-actions{display:flex;gap:9px;margin-top:15px}.modal-actions .button{flex:1}.modal ul{padding-left:19px;color:var(--muted);font-size:12px;line-height:1.8}.modal textarea{width:100%;border:1px solid var(--line);color:var(--ink);background:var(--surface);border-radius:10px;padding:12px;min-height:90px}.text-link{font-size:11px;color:var(--muted);background:none;text-decoration:underline;margin-top:15px}.toast-visible{opacity:1!important;transform:translate(-50%,0)!important}#toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,12px);background:var(--forest);color:#fff;box-shadow:var(--shadow);z-index:3000;padding:13px 20px;border-radius:12px;opacity:0;pointer-events:none;transition:.2s;font-size:12px;max-width:90vw;text-align:center}.page-heading{margin-bottom:25px}.page-heading h1{font-size:36px;letter-spacing:-1.4px;line-height:1.2;margin:8px 0}.page-heading p{color:var(--muted);font-size:12px}.form-layout{display:grid;grid-template-columns:1.35fr .8fr;gap:25px;max-width:1000px}.panel{border:1px solid var(--line);border-radius:19px;padding:25px;background:var(--surface)}.panel h3{font-size:15px;margin:0 0 18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.form-grid .wide{grid-column:1/-1}.form-section{padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid var(--line)}.form-section:last-child{border:0;padding:0;margin:0}.check{display:flex;align-items:flex-start;gap:9px;font-size:11px;color:var(--muted);margin:12px 0}.check input{accent-color:#80ac37;width:16px;height:16px;flex-shrink:0}.form-tip{background:var(--forest);color:white;border-radius:19px;padding:26px;align-self:start}.form-tip h3{font-size:23px;line-height:1.3;margin:15px 0;letter-spacing:-.6px}.form-tip p{color:#c5d4c9;font-size:12px}.form-tip .route-art{font-size:65px;color:var(--lime);line-height:1.2}.form-tip ol{padding-left:20px;font-size:12px;line-height:1.8;color:#c5d4c9}.tabs{display:flex;gap:6px;background:var(--soft);padding:5px;border-radius:12px;max-width:420px;margin-bottom:24px}.tabs button{flex:1;padding:9px;background:none;border-radius:8px;font-size:11px;font-weight:700;color:var(--muted)}.tabs button.active{background:var(--surface);color:var(--ink);box-shadow:0 3px 12px #19352d08}.empty{padding:50px 20px;text-align:center;border:1px dashed var(--line);border-radius:18px;background:var(--surface)}.empty .empty-icon{width:68px;height:68px;display:grid;place-items:center;background:var(--soft);border-radius:22px;margin:0 auto 17px}.empty svg{width:30px;height:30px}.empty h3{font-size:18px;margin:0 0 6px}.empty p{font-size:12px;color:var(--muted);max-width:320px;margin:0 auto 20px}.booking-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.booking-actions{display:flex;gap:8px;margin-top:15px}.booking-actions .button{flex:1;font-size:10px;padding:10px}.status{font-size:9px;background:var(--soft);padding:4px 7px;border-radius:6px;color:#638747}.profile-layout{display:grid;grid-template-columns:1fr 1.1fr;gap:25px;max-width:1000px}.profile-intro{text-align:center;padding:30px}.avatar-large{height:90px;width:90px;font-size:27px;margin:auto}.profile-intro h2{font-size:25px;margin:14px 0 3px}.profile-intro p{font-size:12px;color:var(--muted)}.profile-intro .button{margin:15px auto}.profile-stats{display:flex;justify-content:center;gap:35px;margin:25px 0}.profile-stats b{font-size:22px;display:block}.profile-stats span{font-size:10px;color:var(--muted)}.setting-row{display:flex;align-items:center;justify-content:space-between;padding:17px 0;border-bottom:1px solid var(--line);gap:15px}.setting-row:last-child{border:0}.setting-row b{display:block;font-size:12px}.setting-row small{color:var(--muted);font-size:10px}.setting-row button{background:var(--soft);padding:7px 11px;border-radius:8px;font-size:10px}.danger{color:#b15b52!important}.legal-title{font-size:12px!important;margin-top:20px!important}.picking-banner{background:var(--lime);color:#19352d;border-radius:10px;padding:12px;font-size:11px;margin-bottom:14px}.compact-map{height:300px;border-radius:14px}.leaflet-container{font-family:inherit}.leaflet-control-attribution{font-size:8px!important}.leaflet-bar a{color:#19352d}.leaflet-tooltip{font-family:inherit}.map-mobile-toggle{display:none}.active-trip-label{display:flex;justify-content:space-between;margin-bottom:12px}.favorite{background:none;font-size:20px;color:var(--muted)}.favorite.active{color:#83a838}.auth-fields{display:grid;gap:14px}.map-route-link{display:block;text-align:center;margin-top:10px;font-size:10px;text-decoration:underline}.chat-message{background:var(--soft);padding:12px;border-radius:12px;margin:10px 0;font-size:12px}.chat-message.mine{background:#c5f56438;text-align:right}.chat-form{display:flex;gap:8px;margin-top:15px}.chat-form input{min-width:0;flex:1;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:10px;padding:12px}.profile-note{margin-top:20px;text-align:left}.date-tag{font-size:9px;color:var(--muted)}.view-selector{display:flex;gap:5px}.view-selector .chip{padding:6px 9px}.map-error{position:absolute;z-index:500;right:15px;bottom:25px;padding:8px;border-radius:8px;background:var(--surface);font-size:9px;max-width:180px}.dark{--bg:#12251e;--surface:#1b3027;--ink:#ecf2e9;--muted:#a2b0a4;--line:#30463b;--soft:#263e30;--forest:#254c39;--shadow:0 20px 70px #0004}.dark .leaflet-tile-pane{filter:brightness(.72) saturate(.6)}.dark .map-pin{color:#19352d}.dark .hero h1 em:after{background:#87ad43}.dark .avatar{background:#324d38;color:#c5f564}.dark .map-key span{background:#c5f564}.dark .map-fallback{filter:brightness(.6)}
@media(min-width:1550px){main{padding-top:44px}.map,.map-panel{min-height:660px}.map{height:660px}}@media(max-width:1150px){.sidebar{width:195px;padding:26px 16px}.app{margin-left:195px}main{padding:25px}.topbar{padding:0 25px}.hero h1{font-size:34px}.workspace{grid-template-columns:1fr 1fr;gap:15px}.map,.map-panel{height:590px;min-height:590px}.search-fields{gap:5px;grid-template-columns:1fr 35px 1fr .8fr 100px}.search-fields .field{padding:0 6px}.results-toolbar{align-items:flex-start}.chips{justify-content:flex-end}.card-head .arrival{display:block;margin-left:0}.footer{padding:25px}}@media(max-width:900px){.sidebar{width:80px;padding:25px 12px}.sidebar .brand{font-size:0;justify-content:center}.brand-dot,.community,.sidebar-bottom,.nav-item .nav-text{display:none}.nav-item{padding:14px;justify-content:center}.sidebar nav{margin-top:45px}.app{margin-left:80px}.hero h1{font-size:32px}.hero .button{padding:12px}.workspace{grid-template-columns:1fr 1fr}.ride-card{padding:14px}.seat-badge{font-size:8px}.search-fields{grid-template-columns:1fr 30px 1fr}.search-fields .date-field{grid-column:1/3}.search-fields>.button{grid-column:3;margin-top:12px}.search-fields .field{border:0}.search-fields .date-field{border-top:1px solid var(--line);padding-top:12px;margin-top:12px}.profile-layout,.form-layout{grid-template-columns:1fr}.form-tip{display:none}.booking-grid{grid-template-columns:1fr}.footer{flex-wrap:wrap}.results-toolbar{flex-wrap:wrap}.chips{justify-content:flex-start}}
@media(max-width:650px){.sidebar{display:none}.app{margin-left:0}.topbar{height:70px;padding:0 20px;background:var(--surface)}.top-label{display:none}.mobile-brand{display:flex;font-size:26px}.mobile-brand .brand-icon{width:30px;height:30px;border-radius:10px;font-size:26px}.top-actions{gap:10px}.user-button>span:last-child{display:none}.icon-button{width:33px;height:33px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;z-index:1000;border-top:1px solid var(--line);background:var(--surface);padding:8px 4px max(9px,env(safe-area-inset-bottom))}.bottom-nav .nav-item{display:flex;flex-direction:column;gap:4px;margin:0;padding:5px 3px;width:23%;font-size:8px;border-radius:9px}.bottom-nav .nav-text{display:block}.bottom-nav .nav-item.active{background:var(--soft);color:var(--ink)}.bottom-nav .nav-item.active svg{stroke:#82a844}.bottom-nav svg{width:20px;height:20px}main{padding:24px 18px 20px}.hero{margin-bottom:22px;align-items:flex-start;gap:12px}.hero h1{font-size:32px;margin-top:7px;letter-spacing:-1.3px}.hero p{font-size:11px;max-width:245px}.hero>.button{display:none}.eyebrow{font-size:9px;letter-spacing:1.2px}.search-panel{padding:15px;border-radius:15px;margin-bottom:22px}.mode-switch{margin-bottom:14px}.mode-switch button{padding:7px 12px;font-size:10px}.search-fields{grid-template-columns:1fr 32px 1fr;gap:4px}.search-fields .field input,.search-fields .field select{font-size:11px}.search-fields .field label{font-size:8px}.search-fields .date-field{grid-column:1/3}.search-fields>.button{font-size:11px;padding:11px 16px}.workspace{grid-template-columns:1fr;gap:15px}.map-panel{position:relative;top:0;min-height:410px;height:410px}.map{height:410px}.workspace.map-mode .ride-list{display:none}.workspace.list-mode .map-panel{display:none}.map-mobile-toggle{display:flex;margin-left:auto}.results-toolbar{margin-bottom:13px}.results-title{font-size:14px}.chips{width:100%;gap:6px}.chip{font-size:9px;padding:7px 10px}.ride-card{padding:17px;border-radius:16px}.card-head .arrival{display:inline;margin-left:8px}.time{font-size:24px}.ride-route{font-size:12px}.driver{font-size:12px}.driver small{font-size:9px}.seat-badge{font-size:9px}.info-strip{gap:11px;align-items:flex-start}.info-strip button{display:none}.info-strip p{font-size:10px}.footer{padding:20px 18px 100px;font-size:8px}.footer span:last-child{width:100%}.modal-backdrop{padding:12px;align-items:flex-end}.modal{padding:26px 22px;border-radius:22px;max-height:88dvh}.modal h2{font-size:25px}.modal-close{top:14px;right:14px}#toast{bottom:90px}.panel{padding:20px}.page-heading h1{font-size:30px}.form-grid{gap:13px}.field input,.field select{font-size:12px}.profile-layout{gap:15px}.profile-intro{padding:25px 20px}.modal-actions{flex-wrap:wrap}.modal-actions .button{white-space:normal;min-height:44px}.footer{line-height:1.6}.page-heading{margin-bottom:22px}.date-tag{font-size:8px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media(min-width:651px){.view-selector.map-mobile-toggle{display:none}}

/* ===== v2: живой сервис — люди, заявки, такси, запросы, Telegram ===== */

/* Читаемость: подписи не мельче 11–12px, поля 16px, чтобы iOS не зумил */
.driver small,.seat-badge,.date-tag,.status,.count,.price small,.chip,.field label,.note,.check,.text-link,.eyebrow{font-size:12px}
.field label{font-size:11px}
.field input,.field select,.field textarea{font-size:16px}
.driver{font-size:13px}
.tabs button{font-size:13px}
.button{font-size:14px}
.avatar{position:relative;overflow:hidden}
.avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.avatar.mini{width:26px;height:26px;font-size:10px;border:2px solid var(--surface);margin-left:-8px}
.dark .avatar[style]{background:#324d38!important;color:#c5f564!important}

/* Метки */
.tag{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:700;padding:2px 7px;border-radius:6px;background:var(--soft);color:var(--muted);vertical-align:1px;margin-left:4px}
.tag svg{width:13px;height:13px}
.tag-ok{background:#e6f5d0;color:#41692a}
.tag-wait{background:#fbf0d3;color:#8a6414}
.tag-demo{background:#efe9f6;color:#6b4f8a}
.tag-taxi{background:#fff3c4;color:#6e5a00;margin-left:0}
.card-tags{display:flex;flex-wrap:wrap;gap:6px;margin:-8px 0 12px}
.card-tags:empty{display:none}
.dark .tag-ok{background:#2c4a2a;color:#c5f564}
.dark .tag-wait{background:#4a3d1c;color:#f5d27a}
.dark .tag-demo{background:#3a3150;color:#d6c7f0}
.dark .tag-taxi{background:#4a4212;color:#ffe680}
.ride-card.taxi{border-left:4px solid #f5d34a}
.status.hot{background:var(--lime);color:#19352d;font-weight:800}
.status.wait{background:#fbf0d3;color:#8a6414}
.status.muted{color:var(--muted);background:var(--soft)}
.rider-stack{display:flex;padding-left:8px}

/* Счётчик заявок в навигации */
.nav-item{position:relative}
.nav-badge{min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:#e0553f;color:#fff;font-size:11px;font-weight:800;display:inline-grid;place-items:center;margin-left:auto}
.tab-count{background:var(--surface);border-radius:6px;padding:0 6px;font-size:11px;margin-left:3px}

/* Люди и заявки в карточке поездки */
.person{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
.person .driver small{white-space:normal}
.detail-driver .bio{margin-top:5px;font-style:italic}
.request-row{border:1px solid var(--line);border-radius:14px;padding:4px 12px 12px;margin-bottom:10px}
.request-row .person{border-bottom:0}
.request-message{font-size:13px;color:var(--ink);background:var(--soft);border-radius:10px;padding:8px 11px;margin-bottom:10px}
.request-actions,.ride-links{display:flex;gap:8px;flex-wrap:wrap}
.ride-links{margin-top:16px}
.ride-links .button{flex:1}
.small-button{padding:9px 13px;font-size:13px;gap:6px}
.small-button svg,.ride-links svg,.modal-actions svg{width:17px;height:17px}
.list-title{font-size:15px;margin:22px 0 8px;display:flex;align-items:center;gap:8px}
.muted-line{color:var(--muted);font-size:13px;margin:6px 0}
.status-box{border-radius:12px;padding:13px 15px;font-size:13px;line-height:1.6;margin:16px 0 0;background:var(--soft);color:var(--ink)}
.status-box.ok{background:#e6f5d0}
.status-box.wait{background:#fbf0d3}
.dark .status-box.ok{background:#2c4a2a}
.dark .status-box.wait{background:#4a3d1c}
.request-form{margin-top:16px}
.request-form .button{margin-top:12px}
.form-hint{font-size:12px;color:var(--muted);margin-top:8px;line-height:1.5}
.form-error{font-size:13px;margin-top:10px;min-height:1px}
.detail-metrics .of{font-size:.6em;color:var(--muted)}
.loading{display:flex;align-items:center;gap:10px;justify-content:center;padding:40px;color:var(--muted);font-size:13px}
.loading span{width:18px;height:18px;border-radius:50%;border:2px solid var(--line);border-top-color:#82a844;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.center{text-align:center;margin-top:16px}

/* Что публикуем: машина, такси, запрос */
.kind-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:22px;max-width:780px}
.kind-option{display:flex;align-items:center;gap:11px;text-align:left;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink)}
.kind-option svg{width:24px;height:24px;flex-shrink:0;stroke:#82a844}
.kind-option b{display:block;font-size:14px}
.kind-option small{display:block;font-size:12px;color:var(--muted);margin-top:2px}
.kind-option.active{border-color:#82a844;box-shadow:0 0 0 2px #c5f56480;background:var(--soft)}

/* Запросы «Ищу попутку» */
.chip-sep{width:1px;height:20px;background:var(--line)}
.wish-cta{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px dashed #a9c97a;border-radius:16px;padding:15px 17px;background:var(--soft)}
.wish-cta b{display:block;font-size:14px}
.wish-cta small{display:block;font-size:12px;color:var(--muted);margin-top:3px;line-height:1.5}
.wish-cta svg{width:18px;height:18px}
.wish-card{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:14px;padding:12px 14px;background:var(--surface)}
.wish-time{font-weight:800;font-size:14px;white-space:nowrap}
.wish-body{flex:1;min-width:0}
.wish-body b{display:block;font-size:13px}
.wish-body small{display:block;font-size:12px;color:var(--muted);margin-top:2px;overflow-wrap:anywhere}
.wish-list{display:grid;gap:10px;max-width:640px}
.wish-date{margin:5px 0 0 4px}

/* Вход */
.tg-login{margin:18px 0 6px;display:grid;gap:10px}
.tg-widget{min-height:44px;display:flex;justify-content:center}
.tg-widget:empty{display:none}
.tg-open{background:#2aabee;color:#fff}
.tg-open svg{width:18px;height:18px}
.divider{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12px;margin:18px 0 4px}
.divider:before,.divider:after{content:"";flex:1;height:1px;background:var(--line)}
.inline-link{background:none;color:var(--ink);text-decoration:underline;font-size:inherit;padding:0}
.profile-form{margin-top:20px;text-align:left}

/* Узкие экраны */
@media(max-width:900px){.kind-switch{grid-template-columns:1fr}}
@media(max-width:650px){
  .bottom-nav .nav-item{font-size:11px}
  .nav-badge{position:absolute;top:0;right:12%;margin:0;min-width:17px;height:17px;font-size:10px}
  .hero p,.info-strip p{font-size:13px}
  .eyebrow,.chip,.seat-badge,.driver small,.date-tag,.footer{font-size:12px}
  .search-fields .field input,.search-fields .field select{font-size:16px}
  .search-fields .field label{font-size:11px}
  .mode-switch button{font-size:13px}
  .price small{font-size:11px}
  .footer{font-size:12px}
  .modal{padding:24px 18px calc(22px + env(safe-area-inset-bottom))}
  .wish-cta{flex-direction:column;align-items:stretch}
  .wish-card{flex-wrap:wrap}
  .wish-card .button{width:100%}
  .booking-actions .button{flex:1;white-space:normal}
  .card-bottom{flex-wrap:wrap}
  .tabs{max-width:none;overflow-x:auto}
  .tabs button{white-space:nowrap;padding:9px 10px}
}

/* Внутри Telegram: свой заголовок у клиента, учитываем вырезы */
body.tg .topbar{padding-top:env(safe-area-inset-top)}
body.tg .top-label{display:none}
.detail-metrics small{font-size:12px}
@media(max-width:650px){#toast{bottom:auto;top:calc(12px + env(safe-area-inset-top));transform:translate(-50%,-12px);width:max-content;max-width:calc(100% - 32px);text-align:center}}
.setting-row small,.profile-stats span,.form-tip li,.form-tip p,.map-caption small,.map-key,.top-label,.sidebar-link,.version,.ride-route small,.arrival{font-size:12px}
.setting-row b{font-size:14px}
.setting-row button{font-size:13px;padding:8px 12px}
.mode-switch button{font-size:13px}

/* Упрощение 24.10: поиск в один шаг, подписи обычным регистром, меньше служебных строк */
.field label{font-size:13px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--muted);margin-bottom:6px}
.tabs button{font-size:14px}
.chip{font-size:13px;padding:8px 12px}
.note{font-size:13px}
.find-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.find-head h1{margin:0}
.hint{background:var(--soft);border-radius:16px;padding:16px 18px;margin-bottom:18px;font-size:14px;line-height:1.5}
.hint ol{margin:8px 0 12px;padding-left:20px}
.hint li{margin:3px 0}
.search-panel .tabs{max-width:none;margin-bottom:16px}
.find-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:14px}
.find-fields select{width:100%}
.day-pick{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.day-pick input{width:150px;max-width:100%}
.card-route{font-size:15px;font-weight:700;margin:-6px 0 12px}
.ride-when{color:var(--muted);font-size:14px;margin:4px 0 10px}
.ride-facts{font-size:15px;margin:0 0 12px}
.create-form .tabs{max-width:none;margin-bottom:18px}
.kind-tabs{max-width:520px}
@media(max-width:650px){
  main{padding-bottom:100px}
  .find-head .button{display:none}
  .find-fields{grid-template-columns:minmax(0,1fr)}
  .field label{font-size:13px}
  .chip{font-size:13px}
  .kind-tabs{max-width:none}
}
.topbar{justify-content:flex-end}
.modal p{font-size:14px}
.modal .ride-facts{font-size:15px;color:var(--ink)}
.results-toolbar{flex-wrap:nowrap;align-items:center}
.results-toolbar .chips,.results-toolbar .view-selector{gap:6px;flex-wrap:nowrap}
.seat-badge{font-size:12px}
body.dark .seat-badge{color:var(--ink)}
@media(min-width:651px){.search-panel .tabs{max-width:460px}}
@media(max-width:650px){
  .topbar{justify-content:space-between}
  .results-toolbar .chip{padding:8px 10px}
}

/* ===== v3 по списку Никиты 23.10: шапка, поиск в две строки, низ, инструкция, поддержка, «на экран» ===== */
.user-button.login-pill{background:var(--forest);color:#fff;border-radius:999px;padding:9px 16px;font-size:14px;gap:7px}
.user-button.login-pill>span:last-child{display:inline}
.user-button.login-pill svg{width:17px;height:17px}
body.dark .user-button.login-pill{background:var(--lime);color:#19352d}

.place-pick{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:14px;padding:4px 6px 4px 14px;background:var(--surface);margin-bottom:12px}
.place-pick span{color:var(--muted);font-size:14px;font-weight:600;white-space:nowrap}
.place-pick select{flex:1;min-width:0;border:0;background:transparent;color:var(--ink);font-size:16px;font-weight:700;padding:10px 4px;outline:none}
.place-pick:focus-within{border-color:#91bd4b}
.search-panel .day-pick{flex-wrap:nowrap}
.search-panel .day-pick .chip{flex:1;text-align:center;padding:10px 8px;border-radius:12px;font-size:14px;white-space:nowrap}
.date-chip{position:relative;display:flex;align-items:center;justify-content:center;gap:6px;cursor:pointer}
.date-chip svg{width:16px;height:16px;flex:none}
.date-chip input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;border:0;padding:0}

.split-line{background:var(--soft);border-radius:12px;padding:12px 14px;margin:0;font-size:15px}
.split-line b{font-size:17px}

/* Низ на телефоне: плавающая панель, подписи в одну строку */
@media(max-width:650px){
  .bottom-nav{left:12px;right:12px;bottom:max(10px,env(safe-area-inset-bottom));padding:6px;border:1px solid var(--line);border-radius:22px;box-shadow:0 10px 30px #17372b1f;gap:4px;justify-content:space-between}
  .bottom-nav .nav-item{flex:1;width:auto;min-width:0;padding:8px 2px 7px;gap:3px;border-radius:16px;font-size:11px;font-weight:700;position:relative;white-space:nowrap}
  .bottom-nav .nav-text{overflow:hidden;text-overflow:ellipsis;max-width:100%}
  .bottom-nav .nav-item.active{background:var(--lime);color:#19352d}
  .bottom-nav .nav-item.active svg{stroke:#19352d}
  .bottom-nav .nav-badge{top:3px;right:calc(50% - 22px)}
  main{padding-bottom:120px}
  .user-button.login-pill{padding:8px 14px}
}
body.dark .bottom-nav .nav-item.active{background:var(--lime);color:#19352d}

/* Инструкция при первом входе */
.steps{list-style:none;padding:0;margin:18px 0 14px;display:grid;gap:14px}
.step{display:flex;gap:14px;align-items:flex-start}
.step-icon{flex:none;width:44px;height:44px;border-radius:14px;background:var(--lime);color:#19352d;display:grid;place-items:center}
.step-icon svg{width:22px;height:22px}
.step b{display:block;font-size:16px;margin-bottom:2px}
.step small{display:block;color:var(--muted);font-size:14px;line-height:1.45}

/* Поддержка */
.thread{display:flex;flex-direction:column;gap:8px;max-height:46dvh;overflow:auto;margin-top:14px;padding:2px}
.bubble{max-width:85%;padding:10px 13px;border-radius:16px;font-size:15px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.bubble small{display:block;margin-top:4px;font-size:11px;opacity:.65}
.bubble.mine{align-self:flex-end;background:var(--forest);color:#fff;border-bottom-right-radius:5px}
.bubble.theirs{align-self:flex-start;background:var(--soft);color:var(--ink);border-bottom-left-radius:5px}
body.dark .bubble.mine{background:var(--lime);color:#19352d}
.chat-form textarea{min-width:0;flex:1;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:12px;padding:11px 12px;font-size:16px;resize:none}
.chat-form .button{flex:none;width:48px;padding:0;display:grid;place-items:center}
.chat-form .button svg{width:19px;height:19px}
.admin-thread{border-top:1px solid var(--line);padding-top:4px;margin-top:10px}
.admin-thread .thread{max-height:none}

/* Добавить на экран */
.install-banner{position:fixed;left:12px;right:12px;bottom:calc(max(10px,env(safe-area-inset-bottom)) + 80px);z-index:1100;display:flex;align-items:center;gap:12px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:20px;padding:12px 10px 12px 12px;box-shadow:0 14px 40px #17372b2e;max-width:460px;margin:0 auto;animation:rise .25s ease-out}
.install-banner img{border-radius:12px;flex:none}
.install-banner div{flex:1;min-width:0}
.install-banner b{display:block;font-size:15px}
.install-banner small{display:block;color:var(--muted);font-size:13px;line-height:1.4}
.install-banner small svg{width:15px;height:15px;vertical-align:-3px}
.install-banner .icon-button{flex:none;background:none;color:var(--muted)}
@media(min-width:651px){.install-banner{bottom:24px;left:auto;right:24px}}
@keyframes rise{from{transform:translateY(16px);opacity:0}}
.chat-form{align-items:flex-end}
.chat-form .button{height:48px}
@media(min-width:651px){
  .search-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:center}
  .search-panel .tabs{grid-column:1/-1}
  .place-pick{margin:0}
  .search-panel .day-pick .chip{flex:none;padding:12px 18px}
}
/* Приём из «НЕТворкинга»: лента лиц «+N», запись в один тап, гость вторым планом */
.avatar.mini.more{background:var(--soft);color:var(--muted);font-weight:700;font-size:9px}
.request-more{margin-top:10px}
.request-more summary,.guest-more summary{cursor:pointer;color:var(--muted);font-size:14px;padding:8px 0;list-style:none;text-align:center}
.request-more summary::-webkit-details-marker,.guest-more summary::-webkit-details-marker{display:none}
.request-more summary:hover,.guest-more summary:hover{color:var(--ink);text-decoration:underline}
.request-more .form-grid{margin-top:6px}
.guest-more{margin-top:14px;border-top:1px solid var(--line);padding-top:6px}
