.mobile-only{display:none}
.brand-lockup{min-width:0}
.brand-subtitle{margin:2px 0 0;color:#c9dad5;font-size:16px;line-height:1.3}
@media(min-width:821px){#employer-form{grid-row:span 2}#employer-applications-panel{grid-column:2}}
@media(max-width:700px){
  :root{font-size:18px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
  html,body{max-width:100%;overflow-wrap:break-word}
  body.mobile-app{font-size:18px;line-height:1.5}
  body.mobile-app{padding-bottom:calc(98px + env(safe-area-inset-bottom));background:#f3f7f3}
  body.mobile-app .mobile-only{display:block}
  body.mobile-app .desktop-only{display:none}
  body.mobile-app main{max-width:520px;padding:14px 16px 26px!important}
  body.mobile-app .topbar{gap:8px;flex-wrap:wrap;min-height:58px;padding-top:env(safe-area-inset-top)}
  body.mobile-app .brand{font-size:1.55rem}
  body.mobile-app .top-right small{font-size:16px;line-height:1.4}
  body.mobile-app .intro{padding-bottom:20px}
  body.mobile-app .intro h1{font-size:1.7rem;line-height:1.15}
  body.mobile-app .intro p{font-size:1rem;line-height:1.45}
  body.mobile-app .nav{position:sticky;top:0;z-index:20;box-shadow:0 3px 10px #173d3710}
  body.mobile-app .tabs{max-width:520px;padding:5px 12px;gap:6px}
  body.mobile-app .tabs button{border:0;border-radius:12px;min-height:48px;font-size:1rem}
  body.mobile-app .tabs button[aria-selected=true]{background:#eaf3e9;color:#173d31}
  body.mobile-app .pilot-notice .wrap{max-width:520px;font-size:16px;padding:10px 16px}
  body.mobile-app #candidate>.heading,body.mobile-app #employer>.heading{display:none}
  body.mobile-app .grid{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
  body.mobile-app .grid:empty{display:none}
  body.mobile-app [data-mobile-page]:not(.mobile-page-active){display:none!important}
  body.mobile-app [data-mobile-page].mobile-page-active:not([hidden]){display:block!important}
  body.mobile-app .panel{padding:18px;border-radius:18px;min-width:0;box-shadow:0 8px 24px #173d370a}
  body.mobile-app .panel h2{font-size:1.35rem;margin:0 0 8px}
  body.mobile-app .field{font-size:1rem;margin-bottom:15px}
  body.mobile-app .field input,body.mobile-app .field select,body.mobile-app .field textarea{min-height:54px;font-size:18px;border-radius:12px}
  body.mobile-app .two{grid-template-columns:minmax(0,1fr);gap:0}
  body.mobile-app fieldset legend{font-size:1rem;margin-bottom:5px}
  body.mobile-app .choices{grid-template-columns:minmax(0,1fr);gap:8px}
  body.mobile-app .choices label{font-size:1rem;min-height:50px;padding:12px;border-radius:12px}
  body.mobile-app .choices #rotation-choice{white-space:normal;grid-column:auto}
  body.mobile-app .choices input,body.mobile-app .districts input{width:18px;height:18px;flex:none}
  body.mobile-app .districts{grid-template-columns:minmax(0,1fr);gap:7px}
  body.mobile-app .districts label{display:flex;align-items:center;gap:8px;min-height:48px;padding:10px 12px;border:1px solid #d1ded7;border-radius:11px;font-size:1rem}
  body.mobile-app .districts label:has(input:checked){background:#eef8e5;border-color:#88b984;color:#1d553d}
  body.mobile-app .visible-fields{padding:14px 13px 3px;background:#f8fcf8;margin:15px 0 20px}
  body.mobile-app .form-section-title{font-size:1rem;line-height:1.4}
  body.mobile-app .candidate-actions,body.mobile-app .employer-actions{gap:10px}
  body.mobile-app .btn{min-height:54px;font-size:1rem;overflow-wrap:anywhere}
  body.mobile-app .actions .btn,body.mobile-app .mobile-view>.btn{width:100%}
  body.mobile-app .history-jump{min-height:48px;font-size:1rem}
  body.mobile-app .mobile-view>.btn,body.mobile-app .mobile-view>.history-jump{display:block;width:100%;margin:12px 0}
  body.mobile-app .mobile-view>.muted{font-size:1rem;margin:0 0 18px}
  body.mobile-app .listing{padding:17px 15px;border-radius:15px;overflow-wrap:anywhere}
  body.mobile-app .listing h4{font-size:1.13rem}
  body.mobile-app .price{display:block;font-size:1.5rem;line-height:1.3;margin:10px 0 7px}
  body.mobile-app .hint,body.mobile-app .muted,body.mobile-app .badge,body.mobile-app .error,body.mobile-app .notice,body.mobile-app .share-status,body.mobile-app .sharing-help,body.mobile-app .feedback-note,body.mobile-app .share-preview,body.mobile-app .trust-preview,body.mobile-app .example-summary span{font-size:16px;line-height:1.5}
  body.mobile-app .progressive-fields>summary{font-size:18px;line-height:1.5}
  body.mobile-app .install-dialog-header p,body.mobile-app .install-dialog #install-instructions{font-size:16px;line-height:1.5}
  body.mobile-app .metric{flex-wrap:wrap}
  body.mobile-app .tag{font-size:16px;line-height:1.4;white-space:normal}
  body.mobile-app .result-head{align-items:start;flex-wrap:wrap}
  body.mobile-app .badge{white-space:normal}
  body.mobile-app .empty{padding:18px;line-height:1.5}
  body.mobile-app .mobile-back{display:block;min-height:48px;background:#eaf3e9;border:1px solid #c5d9ca;border-radius:11px;color:#245541;font:inherit;font-weight:700;padding:10px 12px;margin:0 0 17px;width:100%;text-align:left}
  body.mobile-app .mobile-section-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}
  body.mobile-app .mobile-section-actions h3{margin:0}
  body.mobile-app #candidate-profile-slot .candidate-publication{margin:0 0 16px}
  body.mobile-app #candidate-responses-slot .history-details{border:0;padding:0}
  body.mobile-app #candidate-responses-slot .history-details>summary{display:none}
  body.mobile-app #candidate-responses-slot .history-item:first-of-type{margin-top:0}
  body.mobile-app #mobile-bottom{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;z-index:30;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #d6e4d9;padding:8px max(6px,calc((100vw - 520px)/2)) calc(10px + env(safe-area-inset-bottom));box-shadow:0 -5px 22px #173d370a}
  body.mobile-app #mobile-bottom button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:0;background:transparent;color:#56716b;border-radius:12px;font:inherit;font-size:16px;padding:7px 2px;min-height:54px;min-width:0;overflow-wrap:anywhere}
  body.mobile-app #mobile-bottom button[aria-current=page]{color:#183c30;background:#eaf3e9;font-weight:750}
  body.mobile-app #mobile-bottom svg{width:22px;height:22px;flex:none}
  body.mobile-app .install-fab{bottom:calc(94px + env(safe-area-inset-bottom));right:max(14px,calc((100vw - 520px)/2 + 14px));z-index:25}
  body.mobile-app dialog{width:calc(100vw - 24px);max-width:500px;max-height:calc(100dvh - 24px);overflow-y:auto;border-radius:20px}
  body.mobile-app .dialog-form{padding:22px 18px}
  body.mobile-app dialog .actions{display:grid;grid-template-columns:1fr;width:100%}
  body.mobile-app dialog .actions .btn{width:100%;min-height:50px}
  body.mobile-app .install-dialog{max-width:none;width:100%;border-radius:20px 20px 0 0}
  body.mobile-app .history-panel,body.mobile-app .example-panel{margin-top:14px}
  body.mobile-app #candidate-history,body.mobile-app #employer-history{margin-top:0}
  body.mobile-app .history-item .actions{gap:10px}
  body.mobile-app .stats{grid-template-columns:minmax(0,1fr);gap:8px}
  body.mobile-app .metric{display:flex;align-items:center;gap:14px;padding:13px}
  body.mobile-app .metric strong{font-size:1.5rem;min-width:35px}
  body.mobile-app .metric span{font-size:1rem;margin:0}
  body.mobile-app .consent{font-size:1rem;line-height:1.5}
  body.mobile-app .consent input{width:20px;height:20px;flex:none}
  body.mobile-app footer{font-size:16px;line-height:1.5}
  body.mobile-app .sync-status{scroll-margin-top:70px}
  body.mobile-app main section,body.mobile-app main form,body.mobile-app main .panel,body.mobile-app [id]{scroll-margin-top:76px}
  /* The approved "Условия сразу" layout: a short app header, then the role
     switch and conditions. Text stays readable while repeated blocks shrink. */
  body.mobile-app .topbar{min-height:56px;padding:12px 16px;flex-wrap:nowrap}
  body.mobile-app .brand{font-size:34px;line-height:1.1;white-space:nowrap}
  body.mobile-app .brand-subtitle{font-size:16px;margin-top:3px;line-height:1.3}
  body.mobile-app .top-right small,body.mobile-app .top-right>span{display:none}
  body.mobile-app .pilot-notice{display:none}
  body.mobile-app .tabs{padding:4px 8px}
  body.mobile-app .tabs button{font-size:16px;min-height:48px;padding:9px 4px;white-space:normal;line-height:1.25}
  body.mobile-app main{padding:18px 16px 26px!important}
  body.mobile-app main>.intro{padding:0;margin:0 0 20px;color:#163d31}
  body.mobile-app main>.intro h1{font-size:24px;line-height:1.2;margin:0 0 6px;letter-spacing:-.025em}
  body.mobile-app main>.intro p{font-size:16px;line-height:1.4;color:#587065;margin:0}
  body.mobile-app #candidate-form,body.mobile-app #employer-form{border:0;background:transparent;box-shadow:none;padding:0;border-radius:0}
  body.mobile-app .field{font-size:16px;line-height:1.4;margin-bottom:14px}
  body.mobile-app .field input,body.mobile-app .field select{min-height:50px;font-size:18px;margin-top:6px;padding:10px 12px}
  body.mobile-app .candidate-territory{margin:0 0 14px}
  body.mobile-app .candidate-territory>.field{margin-bottom:4px}
  body.mobile-app .candidate-territory .choices{display:block;margin:0}
  body.mobile-app .candidate-territory .choices #rotation-choice,body.mobile-app #employer-rotation-place label{border:0;background:transparent;border-radius:0;padding:8px 0;min-height:44px;font-size:16px;font-weight:500}
  body.mobile-app #district-area.mobile-district-collapsed{display:none}
  body.mobile-app .mobile-check{display:flex;gap:9px;align-items:center;min-height:44px;font-size:16px;margin:0 0 14px;color:#2c4b4b}
  body.mobile-app .mobile-check input{width:20px;height:20px;flex:none;accent-color:#267c4f}
  body.mobile-app .visible-fields{border:0;border-radius:0;background:transparent;padding:0;margin:0 0 16px}
  body.mobile-app .visible-fields>.form-section-title{display:none}
  body.mobile-app .candidate-actions,body.mobile-app .employer-actions{margin-top:6px;gap:9px}
  body.mobile-app .btn{min-height:50px}
  body.mobile-app .employer-place{border:0;padding:0;margin:0 0 14px;background:transparent}
  body.mobile-app .employer-place>legend{display:none}
  body.mobile-app .employer-place .two{margin-top:0}
  body.mobile-app #employer-place-hint{display:none}
  body.mobile-app .install-fab{display:grid;width:56px;height:56px;z-index:35}
  body.mobile-app #mobile-bottom{padding-top:6px;padding-bottom:calc(8px + env(safe-area-inset-bottom))}
  body.mobile-app #mobile-bottom button{min-height:54px;gap:4px;font-size:14px;overflow-wrap:normal;word-break:normal}
  body.mobile-app #mobile-bottom button span{white-space:nowrap}
  body.mobile-app .employer-start{gap:10px;margin:18px 0 4px}
  body.mobile-app .employer-start .employer-choice-button{font-size:16px;min-height:68px;padding:10px 8px}
  body.mobile-app .employer-choice p{font-size:14px;line-height:1.4}
  body.mobile-app .employer-mode-heading h3{font-size:19px}
  body.mobile-app .employer-mode-heading .hint{font-size:15px;color:#526b5e}
  body.mobile-app .vacancy-tabs{gap:6px;padding:4px}
  body.mobile-app .vacancy-tabs button{min-width:0;min-height:52px;flex-wrap:wrap;gap:4px;font-size:16px;padding:8px 4px}
  body.mobile-app .vacancy-tab-count{min-width:18px;font-size:13px;padding:1px 4px}
}
