.mobile-preview-link{text-decoration:none;white-space:nowrap}
.mobile-only{display:none}
body.is-mobile{height:100dvh;font-size:14px}
body.is-mobile #appShell{padding-bottom:calc(56px + env(safe-area-inset-bottom,0px))}
body.is-mobile .mobile-only{display:flex}
body.is-mobile .mobile-preview-link,body.is-mobile .nav{display:none}
body.is-mobile .topbar{height:52px;flex-basis:52px;padding:4px 9px;gap:6px;overflow:visible}
body.is-mobile .brand{font-size:11px;letter-spacing:.08em}
body.is-mobile .userbox{margin-left:auto;gap:5px;min-width:0}
body.is-mobile .userchip{max-width:105px;overflow:hidden;min-height:42px;justify-content:center}
body.is-mobile #userName{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.is-mobile .profile-avatar{width:25px;height:25px}
body.is-mobile #logoutBtn{padding:6px;font-size:11px;min-height:42px}
body.is-mobile .layout{width:100%;overflow:hidden}
body.is-mobile .sidebar{display:none}
body.is-mobile .sidebar.mobile-calendar-open{display:block;position:fixed;left:8px;right:8px;top:108px;width:auto;border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 40px #0004;z-index:85;padding:14px}
body.is-mobile .sidebar .cal-cell{height:43px}
body.is-mobile .sidebar .cal-head button{min-height:40px}
body.is-mobile .mobile-calendar-backdrop{position:fixed;inset:0;background:#17223455;z-index:84}
body.is-mobile .workspace{width:100%}
body.is-mobile .toolbar{padding:5px 7px;gap:5px;flex-wrap:nowrap;min-height:48px}
body.is-mobile .toolbar #prevDay,body.is-mobile .toolbar #nextDay,body.is-mobile .toolbar .date-label,body.is-mobile .toolbar .spacer,body.is-mobile #jImport,body.is-mobile #jExport{display:none}
body.is-mobile #excel_visits{display:none}
body.is-mobile .mobile-date-button{flex:1;min-width:0;white-space:normal;text-align:left;font-size:12px;line-height:1.25;min-height:40px;padding:4px 5px}
body.is-mobile .toolbar #todayBtn{padding:5px;font-size:11px;min-height:40px}
body.is-mobile .toolbar #createBtn{padding:6px;font-size:11px;min-height:40px;white-space:nowrap}
body.is-mobile .matrix-scroll{min-height:0;overscroll-behavior:contain;scrollbar-width:thin;touch-action:pan-x pan-y}
body.is-mobile .matrix{width:var(--mobile-matrix-width,100%);min-width:100%}
body.is-mobile .gutter-head,body.is-mobile .timecol{flex:0 0 39px;width:39px;min-width:39px;position:sticky;left:0}
body.is-mobile .timecol{z-index:25}
body.is-mobile .gutter-head{z-index:55}
body.is-mobile .mhead{z-index:50}
body.is-mobile .tl{right:3px;font-size:9px}
body.is-mobile .heads,body.is-mobile .colwrap{flex:none;width:calc(var(--mobile-matrix-width) - 39px)}
body.is-mobile .head,body.is-mobile .col{flex:0 0 var(--mobile-column-width);width:var(--mobile-column-width);min-width:0}
body.is-mobile .head{padding:5px 2px;gap:3px;flex-direction:column;min-height:70px;text-align:center;justify-content:center}
body.is-mobile .head>div:last-child{min-width:0;max-width:100%}
body.is-mobile .hname{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.is-mobile .hname .muted{display:none}
body.is-mobile .hshift{font-size:9px;white-space:nowrap}
body.is-mobile .ava{width:24px;height:24px;flex-basis:24px;font-size:11px}
body.is-mobile .addcol{display:none}
body.is-mobile .blk{left:2px;right:2px;border-left-width:2px;border-radius:4px;cursor:default;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
body.is-mobile .blk-h{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 20px;grid-template-rows:13px auto;gap:0;padding:2px 3px;align-items:start;min-height:0}
body.is-mobile .blk-time{font-size:9px;line-height:14px;grid-column:1;overflow:hidden;text-overflow:ellipsis}
body.is-mobile .quick-status{position:absolute;right:2px;top:0;width:20px;height:22px;margin:0;min-width:0;flex-basis:auto}
body.is-mobile .blk-hcl{grid-column:1/-1;display:block;width:100%;font-size:10px;line-height:13px;text-align:left}
body.is-mobile .blk-client-name,body.is-mobile .blk-client-phone{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.is-mobile .blk-client-name{padding-right:19px}
body.is-mobile .blk-client-phone{font-size:9px;font-weight:400}
body.is-mobile .blk-client-separator{display:none}
body.is-mobile .blk-b{padding:3px 3px 25px;display:flex;flex-direction:column;gap:3px;font-size:10px;line-height:1.25;min-width:0}
body.is-mobile .block-services{width:100%}
body.is-mobile .blk-pet{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.is-mobile .blk-pet em{display:inline}
body.is-mobile .pet-regularity{font-size:11px}
body.is-mobile .blk-srv{padding-left:0;list-style:none;margin:3px 0;font-size:9px;line-height:12px}
body.is-mobile .blk-srv li{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.is-mobile .block-payment{width:100%;max-width:100%;text-align:right;font-size:9px;line-height:1.2}
body.is-mobile .block-payment strong{font-size:13px}
body.is-mobile .blk-tags{gap:2px;overflow:hidden;max-height:28px;margin-top:2px}
body.is-mobile .tag{font-size:8px;padding:1px 3px;white-space:nowrap}
body.is-mobile .journal-team{font-size:8px;white-space:nowrap;overflow:hidden}
body.is-mobile .journal-team img,body.is-mobile .journal-team span{width:12px;height:12px;flex-shrink:0}
body.is-mobile .late-warning{position:absolute;right:23px;top:3px;font-size:9px;padding:0 3px}
body.is-mobile .rz-top{display:none!important}
body.is-mobile .rz-bot{left:auto;right:0;bottom:0;width:28px;height:24px;z-index:45;touch-action:none;background:transparent;cursor:ns-resize}
body.is-mobile .rz-bot::after{content:'';position:absolute;right:3px;bottom:3px;width:12px;height:12px;background:radial-gradient(circle,var(--muted) 1.2px,transparent 1.4px) 0 0/4px 4px;clip-path:polygon(100% 0,100% 100%,0 100%)}
body.is-mobile .visit-team summary{min-height:28px;line-height:28px}
body.is-mobile .visit-team-options .chk{min-height:44px}
body.is-mobile .mobile-dragging{z-index:70!important;box-shadow:0 0 0 2px var(--accent),0 4px 12px #0003;opacity:.95}
body.is-mobile .mobile-gesture-controls{position:absolute;left:5px;right:5px;bottom:5px;z-index:80;display:flex;gap:8px;justify-content:center;background:#fff;padding:7px;border:1px solid var(--line);border-radius:8px;box-shadow:0 4px 20px #0003}
body.is-mobile .workspace{position:relative}
body.is-mobile .mobile-week-dock{flex-shrink:0;display:flex;gap:1px;padding:3px 4px;background:#fff;border-top:1px solid var(--line);touch-action:pan-y}
body.is-mobile .mobile-week-day{flex:1;min-width:0;border:0;background:none;border-radius:6px;min-height:48px;padding:3px 1px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:1px;font-size:12px}
body.is-mobile .mobile-week-day small{font-size:10px;color:var(--muted)}
body.is-mobile .mobile-week-day.selected{background:var(--accent);color:white}
body.is-mobile .mobile-week-day.selected small{color:inherit}
body.is-mobile .mobile-week-day.today{box-shadow:inset 0 0 0 1px var(--accent)}
body.is-mobile .zoombar{padding:3px 8px;gap:6px;font-size:10px;min-height:27px}
body.is-mobile .zoombar input{height:22px;width:120px}
body.is-mobile .mobile-nav{position:fixed;left:0;right:0;bottom:0;height:calc(56px + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px);z-index:65;border-top:1px solid var(--line);background:#fff;display:flex}
body.is-mobile .mobile-nav button{flex:1;min-width:0;border:0;background:none;font-size:11px;color:var(--muted);padding:7px 1px}
body.is-mobile .mobile-nav button.active{color:var(--accent);background:var(--accent-soft);font-weight:600}
body.is-mobile .mobile-more{position:fixed;bottom:calc(60px + env(safe-area-inset-bottom,0px));right:7px;z-index:80;width:220px;display:flex;flex-direction:column;gap:5px;padding:10px;background:#fff;border:1px solid var(--line);border-radius:9px;box-shadow:0 5px 20px #0003}
body.is-mobile .mobile-more button{min-height:44px;text-align:left}
body.is-mobile .page{padding:10px 8px}
body.is-mobile .page-head{gap:7px;align-items:stretch}
body.is-mobile .page-title{font-size:18px}
body.is-mobile .page-tools{margin:0;width:100%;gap:6px}
body.is-mobile .page-tools .inp.search{width:100%;flex:1 1 100%}
body.is-mobile .overlay{padding:0}
body.is-mobile .overlay>.modal{width:100%;max-width:100%;height:100%;max-height:100dvh;border-radius:0}
body.is-mobile #confirmOverlay{padding:16px}
body.is-mobile #confirmOverlay>.modal{height:auto;max-height:85dvh;border-radius:10px}
body.is-mobile .modal-head,body.is-mobile .modal-foot{padding:9px;gap:7px}
body.is-mobile .modal-body{padding:10px;overscroll-behavior:contain}
body.is-mobile .modal-foot .btn{min-height:44px;flex:1;padding:7px 4px}
body.is-mobile .modal-head .icon-btn{width:40px;height:40px}
body.is-mobile .inp{font-size:16px;min-height:40px}
body.is-mobile .row{flex-wrap:wrap;gap:8px}
body.is-mobile .row>.f{flex:1 1 100%;min-width:0}
body.is-mobile .pet-birthday-fields .inp{min-width:0;padding:6px}
body.is-mobile .pay-wrap{display:flex;gap:6px;flex-wrap:wrap}
body.is-mobile .pay-btn{flex:1;min-height:44px;padding:6px;font-size:12px}
body.is-mobile .modal-body .srv-row{min-width:0;grid-template-columns:minmax(0,1fr) 43px 76px 25px;gap:5px}
body.is-mobile .srv-price{padding:5px}
body.is-mobile .lookup-list{max-height:260px}
body.is-mobile .lookup-option,body.is-mobile .lookup-create{min-height:44px}
body.is-mobile .quick-status-menu{max-width:calc(100vw - 12px)}
body.is-mobile .quick-status-menu button{min-height:44px}
body.is-mobile .tagmenu{position:fixed;left:12px;right:12px;top:30%;max-height:45dvh;min-width:0;z-index:150}
body.is-mobile .tagitem{min-height:38px}
body.is-mobile .toast{max-width:calc(100vw - 20px)}
body.is-mobile #mobileTimeOverlay{z-index:180;align-items:flex-end;background:#14203677}
body.is-mobile #mobileTimeOverlay>.modal{height:auto;max-height:90dvh;border-radius:18px 18px 0 0;padding-bottom:env(safe-area-inset-bottom,0px)}
.mobile-time-wheels{display:flex;align-items:center;justify-content:center;gap:12px;padding:15px;position:relative}
.mobile-time-wheel{height:220px;width:95px;overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none;padding:88px 0;overscroll-behavior:contain;touch-action:pan-y;z-index:1}
.mobile-time-wheel::-webkit-scrollbar{display:none}
.mobile-time-option{height:44px;width:100%;border:0;background:none;display:block;scroll-snap-align:center;font-size:28px;color:var(--muted);opacity:.35;padding:0;flex-shrink:0}
.mobile-time-option.selected{color:var(--ink);opacity:1;font-weight:600}
.mobile-time-colon{font-size:28px;z-index:1}
.mobile-time-selection{position:absolute;left:20%;right:20%;height:44px;background:var(--accent-soft);border-radius:8px;pointer-events:none}

body.is-mobile .blk-srv li::before{content:'• ';font-weight:bold}
body.is-mobile #expandBtn{display:none}
body.is-mobile #confirmOverlay{align-items:center;justify-content:center}
body.is-mobile .blk-time{font-size:10px;font-weight:600;line-height:13px;white-space:nowrap}
body.is-mobile #mobileAddShift{border:1px dashed var(--line);border-radius:50%;width:28px;height:28px;background:#fff;color:var(--accent);font-size:20px;cursor:pointer}
body.is-mobile .gutter-head{display:flex;align-items:center;justify-content:center}
body.is-mobile .mobile-week-overview{border:0;border-right:1px solid var(--line);background:#eff4ff;color:var(--accent);font-size:9px;padding:3px;border-radius:4px;min-width:36px}
body.is-mobile .matrix-scroll.mobile-pinching{touch-action:none}
