:root{--mobile-navy:#10233f;--mobile-blue:#185bd7;--mobile-bg:#f2f5fa}.mobile-icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

@media(max-width:720px){.mobile-detail-title{display:flex;align-items:center;gap:12px;margin-bottom:16px}.mobile-detail-title>i{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#e9f0ff;color:var(--mobile-blue)}.mobile-detail-title h3,.mobile-detail-title p{margin:0}.mobile-detail-title h3{font-size:20px}.mobile-detail-title p{color:#748196}.mobile-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mobile-detail-grid>div{padding:11px;border-radius:12px;background:#f5f7fa}.mobile-detail-grid label{margin:0;color:#8792a3;font-size:10px}.mobile-detail-grid b{display:block;margin-top:3px;overflow-wrap:anywhere}.mobile-extra{margin-top:14px;padding:13px;border-radius:14px;background:#f5f7fa}.mobile-extra h4{margin:0 0 8px}.mobile-extra>div{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid #e5e9f0}.mobile-extra span{color:#7c8798}.mobile-extra b{text-align:right;overflow-wrap:anywhere}}
@media(max-width:720px){body{background:var(--mobile-bg);color:#19253a}.mobile-shell{min-height:100vh;padding-bottom:96px}.mobile-top{position:sticky;top:0;z-index:15;height:68px;padding:9px 15px;display:flex;align-items:center;gap:10px;background:#fff;border-bottom:1px solid #e5eaf2}.mobile-top>div{min-width:0;flex:1}.mobile-top b,.mobile-top span{display:block}.mobile-top b{font-size:17px;color:var(--mobile-navy)}.mobile-top span{font-size:11px;color:#778399;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-head-button{width:38px;height:38px;border:0;border-radius:13px;background:#f2f5fa;color:var(--mobile-navy);font-size:19px}.mobile-head-button span{font-size:12px;font-weight:800;color:#fff;background:#e04545;border-radius:999px;padding:2px 5px}.mobile-content{padding:14px 14px 8px}.mobile-nav{position:fixed;left:0;right:0;bottom:0;z-index:16;height:72px;padding:7px 8px calc(6px + env(safe-area-inset-bottom));display:flex;background:#fff;border-top:1px solid #dfe5ee;box-shadow:0 -8px 30px #24395c14}.mobile-nav button{position:relative;flex:1;border:0;background:none;color:#8993a6;display:grid;place-items:center;gap:1px;font-size:11px}.mobile-nav i{font-style:normal;font-size:22px;line-height:24px}.mobile-nav button.active{color:var(--mobile-blue);font-weight:800}.mobile-nav em{position:absolute;top:0;right:20%;min-width:18px;padding:1px 4px;background:#e13e46;color:#fff;border-radius:999px;font-size:10px;font-style:normal}.mobile-hero{margin:-14px -14px 16px;padding:24px 18px 20px;color:#fff;background:linear-gradient(135deg,#102a54,#1767d6);border-radius:0 0 26px 26px}.mobile-hero p{margin:0;opacity:.8}.mobile-hero h1{margin:6px 0 4px;font-size:25px}.mobile-hero>span{font-size:12px;opacity:.75}.mobile-stats{display:grid;grid-template-columns:repeat(3,1fr);margin-top:22px;padding:14px 0 2px;border-top:1px solid #ffffff33}.mobile-stats b{text-align:center;font-size:24px}.mobile-stats small{display:block;font-size:11px;font-weight:400;opacity:.75}.mobile-section{margin:18px 0}.mobile-section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.mobile-section-title h2{margin:0;font-size:18px}.mobile-section-title button{border:0;background:none;color:var(--mobile-blue);font-size:12px}.mobile-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.mobile-actions button{border:0;background:#fff;border-radius:16px;padding:13px 4px;color:#27364e;box-shadow:0 4px 16px #283b5f0d}.mobile-actions i{display:grid;place-items:center;width:38px;height:38px;margin:0 auto 7px;border-radius:13px;background:#e9f0ff;color:var(--mobile-blue);font-style:normal;font-size:18px}.mobile-actions span{font-size:11px}.mobile-card{background:#fff;border:1px solid #e7ebf2;border-radius:17px;box-shadow:0 5px 20px #2b3f6010}.mobile-task-list{padding:2px 13px}.order{display:grid;grid-template-columns:38px minmax(0,1fr) 12px;align-items:center;gap:10px;width:100%;padding:14px 0;border:0;border-bottom:1px solid #edf0f5;border-radius:0;background:#fff}.order:last-child{border-bottom:0}.mobile-type{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#e9f0ff;color:var(--mobile-blue);font-weight:800}.mobile-order-main{min-width:0}.mobile-order-main>span{display:flex;align-items:start;gap:7px}.mobile-order-main b{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-order-main p{margin:3px 0;color:#647187;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-order-main small{display:block;color:#98a1b0;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-page-title{margin:5px 2px 16px}.mobile-page-title p{margin:0;color:var(--mobile-blue);font-size:10px;font-weight:800;letter-spacing:1.2px}.mobile-page-title h1{margin:3px 0;font-size:23px}.mobile-task-tabs{display:flex;gap:7px;margin-bottom:10px;overflow:auto}.mobile-task-tabs button{border:1px solid #dfe5ee;background:#fff;padding:8px 12px;border-radius:999px;white-space:nowrap;color:#607087}.mobile-task-tabs button.active{background:var(--mobile-navy);border-color:var(--mobile-navy);color:#fff}.mobile-search{display:flex;align-items:center;gap:8px;margin:0 0 11px;padding:0 12px;border:1px solid #e2e7ef;border-radius:13px;background:#fff}.mobile-search input{width:100%;padding:12px 0;border:0;outline:0;background:none}.mobile-quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mobile-quick-grid button{display:grid;grid-template-columns:38px 1fr;text-align:left;gap:2px 9px;padding:14px;border:1px solid #e4e9f1;border-radius:16px;background:#fff}.mobile-quick-grid i{grid-row:1/3;display:grid;place-items:center;border-radius:12px;background:#eaf1ff;color:var(--mobile-blue);font-style:normal}.mobile-quick-grid span{color:#7b8799;font-size:11px}.mobile-form{padding:16px}.mobile-form label{margin-top:14px}.mobile-form label:first-child{margin-top:0}.mobile-form label em{color:#df3d46}.mobile-linked,.help{display:block;margin-top:5px;color:#7e899a;font-size:11px}.risk-editor{margin:16px 0}.risk-editor>b{display:block;margin-bottom:7px}.risk-row{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:7px}.mobile-asset{display:grid;grid-template-columns:40px 1fr 10px;align-items:center;gap:10px;width:100%;margin-bottom:9px;padding:13px;text-align:left}.mobile-asset>i{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#eaf1ff;color:var(--mobile-blue);font-style:normal}.mobile-asset b,.mobile-asset p,.mobile-asset small{display:block}.mobile-asset p{margin:3px 0;color:#69768a}.mobile-asset small{color:#939dac}.mobile-profile{display:flex;align-items:center;gap:13px;padding:15px}.mobile-profile h2,.mobile-profile p{margin:0}.mobile-profile p{color:#738095}.mobile-avatar{width:64px;height:64px;flex:0 0 64px;border-radius:20px;overflow:hidden;display:grid;place-items:center;background:linear-gradient(135deg,#1b64dd,#102c5c);color:#fff;font-size:26px;font-weight:800}.mobile-avatar img{width:100%;height:100%;object-fit:cover}.mobile-profile .btn{margin-top:8px;padding:6px 10px;font-size:11px}.mobile-account-grid{display:grid;grid-template-columns:1fr 1fr;margin-top:10px;overflow:hidden}.mobile-account-grid>div{padding:12px;border-right:1px solid #edf0f5;border-bottom:1px solid #edf0f5}.mobile-account-grid label,.mobile-permissions label{margin:0;color:#8791a2;font-size:10px}.mobile-account-grid b{display:block;margin-top:3px}.mobile-permissions{margin-top:10px;padding:14px}.mobile-permissions h3{margin:0 0 8px}.mobile-permissions>span{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #edf0f5}.mobile-permissions>span b{color:var(--mobile-blue)}.mobile-permissions label{display:block;margin-top:12px}.mobile-permissions p{margin:4px 0}.mobile-account-actions{margin-top:10px;padding:0 14px}.mobile-account-actions button{display:flex;justify-content:space-between;width:100%;padding:14px 0;border:0;border-bottom:1px solid #edf0f5;background:none;text-align:left}.danger-text{color:#d64049}.mobile-icp{text-align:center;padding:22px 0 5px;color:#9ba3b1;font-size:10px}.mobile-icp a,.mobile-icp span{display:block;color:inherit}.mobile-confirm .modal{width:calc(100% - 38px);text-align:center}.site-footer{display:none!important}.modal-bg{align-items:end;padding:0}.modal{width:100%;max-height:94vh;border-radius:22px 22px 0 0;padding-bottom:calc(20px + env(safe-area-inset-bottom))}.order-detail-modal{height:94vh}.test-environment-banner{font-size:10px;padding:3px}.login .site-footer{display:block!important}}

/* 正式移动端与手机端 Demo 的统一视觉基线。 */
@media(max-width:720px){
.mobile-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.mobile-message-list{display:grid;gap:8px}.mobile-message{width:100%;padding:12px;border:1px solid #e1ecea;border-radius:12px;background:#fff;text-align:left;color:#29423f}.mobile-message.unread{border-left:4px solid #087d78;background:#f0faf8}.mobile-message b,.mobile-message span,.mobile-message small{display:block}.mobile-message span{margin:5px 0;color:#526965}.mobile-message small{color:#8aa09c}
:root{--mobile-navy:#16343b;--mobile-blue:#087d78;--mobile-bg:#f3f7f7}
html,body{background:#dce7e8;color:#16343b}.mobile-shell{width:100%;max-width:480px;min-height:100dvh;margin:auto;background:var(--mobile-bg);padding-bottom:calc(76px + env(safe-area-inset-bottom))}
.mobile-top{height:58px;padding:env(safe-area-inset-top) 16px 0;background:#fffffff5;border-color:#dce8e9}.mobile-top b{font-size:18px;color:#16343b}.mobile-top span:empty{display:none}.mobile-head-button{width:36px;height:36px;border-radius:12px;background:#edf6f5;color:#087d78}
.mobile-content{padding:16px 14px 8px}.mobile-hero{margin:0;padding:19px;color:#fff;background:linear-gradient(135deg,#087d78,#31a59a);border-radius:20px;box-shadow:0 10px 26px #087d7833}.mobile-hero h1{margin:6px 0;font-size:23px}.mobile-hero p{font-size:13px;opacity:.9}.mobile-hero>span{font-size:12px;opacity:.82}
.mobile-work-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:12px}.mobile-work-stats button{padding:13px 10px;text-align:left;border:1px solid #dce8e9;border-radius:16px;background:#fff;box-shadow:0 7px 24px #18404412;color:#16343b}.mobile-work-stats b{display:block;font-size:23px;color:#087d78}.mobile-work-stats span{font-size:11px;color:#698087}
.mobile-section{margin:20px 0}.mobile-section-title{align-items:end;margin:0 3px 10px}.mobile-section-title h2{font-size:16px}.mobile-section-title span,.mobile-section-title button{color:#698087;font-size:12px}
.mobile-card{border-color:#dce8e9;border-radius:16px;box-shadow:0 7px 24px #18404412}.mobile-task-list{padding:2px 13px}.order{border-color:#edf2f2;color:#16343b}.mobile-type,.mobile-actions i,.mobile-quick-grid i,.mobile-asset>i{background:#e3f4f2;color:#087d78}.mobile-order-main p{color:#698087}.mobile-order-main small{color:#8ba0a4}
.mobile-task-tabs{gap:2px;padding:3px;background:#e6eeee;border-radius:13px}.mobile-task-tabs button{flex:1;padding:9px 4px;border:0;border-radius:10px;background:transparent;color:#698087}.mobile-task-tabs button.active{background:#fff;color:#087d78;box-shadow:0 2px 8px #c9d7d7}.mobile-work-tabs{margin-bottom:12px}
.mobile-page-title p{color:#087d78}.mobile-search{border-color:#cfdfe0}.mobile-quick-grid button{border-color:#dce8e9}.mobile-avatar{background:linear-gradient(135deg,#087d78,#31a59a)}.mobile-permissions>span b{color:#087d78}
.mobile-module-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.mobile-module-grid button{min-height:112px;padding:17px;text-align:left;border:1px solid #dce8e9;background:#fff}.mobile-module-grid button.wide{grid-column:1/-1}.mobile-module-grid i{display:grid;place-items:center;width:38px;height:38px;border-radius:13px;background:#e3f4f2;color:#087d78;font-style:normal}.mobile-module-grid b,.mobile-module-grid span{display:block}.mobile-module-grid b{margin-top:10px}.mobile-module-grid span{color:#698087;font-size:11px}
.mobile-nav{left:50%;right:auto;transform:translateX(-50%);width:min(100%,480px);height:calc(76px + env(safe-area-inset-bottom));padding:8px 7px env(safe-area-inset-bottom);display:grid;grid-template-columns:repeat(5,1fr);border-color:#dce8e9;box-shadow:none}.mobile-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;color:#82938f;font-size:10px}.mobile-nav i{display:grid;place-items:center;width:24px;height:24px;line-height:24px}.mobile-nav button.active{color:#087d78}.mobile-nav button.active:before{position:absolute;top:-4px;width:22px;height:3px;border-radius:0 0 4px 4px;background:#087d78;content:""}.mobile-nav button.primary i{width:43px;height:43px;margin-top:-19px;border:4px solid var(--mobile-bg);border-radius:15px;color:#fff;background:#087d78;box-shadow:0 7px 16px #176b5b3d}.mobile-nav button.primary span{margin-top:-2px}.mobile-nav button.primary.active:before{display:none}.mobile-nav em{top:1px;right:20%;border:2px solid #fff}
}

/* v0.1.52：按已确认移动端信息架构承接正式数据。 */
@media (max-width:720px){
  .mobile-top{background:linear-gradient(115deg,#368e89,#287c7e 55%,#236c73);color:#f7ffff;padding-top:env(safe-area-inset-top);min-height:calc(58px + env(safe-area-inset-top));}
  .mobile-top>div{flex:1;text-align:center}.mobile-top b{font-size:18px}.mobile-top span{display:none}.mobile-head-button{color:#fff}
  .mobile-content{background:#edf8fc;padding-bottom:calc(82px + env(safe-area-inset-bottom));overflow-x:hidden}
  .formal-mobile-nav{grid-template-columns:repeat(5,1fr);height:calc(70px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:rgba(255,255,255,.98);border-top:1px solid #dce8eb}
  .formal-mobile-nav button{min-width:0}
  .formal-mobile-nav button.primary{transform:none;border-radius:0;background:transparent;color:inherit;box-shadow:none}
  .formal-mobile-nav button.active{color:#176f83;font-weight:700}.formal-mobile-nav button.active i{background:#e7f5f7;border-radius:9px;transform:translateY(-2px)}
  .formal-mobile-nav i{width:34px;height:30px;display:grid;place-items:center;margin:auto}.formal-mobile-nav .mobile-icon{width:22px;height:22px}
  .formal-home-welcome{background:linear-gradient(135deg,#2f8986,#226f76);color:#fff}.formal-home-welcome h2{margin-bottom:6px}.formal-home-welcome p{color:#dff5f2}
  .formal-home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}.formal-home-grid button{min-height:112px;border:1px solid #cce4eb;border-radius:10px;background:#fff;color:#294c58;padding:14px 8px;box-shadow:0 2px 5px rgba(35,74,84,.06)}
  .formal-home-grid b,.formal-home-grid span{display:block}.formal-home-grid b{font-size:14px}.formal-home-grid span{margin-top:8px;color:#78929a;font-size:11px;line-height:1.4}
  .formal-workbench,.formal-planning{text-align:center}.formal-workbench h2{margin-bottom:14px}.formal-planning{min-height:180px;display:flex;flex-direction:column;justify-content:center;gap:8px}.formal-planning b{font-size:20px}.formal-planning span{color:#78929a;line-height:1.5}
  .formal-task-tabs{position:sticky;top:0;z-index:3;background:#fff;margin:-12px -12px 8px;padding:0 8px;border-bottom:1px solid #dce8eb}
  .formal-change-task{width:100%;display:grid;gap:4px;text-align:left;padding:12px;border:0;border-bottom:1px solid #e6eef0;background:#fff}.formal-change-task span,.formal-change-task small{color:#78929a}
  .aligned-form-section input,.aligned-form-section select,.aligned-form-section textarea,#aligned-report-form input,#aligned-report-form select,#aligned-report-form textarea{font-size:16px;min-height:44px}
}
@media (max-width:359px){.formal-home-grid{grid-template-columns:1fr}.formal-home-grid button{min-height:72px}.aligned-kv{grid-template-columns:92px minmax(0,1fr)}}

@media(max-width:720px){.mobile-instrument-search{position:relative}.mobile-instrument-dropdown{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:40;max-height:260px;overflow:auto;border:1px solid #dce8e9;border-radius:12px;background:#fff;box-shadow:0 10px 26px #17383d26}.mobile-instrument-dropdown[hidden]{display:none}.mobile-instrument-dropdown button{display:grid;grid-template-columns:minmax(90px,.8fr) 1fr;width:100%;padding:10px 12px;text-align:left;border:0;border-bottom:1px solid #edf2f2;background:#fff;color:#16343b}.mobile-instrument-dropdown button:last-child{border-bottom:0}.mobile-instrument-dropdown button:active{background:#edf8f7}.mobile-instrument-dropdown b{color:#087d78}.mobile-instrument-dropdown span{color:#698087;font-size:11px;text-align:right}.mobile-instrument-dropdown small{grid-column:1/-1;margin-top:3px;color:#8a9da3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}

@media(max-width:720px){
.aligned-layer{z-index:80;align-items:stretch}.aligned-layer[hidden]{display:none}.aligned-page{height:100dvh;max-height:none;padding:0;border-radius:0;background:#f7f9f9}.aligned-page-head{position:sticky;top:0;z-index:4;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;height:58px;padding:env(safe-area-inset-top) 12px 0;background:#fffffff5;border-bottom:1px solid #dce8e9}.aligned-page-head h3{margin:0;text-align:center;font-size:17px}.aligned-back,.aligned-close{border:0;background:#edf6f5;color:#087d78;border-radius:11px;height:36px;padding:0 10px}.aligned-close{width:36px;padding:0;font-size:22px}.aligned-page-body{padding:14px 14px calc(24px + env(safe-area-inset-bottom));overflow:auto}.aligned-title{position:relative;padding:17px;margin-bottom:11px;border:1px solid #cfe5e4;border-radius:17px;background:linear-gradient(145deg,#f0faf9,#fff)}.aligned-title h2{margin:0;color:#087d78}.aligned-title p{margin:7px 0 0}.aligned-title .badge{position:absolute;right:14px;top:14px}.aligned-accordion{margin-top:11px}.aligned-accordion-head{display:flex;justify-content:space-between;width:100%;padding:14px 15px;border:1px solid #dce8e9;border-radius:14px;background:#fff;color:#16343b;text-align:left}.aligned-accordion-body{display:none;padding:4px 14px 13px;border:1px solid #dce8e9;border-top:0;border-radius:0 0 14px 14px;background:#fff}.aligned-accordion.open .aligned-accordion-head{border-radius:14px 14px 0 0}.aligned-accordion.open .aligned-accordion-body{display:block}.aligned-accordion.open .aligned-accordion-head span{transform:rotate(180deg)}.aligned-kv{display:grid;grid-template-columns:110px 1fr;gap:8px;padding:10px 0;border-bottom:1px dashed #e4eded;font-size:13px}.aligned-kv:last-child{border-bottom:0}.aligned-kv label{color:#698087}.aligned-kv span{overflow-wrap:anywhere}.aligned-flow{display:flex;overflow:auto;padding:5px 0 12px}.aligned-flow span{display:grid;place-items:center;min-width:76px;color:#879b9d}.aligned-flow span:before{content:'';position:absolute}.aligned-flow span{font-size:12px}.aligned-flow span>b{display:block;margin-top:5px;font-size:10px;white-space:nowrap}.aligned-flow span.done{color:#087d78;font-weight:800}.aligned-section-title{display:flex;align-items:end;justify-content:space-between;margin:20px 3px 8px}.aligned-section-title h3{margin:0}.aligned-section-title span{color:#698087;font-size:12px}.aligned-photo-card,.aligned-form-section{margin-top:11px;padding:14px;border:1px solid #dce8e9;border-radius:14px;background:#fff}.aligned-photo-card h4,.aligned-form-section h4{margin:0 0 10px}.aligned-form-section label{display:block;margin:11px 0 5px}.aligned-actions{position:sticky;bottom:8px;display:flex;gap:8px;margin-top:14px;padding:10px;border:1px solid #dce8e9;border-radius:15px;background:#ffffffed}.aligned-actions .btn{flex:1}.aligned-part{margin:8px 0;padding:10px;border-radius:12px;background:#f2f7f6}.aligned-profile-menu{margin-top:12px;padding:0 14px}.aligned-profile-menu button{display:flex;justify-content:space-between;width:100%;padding:15px 0;border:0;border-bottom:1px solid #edf2f2;background:#fff;text-align:left}.aligned-profile-menu button:last-of-type{border-bottom:0}
}

/* iPhone Safari：固定移动视口，避免小字号表单聚焦放大及放大后的横向拖动。 */
@media(max-width:720px){
html,body{width:100%;max-width:100%;overflow-x:hidden;overscroll-behavior-x:none}
body{touch-action:pan-y}
#app,.mobile-shell,.mobile-content,.mobile-card,.mobile-form{min-width:0;max-width:100%}
.mobile-shell{width:100%;overflow-x:clip}
.mobile-content{overflow-x:clip}
.mobile-work-stats>* , .mobile-module-grid>* , .risk-row>*{min-width:0}
input,select,textarea,.field,.mobile-search input{font-size:16px!important}
.mobile-instrument-search{width:100%;max-width:100%;min-width:0}
.mobile-instrument-search .field{width:100%;min-width:0;max-width:100%}
.mobile-instrument-dropdown{max-width:100%;overflow-x:hidden}
.mobile-instrument-dropdown button{min-width:0}
.mobile-instrument-dropdown b,.mobile-instrument-dropdown span,.mobile-instrument-dropdown small{min-width:0;overflow:hidden;text-overflow:ellipsis}
}

/* v0.1.54 真机安全区与页面容器修正：只允许内容区在确有溢出时滚动。 */
@media(max-width:720px){
html,body,#app{height:100%;min-height:100%;overflow:hidden}
html,body{background:#287c7e;overscroll-behavior-y:none}
.mobile-shell{display:flex;flex-direction:column;width:100%;max-width:480px;height:100dvh;min-height:0;margin:auto;padding:0;overflow:hidden;background:#edf8fc}
.mobile-top{position:relative;top:auto;flex:0 0 auto;box-sizing:border-box;height:calc(58px + env(safe-area-inset-top));min-height:calc(58px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 16px 0;background:linear-gradient(115deg,#368e89,#287c7e 55%,#236c73)}
.mobile-content{flex:1 1 auto;min-height:0;padding:16px 14px 8px;overflow-x:clip;overflow-y:auto;-webkit-overflow-scrolling:touch;background:#edf8fc}
.formal-mobile-nav{position:relative;left:auto;right:auto;bottom:auto;transform:none;flex:0 0 auto;width:100%;height:calc(62px + env(safe-area-inset-bottom));padding:4px 7px env(safe-area-inset-bottom);background:#fff}
.formal-mobile-nav button{min-height:54px}
.formal-sub-view.page{width:calc(100% + 28px);min-height:0;margin:-16px -14px -8px;padding:10px 14px calc(12px + env(safe-area-inset-bottom));box-sizing:border-box}
.formal-sub-view.page.report-layer,.formal-sub-view.page.disposal-layer{padding-left:0;padding-right:0}
.mobile-top .back{min-height:36px;padding:0 9px;border-radius:8px;background:rgba(255,255,255,.14)!important}
.formal-demo-sheet .sheet-box{width:min(calc(100% - 28px),340px);max-width:340px;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 32px);overflow:auto}
.formal-demo-sheet .modal-content{width:100%;padding:10px 14px 14px;box-sizing:border-box;overflow-x:hidden}
.formal-demo-sheet .modal-content .kv{display:grid;grid-template-columns:minmax(76px,96px) minmax(0,1fr);align-items:center;width:100%;padding:9px 0;gap:10px;box-sizing:border-box}
.formal-demo-sheet .modal-content .kv label,.formal-demo-sheet .modal-content .kv span{min-width:0;margin:0;overflow-wrap:anywhere}
.disposal-form .report-section{grid-template-columns:minmax(0,1fr)!important}
.disposal-form .report-section-head,.disposal-form #wfFaultFields,.disposal-form #wfParts,.disposal-form #wfWhole,.disposal-form .part-entry,.disposal-form .field-row,.disposal-form .readonly-note,.disposal-form .hint,.disposal-form .disposal-wide,.disposal-form #disposalRisks{grid-column:1!important}
.disposal-form .field-row,.disposal-form #wfFaultFields,.disposal-form #wfWhole{grid-template-columns:minmax(0,1fr)!important}
.disposal-form .risk-row,.disposal-risk-row,.disposal-form .part-entry{grid-template-columns:minmax(0,1fr)!important}
.disposal-form .disposal-risk-remove,.disposal-form .part-entry .disposal-part-remove{grid-column:1!important;grid-row:auto!important;width:100%!important}
}

@media(max-width:720px){
button,.mobile-actions button,.mobile-quick-grid button,.mobile-module-grid button,.mobile-asset{color:inherit;-webkit-text-fill-color:currentColor}
.mobile-instrument-dropdown{touch-action:pan-y;-webkit-overflow-scrolling:touch}
}
