/* ===== v679：教师手机工作台 · Lumen 雾光 ===== */
.teacher-mobile-home,.m-teacher-bottom-nav,.bd-mobile-tabs{display:none}
@media(max-width:620px){
  html.mobile-teacher-preview[data-theme] body{background:#eef4f5!important}
  html.mobile-teacher-preview[data-theme] #app .main{background:
    radial-gradient(circle at 95% -3%,rgba(115,224,213,.24),transparent 34%),
    radial-gradient(circle at -12% 82%,rgba(129,163,242,.12),transparent 40%),#f7fafb}
  html.mobile-teacher-preview[data-theme] #app .topbar{background:rgba(247,250,251,.88)!important;border-bottom:1px solid rgba(16,33,38,.06)!important;box-shadow:0 8px 24px rgba(35,69,73,.06)!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
  html.mobile-teacher-preview[data-theme] #app .topbar h2{letter-spacing:-.4px;color:#102126!important}
  html.mobile-teacher-preview .mob-nav-btn{color:#102126;border:1px solid rgba(16,33,38,.08);background:rgba(255,255,255,.78);box-shadow:0 8px 24px rgba(35,69,73,.1)}
  .teacher-mobile-home{display:block;padding:0 0 24px}
  .teacher-mobile-home~*{display:none!important}
  .teacher-mobile-home+.hero{display:none}
  .teacher-mobile-home+.flow-home-head{display:none}
  .tmh-top{display:flex;align-items:center;gap:8px;padding:4px 0 18px}
  .tmh-classpick{height:43px;display:flex;align-items:center;gap:7px;padding:0 12px;border:1px solid rgba(255,255,255,.92);border-radius:15px;background:rgba(255,255,255,.7);box-shadow:0 8px 24px rgba(35,69,73,.08);backdrop-filter:blur(20px);font-family:inherit}
  .tmh-classpick i{width:7px;height:7px;border-radius:50%;background:#138b83;box-shadow:0 0 0 4px rgba(19,139,131,.12)}
  .tmh-classpick b{font-size:13px;color:#102126}.tmh-classpick span{font-size:11px;color:#718388}.tmh-classpick em{margin-left:auto;font-style:normal;color:#718388}
  .tmh-role{height:31px;display:flex;align-items:center;padding:0 9px;border:1px solid rgba(16,33,38,.07);border-radius:10px;background:rgba(255,255,255,.66);color:#607378;font-size:11px;font-weight:800}
  .tmh-avatar{width:43px;height:43px;display:grid;place-items:center;border-radius:15px;background:#102126;color:#fff;font-size:15px;font-weight:900;box-shadow:0 9px 24px rgba(16,33,38,.18)}
  .tmh-greet{padding:0 2px 16px}
  .tmh-kicker{display:inline-flex;align-items:center;gap:6px;font-size:10.5px;font-weight:900;letter-spacing:.12em;color:#0d8b88}
  .tmh-kicker:before{content:"";width:6px;height:6px;border-radius:50%;background:#0d8b88;box-shadow:0 0 0 4px rgba(13,139,136,.1)}
  .tmh-greet h2{margin:7px 0 4px;font-size:29px;line-height:1.18;letter-spacing:-1px;color:#102126}
  .tmh-greet p{margin:0;color:#718388;font-size:12.5px}
  .tmh-actions{display:grid;grid-template-columns:1.08fr .92fr;gap:10px;margin:0 0 10px}
  .tmh-action{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-height:152px;padding:15px;border:1px solid rgba(255,255,255,.9);border-radius:22px;text-align:left;font-family:inherit;overflow:hidden;cursor:pointer;box-shadow:0 16px 38px rgba(31,67,72,.12)}
  .tmh-hw{color:#fff;background:linear-gradient(145deg,#0e3137,#0d8b88)}
  .tmh-flow{color:#102126;background:rgba(255,255,255,.73);backdrop-filter:blur(22px) saturate(1.25)}
  .tmh-action:before{content:"";position:absolute;right:-35px;top:-38px;width:118px;height:118px;border-radius:50%;background:rgba(111,224,213,.17);filter:blur(2px)}
  .tmh-hw:after{content:"";position:absolute;right:18px;bottom:18px;width:50px;height:50px;border:1px solid rgba(255,255,255,.16);border-radius:17px;transform:rotate(13deg)}
  .tmh-ico{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:13px;background:rgba(255,255,255,.16);font-size:18px;font-weight:900;line-height:1;margin-bottom:14px;position:relative;z-index:1}
  .tmh-flow .tmh-ico{background:#e5f5f3;color:#0d8b88;font-size:24px}
  .tmh-action b{font-size:20px;line-height:1.2;margin-bottom:5px;position:relative;z-index:1}
  .tmh-action small{font-size:11px;line-height:1.45;color:rgba(255,255,255,.72);position:relative;z-index:1}
  .tmh-flow small{color:#718388}
  .tmh-action i{margin-top:auto;padding-top:12px;font-style:normal;font-size:11.5px;font-weight:800;position:relative;z-index:1}
  .tmh-action i em{font-style:normal;font-size:16px;margin-left:3px}
  .tmh-overview{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid rgba(255,255,255,.94);border-radius:20px;background:rgba(255,255,255,.68);overflow:hidden;box-shadow:0 14px 34px rgba(35,69,73,.08);backdrop-filter:blur(20px);margin-bottom:18px}
  .tmh-overview>div{display:flex;flex-direction:column;align-items:center;gap:3px;padding:14px 4px;border-right:1px solid rgba(16,33,38,.07)}
  .tmh-overview>div:last-child{border-right:0}
  .tmh-overview b{font-size:22px;line-height:1;color:#102126;font-variant-numeric:tabular-nums}
  .tmh-overview span{font-size:10px;color:#829297}
  .tmh-section{display:flex;align-items:center;padding:0 2px 9px}.tmh-section b{font-size:14px}.tmh-section button{margin-left:auto;font-size:11px;color:#718388;font-family:inherit}
  .tmh-flowlist{display:grid;gap:8px;margin-bottom:10px}
  .tmh-flowrow{display:flex;align-items:center;gap:10px;min-height:66px;padding:10px 11px;border:1px solid rgba(255,255,255,.9);border-radius:17px;background:rgba(255,255,255,.7);box-shadow:0 8px 24px rgba(35,69,73,.065);text-align:left;font-family:inherit;backdrop-filter:blur(18px)}
  .tmh-flowicon{width:39px;height:39px;display:grid;place-items:center;flex:none;border-radius:12px;background:#e4f5f3;color:#0d8b88;font-size:12px;font-weight:900}
  .tmh-flowcopy{min-width:0;flex:1}.tmh-flowcopy b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:#102126}.tmh-flowcopy small{display:block;margin-top:3px;font-size:10.5px;color:#829297}
  .tmh-flowgo{font-size:20px;color:#98a6aa}
  .tmh-empty{display:flex;flex-direction:column;gap:3px;padding:20px;border:1px dashed rgba(16,33,38,.13);border-radius:17px;background:rgba(255,255,255,.42);color:#718388;font-size:11px}.tmh-empty b{color:#102126;font-size:13px}
  .tmh-shortcuts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
  .tmh-shortcuts button{display:flex;align-items:center;gap:7px;min-height:48px;padding:8px 10px;border:1px solid rgba(16,33,38,.07);border-radius:15px;background:rgba(255,255,255,.62);font-family:inherit;color:#40545a}
  .tmh-shortcuts span{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;background:#eaf3f3;color:#0d8b88;font-size:11px;font-weight:900}
  .tmh-shortcuts b{font-size:11.5px;white-space:nowrap}
  .m-teacher-bottom-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom));z-index:1990;height:70px;padding:6px;border:1px solid rgba(255,255,255,.95);border-radius:24px;background:rgba(255,255,255,.82);box-shadow:0 18px 44px rgba(16,45,50,.18);backdrop-filter:blur(24px) saturate(1.3);-webkit-backdrop-filter:blur(24px) saturate(1.3)}
  .m-teacher-bottom-nav>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:0;border-radius:14px;background:transparent;color:#94A3B8;font-family:inherit;cursor:pointer}
  .m-teacher-bottom-nav>button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .m-teacher-bottom-nav>button b{font-size:10.5px;font-weight:700}
  .m-teacher-bottom-nav>button.on{background:#e8f5f3;color:#0d8b88}
  .m-teacher-bottom-nav>button.on svg{stroke-width:2.1}
  body:has(#modal-host .modal) .m-teacher-bottom-nav,body:has(.scan-wrap) .m-teacher-bottom-nav{display:none!important}
  .icp-bar{left:auto!important;right:10px!important;bottom:calc(78px + env(safe-area-inset-bottom))!important;transform:none!important;font-size:9.5px!important;padding:2px 6px!important;opacity:.55}
  .page{padding-bottom:122px!important}

  /* 新流程弹层：手机上优先展示选择，底部按钮固定且可点 */
  .mobile-flow-create{height:auto!important;max-height:88vh!important;display:flex!important;flex-direction:column!important}
  .mobile-flow-create .modal-b{flex:0 1 auto;overflow:auto;padding:14px 13px 18px!important}
  .mobile-flow-create .modal-f{flex:none;display:grid!important;grid-template-columns:1fr 1fr;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom))!important;position:sticky;bottom:0;background:#fff;box-shadow:0 -8px 24px rgba(15,23,42,.07)}
  .mobile-flow-create .modal-f .btn{width:100%;min-height:46px;margin:0!important}
  .mobile-flow-create #flow-imp-btn{grid-column:1/-1}
  .mobile-flow-create .seg-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;margin-bottom:16px!important}
  .mobile-flow-create .seg-tabs .seg-tab{min-height:48px;border-radius:13px!important;font-size:14px!important}
  .mobile-flow-create #flow-class-field>span{font-size:13px;line-height:1.5}
  .mobile-flow-create #flow-class-field label{min-height:42px;padding:9px 12px!important;border-radius:12px!important;font-size:13.5px!important}
  .mobile-flow-create #flow-class-field input{width:auto!important;min-height:0!important;margin:0!important}
  .mobile-flow-create .note{padding:11px 12px!important;font-size:12.5px!important;line-height:1.75!important}

  /* 作业发布页：先选作业/通知/已发布，表单卡片一屏可操作 */
  .bd-admin{max-width:100%;gap:11px}
  .bd-admin .bd-mobile-tabs{order:1}
  .bd-admin .bd-cols{order:2}
  .bd-admin #bd-published{order:3}
  .bd-admin .bd-csub{order:4}
  .bd-admin>.card:not(.bd-csub):not(.bd-acard):not(#bd-published){order:5}
  .bd-ahead{display:none!important}
  .bd-ahead>b{font-size:19px;line-height:1.35}
  .bd-ahead>.small{display:block;font-size:11px}
  .bd-more{display:none}
  .bd-mobile-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;position:sticky;top:61px;z-index:18;padding:5px;border:1px solid rgba(255,255,255,.94);border-radius:16px;background:rgba(255,255,255,.8);box-shadow:0 10px 28px rgba(35,69,73,.08);backdrop-filter:blur(22px)}
  .bd-mobile-tabs button{min-height:40px;padding:6px 5px;border:0;border-radius:11px;background:transparent;color:#718388;font-family:inherit;font-weight:800;font-size:12px;line-height:1.2;cursor:pointer}
  .bd-mobile-tabs button.on{background:#e6f5f3;color:#0d8b88}
  .bd-cols{grid-template-columns:1fr!important;gap:11px}
  html.mobile-teacher-preview[data-theme] #app .bd-acard,
  html.mobile-teacher-preview[data-theme] #app .bd-admin>.card{border-radius:18px!important;border:1px solid rgba(16,33,38,.07)!important;box-shadow:0 12px 32px rgba(35,69,73,.07)!important;background:rgba(255,255,255,.82)!important}
  .bd-acard .card-h{padding:12px 13px}
  .bd-acard .card-h h3{font-size:15px}
  .bd-acard .card-h .bd-hint{display:none}
  .bd-acard .card-b{gap:11px;padding:13px}
  .bd-bind{padding:10px 11px;background:#edf7f6}
  .bd-bseal{background:#0d8b88}
  .bd-blink{color:#0d8b88;background:rgba(13,139,136,.08)}
  .bd-bigbtn{background:#0d8b88}
  html.mobile-teacher-preview[data-theme] #app .bd-fld textarea{min-height:128px!important;font-size:16px!important;line-height:1.65;border:1px solid rgba(16,33,38,.09)!important;background:rgba(255,255,255,.82)!important;box-shadow:none!important}
  .bd-tpl{display:flex;overflow-x:auto;gap:6px;padding-bottom:2px}
  .bd-tpl-lb{flex:none}
  .bd-tpl-c{flex:none;min-height:34px!important;white-space:nowrap!important}
  .bd-bigbtn{min-height:50px;font-size:15px}
  .bd-up{flex-wrap:wrap}
  .bd-subjpick.show{display:flex;flex-wrap:wrap;gap:6px}
  .bd-subjpick button{min-width:48px;min-height:38px}
  .bd-hw{align-items:flex-start!important;flex-wrap:wrap;gap:5px!important;padding:10px}
  .bd-hw>span:first-of-type{flex:1 1 100%!important;white-space:normal!important;line-height:1.55}
  #bd-publish-hw,#bd-publish-nt,#bd-published{scroll-margin-top:118px}
  html.mobile-teacher-preview[data-theme] #app .card{background:rgba(255,255,255,.74)!important;border:1px solid rgba(255,255,255,.94)!important;box-shadow:0 12px 32px rgba(35,69,73,.07)!important;backdrop-filter:blur(18px)}
  html.mobile-teacher-preview[data-theme] #app .card-h{background:rgba(255,255,255,.5)!important;border-bottom:1px solid rgba(16,33,38,.07)!important}
  html.mobile-teacher-preview[data-theme] #app .card-h h3:before{background:#0d8b88!important}
  html.mobile-teacher-preview .btn.primary{background:#0d8b88;border-color:#0d8b88;box-shadow:0 8px 20px rgba(13,139,136,.18)}
  html.mobile-teacher-preview[data-theme] #app .btn{border-radius:11px;border-color:rgba(16,33,38,.09)!important;box-shadow:none}
  html.mobile-teacher-preview .seg-tab.on{background:#e6f5f3;color:#0d8b88}
  html.mobile-teacher-preview .flow-row{border-radius:17px;border-color:rgba(16,33,38,.07);box-shadow:0 8px 22px rgba(35,69,73,.05)}
  html.mobile-teacher-preview .tag.blue{background:#e6f5f3;color:#0d8b88}
}
