/* 智批卷 · 工作台样式（自己的设计：墨蓝 + 琥珀，高信息密度，不做大面积装饰） */
* { box-sizing: border-box; }
:root {
  --ink: #14202e; --ink2: #1e2f42; --line: #d8dee7; --paper: #f6f8fb;
  --fg: #1b2634; --muted: #6b7889; --amber: #c9761b; --amber2: #f0a83c;
  --ok: #1f7a4d; --warn: #b3541e; --bad: #a8322b;
}
html, body { margin: 0; height: 100%; background: var(--paper); color: var(--fg);
  font: 14px/1.5 system-ui, "Microsoft YaHei", "PingFang SC", sans-serif; }
.app { display: grid; grid-template-columns: 168px 1fr; grid-template-rows: 54px 1fr;
  grid-template-areas: "top top" "side stage"; height: 100%; }

.topbar { grid-area: top; display: flex; align-items: center; gap: 18px; padding: 0 16px;
  background: var(--ink); color: #eef2f7; }
.brand { display: flex; align-items: baseline; gap: 8px; }
.brand .mark { width: 24px; height: 24px; border-radius: 5px; background: var(--amber);
  color: #fff; display: grid; place-items: center; font-weight: 700; align-self: center; }
.brand b { font-size: 16px; letter-spacing: .5px; }
.brand em { font-style: normal; color: #93a4b8; font-size: 12px; }
.exam-pick { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.exam-pick select { background: var(--ink2); color: #e8eef5; border: 1px solid #33475e;
  border-radius: 6px; padding: 6px 10px; min-width: 220px; }
.status { font-size: 12px; color: #9fb2c6; min-width: 190px; text-align: right; }
.status.on { color: #7fd6a2; } .status.off { color: #e7a378; }

.side { grid-area: side; background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 10px 8px; }
.tab { text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 7px;
  color: var(--muted); cursor: pointer; font-size: 14px; }
.tab:hover { background: #eef2f7; color: var(--fg); }
.tab.active { background: var(--ink); color: #fff; }
.side-foot { margin-top: auto; display: flex; gap: 8px; }
.kpi { flex: 1; background: #eef2f7; border-radius: 8px; padding: 8px; text-align: center; }
.kpi span { display: block; font-size: 20px; font-weight: 700; color: var(--ink); }
.kpi i { font-style: normal; font-size: 11px; color: var(--muted); }

.stage { grid-area: stage; overflow: auto; padding: 12px; }
.view { display: none; gap: 12px; height: 100%; }
.view.active { display: flex; }
.pane { background: #fff; border: 1px solid var(--line); border-radius: 10px;
  display: flex; flex-direction: column; min-width: 0; }
.pane.canvas-pane { flex: 1 1 58%; }
.pane.list-pane { flex: 1 1 42%; }
.pane.wide { flex: 1; }
.pane-hd { display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-bottom: 1px solid var(--line); }
.pane-hd h2 { margin: 0; font-size: 15px; }
.tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.lead { color: var(--muted); font-size: 13px; padding: 10px 14px; margin: 0; }

button { border-radius: 6px; padding: 7px 13px; cursor: pointer; font-size: 13px; }
button.primary { background: var(--amber); border: 1px solid #a95f10; color: #fff; font-weight: 600; }
button.primary:disabled { opacity: .45; cursor: not-allowed; }
button.ghost { background: #fff; border: 1px solid var(--line); color: var(--fg); }
input[type=file] { font-size: 12px; color: var(--muted); max-width: 190px; }

.canvas-wrap { flex: 1; overflow: auto; background: #eef1f5; padding: 10px; }
canvas { background: #fff; box-shadow: 0 1px 4px rgba(20,32,46,.18); cursor: crosshair;
  display: block; margin: 0 auto; }
.progress { display: flex; align-items: center; gap: 10px; padding: 8px 14px;
  border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.bar { flex: 1; height: 6px; background: #e4e9f0; border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--amber2), var(--amber)); }

.rows { overflow: auto; max-height: 46%; border-bottom: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid #f0f3f7;
  cursor: pointer; font-size: 13px; }
.row:hover, .row.sel { background: #f4f7fb; }
.row .who { font-weight: 600; min-width: 74px; }
.row .sc { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700; }
.tag { font-size: 11px; padding: 2px 7px; border-radius: 20px; background: #eef2f7; color: var(--muted); }
.tag.ok { background: #e3f3ea; color: var(--ok); }
.tag.human { background: #fbeee3; color: var(--warn); }
.tag.err { background: #fbe9e8; color: var(--bad); }

.detail { overflow: auto; padding: 10px 14px; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th, td { border-bottom: 1px solid #eef2f7; padding: 5px 6px; text-align: left;
  font-variant-numeric: tabular-nums; }
th { color: var(--muted); font-weight: 600; background: #fafbfd; position: sticky; top: 0; }
td input { width: 100%; border: 1px solid transparent; background: transparent; padding: 3px 5px;
  border-radius: 4px; font: inherit; }
td input:hover { border-color: var(--line); background: #fff; }
td .fill { color: var(--muted); font-size: 11px; }
.problems { padding: 0 14px; color: var(--bad); font-size: 12.5px; }
.problems:empty { display: none; }
.fld { display: flex; flex-direction: column; gap: 4px; padding: 8px 14px; }
.fld span { font-size: 12px; color: var(--muted); }
.fld input, .fld select { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px;
  font: inherit; max-width: 620px; }
#view-settings button { margin: 4px 14px 14px; }

/* 登录页 */
.authbody { display: grid; place-items: center; background: linear-gradient(160deg,#14202e,#22384f 60%,#2f4a63); }
.authcard { width: 360px; background:#fff; border-radius:14px; padding:26px 24px 20px;
  box-shadow:0 18px 48px rgba(8,18,28,.45); }
.authbrand { display:flex; align-items:center; gap:9px; }
.authbrand .mark { width:30px;height:30px;border-radius:7px;background:var(--amber);color:#fff;
  display:grid;place-items:center;font-weight:700; }
.authbrand b { font-size:19px; }
.authsub { color:var(--muted); font-size:12.5px; margin:6px 0 16px; }
.tabs { display:flex; gap:6px; margin-bottom:6px; }
.tb { flex:1; background:#eef2f7; border:0; padding:8px; border-radius:7px; color:var(--muted); cursor:pointer; }
.tb.active { background:var(--ink); color:#fff; }
.authcard .fld { padding:6px 0; }
button.wide { width:100%; margin-top:10px; padding:10px; }
.authmsg { min-height:20px; font-size:12.5px; color:var(--warn); margin-top:10px; }
.authfoot { font-size:11.5px; color:var(--muted); margin:14px 0 0; }
.userchip { font-size:12px; color:#cfe0f0; display:flex; gap:8px; align-items:center; }
.userchip b { color:#fff; font-weight:600; }
.userchip a { color:#9fc0dd; cursor:pointer; text-decoration:underline; }
