/* Load after the existing themes. Keep management layout inside the phone viewport. */
.template-card-compact .template-route-summary{margin:7px 0;color:#42566e;font-size:16px;line-height:1.6}
.template-card-compact .template-route-detail{margin-top:12px;border-top:1px solid #e1e7ef;padding-top:6px}
.template-route-detail>summary,.template-history>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:16px;font-weight:600;color:#31517e}
.template-route-detail>summary::after,.template-history>summary::after{content:'展开 ⌄';margin-left:auto;padding-left:10px;white-space:nowrap;font-size:14px;font-weight:400}
.template-route-detail[open]>summary::after,.template-history[open]>summary::after{content:'收起 ⌃'}
.template-route-detail .mini-route{margin:12px 0;display:grid;grid-template-columns:1fr;gap:0}
.template-route-detail .mini-route li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;border:0;border-bottom:1px solid #e1e7ef;border-radius:0;padding:10px 0;background:transparent;font-size:16px}
.template-route-detail .mini-route li+li:before{content:none}
.template-route-detail .mini-route small{font-size:14px;margin:0;line-height:1.5;text-align:right}
.template-route-detail .template-step-center{display:block;margin-top:3px;font-size:14px;color:#63738a}
.template-card-compact .template-clone{margin-top:12px}
.template-history{margin:12px 0}
.template-history>.template-grid{margin-top:8px}
.template-workshop-empty-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid #dce4f0}
.template-workshop-empty-row h3{margin:0;font-size:18px}
.template-workshop-empty-row .outline-button{min-height:44px;white-space:nowrap}
.mobile-more-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mobile-more-item{display:flex;align-items:center;gap:10px;min-width:0;min-height:58px;text-align:left;border:1px solid #cbd7e7;background:#fff;border-radius:8px;color:#233d61;padding:12px;font-size:17px;line-height:1.5}
.mobile-more-item svg{width:22px;height:22px;flex:0 0 22px}
.mobile-more-item span{min-width:0;white-space:nowrap}
.mobile-more-item.active{background:#edf3ff;border-color:#155eef;color:#155eef;font-weight:600}
.mobile-more-menu .modal-head p{margin:6px 0 0}
@media(max-width:999px){
 .topbar{height:auto;min-height:74px;gap:8px;padding-top:12px;padding-bottom:12px;flex-wrap:wrap}
 .brand{min-width:0;max-width:100%;flex:1 1 160px}
 .brand-mark{flex:0 0 auto;width:auto;height:auto;min-width:34px;min-height:34px;padding:.16em .24em;line-height:1.15}
 .brand>span:last-child{min-width:0}
 .brand strong{white-space:normal;overflow-wrap:anywhere}
 .header-actions{flex:0 0 auto;flex-wrap:wrap}
 .header-actions .icon-button{flex:0 0 auto;width:auto;height:auto;min-width:44px;min-height:44px;padding:.15em .32em;line-height:1.1;white-space:nowrap}
 .management-mode .app-shell{width:100%;padding-left:16px;padding-right:16px}
 .management-mode main{min-width:0;padding-top:20px;padding-bottom:calc(max(76px,var(--mobile-nav-height,76px)) + 24px + env(safe-area-inset-bottom,0px))}
 .management-mode #main .welcome{gap:12px;margin-bottom:16px;align-items:flex-start}
 .management-mode #main .welcome>div:first-child{min-width:0;flex:1}
 .management-mode #main .welcome h1{font-size:26px;line-height:1.35;margin-top:5px}
 .management-mode #main .welcome .eyebrow{font-size:13px;line-height:1.5}
 .management-mode #main .greeting-line{margin-top:8px;gap:8px;flex-wrap:wrap}
 .management-mode #main .greeting-line .muted,.management-mode #main .greeting-line .role-tag{font-size:15px;line-height:1.5}
 .management-mode #main .easy-welcome-actions{flex:0 0 auto}
 .management-mode #main .user-button{font-size:15px;min-height:44px;margin:0;padding:8px 10px;white-space:nowrap}
 .management-mode #main .prepare-intro{font-size:16px;line-height:1.6;margin:0 0 16px}
 .management-mode #main .meeting-home-banner{flex-direction:column;align-items:stretch}
 .management-mode #main .master-home-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:8px}
 .management-mode #main .master-home-links>button{font-size:16px;min-height:48px;white-space:nowrap;padding:10px}
 .management-mode #main .master-home-links>button:last-child{grid-column:1/-1}
 .management-mode #main .prepare-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:20px}
 .management-mode #main .prepare-tab{min-width:0;min-height:50px;display:flex;flex-direction:row;align-items:center;gap:8px;padding:10px;border-radius:8px}
 .management-mode #main .prepare-tab>span{flex:0 0 auto;width:auto;min-width:23px;height:24px;line-height:24px;white-space:nowrap;font-size:13px}
 .management-mode #main .prepare-tab>strong{font-size:16px;line-height:1.4;white-space:nowrap;letter-spacing:0}
 .management-mode #main .section-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:20px 0 12px;min-width:0}
 .management-mode #main .section-head>div{min-width:0;flex:1 1 180px}
 .management-mode #main .section-head h2{font-size:21px;line-height:1.4;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
 .management-mode #main .section-head h3{font-size:19px;line-height:1.4}
 .management-mode #main .section-head>button,.management-mode #main .section-head .outline-button,.management-mode #main .section-head .primary-button{flex:0 0 auto;white-space:nowrap;font-size:16px;min-height:44px;padding:10px 12px;line-height:1.4}
 .management-mode #main .section-head p{font-size:15px;line-height:1.6}
 .management-mode #main .count-tag{flex:0 0 auto;white-space:nowrap;font-size:13px}
 .management-mode #main .template-workshop-group{margin:12px 0}
 .management-mode #main .template-workshop-group.is-empty{margin:0}
 .management-mode #main .template-workshop-group>.section-head{margin:12px 0}
 .management-mode #main .template-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
 .management-mode #main .template-card-compact{min-width:0;margin:0;padding:14px;border-radius:9px}
 .management-mode #main .template-card-compact h3{font-size:19px;line-height:1.4;margin:8px 0 0}
 .management-mode #main .template-card-compact .card-topline{gap:8px;flex-wrap:wrap}
 .management-mode #main .template-card-compact .operation-tag,.management-mode #main .template-card-compact .status{font-size:14px;line-height:1.5}
 .management-mode #main .template-card-compact .outline-button{font-size:16px;min-height:44px;padding:9px 12px;white-space:nowrap}
 .management-mode #main .template-card-compact .template-route-detail p{font-size:15px;line-height:1.6;overflow-wrap:anywhere}
 .management-mode #main .template-workshop-empty-row{gap:8px;padding:6px 0}
 .management-mode #main .template-workshop-empty-row>span{font-size:15px;color:#63738a}
 .management-mode #main .template-workshop-empty-row .outline-button{font-size:15px;padding:9px 10px;min-height:44px}
 .management-mode #navigation{position:fixed;top:auto;bottom:0;left:0;right:0;transform:none;width:100%;max-width:none;display:flex;flex-wrap:wrap;gap:2px;padding:6px 6px max(8px,env(safe-area-inset-bottom,0px));border-radius:0;background:#fff;border:0;border-top:1px solid #dce4f0;box-shadow:0 -2px 10px #142b5208}
 .management-mode #navigation .nav-item{min-width:0;min-height:56px;flex:1 0 auto;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;padding:6px 4px;font-size:13px;line-height:1.4;white-space:nowrap}
 .management-mode #navigation .nav-item span{min-width:0;max-width:100%}
 .management-mode #navigation .nav-item svg{width:22px;height:22px;flex:0 0 22px}
 .management-mode #navigation .nav-item.active{box-shadow:none}
 .management-mode .toast{max-width:calc(100vw - 32px);font-size:15px;line-height:1.5;pointer-events:none}
}
@media(max-width:360px){
 .management-mode .app-shell{padding-left:12px;padding-right:12px}
 .management-mode #main .prepare-tab{gap:6px;padding:10px 8px}
 .management-mode #main .prepare-tab>strong{font-size:15px}
 .management-mode #main .welcome h1{font-size:24px}
 .mobile-more-grid{grid-template-columns:minmax(0,1fr)}
}
