/* ============================================================
   FY27 NPS 操作系统 — 新东方品牌·浅色正派风（依据品牌视觉识别手册）
   主色 新东方绿 #00695F(PANTONE 329C) · 强调 新东方橘 #F39800(1375C) · 浅底 #f3f6f4
   字体 黑体系列(Noto Sans SC) + Arial(英文/数字) — 依据手册通用字体规范
   ============================================================ */
@font-face{font-family:"Noto Sans SC";font-weight:400;font-display:swap;src:url("fonts/noto-lat-500.woff2") format("woff2");unicode-range:U+0000-00FF,U+2000-206F,U+2190-22FF}
@font-face{font-family:"Noto Sans SC";font-weight:400;font-display:swap;src:url("fonts/noto-sc-500.woff2") format("woff2");unicode-range:U+3000-303F,U+3400-9FFF,U+FF00-FFEF}
@font-face{font-family:"Noto Sans SC";font-weight:700;font-display:swap;src:url("fonts/noto-lat-700.woff2") format("woff2");unicode-range:U+0000-00FF,U+2000-206F,U+2190-22FF}
@font-face{font-family:"Noto Sans SC";font-weight:700;font-display:swap;src:url("fonts/noto-sc-700.woff2") format("woff2");unicode-range:U+3000-303F,U+3400-9FFF,U+FF00-FFEF}
@font-face{font-family:"Noto Sans SC";font-weight:900;font-display:swap;src:url("fonts/noto-sc-900.woff2") format("woff2");unicode-range:U+3000-303F,U+3400-9FFF,U+FF00-FFEF}
:root{
  /* 这套配色只有浅色一版(品牌手册的浅色正派风)。不声明 color-scheme 的话,
     安卓 Chrome 的「自动深色」会把整页强行反色(绿标变暗、白卡变黑),
     iOS/桌面则会把输入框、下拉、滚动条按系统深色画 → 黑底黑字。
     声明成 light 后浏览器就不再自作主张。要做真·夜间模式得另起一套变量。 */
  color-scheme:only light;   /* only = 禁止浏览器自动反色(安卓 Chrome 的自动深色) */
  --bg:#f3f6f4; --surface:#ffffff; --surface-2:#fbfcfb;
  --line:#e3e9e5; --hair:#eef2f0;
  --ink:#17251e; --ink-2:#42554b; --muted:#7d8f86;
  --green:#00695F; --green-l:#00896C; --green-deep:#005256; --green-wash:#e9f4f1;
  --amber:#F39800; --amber-d:#EC6C00; --amber-wash:#fdf3e2;
  --bad:#d23f49; --bad-wash:#fcebec;
  --font:"Noto Sans SC",-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  --display:Arial,"Helvetica Neue","Noto Sans SC","PingFang SC",sans-serif;
  --mono:Arial,"Helvetica Neue",Consolas,sans-serif;
  --ease:cubic-bezier(.16,1,.3,1);
  --shadow:0 1px 2px rgba(16,40,30,.04),0 6px 18px rgba(16,40,30,.05);
}
*{box-sizing:border-box}
input[type=text],input[type=password],input[type=number],input:not([type]),select,textarea{
  font-family:var(--font);accent-color:var(--green)}
input[type=text]:focus,input[type=password]:focus,input[type=number]:focus,
input:not([type]):focus,select:focus,textarea:focus{
  outline:none;border-color:var(--green)!important;
  box-shadow:0 0 0 3px rgba(0,105,95,.13)!important;background:#fff!important}
::placeholder{color:#a8b6b0}
html,body{margin:0}
body{font-family:var(--font);background:var(--bg);color:var(--ink);
  font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
h1{font-family:var(--display);color:var(--green-deep)}
h2{font-size:16px;font-weight:700;color:var(--green-deep);margin:18px 0 10px}
h2 small{color:var(--muted);font-weight:400;font-size:12px}
.meta{color:var(--muted);font-size:12.5px}
.num{font-family:var(--mono);font-variant-numeric:tabular-nums;font-feature-settings:"tnum"}

/* 品牌绿金渐变带(手册主视觉意象:灯塔/阶梯 绿→金) */
.brandbar{height:4px;border-radius:999px;
  background:linear-gradient(90deg,var(--green-deep),var(--green) 38%,#35B597 62%,var(--amber))}

/* ---------- 布局 ---------- */
body.app{display:grid;grid-template-columns:232px 1fr;min-height:100vh}
.side{background:var(--surface);border-right:1px solid var(--line);padding:22px 18px;
  display:flex;flex-direction:column;gap:20px;position:sticky;top:0;height:100vh}
.brand .logo-img{height:28px;display:block;margin-bottom:10px}
.brand .brandbar{margin:0 0 10px}
.brand .sub{display:flex;flex-direction:column;gap:2px}
.brand .sub .prod{color:var(--green-deep);font-size:12.5px;font-weight:700;white-space:nowrap;letter-spacing:.02em}
.brand .sub .dept{color:var(--muted);font-size:10.5px;white-space:nowrap}
.brand .slogan{margin-top:5px;display:flex;flex-direction:column;gap:1px}
.brand .slogan .cn{color:var(--green-l);font-size:11px;letter-spacing:.24em;white-space:nowrap}
.brand .slogan .en{color:var(--muted);font-size:8.5px;letter-spacing:.06em;white-space:nowrap;font-family:var(--num)}
.brand .live{display:inline-flex;align-items:center;gap:5px;margin-top:10px;font-size:11px;color:var(--amber-d)}
.brand .live .dot{width:7px;height:7px;border-radius:50%;background:var(--amber);animation:pulse 2s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(243,152,0,.45)}70%{box-shadow:0 0 0 7px rgba(243,152,0,0)}100%{box-shadow:0 0 0 0 rgba(243,152,0,0)}}
.side nav{display:flex;flex-direction:column;gap:2px;margin-top:4px}
.side nav a{padding:10px 12px;border-radius:9px;color:var(--ink-2);font-size:14px;transition:.16s var(--ease);display:flex;align-items:center;gap:9px}
.side nav a:hover{background:var(--hair)}
.side nav a.on{background:var(--green-wash);color:var(--green);font-weight:600;box-shadow:inset 3px 0 0 var(--green)}
.side nav .badge{background:var(--amber);color:#fff;font-size:11px;font-weight:700;border-radius:10px;padding:0 7px;margin-left:auto}
.who{margin-top:auto;border-top:1px solid var(--line);padding-top:14px}
.who summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none}
.who summary::-webkit-details-marker{display:none}
.avatar{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,var(--green-l),var(--green-deep));
  display:flex;align-items:center;justify-content:center;font-weight:700;color:#fff;font-size:14px;flex:0 0 auto}
img.avatar{object-fit:cover}
.who .uname{font-size:13px;color:var(--ink);font-weight:600}.who .urole{font-size:11px;color:var(--muted)}
.who form{display:flex;flex-direction:column;gap:7px;margin-top:12px}
.who input{background:#fff;border:1px solid #dbe4e0;border-radius:9px;padding:9px 11px;color:var(--ink);font-size:13px;transition:border-color .18s,box-shadow .18s}
.who button,.btn{background:var(--green);color:#fff;border:0;border-radius:8px;padding:9px 13px;font-weight:600;cursor:pointer;font-size:13px;transition:.15s}
.who button:hover,.btn:hover{background:var(--green-deep)}
.who p{margin:10px 0 0}.who p a{color:var(--muted);font-size:12px}
main{padding:0;min-width:0;overflow-x:hidden}

/* ---------- 看板 ---------- */
.dash{padding:20px 26px 32px;max-width:1720px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.dash-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap}
.dash-head h1{font-family:var(--display);font-size:26px;font-weight:700;margin:0;color:var(--green-deep)}
.dash-head .meta{margin:4px 0 0;font-size:12px}
.filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.filters:empty{display:none}
.dash-filters{justify-content:flex-end}
.ctlcheck{display:inline-flex;align-items:center;gap:6px;padding:0 12px;font-size:13px;
  color:var(--ink-2);cursor:pointer;white-space:nowrap;user-select:none;transition:.15s}
.ctlcheck input{width:14px;height:14px;margin:0;accent-color:var(--green);cursor:pointer}
.ctlcheck:hover{background:var(--hair)}
.ctlcheck:has(input:checked){color:var(--green);font-weight:700}
.ctlcheck:focus-within{outline:2px solid var(--green);outline-offset:-2px}
.seg{display:inline-flex;background:var(--surface);border:1px solid var(--line);border-radius:8px;overflow:hidden}
.seg button{background:transparent;border:0;color:var(--ink-2);padding:7px 13px;font-size:13px;cursor:pointer;font-family:var(--font);transition:.15s}
.seg button.on{background:var(--green);color:#fff}
.seg button:hover:not(.on){background:var(--hair)}
.sel{background:var(--surface);border:1px solid var(--line);color:var(--ink);border-radius:8px;padding:8px 12px;font-size:13px;font-family:var(--font)}
.export-menu{position:relative}.export-menu summary{list-style:none}.export-menu summary::-webkit-details-marker{display:none}
.export-menu>div{position:absolute;right:0;top:40px;z-index:40;min-width:150px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 6px 18px rgba(16,40,30,.10)}
.export-menu>div button{width:100%;border:0;background:transparent;color:var(--ink-2);font-family:var(--font);text-align:left;padding:9px 10px;border-radius:7px;cursor:pointer;white-space:nowrap}
.export-menu>div button:hover{background:var(--green-wash);color:var(--green)}

.panel{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:16px 18px;box-shadow:var(--shadow);min-width:0}
.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.panel h2{font-size:15px;line-height:1.3;font-weight:700;margin:0;color:var(--green-deep)}
.panel-head p{color:var(--muted);font-size:11.5px;margin:4px 0 0;max-width:72ch;line-height:1.5}
.panel .seg.mini{margin-left:auto;flex:0 0 auto}
.panel .seg.mini button{padding:4px 10px;font-size:11.5px}
.linkish{color:var(--green);font-size:12px;font-weight:600;white-space:nowrap;flex:0 0 auto}

/* 汇总条:一行几个数,靠字号层级建立秩序,不加装饰 */
.statrow{display:grid;grid-template-columns:repeat(7,1fr);gap:1px;background:var(--line);
  border:1px solid var(--line);border-radius:10px;overflow:hidden}
.statrow.four{grid-template-columns:repeat(4,1fr)}
.stat{background:var(--surface);padding:13px 16px;display:flex;flex-direction:column;gap:3px;min-width:0}
.stat>span{color:var(--muted);font-size:11.5px}
.stat>b{font-family:var(--display);font-variant-numeric:tabular-nums;font-size:25px;
  font-weight:700;color:var(--ink);line-height:1.15}
.stat>b.lead{color:var(--green)}
.stat>b.bad{color:var(--bad)}
.stat>small{color:var(--muted);font-size:10.5px;line-height:1.4}
.dlt{font-family:var(--display);font-size:12px;font-weight:700;font-style:normal;margin-left:5px}
.dlt.up{color:var(--green-l)}.dlt.down{color:var(--bad)}
.summary .stat>b{font-size:27px}

.grid-2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
@media(max-width:1280px){.grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.grid-3{grid-template-columns:1fr}}
/* 首屏这一排:左排名表 右地图,地图给得更宽 */
.grid-2.map-row{grid-template-columns:minmax(0,1fr) minmax(0,1.35fr)}
.map-ctl{display:flex;align-items:center;gap:8px}
[hidden]{display:none!important}
.chart{width:100%;height:300px}
#c-map{height:560px}
/* 1080 高的屏首屏要放得下 汇总条 + 排名/地图,再矮一档 */
@media(max-height:1100px){.chart{height:272px}#c-map{height:500px}
  .scroll-420{max-height:500px}}

/* 中心排名表 = 底表那张,可点行联动 */
.rank-table{width:100%;border-collapse:collapse;font-size:13px}
.rank-table th{position:sticky;top:0;z-index:3;background:var(--green-wash);color:var(--green-deep);
  font-weight:700;font-size:12px;text-align:left;padding:9px 12px;border-bottom:1px solid var(--line)}
.rank-table th.r,.rank-table td.r{text-align:right}
.rank-table td{padding:9px 12px;border-bottom:1px solid var(--hair);white-space:nowrap}
.rank-table tbody tr{cursor:pointer;transition:background .12s}
.rank-table tbody tr:hover{background:var(--surface-2)}
.rank-table tbody tr.on{background:var(--green-wash)}
.rank-table tbody tr.on td:first-child{box-shadow:inset 3px 0 0 var(--green)}
.rank-table tbody tr:focus-visible{outline:2px solid var(--green);outline-offset:-2px}
.scroll-420{max-height:560px;overflow-y:auto}

@media(max-width:1600px){.statrow{grid-template-columns:repeat(4,1fr)}}
@media(max-width:1200px){.statrow{grid-template-columns:repeat(3,1fr)}}
@media(max-width:1000px){.grid-2,.grid-2.map-row{grid-template-columns:1fr}#c-map{height:400px}}
@media(max-width:640px){.statrow,.statrow.four{grid-template-columns:repeat(2,1fr)}
  .stat>b,.summary .stat>b{font-size:21px}}
.pager{display:flex;align-items:center;gap:8px;font-size:11.5px;color:var(--muted);white-space:nowrap}
.pager button{background:var(--surface);border:1px solid var(--line);border-radius:7px;
  padding:4px 10px;font-size:11.5px;color:var(--ink-2);cursor:pointer;transition:.14s var(--ease)}
.pager button:hover:not(:disabled){background:var(--green-wash);color:var(--green);border-color:var(--green)}
.pager button:disabled{opacity:.4;cursor:default}
.create-survey-form .multi-toggle,
.multi-toggle{display:flex;flex-direction:row;align-items:center;gap:7px;grid-column:1/-1;
  font-size:12.5px;color:var(--ink-2);cursor:pointer;padding-top:2px}
.multi-toggle input{width:15px;height:15px;accent-color:var(--green);cursor:pointer}
.create-survey-form .multi-slots,
.multi-slots{grid-column:1/-1;border:1px dashed var(--line);border-radius:10px;
  padding:12px 14px;background:var(--surface-2);display:flex;flex-direction:column;gap:10px}
.multi-note{margin:0;font-size:11.5px;line-height:1.6;color:var(--muted)}
.multi-note b{color:var(--green)}
 /* 行内操作按钮:统一尺寸与语气,不再是「改/删/存」三个孤字 */
.btn.act{padding:5px 12px;font-size:12px;font-weight:600;border-radius:7px;
  background:var(--surface);border:1px solid var(--line);color:var(--ink-2);
  cursor:pointer;white-space:nowrap;transition:.14s var(--ease)}
.btn.act:hover{border-color:var(--green);color:var(--green);background:var(--green-wash)}
.btn.act.danger{color:var(--bad);border-color:var(--line)}
.btn.act.danger:hover{border-color:var(--bad);background:var(--bad-wash);color:var(--bad)}
/* 看板控制条:同高、同圆角、共享边框的连体组。
   规范里不用胶囊、不发光、不渐变,秩序全靠对齐和一致的高度做出来。 */
/* ===== 动态看板:第一屏满占,往下滚才是拆分 ===== */
/* 第一屏至少铺满视口,内容多了就往下撑——写死 height 会在小屏笔记本上压扁内容 */
.screen{display:flex;flex-direction:column;gap:11px;min-height:calc(100vh - 88px)}
/* 提醒区两栏并排:上下堆叠会吃掉第一屏近三分之一的高度 */
.alerts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.55fr);gap:12px;align-items:start}
.alerts .highlights{display:flex;flex-direction:column;gap:8px}
@media(max-width:1200px){.alerts{grid-template-columns:1fr}}
.screen .map-row{flex:1;min-height:0;overflow:hidden}
.screen .map-row>.panel{display:flex;flex-direction:column;min-height:0}
.screen .map-row .tablewrap,.screen .map-row .mapwrap{flex:1;min-height:0}
.screen .map-row .scroll-420{max-height:none}
.screen #c-map{height:100%;min-height:360px}
.grid-3.deep{margin-top:26px}

/* 提醒区:比普通面板更重的语气,一眼看出这是要处理的事 */
.alert-panel{border-color:#f0d9ae;background:linear-gradient(180deg,var(--amber-wash),var(--surface) 70%)}
.alert-panel .panel-head h2{color:var(--amber-d,#EC6C00)}
.incbox{max-height:88px;overflow-y:auto;padding-top:2px}

/* 地图容器 + 左上角常驻信息面板 */
.mapwrap{position:relative}
.mapinfo{position:absolute;left:14px;top:10px;z-index:3;pointer-events:none;
  background:rgba(255,255,255,.93);border:1px solid var(--line);border-radius:10px;
  padding:11px 14px 10px;min-width:186px;
  box-shadow:0 1px 2px rgba(16,40,30,.05),0 8px 22px -14px rgba(16,40,30,.4)}
.mi-name{font-size:14px;font-weight:700;color:var(--green-deep);margin-bottom:8px}
.mi-grid{display:flex;gap:16px}
.mi-grid div{display:flex;flex-direction:column;gap:1px}
.mi-grid span{font-size:10.5px;color:var(--muted)}
.mi-grid b{font-family:var(--display);font-size:17px;font-weight:700;color:var(--ink);
  line-height:1.15;font-variant-numeric:tabular-nums}
.mi-foot{margin-top:8px;padding-top:7px;border-top:1px solid var(--hair);
  font-size:10.5px;color:var(--muted)}

.empno{margin-left:6px;font-family:var(--display);font-size:11.5px;color:var(--muted)}
.empno.miss{color:var(--amber-d,#EC6C00);background:var(--amber-wash);
  border-radius:4px;padding:1px 6px;font-family:var(--font)}
.panel-head h2 .cnt{margin-left:7px;font-family:var(--display);font-size:14px;
  font-weight:700;color:var(--bad)}
.ctlbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.ctlgroup{display:inline-flex;align-items:stretch;height:34px;
  background:var(--surface);border:1px solid var(--line);border-radius:8px;overflow:hidden}
.ctlgroup>*+*{border-left:1px solid var(--line)}
.ctlgroup select{appearance:none;-webkit-appearance:none;border:0;background:transparent;
  color:var(--ink);font-family:var(--font);font-size:13px;padding:0 26px 0 12px;cursor:pointer;
  background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),
                   linear-gradient(135deg,var(--muted) 50%,transparent 50%);
  background-position:calc(100% - 14px) 15px,calc(100% - 9px) 15px;
  background-size:5px 5px,5px 5px;background-repeat:no-repeat}
.ctlgroup select:hover{background-color:var(--hair)}
.ctlgroup select:focus-visible{outline:2px solid var(--green);outline-offset:-2px}
.seg.flush{border:0;border-radius:0;background:transparent}
.seg.flush button{padding:0 12px;font-size:12.5px}
.ctlbtn{height:34px;display:inline-flex;align-items:center;gap:6px;padding:0 14px;
  background:var(--green);color:#fff;border:1px solid var(--green);border-radius:8px;
  font-size:13px;font-weight:600;cursor:pointer;list-style:none;transition:.14s var(--ease)}
.ctlbtn::-webkit-details-marker{display:none}
.ctlbtn::after{content:'▾';font-size:10px;opacity:.85}
.ctlbtn:hover{background:var(--green-deep);border-color:var(--green-deep)}
.export-menu[open] .ctlbtn{background:var(--green-deep)}
@media(max-width:820px){.ctlbar{justify-content:flex-start}}

.mute-cell .mute-row{display:flex;align-items:center;gap:7px;font-size:12px;
  color:var(--ink-2);white-space:nowrap;padding-top:6px}
.mute-cell input[type=checkbox]{width:15px;height:15px;accent-color:var(--amber);cursor:pointer}
.multi-row{display:grid;grid-template-columns:2fr 1fr;gap:10px}
/* 外层表单给 .teacher 定了 grid-column:span 2(在本文件更靠后的位置,同特异性会赢),
   这里只有两列,跨两列就把学科挤到下一行 —— 必须用更高特异性压回来 */
.create-survey-form .multi-row .teacher{grid-column:auto}
.multi-slots #add-slot,.multi-slots #ap-add{align-self:flex-start}
@media(max-width:820px){.multi-row{grid-template-columns:1fr}}
/* 本季看点条:一行几张小卡,数据自动挑,不是装饰 */
.highlights{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}
.hl{background:var(--surface);border:1px solid var(--line);border-radius:10px;
  padding:11px 14px;display:flex;flex-direction:column;gap:2px;
  box-shadow:0 1px 2px rgba(16,40,30,.04)}
.hl .t{font-size:11px;color:var(--muted)}
.hl b{font-family:var(--display);font-size:19px;font-weight:700;color:var(--ink);line-height:1.2}
.hl .s{font-size:11.5px;color:var(--muted);line-height:1.5}
.hl.good{border-left:3px solid var(--green)}
.hl.good b{color:var(--green)}
.hl.warn{border-left:3px solid var(--amber)}
.hl.bad{border-left:3px solid var(--bad)}
.hl.bad b{color:var(--bad)}

/* 名次升降 */
.mv{font-family:var(--display);font-size:11.5px;font-weight:700}
.mv.up{color:var(--green)}
.mv.down{color:var(--bad)}
.mv.flat{color:var(--muted);font-weight:400}
.mvcell{width:56px}
/* 得分后面跟一个极小的环比数,不抢主数 */
.rank-table .dq{display:block;font-style:normal;font-family:var(--display);
  font-size:10.5px;font-weight:600;color:var(--muted);line-height:1.3}
.rank-table .dq.up{color:var(--green)}
.rank-table .dq.down{color:var(--bad)}
/* 参评率底纹:数据驱动的一条浅绿,不是装饰性色块 */
.rank-table td.bar{position:relative}
.rank-table td.bar::before{content:'';position:absolute;left:0;right:0;top:50%;
  transform:translateY(-50%);height:16px;border-radius:3px;
  background:linear-gradient(90deg,var(--green-wash) var(--pw,0%),transparent var(--pw,0%));
  z-index:0}
.rank-table td.bar.low::before{background:linear-gradient(90deg,var(--amber-wash) var(--pw,0%),transparent var(--pw,0%))}
/* 纯文本节点选不中,数字必须包在 span 里才能压到底纹上层 */
.rank-table td.bar>span{position:relative;z-index:1}
.pagebar{display:flex;align-items:center;gap:12px;padding:12px 2px 2px;font-size:12px;color:var(--muted)}
.pagebar b{color:var(--ink)}
.pagebar .off{pointer-events:none;opacity:.35}
.pagebar .pagehint{margin-left:auto;color:var(--muted)}
.qname{font-size:12px;font-weight:600;color:var(--ink-2);cursor:help}
/* 班级编码一律单行:编码是定长串,断成两行既难认又把行撑高。
   给一个够放最长编码的固定宽度,表格其余列自然收紧。 */
td.qname{white-space:nowrap;width:1%}
td.qname>.sort-link{white-space:nowrap}
.qname .seq{margin-left:6px;font-weight:400;color:var(--muted)}
.th-note{font-weight:400;color:var(--muted);font-size:10.5px;margin-left:5px}
.empty{color:var(--muted);text-align:center;padding:40px 0;font-size:13px}
tr.warnrow{background:var(--amber-wash)}
.fbcell{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.fbcell.pos{color:var(--green-deep)}
.fbcell.neg{color:var(--amber-d)}
.low{color:var(--amber-d);font-weight:600}
.bad-t{color:var(--bad);font-weight:700}
.xls td,.xls th{border:1px solid var(--line)}
.xls th{background:var(--green-wash);color:var(--green-deep)}
.xls tr.hit{background:#f2f9f6}

/* 未完成名单 + 问题反馈流 */
.two{display:grid;grid-template-columns:1fr 1.5fr;gap:14px;margin-bottom:14px}
.two2{display:grid;grid-template-columns:1.4fr 1fr;gap:14px}
@media(max-width:1100px){.two,.two2{grid-template-columns:1fr}}
.scrollbox{max-height:380px;overflow-y:auto;padding:2px 2px 10px}
.inc-group{margin-bottom:10px;font-size:13px;line-height:1.7}
.inc-group b{color:var(--green-deep);margin-right:6px}
.inc-group b .n{color:var(--amber-d);font-family:var(--mono)}
.inc-group span{color:var(--ink-2)}
.fb-item{border:1px solid var(--hair);border-radius:12px;padding:10px 12px;margin-bottom:9px;background:var(--surface-2)}
.fb-item .fb-head{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-bottom:4px}
.fb-item .fb-head b{color:var(--ink);font-size:13px}
.fb-item .fb-head .score{font-family:var(--mono);font-weight:700;padding:0 8px;border-radius:9px}
.fb-item .fb-head .score.good{background:var(--green-wash);color:var(--green)}
.fb-item .fb-head .score.warn{background:var(--amber-wash);color:var(--amber-d)}
.fb-item .fb-head .score.bad{background:var(--bad-wash);color:var(--bad)}
.fb-item .fb-text{font-size:13px;color:var(--ink-2);margin-bottom:7px;word-break:break-all}
.fb-item form{display:flex;gap:6px}
.fb-item form input{flex:1;background:#fff;border:1px solid var(--line);border-radius:7px;padding:5px 9px;font-size:12px;color:var(--ink)}
.fb-item form button{background:var(--green);color:#fff;border:0;border-radius:7px;padding:5px 12px;font-size:12px;cursor:pointer}
.panel .seg.mini{margin-left:auto}
.panel .seg.mini button{padding:3px 10px;font-size:11px}

/* ---------- 登录页 ---------- */
body.auth{display:flex;min-height:100vh;align-items:center;justify-content:center;background:
  radial-gradient(1000px 500px at 80% -20%,var(--green-wash),transparent),
  linear-gradient(160deg,#eef4f1,#f6f8f6)}
.auth-wrap{width:380px;max-width:92vw;padding:40px 34px;background:var(--surface);
  border:1px solid var(--line);border-radius:20px;box-shadow:0 20px 60px rgba(16,40,30,.10)}
.auth-wrap .logo-img{height:32px;margin-bottom:10px}
.auth-wrap .brandbar{margin-bottom:12px}
.auth-wrap .slogan{color:var(--green-l);font-size:12px;letter-spacing:.6px;margin-bottom:26px}
.auth-wrap h1{font-family:var(--display);font-size:22px;margin:0 0 18px;color:var(--green-deep)}
.auth-wrap label{display:block;color:var(--muted);font-size:12px;margin:12px 0 5px}
.auth-wrap input{width:100%;background:#fff;border:1.5px solid #dbe4e0;border-radius:12px;padding:13px 15px;color:var(--ink);font-size:14.5px;transition:border-color .18s,box-shadow .18s}
.auth-wrap .btn{width:100%;margin-top:22px;padding:12px}
.flash{background:var(--amber-wash);border:1px solid #f0d9a8;color:var(--amber-d);padding:9px 12px;border-radius:9px;font-size:13px;margin-bottom:8px}

/* ---------- 内容页 ---------- */
.page{padding:22px 26px}
.page h1{font-family:var(--display);color:var(--green-deep);font-size:22px}
table{width:100%;border-collapse:collapse;font-size:13px}
th,td{padding:9px 11px;text-align:left;border-bottom:1px solid var(--line)}
th{color:var(--muted);font-weight:600;font-size:12px}
.tablewrap{overflow:auto;border-radius:12px;border:1px solid var(--line);background:var(--surface)}
.card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:18px 20px;margin-bottom:16px;box-shadow:var(--shadow)}
.card h2{margin:0 0 14px;font-size:15px;color:var(--green-deep);display:flex;align-items:center;gap:8px}
.card h2 small{color:var(--muted);font-weight:400;font-size:12px}
.fgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;align-items:end}
.fgrid label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--muted)}
.fgrid input,.fgrid select,.fgrid textarea{background:#fff;border:1px solid #dbe4e0;border-radius:11px;padding:11px 13px;color:var(--ink);font-size:13.5px;font-family:var(--font);transition:border-color .18s,box-shadow .18s;min-height:42px}
.fgrid .wide{grid-column:span 4}.fgrid .w2{grid-column:span 2}
.status{padding:2px 9px;border-radius:20px;font-size:11px;font-weight:600;white-space:nowrap}
.status.pending{background:var(--amber-wash);color:var(--amber-d)}
.status.approved{background:var(--green-wash);color:var(--green)}
.status.rejected{background:var(--bad-wash);color:var(--bad)}
/* 开班卷 / 结课卷:同一个班一学期最多两份,贴在班级编码后面 */
.stage-tag{margin-left:6px;padding:1px 6px;border-radius:3px;border:1px solid var(--line);font-size:11px;font-weight:600;white-space:nowrap;color:var(--muted);background:var(--surface)}
.stage-tag.kai{border-color:var(--green);color:var(--green)}
.stage-tag.jie{border-color:var(--amber-d);color:var(--amber-d)}
.btn.ghost{background:transparent;border:1px solid var(--line);color:var(--ink-2)}
.btn.bad{background:var(--bad);color:#fff}.btn.bad:hover{background:#b8333c}
.btn.sm{padding:6px 11px;font-size:12px}
.row-act{display:flex;gap:8px;align-items:center}
@media(max-width:900px){.fgrid{grid-template-columns:repeat(2,1fr)}.fgrid .wide,.fgrid .w2{grid-column:span 2}}

/* ---------- 手机端(≤820px):App 式重设计 ---------- */
@media (max-width:820px){
  html{-webkit-tap-highlight-color:transparent}
  body.app{display:block}
  /* 顶部品牌条 */
  .side{position:sticky;top:0;z-index:70;height:auto;width:auto;
    flex-direction:row;align-items:center;justify-content:space-between;gap:10px;
    padding:9px 14px;border-right:0;border-bottom:1px solid var(--line);
    box-shadow:0 2px 10px rgba(16,40,30,.05)}
  .brand{display:flex;align-items:center}
  .brand .logo-img{height:20px;margin:0}
  .brand .brandbar,.brand .sub,.brand .slogan,.brand .live{display:none}
  /* 底部导航:图标+小字 */
  .side nav{position:fixed;left:0;right:0;bottom:0;z-index:80;
    flex-direction:row;justify-content:space-around;align-items:stretch;gap:0;margin:0;
    padding:5px 4px calc(6px + env(safe-area-inset-bottom));
    background:var(--surface);border-top:1px solid var(--line);
    box-shadow:0 -6px 18px rgba(16,40,30,.07)}
  .side nav a{position:relative;flex:1;flex-direction:column;gap:1px;
    justify-content:center;align-items:center;text-align:center;
    padding:4px 2px;border-radius:10px;line-height:1.2}
  .side nav a .ico{font-size:19px;line-height:1.25}
  .side nav a .lbl{font-size:10px;color:var(--muted)}
  .side nav a.on{box-shadow:none;background:var(--green-wash)}
  .side nav a.on .lbl{color:var(--green);font-weight:600}
  .side nav .badge{position:absolute;top:1px;right:18%;margin:0;padding:0 5px;font-size:10px}
  /* 用户菜单浮层 */
  .who{margin:0;border:0;padding:0;position:relative}
  .who summary > span:last-child{display:none}
  .who .avatar{width:30px;height:30px;font-size:13px}
  .who-panel{position:absolute;right:0;top:40px;width:236px;background:var(--surface);
    border:1px solid var(--line);border-radius:14px;padding:4px 14px 14px;
    box-shadow:0 14px 40px rgba(16,40,30,.18);z-index:90}
  main{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
  /* 页面容器 */
  .dash{padding:12px 12px 20px}
  .page{padding:12px 12px}
  .dash-head{margin-bottom:10px}
  .dash-head h1{font-size:19px}
  .dash-head .meta{font-size:11px;line-height:1.5}
  .page h1{font-size:18px}
  /* 筛选器:网格化两列,分段器整行可滑 */
  .filters{gap:7px}
  /* 窄屏:两个连体组各占一行,导出按钮铺满 */
  .ctlbar{gap:8px}
  .ctlbar .ctlgroup{flex:1 1 100%;justify-content:space-between}
  .ctlbar .seg.flush{flex:1;justify-content:space-around}
  .ctlbar .export-menu{flex:1 1 100%}
  .ctlbar .ctlbtn{width:100%;justify-content:center}
  .filters > .btn,.filters > form{order:5;flex:1 1 28%}
  .filters > form .btn{width:100%}
  .filters label{flex:1 1 29%;display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}
  .filters label select{width:100%}
  .filters .spacer{display:none}
  .filters > select,.filters > input{flex:1 1 45%;min-width:0;background:var(--surface);
    border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-size:13px}
  .filters > a.btn{flex:1 1 100%;text-align:center;padding:11px}
  .filters button.primary{flex:1 1 100%;padding:11px;border:0;background:var(--green);
    color:#fff;border-radius:10px;font-weight:600}
  .seg{display:flex;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .seg button{flex:1;padding:9px 8px;font-size:13px;white-space:nowrap}
  .sel{padding:10px 12px;font-size:13px}
  .btn.sm{padding:9px 8px;font-size:12px;text-align:center}
  /* 图表:单列;手机端保留全国地图 */
  .grid-2,.two,.two2{grid-template-columns:1fr;gap:10px}
  .panel{padding:12px 12px 4px;border-radius:14px}
  .panel-head{gap:8px;flex-wrap:wrap}.panel h2{font-size:15px}.panel-head p{font-size:10px}
  #c-map{height:430px}
  #c-subj{height:280px}
  #c-teacher{height:360px}
  #c-trend{height:250px}
  #c-rounds{height:440px}
  .scrollbox{max-height:320px}
  /* 表格:横向滑动,禁止把字压成竖排 */
  .tablewrap{-webkit-overflow-scrolling:touch}
  .tablewrap table{min-width:680px}
  .tablewrap th,.tablewrap td{white-space:nowrap}
  th,td{padding:7px 8px;font-size:12px}
  td .meta{display:none}          /* 手机上藏问卷长链接,留「填写页/二维码」按钮 */
  .fgrid{grid-template-columns:1fr;gap:10px}
  .fgrid .wide,.fgrid .w2{grid-column:span 1}
  .fgrid input,.fgrid select{padding:11px 12px;font-size:14px}
  .card{padding:14px 14px;border-radius:14px}
  .card h2{font-size:14px}
  .row-act{flex-wrap:wrap}
  .inline input{max-width:150px}
.inline input,.filters input,.filters select{transition:border-color .18s,box-shadow .18s}
  .empty{padding:26px 0}
}

/* ============================================================
   V3 视觉与密度系统：桌面单屏指挥台 + 全站一致表单
   ============================================================ */
:root{
  --bg:#f5f7f6;--surface:#fff;--surface-2:#f8faf9;
  --line:#dfe6e2;--hair:#edf1ef;--ink:#16231d;--ink-2:#43534b;--muted:#74837c;
  --shadow:0 1px 2px rgba(20,43,32,.03),0 8px 26px rgba(20,43,32,.045);
  --control-h:40px;--control-r:8px;
}

/* 所有可见控件只用一套高度、圆角、描边和聚焦反馈 */
:where(input:not([type="hidden"]),select,textarea){
  min-height:var(--control-h);border:1px solid #d4ddd8;border-radius:var(--control-r);
  background:#fff;color:var(--ink);padding:0 11px;font:500 13px/1.2 var(--font);
  box-shadow:0 1px 1px rgba(20,43,32,.025);transition:border-color .16s,box-shadow .16s,background .16s
}
textarea{height:auto;padding-top:10px;padding-bottom:10px}
:where(input:not([type="hidden"]),select,textarea):hover{border-color:#b7c7c0}
:where(input:not([type="hidden"]),select,textarea):focus{outline:0;border-color:var(--green)!important;box-shadow:0 0 0 3px rgba(0,105,95,.11)!important}
:where(input:not([type="hidden"]),select,textarea):disabled{background:#f1f4f2;color:#87958e;box-shadow:none}
:where(button,.btn){font-family:var(--font)}
.btn,.filters button.primary,.create-survey-form button.primary{
  min-height:var(--control-h);display:inline-flex;align-items:center;justify-content:center;
  border-radius:var(--control-r);padding:0 15px;border:1px solid transparent;font-weight:700;letter-spacing:.01em
}
.btn.ghost{background:#fff;border-color:#d4ddd8;color:var(--ink-2)}
.btn.ghost:hover{background:var(--green-wash);border-color:#abcfc5;color:var(--green)}
.btn.sm{min-height:36px;padding:0 12px}
.filters{gap:10px;align-items:flex-end}
.filters .spacer{flex:1}
.filters label{display:flex;flex-direction:column;gap:5px;color:var(--muted);font-size:11px;font-weight:600;letter-spacing:.02em}
.filters>input,.filters>select{min-width:118px}
.inline input{min-height:32px;height:32px;border-radius:7px;padding:0 9px}
.inline button,.row-act button{min-height:32px;border:1px solid #d4ddd8;border-radius:7px;padding:0 10px;background:#fff;color:var(--ink-2);font-weight:650;cursor:pointer}
.inline button:hover,.row-act button:hover{border-color:#abcfc5;color:var(--green);background:var(--green-wash)}

/* 更安静、更紧凑的系统框架 */
body.app{grid-template-columns:208px minmax(0,1fr)}
.side{padding:18px 14px;gap:16px}
.brand .logo-img{height:25px;margin-bottom:8px}
.brand .sub .prod{font-size:11.5px}.brand .sub .dept{font-size:10px}
.brand .slogan .cn{font-size:10px}.brand .slogan .en{font-size:7.5px}
.side nav{gap:4px}
.side nav a{min-height:40px;padding:8px 10px;border-radius:8px;font-size:13px}
.side nav a.on{box-shadow:inset 2px 0 0 var(--green);background:#eaf3f0}
.side nav .ico{width:20px;text-align:center;filter:saturate(.78)}
.page{padding:22px 24px 36px;max-width:1680px;margin:0 auto}
.page>h1{margin:0 0 5px;font-size:21px;letter-spacing:-.01em}
.card,.panel{border-radius:12px;box-shadow:var(--shadow)}
.card{padding:17px 18px;margin-bottom:13px}
.card h2,.reveal h2{margin:0 0 12px}
.tablewrap{border-radius:10px}
th{background:#f8faf9;color:#66766e;font-weight:700}
th,td{padding:9px 10px}

/* 班级页：新建表单按业务分组，不再挤成一排 */
.create-survey-panel{margin:18px 0;padding:16px 18px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}
.create-survey-panel h2{font-size:15px;color:var(--green-deep)}
.create-survey-form{display:grid;grid-template-columns:90px 90px minmax(170px,1.2fr) minmax(140px,.9fr) 105px minmax(200px,1.4fr) minmax(105px,.65fr);gap:11px 12px;align-items:end}
.create-survey-form .field{display:flex;flex-direction:column;gap:5px;min-width:0}
.create-survey-form .field>span{font-size:11px;font-weight:650;color:var(--muted);letter-spacing:.02em}
.create-survey-form .field>span em{font-style:normal;font-weight:500;color:#99a59f}
.create-survey-form .field :where(input,select){width:100%;min-width:0}
.create-survey-form .teacher{grid-column:span 2}
.create-survey-form .create-submit{align-self:end;background:var(--green);color:#fff;cursor:pointer}
.classes-page>.meta{max-width:1120px;line-height:1.7}
.classes-page .tablewrap{scrollbar-color:#b9ccc4 #f1f5f3;scrollbar-width:thin}
.classes-page .tablewrap table{min-width:1220px}
.classes-page .tablewrap th,.classes-page .tablewrap td{padding:9px 8px;white-space:nowrap;vertical-align:middle}
.classes-page .tablewrap th:nth-child(2),.classes-page .tablewrap td:nth-child(2){width:132px;min-width:110px;max-width:132px;white-space:normal;overflow-wrap:anywhere;line-height:1.55}
.classes-page .tablewrap .btn.act{padding:6px 10px;font-size:13px;min-height:34px}
.classes-page .tip{border-bottom:0;padding-bottom:0}
.classes-page .tablewrap .tip::after{display:none}
.classes-page .tablewrap .tip:hover::after,.classes-page .tablewrap .tip:focus-visible::after{display:block}
.classes-page .tablewrap th .tip::after{left:auto;right:0}
.classes-page .tablewrap .fbcell{width:108px;min-width:108px;max-width:108px;white-space:normal;overflow-wrap:anywhere}

@media (max-width:1100px){
  .create-survey-form{grid-template-columns:repeat(3,minmax(0,1fr))}
  .create-survey-form .teacher{grid-column:span 2}
}

@media (max-width:820px){
  body.app{display:block}
  .create-survey-panel{padding:14px;margin:14px 0}
  .create-survey-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .create-survey-form .teacher{grid-column:span 2}
  .create-survey-form .create-submit{grid-column:span 2;width:100%}
  :where(input:not([type="hidden"]),select,textarea){font-size:14px}
  .side nav .ico{display:none}.side nav a{min-height:44px}
}

/* ============================================================
   问卷洞察 — 与全站同一套浅色品牌规范(手册禁止深色炫技仪表盘)
   ============================================================ */
.nav-group{margin:12px 10px 3px;color:var(--muted);font-size:11px;font-weight:700}

.insight-shell{padding:24px 26px 40px;max-width:1560px;margin:0 auto;
  display:flex;flex-direction:column;gap:12px}
.insight-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}
.insight-head h1{margin:0;font-size:26px;color:var(--green-deep)}
.insight-head p{margin:4px 0 0;color:var(--muted);font-size:12px}
.insight-head-actions{display:flex;gap:8px}

.insight-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;
  align-items:end;padding:14px 16px;border:1px solid var(--line);border-radius:12px;
  background:var(--surface);box-shadow:var(--shadow)}
.insight-filters label{display:flex;flex-direction:column;gap:4px;min-width:0}
.insight-filters label>span{color:var(--muted);font-size:11.5px}
.insight-filters :where(input,select){width:100%;min-width:0;min-height:38px;
  border:1px solid #dbe4e0;border-radius:8px;padding:0 11px;background:#fff;
  color:var(--ink);font-size:13px;font-family:var(--font)}
.insight-filters .btn{min-height:38px;align-self:end}
.insight-filters .filter-check{flex-direction:row;align-items:center;gap:8px;align-self:end;
  min-height:38px;padding:0 10px;border:1px solid var(--line);border-radius:8px;
  background:#fff;cursor:pointer;user-select:none;transition:.15s}
.insight-filters .filter-check input{width:15px;height:15px;min-height:0;margin:0;
  accent-color:var(--green);cursor:pointer}
.insight-filters .filter-check>span{color:var(--ink-2);font-size:13px}
.insight-filters .filter-check:has(input:checked){border-color:var(--green);background:var(--green-wash)}
.insight-filters .filter-check:has(input:checked)>span{color:var(--green);font-weight:700}
.insight-filters .filter-check:focus-within{outline:2px solid var(--green);outline-offset:1px}
.insight-search{grid-column:span 2}

.insight-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;
  border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--line)}
.insight-kpis>div{display:flex;align-items:baseline;justify-content:space-between;gap:8px;
  padding:12px 16px;background:var(--surface)}
.insight-kpis span{color:var(--muted);font-size:12px}
.insight-kpis b{color:var(--ink);font:700 22px var(--display);font-variant-numeric:tabular-nums}
.insight-kpis .risk b{color:var(--bad)}.insight-kpis .pending b{color:var(--amber-d)}

.insight-workspace{display:grid;grid-template-columns:minmax(320px,.8fr) minmax(0,1.6fr);gap:12px}
.insight-list,.insight-detail{border:1px solid var(--line);border-radius:12px;
  background:var(--surface);box-shadow:var(--shadow);overflow:hidden;min-width:0}
.insight-list{display:flex;flex-direction:column;max-height:720px}
.insight-pane-head{display:flex;align-items:center;justify-content:space-between;
  padding:12px 14px;border-bottom:1px solid var(--line);background:var(--surface-2)}
.insight-pane-head>div{display:flex;flex-direction:column}
.insight-pane-head b{font-size:13px;color:var(--green-deep)}
.insight-pane-head span{color:var(--muted);font-size:11px}
.insight-pane-head strong{color:var(--ink);font:700 18px var(--display)}
.insight-list-scroll{min-height:0;overflow:auto;padding:8px}

.survey-row{display:block;padding:11px 12px;margin-bottom:6px;border:1px solid var(--hair);
  border-radius:9px;background:#fff;transition:.14s}
.survey-row:hover{border-color:#bcd8d0;background:var(--surface-2)}
.survey-row.on{border-color:var(--green);background:var(--green-wash);box-shadow:inset 3px 0 0 var(--green)}
.survey-row-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px}
.survey-row-top>span:last-child{color:var(--muted);font-size:11px}
.survey-status{display:inline-flex;align-items:center;border-radius:999px;padding:2px 8px;
  font-size:11px;font-weight:700}
.survey-status.risk,.survey-status.error{background:var(--bad-wash);color:var(--bad)}
.survey-status.pending{background:var(--amber-wash);color:var(--amber-d)}
.survey-status.stable{background:var(--green-wash);color:var(--green)}
.survey-row>b{display:block;color:var(--ink);font-size:12.5px;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis}
.survey-teachers{margin-top:3px;color:var(--muted);font-size:11.5px;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis}
.survey-teachers i:after{content:" / ";color:#b6c5be}
.survey-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:8px}
.survey-metrics span{display:flex;align-items:baseline;gap:4px}
.survey-metrics small{color:var(--muted);font-size:10.5px}
.survey-metrics strong{color:var(--ink);font:700 12px var(--display);font-variant-numeric:tabular-nums}
.survey-metrics strong.good{color:var(--green)}
.survey-metrics strong.bad{color:var(--bad)}
.survey-metrics strong.warn{color:var(--amber-d)}

.insight-detail{display:flex;flex-direction:column}
.detail-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;
  padding:14px 16px 12px;border-bottom:1px solid var(--line)}
.detail-title>div{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11.5px}
.detail-title h2{margin:6px 0 2px;color:var(--ink);font-size:16px;line-height:1.35;word-break:break-all}
.detail-title p{margin:0;color:var(--muted);font-size:11.5px}
.detail-actions{display:flex;gap:6px;flex:0 0 auto}
.detail-actions .btn{min-height:32px;padding:0 10px;font-size:12px;display:inline-flex;align-items:center}
.detail-kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:1px;background:var(--line);
  border-bottom:1px solid var(--line)}
.detail-kpis>div{padding:10px 14px;background:var(--surface)}
.detail-kpis span{display:block;color:var(--muted);font-size:11.5px}
.detail-kpis b{display:block;color:var(--ink);font:700 20px var(--display);font-variant-numeric:tabular-nums}
.detail-kpis .good b{color:var(--green)}.detail-kpis .bad b{color:var(--bad)}
.detail-scroll{min-height:0;overflow:auto;padding:14px}
.detail-section{padding:14px 16px;margin-bottom:12px;border:1px solid var(--hair);
  border-radius:10px;background:var(--surface-2)}
.detail-section:last-child{margin-bottom:0}
.detail-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px}
.detail-section-head h3{margin:0;color:var(--green-deep);font-size:14px}
.detail-section-head p{margin:0;color:var(--muted);font-size:11.5px}

.question-list{display:grid;gap:10px}
.question-row{display:grid;grid-template-columns:minmax(160px,1fr) minmax(0,1.4fr) 120px;gap:12px;align-items:center}
.question-label{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;gap:6px}
.question-label b{color:var(--ink-2);font-size:12px;font-weight:400}
.question-label strong{color:var(--ink);font:700 13px var(--display);text-align:right;font-variant-numeric:tabular-nums}
.question-bar{display:flex;height:8px;border-radius:999px;overflow:hidden;background:var(--hair)}
.question-bar i{display:block;height:100%}
.question-bar .high{background:var(--green-l)}
.question-bar .mid{background:#c3d3cc}
.question-bar .low{background:var(--bad)}
.question-values{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
.question-values span{color:var(--muted);font:700 11.5px var(--display);text-align:right;font-variant-numeric:tabular-nums}
.question-values .high{color:var(--green)}.question-values .low{color:var(--bad)}

.teacher-snapshots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.teacher-snapshots>div{position:relative;padding:12px 14px;border:1px solid var(--hair);
  border-radius:9px;background:#fff}
.teacher-snapshots>div>div{display:flex;flex-direction:column}
.teacher-snapshots b{color:var(--ink);font-size:13px}
.teacher-snapshots span{color:var(--muted);font-size:11.5px}
.teacher-snapshots>div>strong{position:absolute;right:14px;top:11px;color:var(--green);
  font:700 20px var(--display);font-variant-numeric:tabular-nums}
.teacher-snapshots p{margin:7px 0 0;color:var(--ink-2);font-size:11.5px}

.feedback-section{margin-bottom:0}
.voice-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.voice-item{padding:11px 12px;border:1px solid var(--hair);border-radius:9px;background:#fff}
.voice-item.negative{border-left:3px solid var(--bad)}
.voice-item.positive{border-left:3px solid var(--green-l)}
.voice-item>div{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px}
.voice-item time{margin-left:auto}
.voice-item strong{color:var(--ink);font:700 12px var(--display)}
.voice-item p{margin:6px 0 0;color:var(--ink-2);font-size:12.5px;line-height:1.6;word-break:break-word}
.voice-item[hidden]{display:none}

.detail-empty{padding:70px 20px;display:flex;flex-direction:column;align-items:center;
  justify-content:center;color:var(--muted)}
.detail-empty h2{margin:0 0 4px;color:var(--ink);font-size:16px}
.detail-empty p{margin:0;font-size:12.5px}

@media (max-width:1100px){
  .insight-workspace{grid-template-columns:1fr}
  .insight-list{max-height:520px}
  .insight-kpis{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:820px){
  .insight-shell{padding:16px 14px 28px}
  .insight-head{align-items:flex-start}
  .insight-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .insight-search{grid-column:span 2}
  .question-row{grid-template-columns:1fr}
  .question-values{text-align:left}
  .teacher-snapshots,.voice-list{grid-template-columns:1fr}
  .detail-hero{flex-direction:column}
  .detail-kpis{grid-template-columns:repeat(2,1fr)}
  .side nav .nav-group{display:none}
}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;
    transition-duration:.001ms!important;scroll-behavior:auto!important}
}

/* ---------- NPS 通晒(日维度) ---------- */
.review-page{max-width:1560px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.review-page .dash-head{margin:0}
.review-page .filters{padding:12px 14px;border:1px solid var(--line);border-radius:12px;
  background:var(--surface);box-shadow:var(--shadow)}
.review-page .filters label{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted)}
.review-page .filters input[type=date]{border:1px solid #dbe4e0;border-radius:8px;
  padding:7px 10px;font-size:13px;font-family:var(--font);background:#fff;color:var(--ink)}
.speech{width:100%;border:1px solid var(--line);border-radius:10px;padding:14px 16px;
  background:var(--surface-2);color:var(--ink-2);font-family:var(--font);font-size:13px;
  line-height:1.85;resize:vertical}
.center-block{border:1px solid var(--hair);border-radius:10px;margin-bottom:10px;background:#fff}
.center-block:last-child{margin-bottom:0}
.center-block>summary{list-style:none;cursor:pointer;padding:11px 14px;display:flex;
  align-items:baseline;gap:12px;flex-wrap:wrap;border-radius:10px}
.center-block>summary::-webkit-details-marker{display:none}
.center-block>summary:hover{background:var(--surface-2)}
.center-block[open]>summary{border-bottom:1px solid var(--hair);border-radius:10px 10px 0 0}
.center-block>summary b{color:var(--green-deep);font-size:14px}
.center-block>summary span{color:var(--muted);font-size:12px}
.center-block>summary .low{font-style:normal}
.center-block .tablewrap{border:0;border-radius:0 0 10px 10px}
.review-page .scrollbox{max-height:460px}

/* ---------- 修改问卷弹窗 ---------- */
.editbox{border:1px solid var(--line);border-radius:12px;padding:22px 24px;width:min(560px,92vw);
  background:var(--surface);color:var(--ink);box-shadow:0 6px 18px rgba(16,40,30,.10)}
.editbox::backdrop{background:rgba(16,40,30,.35)}
.editbox h2{margin:0 0 16px;font-size:16px}
.editbox h2 small{display:block;color:var(--muted);font-weight:400;font-size:11.5px;
  margin-top:4px;word-break:break-all}
.editbox .fgrid{grid-template-columns:1fr 1fr;margin-bottom:12px}
.editbox .meta{margin:6px 0 0}
.editbox-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
.editbox .btn.ghost{background:#fff;border:1px solid var(--line);color:var(--ink-2)}
.editbox .btn.ghost:hover{border-color:var(--green);color:var(--green);background:var(--green-wash)}

/* 导出菜单里的中心选择:和菜单里的按钮同宽同高,不破坏节奏 */
.export-scope{display:flex;flex-direction:column;gap:4px;padding:6px 10px 8px;
  font-size:11.5px;color:var(--muted)}
.export-scope select{width:100%;padding:6px 8px;font-size:12.5px;font-family:var(--font);
  color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:7px}


/* 新建问卷 / 新建问卷申请 共用的分组表单外壳(班级页 + 申请页)。
   放在文件末尾,盖住上面那套一行挤到底的旧栅格。 */
.app .create-survey-panel{padding:24px;margin:24px 0 30px;border-radius:14px}.app .create-survey-panel h2{margin:0 0 6px;font-size:18px}.create-survey-intro{margin:0 0 22px;color:#718278;font-size:13px;line-height:1.7}.app .create-survey-form{display:block;max-width:1120px}.create-form-section{padding:0;margin:0 0 22px;border:0;min-width:0}.create-form-section legend{padding:0;margin-bottom:12px;color:#496858;font-size:13px;font-weight:600}.create-basic-grid{display:grid;grid-template-columns:100px 100px minmax(140px,1fr) minmax(180px,1.35fr) 120px;gap:12px}.create-teacher-grid{display:grid;grid-template-columns:minmax(230px,390px) minmax(140px,190px);gap:12px}.app .create-survey-form .field{grid-column:auto;gap:7px}.app .create-survey-form .field>span{font-size:12px;font-weight:500}.app .create-survey-form .field :where(input,select){min-height:42px;padding:9px 12px;border:1px solid #d7e3dc;border-radius:8px;background:#fff;font-size:14px}.app .create-survey-form .multi-toggle{margin:14px 0 0;font-size:13px;font-weight:400}.app .create-survey-form .multi-toggle input{width:16px;min-height:16px;height:16px}.app .multi-slots{margin-top:16px;padding:16px;background:#f6faf7;max-width:720px}.app .multi-row{grid-template-columns:minmax(230px,1fr) 180px;margin:12px 0}.app .multi-row[hidden],.app .multi-slots[hidden]{display:none}.create-actions{border-top:1px solid #e6ede8;padding-top:18px;display:flex;align-items:center;gap:16px}.app .create-submit{width:auto;min-width:130px;padding:10px 22px;border-radius:8px;border:0;min-height:42px}.create-actions p{margin:0;font-size:12px;color:#7b8d80;line-height:1.7}
@media(max-width:1000px){.create-basic-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.create-basic-grid .code{grid-column:span 2!important}}
@media(max-width:600px){.app .create-survey-panel{padding:18px}.create-basic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.create-basic-grid .center,.create-basic-grid .code{grid-column:1/-1!important}.create-teacher-grid,.app .multi-row{grid-template-columns:minmax(0,1fr)}.create-actions{align-items:stretch;flex-direction:column;gap:10px}.app .create-submit{width:100%}.app .create-survey-form .teacher{grid-column:auto}}

/* 带解释的词:小手 + 虚线底,hover/聚焦弹首页地标同款说明卡(不要问号图标,他定的) */
.tip{position:relative;cursor:pointer;font-weight:inherit;border-bottom:1px dashed #9db5aa;padding-bottom:1px}
.tip:hover,.tip:focus-visible{border-bottom-color:var(--green,#00695F);color:var(--green,#00695F);outline:none}
.tip::after{content:attr(data-tip);position:absolute;left:0;top:calc(100% + 8px);z-index:30;width:max-content;max-width:280px;
  padding:12px 14px;border:1px solid #d8e5dc;border-radius:12px;background:rgba(255,255,252,.98);
  box-shadow:0 12px 36px #244c3824;color:#284e43;font:400 13px/1.7 var(--font);white-space:normal;text-align:left;
  opacity:0;transform:translateY(-4px);pointer-events:none;transition:opacity .15s,transform .15s}
.tip:hover::after,.tip:focus-visible::after{opacity:1;transform:none}

/* 左侧问卷列表：切换排序保留当前问卷及筛选。 */
.insight-list-sort{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:10px 14px;border-bottom:1px solid var(--line)}
.insight-list-sort fieldset{display:flex;flex-wrap:wrap;gap:8px 14px;padding:0;border:0;margin:0;min-width:0}
.insight-list-sort label{display:inline-flex;align-items:center;gap:5px;font-size:12px;white-space:nowrap}
.insight-list-sort input[type=radio]{width:14px;height:14px;min-height:14px;accent-color:var(--green);padding:0;margin:0}
.insight-list-sort select{width:auto;min-height:28px;height:28px;padding:2px 5px;font-size:12px}
.insight-list-sort p{flex-basis:100%;margin:0;font-size:11px;line-height:1.6;color:var(--muted)}

/* 与问卷申请共用表格字体、表头、边框和按钮，管理页仅收紧列间距。 */
.classes-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.classes-heading h1{margin:0}.classes-page-actions,.classes-filter-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.classes-page-actions .btn{white-space:nowrap}.classes-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}
.classes-filters>label{flex:0 1 128px}.classes-filters>.insight-search{flex:1 1 220px}.classes-filter-actions{flex:0 0 auto}
.classes-filter-actions .btn{min-width:88px}.classes-filters .survey-sort{margin-top:2px;padding-top:10px}
.classes-page .survey-time time{white-space:nowrap}.survey-time time span{display:block;font-size:11px;color:var(--muted)}
.classes-page .tablewrap .survey-teacher-cell{white-space:normal;min-width:86px}.survey-teacher-cell>.meta{display:block;white-space:nowrap;font-size:12px}
.survey-row-actions{display:flex;gap:6px;align-items:center;flex-wrap:nowrap}
@media(max-width:700px){.classes-heading{align-items:flex-start}.classes-page-actions{width:100%}.classes-filters>label{flex:1 1 120px}.classes-filters>.insight-search{flex-basis:100%}.classes-filter-actions{justify-content:flex-end;width:100%}}
