:root {
  color-scheme: light;
  font-family: Inter, "Microsoft YaHei", system-ui, sans-serif;
  background: #f6f8fb;
  color: #172033;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; border-radius: 6px; padding: 9px 14px; background: #1f6feb; color: white; }
button.secondary { background: #e8edf5; color: #172033; }
button.danger { background: #c9342c; }
button:disabled { opacity: .5; cursor: not-allowed; }
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: #111827; color: #e8edf5; padding: 22px 16px; }
.brand { font-size: 20px; font-weight: 800; margin-bottom: 24px; }
.nav button { width: 100%; text-align: left; background: transparent; color: #b8c2d3; margin: 2px 0; }
.nav button.active { background: #263244; color: white; }
.main { padding: 22px 28px; }
.top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.login { max-width: 380px; margin: 12vh auto; background: white; padding: 28px; border: 1px solid #d9e0ea; border-radius: 8px; box-shadow: 0 20px 60px rgba(21, 30, 45, .08); }
.login h1 { margin-top: 0; font-size: 24px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
label { font-size: 14px; color: #4b5870; }
input, select, textarea { width: 100%; border: 1px solid #ccd5e3; border-radius: 6px; padding: 9px 10px; background: white; color: #172033; }
textarea { min-height: 78px; resize: vertical; }
.grid { display: grid; gap: 14px; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: white; border: 1px solid #dce3ee; border-radius: 8px; padding: 16px; }
.stat { font-size: 28px; font-weight: 800; margin-top: 8px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-title h2 { margin: 0; font-size: 18px; }
.table { width: 100%; border-collapse: collapse; background: white; border: 1px solid #dce3ee; border-radius: 8px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid #edf1f6; font-size: 14px; vertical-align: top; }
.table th { background: #f9fbfe; color: #526075; font-weight: 700; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 9px; font-size: 12px; background: #edf2f7; color: #334155; white-space: nowrap; }
.badge.pending { background: #fff4cc; color: #7a4b00; }
.badge.approved { background: #dff7e8; color: #12683a; }
.badge.sealed { background: #dbeafe; color: #174ea6; }
.badge.rejected { background: #ffe0df; color: #a7221d; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.full { grid-column: 1 / -1; }
.muted { color: #667085; font-size: 13px; }
.seal-sample { display: inline-grid; place-items: center; width: 118px; height: 64px; border: 2px solid currentColor; border-radius: 50%; transform: rotate(-5deg); font-weight: 800; font-size: 13px; text-align: center; }
.toast { position: fixed; right: 22px; bottom: 22px; background: #172033; color: white; padding: 12px 14px; border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 3; }
  .nav { display: flex; overflow-x: auto; }
  .nav button { width: auto; white-space: nowrap; }
  .stats, .form-grid { grid-template-columns: 1fr; }
  .main { padding: 18px; }
}
