/* ============================================================
   大五人格在线测评 · 前端样式（答题端 + 管理后台）
   浅色商务风：品牌深蓝 #14315C / 主题蓝 #2563EB
   ============================================================ */
:root {
  --bg: #F2F5FA;
  --card: #FFFFFF;
  --ink: #14315C;
  --ink2: #3E5273;
  --muted: #8494AD;
  --line: #E4EAF3;
  --brand: #2563EB;
  --brand-d: #1D4ED8;
  --brand-l: #EAF0FE;
  --ok: #0E9F6E;
  --warn: #F59E0B;
  --bad: #DC2626;
  --shadow: 0 2px 10px rgba(20, 49, 92, .06);
  --shadow-l: 0 10px 34px rgba(20, 49, 92, .13);
  --r: 14px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button { font-family: inherit; }

/* ---------------- 顶栏 ---------------- */
.bar {
  position: sticky; top: 0; z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 10px 16px 0;
}
.bar-in { display: flex; align-items: center; gap: 10px; max-width: 780px; margin: 0 auto; }
.logo {
  font-weight: 700; font-size: 15px; color: var(--ink);
  letter-spacing: .3px; display: flex; align-items: center; gap: 7px;
}
.logo::before {
  content: ""; width: 9px; height: 9px; border-radius: 3px;
  background: linear-gradient(135deg, #2563EB, #60A5FA);
}
.bar-sp { flex: 1; }
.bar-num { font-size: 13px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.bar-num b { color: var(--brand); font-size: 15px; }

.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink2);
  padding: 5px 12px; border-radius: 999px; font-size: 13px; cursor: pointer;
  transition: .15s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }

.pb { height: 3px; background: var(--line); border-radius: 2px; margin: 10px auto 0; max-width: 780px; overflow: hidden; }
.pb i { display: block; height: 100%; width: 0; border-radius: 2px;
  background: linear-gradient(90deg, #2563EB, #60A5FA); transition: width .28s ease; }

/* ---------------- 屏 ---------------- */
.screen { max-width: 780px; margin: 0 auto; padding: 22px 16px 40px; }
.screen[hidden] { display: none !important; }

/* ---------------- 登记页 ---------------- */
.hero {
  background: linear-gradient(150deg, #14315C 0%, #1E4B93 52%, #2563EB 100%);
  border-radius: 18px; padding: 26px 22px 24px; color: #fff;
  box-shadow: 0 12px 30px rgba(20, 49, 92, .22);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -46px; top: -46px;
  width: 168px; height: 168px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.hero h1 { margin: 0 0 8px; font-size: 22px; letter-spacing: .5px; }
.hero p { margin: 0; font-size: 13.5px; line-height: 1.75; color: rgba(255, 255, 255, .86); }
.hero .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; position: relative; }
.hero .tags span {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .22);
}

.card {
  background: var(--card); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 20px; margin-top: 16px;
}
.card h2 { margin: 0 0 4px; font-size: 16px; }
.card .hint { margin: 0 0 16px; font-size: 13px; color: var(--muted); }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; color: var(--ink2); margin-bottom: 6px; font-weight: 500; }
.field label .req { color: var(--bad); margin-left: 3px; }
.field input, .field select {
  width: 100%; padding: 11px 13px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 10px; background: #FBFCFE;
  color: var(--ink); outline: none; transition: .15s; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%238494AD' stroke-width='1.6' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.field input:focus, .field select:focus { border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.field.err input { border-color: var(--bad); background: #FFF7F7; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn {
  width: 100%; padding: 13px 18px; border: none; border-radius: 11px;
  font-size: 15.5px; font-weight: 600; cursor: pointer; transition: .16s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn.primary { background: linear-gradient(135deg, #2563EB, #1D4ED8); color: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .3); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(37, 99, 235, .38); }
.btn.primary:disabled { opacity: .55; box-shadow: none; transform: none; cursor: default; }
.btn.ghost { background: #fff; color: var(--ink2); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn:disabled { opacity: .4; cursor: default; transform: none !important; box-shadow: none !important; }

.fineprint { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 12px 0 0; text-align: center; }

/* ---------------- 答题页 ---------------- */
.qhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.qno { font-size: 13.5px; color: var(--ink2); }
.qno b { font-size: 19px; color: var(--brand); font-variant-numeric: tabular-nums; }
.qtime { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.qtip { margin: 6px 0 16px; font-size: 13.5px; color: var(--ink2); }
.qtip b { color: var(--brand); }

.opts { display: flex; flex-direction: column; gap: 11px; }

.opt {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left;
  background: #fff; border: 1.5px solid var(--line); border-radius: 13px;
  padding: 15px 16px; cursor: pointer; transition: .16s; color: var(--ink);
  font-size: 15px; line-height: 1.6; box-shadow: var(--shadow);
}
.opt:hover { border-color: #B9CDF5; transform: translateY(-1px); }
.opt:active { transform: scale(.99); }
.opt .k {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 8px; margin-top: 1px;
  background: var(--brand-l); color: var(--brand); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; transition: .16s;
}
.opt.sel { border-color: var(--brand); background: #F7FAFF; }
.opt.sel .k { background: var(--brand); color: #fff; }
.opt.sel .k::after { content: "✓"; font-size: 13px; }
.opt.sel .k span { display: none; }
.opt .tx { flex: 1; }

.qnav { display: grid; grid-template-columns: 1fr 1.4fr; gap: 11px; margin-top: 20px; }
.qnav .btn { padding: 12px; font-size: 14.5px; }

.kbd-hint { text-align: center; font-size: 12px; color: var(--muted); margin-top: 12px; }
.kbd-hint kbd {
  background: #fff; border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 5px; padding: 1px 6px; font-size: 11.5px; color: var(--ink2);
  font-family: inherit;
}

/* ---------------- 答题卡 ---------------- */
.sheet-mask {
  position: fixed; inset: 0; background: rgba(20, 49, 92, .4); z-index: 60;
  backdrop-filter: blur(2px);
}
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
  background: #fff; border-radius: 20px 20px 0 0; padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
  max-height: 72vh; overflow-y: auto; box-shadow: var(--shadow-l);
  animation: up .22s ease;
  max-width: 780px; margin: 0 auto;
}
@keyframes up { from { transform: translateY(30px); opacity: .4; } }
.sheet h3 { margin: 0 0 4px; font-size: 15px; }
.sheet .s-hint { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; }
.grid67 { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 8px; }
.grid67 button {
  aspect-ratio: 1; border-radius: 9px; border: 1px solid var(--line); background: #fff;
  font-size: 12.5px; color: var(--ink2); cursor: pointer; font-variant-numeric: tabular-nums;
  transition: .14s;
}
.grid67 button.done { background: var(--brand-l); border-color: #C3D6F9; color: var(--brand); font-weight: 600; }
.grid67 button.now { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.sheet .close { width: 100%; margin-top: 16px; }

/* ---------------- 完成页 ---------------- */
.done-box { text-align: center; padding: 26px 20px 22px; }
.tick {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, #10B981, #34D399); color: #fff;
  font-size: 30px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(16, 185, 129, .3);
}
.done-box h2 { margin: 0 0 6px; font-size: 19px; }
.done-box p { margin: 0; font-size: 13.5px; color: var(--muted); }
.done-name { font-size: 15px; color: var(--ink2); margin-top: 10px !important; }
.done-name b { color: var(--ink); }

.vbadge {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.vbadge.ok { background: #E7F7F0; color: #0B8158; }
.vbadge.bad { background: #FDECEC; color: #B21F1F; }

.linkbox { margin-top: 18px; }
.linkbox .lk {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 10px; text-decoration: none; color: var(--ink); background: #fff;
  transition: .16s;
}
.linkbox .lk:hover { border-color: var(--brand); background: #F8FAFF; }
.linkbox .lk .t { font-size: 14.5px; font-weight: 600; }
.linkbox .lk .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.linkbox .lk .go { color: var(--brand); font-size: 18px; }

.qr-card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow);
  padding: 18px; margin-top: 16px; text-align: center; }
.qr-card img { width: 158px; height: 158px; image-rendering: pixelated; border-radius: 8px; }
.qr-card p { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---------------- 管理后台 ---------------- */
.wrap { max-width: 1360px; margin: 0 auto; padding: 20px 18px 50px; }
.head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.head h1 { margin: 0; font-size: 20px; }
.head .sub { font-size: 12.5px; color: var(--muted); }
.head .sp { flex: 1; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.stat .k { font-size: 12.5px; color: var(--muted); }
.stat .v { font-size: 26px; font-weight: 700; color: var(--ink); margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.stat.hl .v { color: var(--brand); }

.panel { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.panel-h { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-h h2 { margin: 0; font-size: 15px; }
.panel-h .sp { flex: 1; }
.ptable { width: 100%; border-collapse: collapse; font-size: 13px; }
.ptable th, .ptable td { text-align: center; vertical-align: middle; }
.ptable th {
  text-align: center; padding: 10px 14px; background: #F7F9FD; color: var(--ink2);
  font-weight: 600; font-size: 12.5px; white-space: nowrap; position: sticky; top: 0; z-index: 2;
}
.ptable td { padding: 10px 14px; border-top: 1px solid var(--line); white-space: nowrap; }
.ptable tbody tr { cursor: pointer; transition: .12s; }
.ptable tbody tr:hover { background: #F8FAFF; }
.ptable .nm { font-weight: 600; color: var(--ink); }
.ptable .dim { color: var(--ink2); font-variant-numeric: tabular-nums; }
.tbl-scroll { overflow-x: auto; max-height: 62vh; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.pill.ok { background: #E7F7F0; color: #0B8158; }
.pill.bad { background: #FDECEC; color: #B21F1F; }
.pill.lead { background: var(--brand-l); color: var(--brand); font-size: 13px; }
.empty { padding: 46px 20px; text-align: center; color: var(--muted); font-size: 14px; }

/* 详情抽屉 */
.drv-mask { position: fixed; inset: 0; background: rgba(20, 49, 92, .38); z-index: 70; }
.drv {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 94vw); z-index: 71;
  background: #fff; box-shadow: -12px 0 40px rgba(20, 49, 92, .18);
  overflow-y: auto; animation: slide .22s ease;
}
@keyframes slide { from { transform: translateX(40px); opacity: .5; } }
.drv-h { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.drv-h h3 { margin: 0; font-size: 16px; }
.drv-h .sp { flex: 1; }
.drv-b { padding: 18px 20px 40px; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 9px 12px; font-size: 13.5px; margin-bottom: 18px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); }
.drv-b h4 { font-size: 13px; color: var(--muted); margin: 20px 0 10px; font-weight: 600;
  text-transform: none; letter-spacing: .4px; }
.bars { display: flex; flex-direction: column; gap: 9px; }
.bl { display: grid; grid-template-columns: 78px 1fr 38px; align-items: center; gap: 10px; font-size: 13px; }
.bl .nm { color: var(--ink2); }
.bl .track { height: 8px; background: #EEF2F9; border-radius: 5px; overflow: hidden; }
.bl .fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, #2563EB, #60A5FA); transition: width .3s; }
.bl .vl { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.drv-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.drv-acts .btn { width: auto; padding: 10px 16px; font-size: 13.5px; }
.drv-acts a.btn { text-decoration: none; }

/* ---------------- 通用 ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  background: rgba(20, 49, 92, .95); color: #fff; padding: 11px 20px;
  border-radius: 999px; font-size: 13.5px; z-index: 99; box-shadow: var(--shadow-l);
  animation: up .2s ease; max-width: 88vw; text-align: center;
}
.loading { text-align: center; padding: 60px 20px; color: var(--muted); font-size: 14px; }
.spin {
  width: 30px; height: 30px; margin: 0 auto 14px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--brand);
  animation: sp .8s linear infinite;
}
@keyframes sp { to { transform: rotate(360deg); } }

/* ---------------- 登录页 ---------------- */
.login-body {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #14315C 0%, #1E4B93 55%, #2563EB 100%);
  padding: 20px;
}
.login-wrap { width: 100%; max-width: 400px; }
.login-card {
  background: #fff; border-radius: 18px; padding: 28px 26px 22px;
  box-shadow: 0 18px 50px rgba(10, 28, 56, .3);
}
.login-brand { display: flex; align-items: baseline; gap: 9px; margin-bottom: 22px; }
.login-brand .logo { font-size: 16px; }
.login-brand .sub {
  font-size: 12px; color: var(--muted); padding-left: 9px;
  border-left: 1px solid var(--line);
}
.login-card h1 { margin: 0 0 6px; font-size: 20px; }
.login-card .hint { margin: 0 0 20px; font-size: 13px; color: var(--muted); line-height: 1.65; }
.login-card .field input { padding: 12px 14px; font-size: 16px; letter-spacing: .5px; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2);
  margin: 4px 0 18px; cursor: pointer; }
.chk input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.login-card .btn { padding: 13px; }
.login-card .fineprint { text-align: left; font-size: 12px; line-height: 1.75; }
.login-card .fineprint code {
  background: #F2F5FA; border: 1px solid var(--line); border-radius: 5px;
  padding: 1px 6px; font-size: 11.5px; color: var(--ink2);
}

@media (max-width: 620px) {
  .hero h1 { font-size: 19px; }
  .row2 { grid-template-columns: 1fr; }
  .screen { padding: 16px 12px 34px; }
  .opt { padding: 14px; font-size: 14.8px; }
  .stat .v { font-size: 22px; }
  .kbd-hint { display: none; }
}

.ptable .row-actions{background:#fff;white-space:nowrap}
.row-actions .chip{font-size:12px;padding:5px 9px}.row-actions .danger{color:#c73535}.row-actions small{display:block;color:#a76800}
.share-warning{padding:12px;background:#fff3d9;color:#875600;border-radius:8px}

/* 管理中心：四个独立内容页 */
.admin-shell{background:#f5f6fa;color:#24334d}
.admin-shell [hidden]{display:none!important}
.admin-sidebar{position:fixed;inset:0 auto 0 0;width:224px;background:#fff;border-right:1px solid #e9ecf3;z-index:20;display:flex;flex-direction:column;padding:30px 18px}
.admin-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#263650;font-size:22px;font-weight:750;padding:0 6px}
.admin-brand small{display:block;font-size:11px;font-weight:400;color:#8591a7;letter-spacing:2px;margin-top:3px}.brand-symbol{display:grid;place-items:center;background:#7045d7;color:white;width:43px;height:43px;border-radius:13px;font-size:24px}
.nav-caption{font-size:11px;color:#9ca5b5;margin:40px 14px 13px;letter-spacing:2px}
.side-nav{display:grid;gap:9px}.side-nav a{display:flex;gap:13px;align-items:center;padding:14px 16px;border-radius:10px;text-decoration:none;color:#6b778e;font-size:14px}.side-nav a span{font-size:20px;width:22px;text-align:center}.side-nav a:hover{background:#f7f5fc}.side-nav a.active{background:#f0eafa;color:#7045d7;font-weight:700}
.sidebar-note{margin-top:auto;padding:18px 12px;color:#8a95aa}.sidebar-note b{font-size:12px;font-weight:500}.sidebar-note p{font-size:11px}.sidebar-note span{font-size:9px;letter-spacing:1px}
.admin-workspace{margin-left:224px;min-width:0}.admin-topbar{height:76px;background:#fff;border-bottom:1px solid #e9ecf3;display:flex;align-items:center;justify-content:space-between;padding:0 32px;gap:12px}.breadcrumb{font-size:13px;color:#8d97aa}.breadcrumb span{margin:0 14px;color:#c7cdd9}.breadcrumb strong{font-weight:500;color:#4b5871}.top-actions{display:flex;align-items:center;gap:16px}.admin-account{font-size:12px;color:#8490a5}
.admin-main{max-width:1700px;padding:30px 32px;margin:auto;min-width:0}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:26px}.eyebrow{font-size:10px;letter-spacing:2px;color:#9a8abc;margin:0 0 6px}.page-heading h1{font-size:26px;letter-spacing:1px;margin:0;color:#23304b}.page-heading p:not(.eyebrow){font-size:12px;color:#8b95a8;margin:8px 0 0}.primary-link{background:#7143d4;color:white;padding:11px 19px;border-radius:8px;font-size:13px;text-decoration:none;white-space:nowrap}
.admin-shell .stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:22px}.admin-shell .stat{border:1px solid #eff0f5;box-shadow:none;border-radius:12px;padding:20px 22px}.admin-shell .stat .v{font-size:33px;margin-top:11px;color:#7143d4}.admin-shell .stat p{font-size:11px;margin:9px 0 0;color:#99a3b5}.admin-shell .stat-1 .v{color:#219782}.admin-shell .stat-2 .v{color:#518bd5}.admin-shell .stat-3 .v{color:#ce9750}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);gap:22px}.dash-card{min-width:0;background:#fff;border:1px solid #eff0f5;border-radius:12px;padding:23px}.dash-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:22px}.dash-card h2,.share-page-panel h2{font-size:15px;margin:0;color:#334059}.dash-card-head p{font-size:11px;color:#99a2b2;margin:6px 0 0}.dash-card-head a{font-size:11px;color:#7143d4;text-decoration:none}.soft-label{font-size:10px;background:#f5f2fb;color:#8b75b5;border-radius:5px;padding:5px 10px;white-space:nowrap}.trend-chart svg{display:block;width:100%;min-height:205px}.chart-footer{font-size:11px;color:#919bac;border-top:1px solid #f2f3f8;margin-top:10px;padding-top:13px}.chart-note{font-size:11px;color:#9aa3b3;margin:22px 0 0;text-align:center}
.validity-ring{width:154px;height:154px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(#7952d6 var(--ratio),#ece6f7 0);margin:5px auto 23px}.validity-ring>div{width:122px;height:122px;background:white;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center}.validity-ring strong{font-size:32px;color:#5d3f98}.validity-ring span{font-size:11px;color:#929bad}.validity-legend{display:flex;justify-content:center;gap:24px;font-size:11px;color:#7b8599}.validity-legend i{display:inline-block;width:7px;height:7px;background:#7952d6;border-radius:50%;margin-right:6px}.validity-legend span+span i{background:#ddd1f1}
.dimension-row{display:flex;align-items:center;gap:16px;font-size:12px;margin:18px 0}.dimension-row>span{width:85px;color:#748197}.dimension-row>div{flex:1;background:#f2eff8;height:9px;border-radius:5px;overflow:hidden}.dimension-row i{display:block;height:100%;background:linear-gradient(90deg,#b8a3e9,#8056d6);border-radius:5px}.dimension-row b{width:27px;text-align:right;font-size:12px;color:#695487}.recent-item{display:flex;align-items:center;gap:12px;padding:12px 0;text-decoration:none;border-bottom:1px solid #f3f4f8}.recent-item:last-child{border:0}.recent-avatar{width:35px;height:35px;background:#f1edfa;border-radius:10px;display:grid;place-items:center;color:#8563ba;font-size:12px}.recent-name{display:flex;flex:1;flex-direction:column;gap:4px}.recent-name b{font-size:12px;color:#58657d;font-weight:500}.recent-name small{font-size:10px;color:#a1aabd}.dashboard-empty{padding:44px 20px;text-align:center;color:#929bb0;font-size:12px}.dash-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:22px}.dash-shortcuts a{display:flex;flex-direction:column;gap:8px;border:1px solid #e9e5f2;border-radius:10px;background:#faf9fe;padding:21px;text-decoration:none}.dash-shortcuts b{font-size:13px;color:#655087}.dash-shortcuts span{font-size:11px;color:#9b91ad}.admin-footer{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-top:25px;font-size:10px;color:#a1aabc;overflow-wrap:anywhere}
.interpret-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.interpret-toolbar p{font-size:12px;color:#8995a9}.interpret-frame{width:100%;height:calc(100vh - 265px);min-height:600px;border:1px solid #e4e8ef;border-radius:12px;background:white}.share-page-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,1fr);gap:24px;align-items:start}.share-options,.share-art{background:white;border:1px solid #eff0f5;border-radius:12px;padding:26px;min-width:0}.share-page-panel p{font-size:12px;color:#8b96a8;line-height:1.8}.share-page-panel label{font-size:12px;color:#6f7c91}.share-art{max-width:560px}.share-art canvas{margin-top:14px}.share-warning{color:#875600!important}#adminStatus{padding:15px;background:#fff0ea;color:#aa5632;border-radius:8px;margin-bottom:18px}
.admin-shell .panel{box-shadow:none;border:1px solid #eff0f5}.admin-shell .chip{font-size:12px}.admin-shell .chip:focus-visible,.side-nav a:focus-visible{outline:2px solid #7952d6;outline-offset:3px}
@media(max-width:1150px){.admin-sidebar{width:190px;padding:25px 12px}.admin-workspace{margin-left:190px}.admin-main{padding:24px 20px}.admin-topbar{padding:0 20px}.dashboard-grid{grid-template-columns:minmax(0,1.4fr) minmax(230px,1fr)}.admin-shell .stat{padding:16px}.admin-brand{font-size:18px}.dash-card{padding:18px}}
@media(max-width:900px){.admin-sidebar{position:static;width:auto;padding:16px 20px;border-bottom:1px solid #e9ecf3}.admin-brand{font-size:17px}.admin-brand small,.nav-caption,.sidebar-note{display:none}.brand-symbol{width:32px;height:32px;font-size:20px}.side-nav{display:flex;margin-top:15px;gap:5px;overflow-x:auto}.side-nav a{white-space:nowrap;padding:10px 14px;font-size:12px}.side-nav a span{font-size:16px;width:auto}.admin-workspace{margin-left:0}.admin-topbar{height:58px}.dashboard-grid{grid-template-columns:1fr 1fr}.trend-card{grid-column:1/-1}.admin-account{display:none}.share-page-panel{grid-template-columns:1fr 1fr}.share-options,.share-art{padding:18px}}
@media(max-width:600px){.admin-main{padding:22px 14px}.admin-topbar{padding:0 14px}.top-actions{gap:8px}.breadcrumb{font-size:11px}.breadcrumb span{margin:0 7px}.page-heading h1{font-size:23px}.page-heading{align-items:flex-start}.primary-link{padding:9px 12px;font-size:11px}.page-heading p:not(.eyebrow){max-width:220px;line-height:1.7}.admin-shell .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.admin-shell .stat .v{font-size:28px}.dashboard-grid,.share-page-panel,.dash-shortcuts{grid-template-columns:1fr}.dash-card{padding:19px}.trend-card{grid-column:auto}.dash-shortcuts{gap:10px}.trend-chart svg{min-height:160px}.interpret-toolbar{align-items:flex-start;flex-direction:column}.interpret-frame{min-height:650px}.side-nav a{padding:10px 9px}.share-art{max-width:none}}

/* 手机操作：四项导航完整展示，输入框避免自动放大。 */
@media(max-width:600px){
  .admin-sidebar{padding:14px 14px 10px}
  .side-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible;gap:5px;margin-top:12px}
  .side-nav a{flex-direction:column;justify-content:center;gap:4px;padding:8px 2px;min-height:56px;font-size:12px}
  .side-nav a span{font-size:17px;line-height:1}
  .admin-shell .chip{min-height:40px;display:inline-flex;align-items:center;justify-content:center}
  .admin-shell .row-actions .chip{min-height:42px;padding:7px 8px}
  .admin-shell .panel-h{padding:14px;gap:10px}
  .admin-shell .panel-h input[type=search]{width:100%!important;order:5;font-size:16px!important}
  .admin-shell .panel-h select{font-size:16px!important;min-height:42px}
  .field input,.field select,#shareLink{font-size:16px!important}
  .share-page-panel .chip{min-height:44px}
  .admin-shell .tbl-scroll{max-height:70vh;-webkit-overflow-scrolling:touch}
  .interpret-frame{height:75vh;min-height:650px}
}

.phone-hint{font-size:12px;color:#8494ad;margin:7px 0 0;line-height:1.6;min-height:19px}.phone-hint.phone-valid{color:#168369}.phone-hint.phone-invalid{color:#c63b3b}#iPhone{letter-spacing:normal;text-indent:0;font-variant-numeric:tabular-nums}

.missing-notice{padding:12px 16px;background:#fff5de;color:#805300;border-radius:12px;line-height:1.6;}

#reportLinks[hidden],#invalidReasons[hidden],#missingNotice[hidden]{display:none!important}

/* Fit the preview to the screen; keep the downloadable canvas at full resolution. */
.share-art canvas#sharePoster{display:block;width:min(100%,clamp(166px,calc(69.23svh - 270px),360px));height:auto;margin:12px auto 0}
.share-art #downloadPoster{display:block;width:100%;margin-top:12px!important}
.share-options img[alt="测评二维码"]{width:150px!important;height:150px!important}
@media(max-width:600px){.share-art canvas#sharePoster{width:min(100%,clamp(166px,calc(69.23svh - 140px),320px))}}

#sharePoster{cursor:pointer}#sharePoster:focus-visible{outline:3px solid #7143d4;outline-offset:5px}

.admin-main.interpret-main{padding-top:12px;padding-bottom:12px}.interpret-main .interpret-frame{display:block;height:calc(100svh - 102px);min-height:420px}
@media(max-width:900px){.interpret-main .interpret-frame{height:calc(100svh - 220px)}}

.admin-main.share-main{padding-top:12px}

.pause-overlay{position:fixed;inset:0;z-index:12000;background:rgba(20,40,70,.45);display:flex;align-items:center;justify-content:center;padding:20px}.pause-overlay[hidden]{display:none!important}.pause-card{width:100%;max-width:420px;padding:28px;background:white;border-radius:18px;line-height:1.7}.pause-card h2{margin-top:0}
.security-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.security-form h2,.security-form>div,.security-form>p{grid-column:1/-1}.security-form label{display:flex;flex-direction:column;gap:7px;font-size:14px}.security-form input,.security-form select,.log-filters input,.log-filters select{min-width:0;width:100%;padding:11px;border:1px solid #d8dfec;border-radius:8px;font:16px inherit}.security-form [hidden]{display:none!important}.log-filters{display:flex;gap:12px;margin:20px 0}.log-filters input{flex:1}.log-filters select{width:140px}.log-pages{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:18px}#passwordDialog{border:0;border-radius:16px;width:min(460px,90vw);padding:24px}#passwordDialog::backdrop{background:#15244188}#passwordDialog .security-form{display:flex;flex-direction:column}.admin-shell #auditRows td{white-space:normal;min-width:110px;overflow-wrap:anywhere}.admin-shell #adminUsers td{padding:14px}
@media(max-width:600px){.security-form{grid-template-columns:1fr}.log-filters{flex-wrap:wrap}.log-filters input{flex-basis:100%}}

/* Talent assessment illustration, with a clear sign-in card on all screens. */
.login-body{background:#173958 url('/static/images/talent-login.svg') center center/cover no-repeat;background-attachment:fixed;padding:32px}
.login-wrap{max-width:1120px;display:flex;justify-content:flex-end}
.login-card{width:400px;max-width:100%;padding:32px;border:1px solid #ffffff80;box-shadow:0 24px 80px #07192d40}
@media(max-width:1000px){.login-body{background-position:25% center}.login-wrap{max-width:860px}.login-card{width:380px}}
@media(max-width:700px){.login-body{padding:24px 18px;background-position:20% center}.login-wrap{justify-content:center}.login-card{background:rgba(255,255,255,.96);padding:28px 24px}}

.name-dialog{border:0;border-radius:16px;padding:26px;width:min(440px,90vw);color:#183354}.name-dialog::backdrop{background:#15244188}.name-dialog label{display:grid;gap:8px}.name-dialog input{padding:12px;border:1px solid #d8dfec;border-radius:8px;font-size:16px;width:100%}.name-dialog p{font-size:14px;line-height:1.7}.name-dialog .rename-error{color:#c73535}

.editable-name{font:inherit;font-weight:600;color:inherit;border:0;background:transparent;padding:8px 0;cursor:pointer}.editable-name:hover,.editable-name:focus-visible{color:#7143d4;text-decoration:underline;text-underline-offset:5px}.editable-name:focus-visible{outline:2px solid #7952d6;outline-offset:3px}
