/* Хронология и организации — списки, чтение и отдельные формы на телефоне. */
.mobile-section-intro{margin:0 0 16px;color:#66758a;font-size:14px;line-height:1.55}
.mobile-section-footnote{font-size:12px;line-height:1.55;color:#6f7f90}
#tab-content-timeline>#timeline-record-select,#tab-content-timeline>.fs-select{display:none!important}
.mobile-workspace-record{display:grid;grid-template-columns:minmax(0,1fr) 18px;gap:5px 10px;width:100%;padding:15px;margin-bottom:10px;border:1px solid #dce2e8;border-radius:14px;background:#fff;color:#263b53;text-align:left}
.mobile-workspace-record>span,.mobile-workspace-record>small{grid-column:1;color:#687b8e;font-size:12px;line-height:1.45}.mobile-workspace-record>strong{grid-column:1;font-size:16px;overflow-wrap:anywhere}.mobile-workspace-record>small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.mobile-workspace-record>b{grid-column:2;grid-row:1/4;align-self:center;font-size:24px;font-weight:400;color:#8b9bac}
.mobile-workspace-heading{margin-bottom:16px}.mobile-workspace-heading>button{min-height:46px;padding:0;border:0;background:none;color:#315579;font:600 15px Arial,sans-serif}.mobile-workspace-heading h2{margin:7px 0 0;font-size:21px;line-height:1.35;overflow-wrap:anywhere}
body.mobile-app #case-workspace .case-subtabs{display:flex;flex-wrap:nowrap;gap:4px;padding:4px;margin-bottom:18px;border:0;border-radius:13px;background:#e8edf1}
body.mobile-app #case-workspace .case-subtab{flex:1;min-width:0;min-height:44px;padding:8px 5px;font-size:13px;border:0;border-radius:10px;white-space:normal;color:#5d6f83;background:none}
body.mobile-app #case-workspace .case-subtab.active{background:#fff;color:#315579;box-shadow:0 1px 4px #24304412}
body.mobile-app #case-workspace .case-add-btn{min-height:48px;width:100%;padding:12px;border:1px solid #cdd9e5;border-radius:12px;background:#edf3f8;color:#315579;font-size:14px;text-align:center}
body.mobile-app #case-workspace .tl-day{padding:14px;margin-bottom:14px;border:1px solid #dce2e8;border-radius:15px;background:#fff}
body.mobile-app #case-workspace .tl-day-head{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.tl-conflict-warn{font-size:12px;white-space:normal}
body.mobile-app #case-workspace .tl-event:not(.tl-event-edit){display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:3px 4px;padding:12px 0;border-bottom:1px solid #edf0f3}
body.mobile-app #case-workspace .tl-time{grid-column:1;font-size:13px;font-weight:700;color:#315579;min-width:0}
body.mobile-app #case-workspace .tl-title{grid-column:1/-1;grid-row:2;font-size:15px;line-height:1.5;overflow-wrap:anywhere}
body.mobile-app #case-workspace .tl-edit,body.mobile-app #case-workspace .tl-delete{display:grid;place-items:center;grid-row:1;width:44px;height:44px;align-self:center;font-size:22px;border-radius:10px;background:#f3f6f9}
body.mobile-app #case-workspace .tl-edit{grid-column:2;color:#456585}body.mobile-app #case-workspace .tl-delete{grid-column:3;color:#a44d42}
body.mobile-app #case-workspace .tl-free{font-size:12px;line-height:1.55;margin-top:12px;white-space:normal}
body.mobile-app #case-workspace .case-card:not(.case-card-edit){display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:8px 4px;padding:15px;margin-bottom:10px;border:1px solid #dce2e8;border-radius:14px;background:#fff}
body.mobile-app #case-workspace .case-card-main{grid-column:1/-1}.case-card-title{overflow-wrap:anywhere}
body.mobile-app #case-workspace .case-card-title{font-size:16px;line-height:1.4}.case-card-meta{overflow-wrap:anywhere}
body.mobile-app #case-workspace .case-card-meta{font-size:13px;line-height:1.6;margin-top:5px}
body.mobile-app #case-workspace .case-status{align-self:center;justify-self:start;max-width:100%;white-space:normal;font-size:12px}
body.mobile-app #case-workspace .case-edit,body.mobile-app #case-workspace .case-delete{display:grid;place-items:center;width:44px;height:44px;border-radius:10px;background:#f3f6f9;font-size:22px}
body.mobile-app #case-workspace .case-edit{color:#456585}body.mobile-app #case-workspace .case-delete{color:#a44d42}
body.mobile-app.mobile-section-editor-open,body.mobile-app.mobile-person-open{overflow:hidden}
body.mobile-app.mobile-section-editor-open .mobile-bottom-nav,body.mobile-app.mobile-person-open .mobile-bottom-nav{display:none}
body.mobile-app #case-workspace .mobile-section-editor:not(.hidden){display:flex!important;flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:16px;position:fixed;inset:0;left:0;right:0;transform:none;z-index:250;width:min(100%,760px);height:100dvh;box-sizing:border-box;overflow-y:auto;margin:0 auto;padding:0 18px calc(24px + env(safe-area-inset-bottom));border:0;border-radius:0;background:#f7f7f4!important}
.mobile-section-editor-head{display:flex;align-items:center;gap:14px;position:sticky;top:0;z-index:3;min-height:66px;margin:0 -18px 4px;padding:calc(8px + env(safe-area-inset-top)) 18px 8px;background:#fff;border-bottom:1px solid #dce2e8}
.mobile-section-editor-head button{min-width:78px;min-height:44px;padding:0;border:0;background:none;color:#315579;font:600 15px Arial,sans-serif;text-align:left}.mobile-section-editor-head h2{margin:0;font-size:20px;color:#263b53}
body.mobile-app #case-workspace .mobile-section-editor .case-form-grid{display:grid;grid-template-columns:1fr;gap:16px;margin:0}.mobile-section-editor .case-field{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600;color:#445b73}
body.mobile-app #case-workspace .mobile-section-editor input,body.mobile-app #case-workspace .mobile-section-editor textarea,body.mobile-app #case-workspace .mobile-section-editor select{width:100%;min-height:49px;padding:12px 13px;border:1px solid #cbd6e2;border-radius:11px;background:#fff;font:400 16px/1.5 Arial,sans-serif;box-sizing:border-box}
body.mobile-app #case-workspace .mobile-section-editor textarea{min-height:130px}.mobile-section-editor #tst-text{min-height:260px!important}
body.mobile-app #case-workspace .mobile-section-editor .case-form-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.mobile-section-editor .btn{min-height:48px;font-size:14px}
body.mobile-app #case-workspace .case-person.open{position:fixed;inset:0;left:0;right:0;transform:none;z-index:220;width:min(100%,760px);height:100dvh;overflow-y:auto;box-sizing:border-box;margin:0 auto;padding:0 16px 24px;background:#f7f7f4}
body.mobile-app #case-workspace .case-person.open>.case-card{display:none}.mobile-person-heading{margin:0 -16px 16px;padding:10px 16px 14px;background:#fff;border-bottom:1px solid #dce2e8}.mobile-person-heading button{min-height:46px;border:0;background:none;padding:0;color:#315579;font:600 15px Arial,sans-serif}.mobile-person-heading h2{font-size:22px;line-height:1.35;margin:8px 0;overflow-wrap:anywhere}.mobile-person-heading p{font-size:13px;color:#718197;margin:0}
body.mobile-app #case-workspace .person-body{padding:0;border:0;background:none}body.mobile-app #case-workspace .tst-row{border:1px solid #dce2e8;border-radius:13px;background:#fff;margin-bottom:10px;overflow:hidden}
body.mobile-app #case-workspace .tst-head{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:6px;padding:13px}.tst-title{overflow-wrap:anywhere}body.mobile-app #case-workspace .tst-title{grid-column:1/-1;font-size:16px}.tst-head .tst-tag,.tst-head .tst-date{font-size:12px;white-space:normal}.tst-head .case-edit{grid-column:2}.tst-head .case-delete{grid-column:3}
body.mobile-app #case-workspace .tst-text{max-height:none;padding:4px 15px 20px;font-size:16px;line-height:1.75;overflow-wrap:anywhere}
body.mobile-app #case-workspace .tst-analysis-bar{display:flex;flex-direction:column;align-items:stretch;gap:10px}.tst-analysis-bar .btn{min-height:44px;white-space:normal}
.mobile-org-page-head{display:none}.mobile-app #org-subtabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:#e8edf1;border-radius:13px}.mobile-app #org-subtabs .org-subtab{min-height:44px;font-size:13px;white-space:normal;border:0;border-radius:10px;background:none}.mobile-app #org-subtabs .org-subtab.active{background:#fff;color:#315579}
body.mobile-app #tab-content-orgs input{min-width:0!important;width:100%;min-height:49px;padding:12px 13px!important;border:1px solid #cbd6e2!important;border-radius:11px!important;font-size:16px;box-sizing:border-box}
body.mobile-app #tab-content-orgs .org-search-dropdown{position:static;width:100%;max-height:none;box-shadow:none;border-radius:12px;overflow:hidden}.org-search-item{overflow-wrap:anywhere}body.mobile-app #tab-content-orgs .org-search-item{padding:14px;font-size:14px;line-height:1.5}
body.mobile-app #tab-content-orgs .org-record-header{display:block;padding:15px}.org-record-header .record-number{font-size:16px;line-height:1.4}.org-record-header .record-sub{margin:6px 0;font-size:13px;line-height:1.5}.org-record-header .record-col{margin:8px 0;font-size:12px}.mobile-app #btn-org-add-manual{min-height:46px;padding:10px 13px!important;border:1px solid #cdd9e5;border-radius:11px;background:#edf3f8;font-size:14px}
body.mobile-app[data-mobile-screen="orgs"][data-mobile-org-view="detail"] .topbar,body.mobile-app[data-mobile-screen="orgs"][data-mobile-org-view="edit"] .topbar,body.mobile-app[data-mobile-screen="orgs"]:not([data-mobile-org-view="list"]) .mobile-bottom-nav{display:none}
body.mobile-app[data-mobile-screen="orgs"]:not([data-mobile-org-view="list"]) #org-subtabs,body.mobile-app[data-mobile-screen="orgs"]:not([data-mobile-org-view="list"]) #org-subtab-content-dadata,body.mobile-app[data-mobile-screen="orgs"][data-mobile-org-view="detail"] #org-subtab-content-manual,body.mobile-app[data-mobile-screen="orgs"][data-mobile-org-view="edit"] #org-subtab-content-manual{display:none!important}
body.mobile-app[data-mobile-screen="orgs"][data-mobile-org-view="detail"] .mobile-org-page-head,body.mobile-app[data-mobile-screen="orgs"][data-mobile-org-view="edit"] .mobile-org-page-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:-16px -16px 16px;padding:calc(7px + env(safe-area-inset-top)) 16px 7px;min-height:62px;border-bottom:1px solid #dce2e8;background:#fff;font-size:13px;color:#6d7f92}
.mobile-org-page-head button{min-height:46px;padding:0;border:0;background:none;color:#315579;font:600 16px Arial,sans-serif}
body.mobile-app #org-detail-panel{padding:0;margin-top:0!important;background:transparent;border:0;box-shadow:none}body.mobile-app #od-name{font-size:23px;line-height:1.35;overflow-wrap:anywhere}body.mobile-app #btn-org-detail-close{display:none}body.mobile-app #od-official-block{display:none!important}
body.mobile-app[data-mobile-org-view="detail"] #od-manual-block,body.mobile-app[data-mobile-org-view="edit"] #mobile-org-summary{display:none!important}
.mobile-org-actions{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 10px}.mobile-org-actions button,.mobile-org-actions a{display:flex;align-items:center;justify-content:center;min-height:46px;padding:10px 13px;box-sizing:border-box;border:1px solid #cdd9e5;border-radius:11px;background:#fff;color:#315579;font:600 13px Arial,sans-serif;text-decoration:none}.mobile-org-copy-status{font-size:12px;color:#52725d;min-height:17px}
.mobile-org-facts{margin:12px 0 18px;border:1px solid #dce2e8;border-radius:14px;background:#fff;padding:0 15px}.mobile-org-facts>div{padding:14px 0;border-bottom:1px solid #edf0f3}.mobile-org-facts>div:last-child{border:0}.mobile-org-facts dt{font-size:12px;color:#718197;margin-bottom:6px}.mobile-org-facts dd{margin:0;font-size:16px;line-height:1.5;overflow-wrap:anywhere;user-select:text}.mobile-org-notes{border:1px solid #dce2e8;border-radius:14px;background:#fff;padding:15px}.mobile-org-notes h3{font-size:15px;margin:0 0 10px}.mobile-org-notes p{font-size:15px;line-height:1.65;white-space:pre-wrap;margin:0;overflow-wrap:anywhere}
body.mobile-app #od-manual-block{padding:0;background:none;border:0}body.mobile-app #od-manual-block>label{font-size:13px;color:#445b73;margin-top:18px!important}body.mobile-app #od-manual-block textarea,body.mobile-app #org-manual-form textarea{min-height:140px;font:400 16px/1.6 Arial,sans-serif;padding:12px!important;border-radius:11px!important}body.mobile-app #btn-org-save{width:100%;min-height:49px;margin-top:14px}
body.mobile-app #org-manual-form:not(.hidden){display:flex;flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:16px;position:fixed;inset:0;left:0;right:0;transform:none;z-index:230;width:min(100%,760px);height:100dvh;overflow-y:auto;box-sizing:border-box;padding:0 18px 30px;margin:0 auto;border:0;border-radius:0;background:#f7f7f4!important}body.mobile-app #org-manual-form>label{font-size:13px;color:#445b73}body.mobile-app #org-manual-form .btn{min-height:48px}

body.mobile-app #case-workspace .tl-edit,
body.mobile-app #case-workspace .tl-delete,
body.mobile-app #case-workspace .case-edit,
body.mobile-app #case-workspace .case-delete { border: 0; opacity: 1 !important; padding: 0; cursor: pointer; }
body.mobile-app #case-workspace button:focus-visible { outline: 2px solid #315579; outline-offset: 2px; }
body.mobile-app #case-workspace .case-subtab { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; }
body.mobile-app #case-workspace .case-badge { margin: 0; }
body.mobile-app #case-workspace .mobile-person-heading { position: sticky; top: 0; z-index: 4; padding-top: calc(10px + env(safe-area-inset-top)); }
@media (max-width: 360px) {
  body.mobile-app #case-workspace .case-subtab { flex-direction: column; font-size: 12px; }
}

/* Поля занимают ширину экрана даже при наследовании старой inline-формы. */
body.mobile-app #case-workspace .mobile-section-editor > .case-field { width:100%; min-width:0; box-sizing:border-box; }
body.mobile-app #case-workspace .mobile-section-editor-head { flex-shrink:0; }
body.mobile-app #case-workspace .mobile-section-editor-head h2 { font-size:18px; line-height:1.35; }
body.mobile-app #case-workspace .mobile-section-editor .case-form-actions { flex-wrap:nowrap; }
body.mobile-app #case-workspace .mobile-section-editor .case-form-actions > .btn { flex:1; }
body.mobile-app #case-workspace .mobile-section-editor input { min-width:0; }
body.mobile-app #case-workspace .tst-head { grid-template-columns:minmax(0,1fr) 44px 44px; }
body.mobile-app #case-workspace .tst-head .tst-tag { grid-column:1; grid-row:2; justify-self:start; align-self:center; width:auto; max-width:100%; }
body.mobile-app #case-workspace .tst-head .tst-date { grid-column:1; grid-row:3; }
body.mobile-app #case-workspace .tst-head .case-edit { grid-column:2; grid-row:2/4; }
body.mobile-app #case-workspace .tst-head .case-delete { grid-column:3; grid-row:2/4; }
body.mobile-app #case-workspace .tl-edit svg, body.mobile-app #case-workspace .tl-delete svg,
body.mobile-app #case-workspace .case-edit svg, body.mobile-app #case-workspace .case-delete svg { width:18px; height:18px; flex:none; }

body.mobile-app #case-workspace .mobile-section-editor textarea.tl-edit-title, body.mobile-app #case-workspace .mobile-section-editor #tl-title { min-height:82px; resize:vertical; }
