#mobile-header,#mobile-nav{display:none}
@media(max-width:750px){
 /* Mobile business screens keep a fixed scale; single-finger scrolling remains available. */
 html,body{touch-action:pan-x pan-y}
 .mobile-workspace{--mobile-ink:#173e46;--mobile-primary:#176b75;--mobile-line:#dbe5df;--mobile-paper:#f6f8f5;--primary:#176b75;--brand:#176b75;--accent:#176b75;color:var(--mobile-ink);background:var(--mobile-paper)}
 .mobile-workspace body{background:var(--mobile-paper);min-width:0}
 .mobile-workspace .app-shell{display:block;min-width:0}
 .mobile-workspace .sidebar,.mobile-workspace .topbar{display:none!important}
 .mobile-workspace .workspace{margin:0;width:100%;min-width:0}
 .mobile-workspace #mobile-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 14px 12px;background:#f6f8f5;position:sticky;top:0;z-index:20;border-bottom:1px solid var(--mobile-line)}
 .mobile-brand{display:flex;gap:9px;align-items:center;color:var(--mobile-ink);text-decoration:none;min-width:0;flex:1}
 .mobile-brand-mark{display:grid;place-items:center;border:1px solid #76a9af;border-radius:6px;width:38px;height:42px;flex-shrink:0;color:var(--mobile-primary);font:29px SimSun,serif;background:white}
 .mobile-brand>span:last-child{min-width:0}.mobile-brand strong{display:block;font-size:18px;line-height:1.4}.mobile-brand small{display:block;font-size:11px;line-height:1.5;color:#60777b;overflow-wrap:anywhere}
 .mobile-workspace .mobile-new{font-size:12px;min-height:40px;padding:8px 10px;white-space:nowrap;flex-shrink:0;background:#176b75}
 .mobile-workspace main{padding:14px 12px calc(92px + env(safe-area-inset-bottom));min-width:0}
 .mobile-workspace .page-heading{margin:0 0 14px;align-items:flex-start;gap:8px;flex-wrap:wrap}
 .mobile-workspace .page-heading h1{font-size:22px;color:var(--mobile-ink)}
 .mobile-workspace .page-heading p{font-size:12px;line-height:1.65;margin-top:4px}
 .mobile-workspace .page-heading .actions:empty{display:none}
 .mobile-workspace .mobile-back{display:inline-flex;align-items:center;justify-content:center;min-width:78px;min-height:44px;padding:10px 14px;font-size:14px;white-space:nowrap}
 .mobile-workspace #view{min-width:0}.mobile-workspace .panel,.mobile-workspace .surface{border-radius:12px;border-color:var(--mobile-line);padding:15px;background:#fff;min-width:0}
 .mobile-workspace #mobile-nav{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;bottom:0;left:0;right:0;z-index:30;padding:7px 6px calc(7px + env(safe-area-inset-bottom));background:#ffffffef;border-top:1px solid var(--mobile-line);backdrop-filter:blur(12px)}
 #mobile-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:50px;gap:3px;color:#6d7b80;font-size:12px;text-decoration:none;border-radius:8px}#mobile-nav a.active{color:#176b75;font-weight:700;background:#eaf3f1}#mobile-nav svg{width:23px;height:23px}
 .mobile-workspace input,.mobile-workspace select,.mobile-workspace textarea{font-size:16px;max-width:100%;min-width:0}.mobile-workspace input:not([type=checkbox]):not([type=radio]),.mobile-workspace select{min-height:46px}.mobile-workspace button,.mobile-workspace .button{min-height:42px}
 .mobile-workspace .primary{background:#176b75;border-color:#176b75}.mobile-workspace .hint{font-size:12px;line-height:1.65}.mobile-workspace .form-grid,.mobile-workspace .detail-grid{grid-template-columns:1fr!important}
 .mobile-workspace .filter-bar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mobile-workspace .filter-bar label:first-child{grid-column:1/-1}.mobile-workspace .filter-bar label{min-width:0}.mobile-workspace .filter-bar>*{min-width:0;max-width:100%}.mobile-workspace .filter-bar>.field{grid-column:1/-1;min-width:0}.mobile-workspace .filter-bar>button{grid-column:1/-1}.mobile-workspace .filter-bar input,.mobile-workspace .filter-bar select{width:100%}.mobile-workspace .filter-bar .date-control input{width:0}
 .mobile-case-search{padding:12px;background:white;border:1px solid var(--mobile-line);border-radius:10px}.mobile-case-search label{font-size:13px;font-weight:600;display:block;margin-bottom:7px}.mobile-case-search>div{display:flex;gap:8px}.mobile-case-search input{flex:1;min-width:0}
 .mobile-case-row{display:flex;align-items:center;gap:12px;background:white;padding:15px 12px;margin-bottom:10px;border:1px solid var(--mobile-line);border-radius:12px;text-decoration:none;color:var(--mobile-ink)}
 .mobile-case-avatar{width:44px;height:44px;display:grid;place-items:center;flex-shrink:0;background:#eaf3f1;border-radius:50%;color:#176b75;font-size:16px;font-weight:600}.mobile-case-row>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.mobile-case-row strong{display:block;font-size:17px}.mobile-case-row small{font-size:12px;color:#60777b}.mobile-case-row p{font-size:13px;line-height:1.6;margin:5px 0 0}.mobile-case-arrow{font-size:28px;color:#176b75}
 .mobile-workspace .detail-tabs{display:flex;flex-wrap:wrap;gap:6px;overflow:visible}.mobile-workspace .detail-tabs a{font-size:12px;padding:10px 8px;min-height:40px}.mobile-workspace .detail-identity{flex-wrap:wrap;gap:10px}
 .mobile-case-step{padding:0;border:0;min-width:0;margin:0}.mobile-case-step[hidden]{display:none!important}.mobile-case-step>legend{font-weight:600;font-size:18px;padding:0;margin-bottom:12px}.mobile-case-step>legend:focus{outline:none}.mobile-case-step section>h2:first-child{display:none}
 .mobile-case-editor .form-footer{display:flex;justify-content:space-between;gap:8px;position:static;margin-top:16px}.mobile-case-editor .form-footer .primary{flex:1}
 .mobile-step-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin-bottom:20px}.mobile-step-progress button{display:flex;flex-direction:column;align-items:center;gap:5px;border:0;background:transparent;font-size:11px;color:#60777b;padding:4px 0;min-width:0}.mobile-step-progress button span{display:grid;place-items:center;width:26px;height:26px;border:1px solid #dbe5df;border-radius:50%}.mobile-step-progress button.active{color:#176b75;font-weight:700}.mobile-step-progress button.active span{color:white;background:#176b75;border-color:#176b75}.mobile-step-progress button:disabled{opacity:.7}
 .mobile-step-controls{display:flex;gap:10px;justify-content:space-between;margin:16px 0}.mobile-step-controls .primary{margin-left:auto;flex:1;max-width:75%}.mobile-optional{margin-top:16px;border-top:1px solid var(--mobile-line);padding-top:12px}.mobile-optional summary{font-size:13px;color:#176b75;min-height:42px;cursor:pointer}.mobile-optional .photo-field{margin-top:12px}.mobile-case-editor #household-custom{margin-top:12px}.mobile-case-editor #household-custom summary{min-height:42px;color:#176b75;font-size:13px}
 .mobile-account-identity{display:flex;align-items:center;gap:14px;margin-bottom:20px}.mobile-account-identity h2,.mobile-account-identity p{margin:0}.mobile-account dl{display:grid;grid-template-columns:80px 1fr;gap:10px;font-size:14px}.mobile-account dt{color:#60777b}.mobile-account dd{margin:0;overflow-wrap:anywhere}.mobile-account ul{list-style:none;padding:0;margin:0}.mobile-account li{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid var(--mobile-line);font-size:13px}.mobile-account li span{color:#60777b}.mobile-account-action{width:100%;margin-bottom:8px}
 .mobile-workspace .table-wrap{overflow:visible}.mobile-workspace table{min-width:0!important;width:100%}.mobile-workspace table thead{display:none}.mobile-workspace table tbody{display:block}.mobile-workspace table tr{display:block;border:1px solid #dbe5df;border-radius:9px;padding:8px 10px;margin:8px 0;min-width:0;background:#fff}.mobile-workspace table td{display:block;border:0;padding:5px 0!important;font-size:13px;white-space:normal!important;overflow-wrap:anywhere}.mobile-workspace table td:before{content:attr(data-label);position:static;inset:auto;width:auto;font-size:11px;font-weight:400;line-height:1.6;color:#60777b;display:block;margin-bottom:3px}.mobile-workspace table td small{white-space:normal}.mobile-workspace table td .actions{display:flex;flex-wrap:wrap;gap:8px}.mobile-workspace .fanqi-choice{display:block;margin-top:8px}.mobile-workspace .fanqi-row{border-color:#d9b574}.mobile-contact-view .reminder-quick{flex-wrap:wrap;gap:6px}
 .mobile-workspace .dialog-body .form-grid{grid-template-columns:1fr}.mobile-workspace #toast{bottom:calc(80px + env(safe-area-inset-bottom));left:12px;right:12px;max-width:calc(100% - 24px);transform:none}
 .wechat-confirm-identity{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;margin:0 0 20px}.wechat-confirm-identity dt{color:#60777b}.wechat-confirm-identity dd{margin:0;overflow-wrap:anywhere}
 .mobile-workspace a:focus-visible,.mobile-workspace button:focus-visible,.mobile-workspace input:focus-visible,.mobile-workspace select:focus-visible{outline:3px solid #32808d;outline-offset:2px}
 .saas-auth-active #mobile-header,.saas-auth-active #mobile-nav,.saas-auth-pending #mobile-header,.saas-auth-pending #mobile-nav{display:none!important}
}

/* Usage feedback: scoped rule controls and calendar entry focus. */
.hundred-control{align-self:start}.hundred-control select{margin-top:0!important}.hundred-control select:disabled,.quick-ignore input:disabled{opacity:.55;cursor:not-allowed}.focused-ritual-row{outline:2px solid var(--primary,#176c73);outline-offset:-2px}.focus-badge{background:#176c73;color:white}.quick-ignore{display:flex;align-items:center;gap:.5rem;margin-top:.5rem}.quick-ignore input{width:auto}
