/* Cloud phone presentation only. Tablet/desktop and print retain the original UI. */
.mobile-interval-depth,.mobile-glass-nav,.mobile-input-tools,.mobile-map-settings-toggle,.mobile-brand-mark,.mobile-hole-selector{display:none}
@media screen and (max-width:620px){
  body.mobile-ux-active .sidebar{display:none!important}
  body.mobile-ux-active .topbar{position:sticky!important;top:0!important;flex:0 0 auto!important}
  body.mobile-ux-active #mainNav{display:none!important}
  body.mobile-ux-active .main-workspace,body.mobile-ux-active .main-content{margin-left:0!important;min-width:0!important}
  body.mobile-ux-active .content-wrap{padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))!important}
  .mobile-brand-mark{display:block;width:30px;height:30px;flex:0 0 30px}.mobile-brand-mark svg{width:100%;height:100%}
  .mobile-glass-nav:not([hidden]){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;inset-inline:10px;bottom:calc(8px + env(safe-area-inset-bottom,0px));z-index:9000;padding:5px;border-radius:24px;background:rgba(245,249,253,.86);border:1px solid rgba(255,255,255,.65);box-shadow:0 8px 28px #11244122,inset 0 1px 0 #ffffff88;-webkit-backdrop-filter:blur(22px) saturate(150%);backdrop-filter:blur(22px) saturate(150%)}
  .mobile-glass-tab{min-width:0;min-height:48px;border:0;border-radius:19px;background:transparent;color:#334155;font:650 12px system-ui;cursor:pointer}.mobile-glass-tab.active{background:#dce8ef;color:#172d3d;box-shadow:inset 0 1px 1px #fff9}.mobile-glass-tab:focus-visible{outline:2px solid #246290;outline-offset:-2px}
  .mobile-glass-nav:not([hidden]){border-radius:38px;background:linear-gradient(145deg,rgba(255,255,255,.83),rgba(227,237,247,.62) 52%,rgba(255,255,255,.76));border:1px solid rgba(255,255,255,.85);box-shadow:0 12px 28px #29425726,inset 0 1px 0 #fff,inset 0 -1px 1px #aabac84d;-webkit-backdrop-filter:blur(26px) saturate(145%);backdrop-filter:blur(26px) saturate(145%);overflow:hidden}
  .mobile-glass-nav::before{content:'';position:absolute;inset:1px 5px auto;height:40%;border-radius:38px;background:linear-gradient(180deg,#ffffff85,transparent);pointer-events:none}
  .mobile-glass-indicator{position:absolute;left:5px;top:5px;bottom:5px;width:calc((100% - 10px)/4);border-radius:32px;background:linear-gradient(160deg,#ffffffd9,#f2f9fbc9 52%,#dceaf3b8);border:1px solid #ffffffd9;box-sizing:border-box;box-shadow:0 3px 10px #59718430,inset 0 1px 1px #fff,inset 0 -2px 3px #c3d6e0a8;-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);transform:translateX(calc(var(--mobile-active-index,0)*100%));transition:transform 250ms ease;pointer-events:none}
  .mobile-glass-tab{position:relative;z-index:1;font-size:13px!important;font-weight:700!important}.mobile-glass-tab.active{background:transparent!important;box-shadow:none!important}
  body.mobile-hole-context .topbar .top-actions{flex:1 1 auto!important;width:auto!important;min-width:0!important}
  body.mobile-hole-context .topbar .mobile-hole-selector:not([hidden]){display:block;order:2;flex:1 1 auto;min-width:0;max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-height:34px;border:1px solid #ffffffd9;border-radius:20px;padding:7px 11px;background:linear-gradient(160deg,#ffffffdf,#e9f3facc);color:#20394a;font:700 12px system-ui;box-shadow:0 2px 8px #243b531c,inset 0 1px #fff;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}
  body.mobile-hole-context .topbar #descriptionDockToggle{order:3!important}
  body.mobile-hole-context .topbar #geologSyncIndicator{order:4!important;max-width:76px!important;overflow:hidden;text-overflow:ellipsis}
  .mobile-hole-sheet{width:calc(100% - 20px);max-width:480px;max-height:min(72dvh,640px);margin:auto auto calc(80px + env(safe-area-inset-bottom,0px));padding:0;border:1px solid #dae5ed;border-radius:24px;background:#f8fbfd;color:#1e293b;box-shadow:0 16px 50px #182c3b38}.mobile-hole-sheet::backdrop{background:#10233580}
  .mobile-hole-sheet[open]{display:flex;flex-direction:column;overflow:hidden}.mobile-hole-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px;border-bottom:1px solid #dbe4eb}.mobile-hole-sheet h2{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:18px}.mobile-hole-close{min-height:44px;border:0;background:transparent;color:#31546c;font-weight:700}
  .mobile-hole-search{height:46px;margin:12px 16px;border:1px solid #c4d3de;border-radius:12px;padding:0 12px;font-size:16px;background:#fff;color:#172d3d}.mobile-hole-list{min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;padding:0 12px 16px}.mobile-hole-option{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:52px;margin:4px 0;border:1px solid #dce5eb;border-radius:12px;padding:9px 13px;background:#fff;color:#23394a;text-align:left;font:650 14px system-ui}.mobile-hole-option[aria-current=true]{background:#eaf3f8;border-color:#7fa3b7}.mobile-hole-check{font-size:18px}.mobile-hole-empty{padding:12px;color:#64748b}
  html[data-theme=dark] .mobile-hole-sheet{background:#18232d;color:#e4edf3;border-color:#465969}html[data-theme=dark] .mobile-hole-option,html[data-theme=dark] .mobile-hole-search{background:#263540;color:#e4edf3;border-color:#475b69}
  .mobile-more-sheet{width:calc(100% - 20px);max-width:600px;max-height:75dvh;margin:auto auto calc(80px + env(safe-area-inset-bottom,0px));padding:18px;border:1px solid var(--border-color,#cbd5e1);border-radius:24px;background:var(--bg-main,#f8fafc);color:var(--text-primary,#172d3d);box-sizing:border-box}.mobile-more-sheet::backdrop{background:#0f172a66}.mobile-more-sheet h2{font-size:18px}.mobile-more-routes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.mobile-more-route{min-width:0!important;min-height:48px!important;white-space:normal!important;overflow-wrap:anywhere;text-align:left;justify-content:flex-start!important}
  .mobile-more-sheet[open]{display:flex;flex-direction:column;overflow:hidden;height:min(75dvh,720px);max-height:calc(100dvh - 110px - env(safe-area-inset-bottom,0px));padding:16px;gap:10px}
  .mobile-more-sheet h2{margin:0;flex:none}.mobile-more-sheet>button{align-self:flex-end;flex:none}
  .mobile-more-routes{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;align-content:start;margin:0;padding:2px 2px 12px}
  .mobile-more-sheet button,.mobile-map-settings-toggle,.mobile-glass-tab{-webkit-appearance:none;appearance:none;font-family:inherit;color:var(--text-primary,#172d3d)}
  .mobile-more-sheet button{background:var(--bg-main,#fff);border:1px solid var(--border-color,#cbd5e1);border-radius:10px;padding:10px;font-size:14px;font-weight:600;line-height:1.35;min-height:44px}
  .mobile-map-settings-toggle{color:var(--text-primary,#172d3d);background:var(--bg-main,#f8fafc);border:1px solid var(--border-color,#cbd5e1);border-radius:10px;padding:10px;font-weight:600}
  #projectMapCard .project-map-header{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important}
  #projectMapCard .project-map-title{width:100%!important}
  #projectMapCard .project-map-head-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;width:100%!important;min-width:0!important;max-width:100%!important}
  #projectMapCard .project-map-head-actions>.map-section-primary-switch{grid-column:1/-1;box-sizing:border-box}
  #projectMapCard .project-map-head-actions>button{min-width:0!important;max-width:100%!important;min-height:44px!important;white-space:normal!important;overflow-wrap:anywhere;padding:8px!important;font-size:12px!important;line-height:1.35!important}
  .mobile-more-sheet[open]{width:calc(100% - 16px);max-width:480px;height:min(78dvh,760px);padding:0;border-radius:24px;gap:0;background:var(--bg-main,#f8fafc);box-shadow:0 20px 70px #0f172a40}
  .mobile-more-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 18px 14px;border-bottom:1px solid var(--border-color,#e2e8f0);flex:none}
  .mobile-more-heading h2{font-size:21px;font-weight:750;letter-spacing:-.4px}
  .mobile-more-heading button{min-height:40px;padding:8px 12px;font-size:12px;background:transparent;border-radius:20px}
  .mobile-more-routes{display:block;padding:8px 14px 20px;scroll-padding:12px}
  .mobile-more-group{margin:0 0 14px}.mobile-more-group:last-child{margin-bottom:0}
  .mobile-more-group h3{margin:12px 6px 7px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text-secondary,#64748b)}
  .mobile-more-group .mobile-more-route{display:flex!important;align-items:center;gap:12px;width:100%;min-height:52px!important;margin:0;border-radius:0;border:0;border-bottom:1px solid var(--border-color,#e8edf2);padding:9px 12px;background:var(--bg-card,#fff);font-size:14px;line-height:1.35}
  .mobile-more-group .mobile-more-route:nth-child(2){border-radius:14px 14px 0 0}.mobile-more-group .mobile-more-route:last-child{border-radius:0 0 14px 14px;border-bottom:0}.mobile-more-group .mobile-more-route:nth-child(2):last-child{border-radius:14px}
  .mobile-more-icon{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:9px;background:#eaf0f5;color:#496477;font-size:20px}
  .mobile-more-label{min-width:0;flex:1;overflow-wrap:anywhere}.mobile-more-arrow{font-size:23px;font-weight:400;color:var(--text-secondary,#94a3b8)}
  .mobile-more-route[aria-current="page"]{box-shadow:inset 3px 0 #54768b}.mobile-more-route:active{filter:brightness(.94)}
  html[data-theme="dark"] .mobile-more-group .mobile-more-route{background:#222b33!important;color:#e5e7eb!important;border-color:#35414c!important}html[data-theme="dark"] .mobile-more-icon{background:#324451;color:#d0e0ec}
  .mobile-field-focused .mobile-glass-nav{display:none!important}
  .mobile-input-tools:not([hidden]){display:flex;gap:8px;position:fixed;right:8px;bottom:calc(var(--mobile-keyboard-inset,0px) + 8px);z-index:10010;padding:5px;border:1px solid #cbd5e1;border-radius:12px;background:var(--bg-main,#f8fafc);box-shadow:0 2px 12px #0002}.mobile-input-tools .button{min-height:44px!important;min-width:64px!important;font-size:14px!important}
  #pageContent input,#pageContent textarea{scroll-margin-block:100px}
  .mobile-interval-depth{display:inline!important;white-space:nowrap;font-variant-numeric:tabular-nums}
  .log-interval-header{padding:10px!important;gap:6px!important}.log-interval-identity{width:100%!important;flex:1 1 100%!important;gap:0!important}.log-interval-name{min-width:0!important;width:100%}
  .log-interval-identity>.interval-number,.log-interval-ordinal,.log-interval-title-line>.depth-badge{display:none!important}
  .log-interval-title-line{font-size:14px!important;gap:6px!important;align-items:baseline!important}.log-interval-title-line>span:not(.mobile-interval-depth){min-width:0;overflow-wrap:anywhere}.log-rock-title{white-space:normal!important;overflow-wrap:anywhere}
  .log-interval-actions{gap:8px!important;justify-content:flex-start!important;font-size:11px!important}.log-interval-status{padding:3px 6px!important}
  .log-entry-row{border:0!important;border-top:1px solid var(--border-color,#e2e8f0)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;margin:0!important;padding:8px!important}
  .log-entry-head{gap:6px!important;font-size:12px!important}.log-entry-body{padding:4px 0!important}.log-entry-body>.depth-badge{display:none!important}.log-entry-row.has-parent-depth .log-entry-code{display:none!important}.log-entry-row .log-entry-code{white-space:normal!important;font-variant-numeric:tabular-nums}
  .log-entry-summary-mobile{font-size:13px!important;line-height:1.5}.log-interval-add-row{padding:8px!important}.log-interval-add-row .button{min-height:44px!important;padding:8px!important;font-size:13px!important}
  .log-entry-row button,.sampling-row button,.explorer-file-actions .button,.explorer-folder-action .button{min-height:44px!important}.log-entry-row .delete-row,.sampling-row .delete-row{min-width:44px!important}
  .sampling-row .sampling-pct-chip{display:none!important}
  .sampling-table .sampling-row>.sampling-len-cell::before{content:'Длина, м'!important}
  .sampling-row:not(.is-mobile-expanded)>td{display:none!important}.sampling-row:not(.is-mobile-expanded)>.sampling-col-id{display:block!important;padding:0!important;grid-column:1/-1!important}
  .sampling-table tbody tr.sampling-row:not(.is-mobile-expanded)>td{display:none!important}.sampling-table tbody tr.sampling-row:not(.is-mobile-expanded)>td.sampling-col-id{display:block!important;grid-column:1/-1!important}
  .explorer-folder-body h3{white-space:normal!important;overflow-wrap:anywhere!important;max-width:100%!important;font-size:15px!important}
  .sampling-row:not(.is-mobile-expanded) .sampling-id-cell-wrap{display:none!important}.sampling-row:not(.is-mobile-expanded)>.sampling-col-id::before{display:none!important}
  .sampling-row .mobile-record-summary{display:grid!important;grid-template-columns:minmax(0,1fr) 20px!important;gap:4px!important;width:100%!important;min-height:64px!important;padding:10px!important;border:0!important;background:transparent!important;text-align:left!important;color:inherit!important}
  .sampling-row .mobile-record-main{min-width:0!important;display:flex;flex-wrap:wrap;gap:4px 8px!important}.sampling-row .mobile-record-main b{font-size:14px!important;overflow-wrap:anywhere}.sampling-row .mobile-record-depth{font-size:13px!important;white-space:nowrap}.sampling-row .mobile-record-meta{grid-column:1;font-size:12px!important;white-space:normal!important;overflow-wrap:anywhere}.sampling-row .mobile-record-chevron{grid-column:2;grid-row:1/3;align-self:center}.sampling-row.is-mobile-expanded .mobile-record-chevron{transform:rotate(180deg)}
  tr.sampling-row{margin-bottom:8px!important;border-radius:10px!important;min-width:0!important}.sampling-row.is-mobile-expanded>.sampling-col-id{grid-column:1/-1!important}.sampling-row.is-mobile-expanded .sampling-num-cell{display:none!important}
  [data-als-action="reset-auto-sampling"]{background:transparent!important;color:#91433e!important;border-color:#d7c3c0!important;min-height:44px!important;font-size:12px!important}
  .explorer-workspace-card,.explorer-header,.explorer-header>div,.explorer-folders-grid,.explorer-folder-card,.explorer-folder-info,.explorer-folder-body,.explorer-file-row,.explorer-file-info,.explorer-files-list,.explorer-breadcrumbs-bar{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
  .explorer-folders-grid{grid-template-columns:minmax(0,1fr)!important}.explorer-header{padding:12px!important;flex-wrap:wrap!important;gap:10px!important}.explorer-header h2{font-size:20px!important;overflow-wrap:anywhere!important}.explorer-header .registry-project-badge{white-space:normal!important;overflow-wrap:anywhere!important}
  .explorer-folder-card,.explorer-file-row{display:grid!important;grid-template-columns:36px minmax(0,1fr)!important;gap:10px!important;padding:12px!important;width:100%!important}.explorer-folder-icon,.explorer-file-icon{font-size:30px!important;width:36px!important;min-width:0!important;height:auto!important}.explorer-file-icon img{max-width:32px!important}.explorer-folder-action,.explorer-file-actions{grid-column:2;flex-wrap:wrap!important;min-width:0!important}.explorer-folder-info h3,.explorer-file-info h3,.explorer-file-info strong,.explorer-folder-name,.explorer-file-name{white-space:normal!important;overflow-wrap:anywhere!important;max-width:100%!important;font-size:15px!important}.explorer-folder-meta,.explorer-stat-badges{display:flex!important;flex-wrap:wrap!important;gap:4px 10px!important}.explorer-breadcrumbs-bar{display:flex!important;flex-wrap:wrap!important;padding:8px!important}.explorer-crumb{white-space:normal!important;overflow-wrap:anywhere;min-width:0!important;max-width:100%!important}
  #projectMapCard,#projectMapCard .project-map-header,#projectMapCard .project-map-title,#projectMapCard .project-map-title>div{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
  #projectMapCard .project-map-title>div{width:100%;display:grid!important;grid-template-columns:auto minmax(0,1fr)}#projectMapCard select{min-width:0!important;max-width:100%!important;width:100%!important}
  #projectMapCard .map-section-primary-switch{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%!important;max-width:100%!important;white-space:normal!important}#projectMapCard .map-section-switch-btn{min-width:0!important;white-space:normal!important;min-height:44px!important}
  #projectMapCard .project-map-controls:not(.section-tools-controls){display:none!important}#projectMapCard.mobile-settings-open .project-map-controls:not(.section-tools-controls){display:flex!important;flex-wrap:wrap!important;gap:8px!important;max-height:45dvh;overflow:auto;padding:10px!important}#projectMapCard .project-map-control-group{min-width:0!important;flex:1 1 100%!important}
  .mobile-map-settings-toggle{display:block!important;min-height:44px!important;width:100%;font-size:13px!important}
  #kzOfflineMapCanvas,#sectionSvgStage{min-width:0!important;max-width:100%!important;height:62dvh!important;min-height:300px!important}
  #kzOfflineMapCanvas{touch-action:none!important}
  #sectionSvgStage{touch-action:pan-y!important}
  #sectionSvgStage .section-plot-interaction{touch-action:none}
  .sampling-cascade-btn{font-size:0!important;min-height:44px!important}.sampling-cascade-btn::after{content:'Нумерация ↓';font-size:11px}.sampling-row [data-insert-sample-after]{min-height:44px!important}.sampling-row [data-insert-sample-after]::after{content:' Проба ниже';font-size:11px}
  #sectionSvgStage>svg{width:100%!important;height:100%!important}.project-map-card.is-fullscreen{position:fixed!important;inset:0!important;z-index:10000!important;height:100dvh!important;overflow:auto!important;padding-bottom:env(safe-area-inset-bottom,0px)!important}.project-map-card.is-fullscreen #kzOfflineMapCanvas,.project-map-card.is-fullscreen #sectionSvgStage{height:65dvh!important}
  .kz-map-floating-hud,.section-floating-hud{max-width:100%!important;flex-wrap:wrap!important;gap:4px!important}.kz-map-floating-hud button,.section-floating-hud button{min-width:44px!important;min-height:44px!important}.mobile-more-route:focus-visible{outline:2px solid #246290}
  html[data-theme="dark"] .mobile-glass-nav{background:rgba(19,24,29,.9);border-color:#ffffff24}.mobile-glass-nav .active{font-weight:800}html[data-theme="dark"] .mobile-glass-tab{color:#dce5ec}html[data-theme="dark"] .mobile-glass-tab.active{background:#33434e;color:#fff}

  #projectMapCard>.project-map-header{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;align-items:stretch!important}
  #projectMapCard>.project-map-header>.map-section-primary-switch{grid-column:1!important;grid-row:1!important;justify-self:stretch!important}
  #projectMapCard>.project-map-header>.project-map-title{grid-column:1!important;grid-row:2!important}
  #projectMapCard>.project-map-header>.project-map-head-actions{grid-column:1!important;grid-row:3!important;justify-self:stretch!important}
  html[data-theme="dark"] .mobile-more-sheet,html[data-theme="dark"] .mobile-input-tools{background:#171c20;color:#e5e7eb;border-color:#46515c}
  @supports not (backdrop-filter:blur(1px)){.mobile-glass-nav:not([hidden]){background:#edf3f7}html[data-theme="dark"] .mobile-glass-nav:not([hidden]){background:#171c20}}
}
@media screen and (max-width:620px) and (prefers-reduced-transparency:reduce){.mobile-glass-nav:not([hidden]){background:#edf3f7;-webkit-backdrop-filter:none;backdrop-filter:none}html[data-theme="dark"] .mobile-glass-nav:not([hidden]){background:#171c20}}
@media (prefers-reduced-motion:reduce){.mobile-glass-nav,.mobile-glass-tab,.mobile-glass-indicator,.mobile-more-sheet,.mobile-hole-sheet{animation:none!important;transition:none!important}}

@media(max-width:620px){#projectMapCard>.project-map-header{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:start!important}#projectMapCard>.project-map-header .project-map-head-actions{grid-column:1;grid-row:1;justify-self:end;justify-content:flex-end;width:100%;overflow-x:auto}#projectMapCard>.project-map-header .project-map-title{grid-column:1;grid-row:2}}
