.role-primary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}.role-card{font:inherit;text-align:left;border:1px solid var(--line,#dcebe3);border-radius:18px;background:#fff;color:#263e35;padding:20px;cursor:pointer;min-width:0}.role-card i{display:block;font-size:25px;font-style:normal;color:#397f60}.role-card strong{display:block;font-size:21px;margin:8px 0 5px}.role-card small{display:block;color:#6a8076;font-size:14px}.role-card.role-primary{background:#397f60;color:#fff}.role-primary i,.role-primary small{color:#e8f5ee}.role-card:focus-visible,.role-todo:focus-visible{outline:3px solid #83bda0;outline-offset:2px}.role-quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:15px 0}.role-quick .role-card{padding:16px}.role-quick .role-card strong{font-size:18px}.role-quick .role-card i{display:none}.role-todo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}.role-todo{font:inherit;text-align:left;padding:14px;border:1px solid #dcebe3;border-radius:12px;background:#f5faf7;color:#263e35;cursor:pointer}.role-todo strong{display:block;font-size:25px;color:#397f60}.role-todo span,.role-todo small{display:block;font-size:14px}.role-todos h2,.role-store-panel h2{font-size:20px;margin:0}.role-todos .btn{margin:0;width:auto}.role-todos .row{gap:10px}.role-home-note{margin-top:22px}.role-store-panel .role-todos{box-shadow:none;margin:15px 0 0}.role-record-scope{display:flex;gap:10px;margin:0 0 18px}.role-record-scope button{font:inherit;border:1px solid #dcebe3;background:white;padding:10px 15px;border-radius:10px;color:#397f60}.role-record-scope .selected{background:#397f60;color:white}@media(max-width:700px){.role-primary-grid{grid-template-columns:1fr;gap:10px}.role-primary-grid .role-card{position:relative;padding:17px 17px 17px 56px}.role-primary-grid .role-card i{position:absolute;left:17px;top:20px}.role-primary-grid .role-card strong{margin-top:0;font-size:20px}.role-todo-grid{grid-template-columns:1fr 1fr}.role-quick .role-card{padding:14px}.role-quick .role-card strong{font-size:17px}.role-card small{font-size:13px}.role-todos .row{align-items:center}}

/* Wide screens share the same forms, permissions and data as the mobile layout. */
@media(min-width:761px){
 html,body{height:100%;overflow:hidden}
 .layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:0;padding:0;width:100%;max-width:none;height:100dvh;align-items:stretch}
 .brief{display:flex;flex-direction:column;min-width:0;padding:28px 18px;background:#fff;border-right:1px solid #dcebe3;overflow:auto}
 .desktop-brand{font-size:25px;font-weight:800;color:#245b44;letter-spacing:1px;padding:0 12px 26px}
 .desktop-brand small{display:block;font-size:13px;font-weight:400;letter-spacing:0;color:#71847a;margin-top:7px}
 #desktopNav{display:grid;gap:8px}
 #desktopNav button{display:flex;align-items:center;gap:13px;text-align:left;font:inherit;font-size:16px;padding:14px 16px;border:0;border-radius:11px;background:transparent;color:#526c60;cursor:pointer}
 #desktopNav button span{font-size:22px;width:23px;text-align:center}
 #desktopNav button:hover{background:#f0f7f3}
 #desktopNav button[aria-current=page]{background:#e4f3ea;color:#216344;font-weight:700}
 #desktopNav button:focus-visible{outline:3px solid #83bda0;outline-offset:2px}
 .desktop-identity{margin-top:auto;padding:24px 12px 0;overflow-wrap:anywhere;color:#294c3a}
 .desktop-identity strong,.desktop-identity small{display:block}
 .desktop-identity small{font-size:12px;color:#71847a;margin-top:8px;line-height:1.7}
 .desktop-intro{font-size:15px;line-height:1.9;color:#71847a;padding:0 12px}
 .layout>.phone{width:100%;max-width:none;min-width:0;min-height:0;height:100dvh;border:0;border-radius:0;box-shadow:none}
 .phone>.statusbar{min-height:28px;padding:6px 28px;font-size:12px}
 .phone>.demo{padding:6px 28px;font-size:12px}
 .phone>.top{padding:16px 28px;flex-shrink:0}
 .phone>.top strong{font-size:21px}.phone>.top small{font-size:13px}
 .phone>main{min-height:0;min-width:0;padding:26px 30px 36px;overflow:auto;scrollbar-gutter:stable}
 .phone>.bottom{display:none!important}
 .phone .title{font-size:28px;margin-top:15px}.phone .sub{font-size:15px}
 .role-workspace{max-width:1520px;margin:auto}
 .role-primary-grid{gap:18px}.role-primary-grid .role-card{padding:24px;min-height:160px}
 .role-quick{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
 .role-store-panel .role-quick{grid-template-columns:repeat(2,minmax(0,1fr))}
 .role-todo-grid{gap:16px}.role-todo{padding:18px}
 .phone .card{border-radius:18px}.role-home-note{font-size:13px}
 .goods-hub-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
 .goods-hub-card{padding:24px 18px;min-height:200px}
 .merged-registration{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:0 24px;align-items:start;max-width:1500px;margin:auto}
 .merged-registration>.back,.merged-registration>.title,.merged-registration>.sub{grid-column:1/-1}
 .merged-registration>section.card{grid-column:1;margin-top:0}
 .merged-registration>#mAfterCheck{grid-column:2;min-width:0}
 .merged-registration>#mAfterCheck>.card:first-child{margin-top:0}
 body[data-terminal-auth=no] .phone>main{width:100%;max-width:580px;margin:0 auto}
 body[data-terminal-page=mine] .phone>main{max-width:1050px;width:100%;margin:0 auto}
}
@media(min-width:761px) and (max-width:1100px){
 .layout{grid-template-columns:190px minmax(0,1fr)}
 .brief{padding:24px 12px}.desktop-brand{font-size:23px}
 .phone>main{padding:22px 20px 32px}
 .role-primary-grid .role-card{padding:17px}.role-card strong{font-size:19px}
 .role-quick,.goods-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .merged-registration{display:block}
}
@media(min-width:761px){
 .layout>.brief{align-self:stretch;height:100dvh;box-sizing:border-box}
 .records-date-store{max-width:none}
 .merged-registration>.warn{grid-column:1/-1}
 .merged-registration>section.card:nth-of-type(2){grid-column:2}
}
@media(min-width:1101px){
 .merged-registration>.back{justify-self:start}
 .phone .merged-registration>section.card,.phone .merged-registration>#mAfterCheck>.card:first-child{margin-top:0}
}
