/* 算数·检测服务 — 对齐兄弟项目青绿主色 */
:root {
  --bg: #eef6f5;
  --surface: #fff;
  --ink: #102826;
  --muted: #3d5a56;
  --line: #b8d4d0;
  --accent: #0abab5;
  --accent-deep: #067a76;
  --accent-soft: rgba(10, 186, 181, .14);
  --aside: #0d3d38;
  --ok: #0d8a5f;
  --warn: #c45c2a;
  --danger: #b42318;
  --shadow: 0 12px 28px rgba(16, 40, 38, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 55% at 8% -8%, rgba(10,186,181,.16), transparent 52%),
    linear-gradient(180deg, #f4fbfa, var(--bg));
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.site-wm {
  position: fixed; inset: 0; z-index: 10000; pointer-events: none; opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='280'%3E%3Ctext x='210' y='140' fill='%23102826' font-size='18' font-family='Microsoft YaHei' font-weight='700' text-anchor='middle' transform='rotate(-28 210 140)'%3E%E7%AE%97%E6%95%B0%E7%A7%91%E6%8A%80%20%E6%BC%94%E7%A4%BA%3C/text%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 420px 280px;
}
.login-shell {
  min-height: 100vh; display: grid; grid-template-columns: minmax(280px, 38%) 1fr; background: #0b2422;
}
.login-left {
  padding: 32px; background: linear-gradient(165deg, #fff, #e8f5f3);
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.login-eyebrow { margin: 0; font-size: .72rem; letter-spacing: .16em; color: var(--accent-deep); font-weight: 700; }
.login-brand { margin: 0; font-size: 1.8rem; font-weight: 900; }
.login-lead { color: var(--muted); margin: 0; font-size: .9rem; }
.login-form label { display: block; font-size: .82rem; margin: 8px 0 4px; }
.login-form input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.btn, .login-submit {
  border: 0; border-radius: 10px; padding: 10px 16px; background: var(--accent); color: #fff; font-weight: 700;
}
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.warn { background: var(--warn); }
.btn.danger { background: var(--danger); }
.btn.ok { background: var(--ok); }
.login-msg { color: var(--danger); min-height: 1.2em; font-size: .85rem; }
.login-right { padding: 28px; color: #dff5f3; overflow: auto; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.role-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 12px; cursor: pointer;
}
.role-card:hover { border-color: var(--accent); }
.role-card strong { display: block; }
.role-card span { font-size: .78rem; opacity: .75; }
.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.aside {
  background: var(--aside); color: #d7efec; padding: 18px 14px; display: flex; flex-direction: column; gap: 12px;
}
.brand-block { display: flex; gap: 10px; align-items: center; padding: 4px 6px 12px; }
.mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #062; 
  display: grid; place-items: center; font-weight: 900;
}
.brand-block strong { display: block; font-size: .95rem; }
.brand-block p { margin: 0; font-size: .75rem; opacity: .7; }
.menu button {
  width: 100%; text-align: left; background: transparent; border: 0; color: inherit;
  padding: 10px 12px; border-radius: 10px; margin-bottom: 4px;
}
.menu button.active, .menu button:hover { background: rgba(10,186,181,.22); }
.main-wrap { display: flex; flex-direction: column; min-width: 0; }
.header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 22px; background: rgba(255,255,255,.72); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header h2 { margin: 0; font-size: 1.15rem; }
.header .sub { color: var(--muted); font-size: .82rem; }
.content { padding: 18px 22px 40px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow);
}
.card .k { color: var(--muted); font-size: .78rem; }
.card .v { font-size: 1.35rem; font-weight: 800; margin-top: 4px; }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); margin-bottom: 14px;
}
.panel h3 { margin: 0 0 10px; font-size: 1rem; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .75rem;
  background: var(--accent-soft); color: var(--accent-deep);
}
.tag.warn { background: rgba(196,92,42,.12); color: var(--warn); }
.tag.danger { background: rgba(180,35,24,.12); color: var(--danger); }
.tag.ok { background: rgba(13,138,95,.12); color: var(--ok); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--muted); }
.form-grid input, .form-grid select, .form-grid textarea {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink);
}
.muted { color: var(--muted); font-size: .82rem; }
.err { color: var(--danger); }
.ok-text { color: var(--ok); }
.cal-table th, .cal-table td { min-width: 88px; vertical-align: top; }
.cal-empty { background: #f7fbfa; }
.cal-busy { background: rgba(10,186,181,.08); }
.cal-conflict { background: rgba(220, 53, 69, .12) !important; outline: 1px solid rgba(220,53,69,.35); }
.cal-drop { cursor: copy; }
.cal-over { outline: 2px dashed var(--accent, #0abab5); background: rgba(10,186,181,.15) !important; }
.await-chip { cursor: grab; max-width: 220px; }
.cal-chip {
  font-size: .72rem; line-height: 1.3; padding: 4px 6px; margin: 2px 0;
  border-radius: 6px; background: #fff; border: 1px solid var(--line);
}
.cal-chip[data-oid] { cursor: pointer; }
.tag.danger { background: #fde8ea; color: #b42318; padding: 2px 8px; border-radius: 4px; font-size: .75rem; margin-left: 8px; }
@media (max-width: 860px) {
  .login-shell, .shell { grid-template-columns: 1fr; }
  .aside { flex-direction: row; overflow: auto; }
  .menu { display: flex; gap: 4px; }
  .menu button { white-space: nowrap; }
}
