* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif; color: #1f2937; background: #f4f6f8; display: flex; min-height: 100vh; }
.hidden { display: none !important; }
.login-shell { min-height: 100vh; width: 100%; display: grid; place-items: center; background: #eef3f7; padding: 24px; }
.login-card { width: min(420px, 100%); background: #fff; border: 1px solid #dfe6ee; border-radius: 10px; padding: 28px; display: grid; gap: 16px; box-shadow: 0 18px 50px rgba(20, 50, 74, 0.12); }
.login-card h1 { font-size: 24px; }
.login-card p { color: #667085; }
.error { color: #b42318; min-height: 18px; font-size: 13px; }
aside { width: 220px; background: #14324a; color: #fff; padding: 20px 14px; }
.brand { font-size: 20px; font-weight: 700; margin: 4px 8px 24px; }
.nav { width: 100%; border: 0; background: transparent; color: #d7e3ee; text-align: left; padding: 12px 14px; border-radius: 6px; cursor: pointer; font-size: 15px; }
.nav.active, .nav:hover { background: #214a68; color: #fff; }
main { flex: 1; padding: 22px; min-width: 0; }
header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
h1, h2, p { margin: 0; }
h1 { font-size: 24px; }
h2 { font-size: 17px; margin-bottom: 14px; }
h3 { font-size: 14px; margin: 0 0 10px; color: #334155; }
header p, .muted { color: #667085; margin-top: 6px; }
.pill { border: 1px solid #c9d7e3; border-radius: 999px; padding: 6px 12px; background: #fff; color: #35536c; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.metric, .panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; }
.metric .label { color: #6b7280; font-size: 13px; margin-bottom: 8px; }
.metric .value { font-size: 28px; font-weight: 700; }
.panel { margin-bottom: 16px; overflow-x: auto; }
.view { display: none; }
.view.active { display: block; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: end; }
label { color: #4b5563; font-size: 13px; display: grid; gap: 6px; }
input, select, textarea { width: 100%; border: 1px solid #d1d5db; border-radius: 6px; padding: 0 10px; background: #fff; font: inherit; }
input, select { height: 36px; }
textarea { min-height: 78px; padding: 9px 10px; resize: vertical; line-height: 1.5; }
button { height: 36px; border: 0; border-radius: 6px; background: #1f6feb; color: #fff; padding: 0 14px; cursor: pointer; }
button.secondary { background: #eef2f6; color: #334155; }
.wide { grid-column: span 2; }
.verify-workspace { display: grid; grid-template-columns: minmax(280px, 360px) minmax(420px, 620px); gap: 16px; align-items: start; }
.quick-panel, .verify-panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 18px; }
.quick-panel textarea { min-height: 168px; }
.quick-fill { margin-bottom: 0; }
.verify-form { display: grid; gap: 16px; }
.required-fields, .optional-fields { display: grid; gap: 12px; }
.required-fields { padding-bottom: 14px; border-bottom: 1px solid #edf0f3; }
.optional-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.verify-form button { width: 100%; height: 40px; }
.result { margin-top: 14px; border-radius: 6px; padding: 12px; border: 1px solid; }
.result.hit { background: #fff7ed; border-color: #fdba74; color: #9a3412; }
.result.clear { background: #f0fdf4; border-color: #86efac; color: #166534; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.toolbar h2 { margin-right: auto; margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border-bottom: 1px solid #edf0f3; padding: 10px; text-align: left; font-size: 13px; vertical-align: top; }
th { color: #667085; font-weight: 600; background: #f9fafb; }
.tag { display: inline-block; border-radius: 999px; padding: 3px 8px; background: #eef2ff; color: #3730a3; }
pre { background: #111827; color: #e5e7eb; border-radius: 8px; padding: 14px; overflow: auto; }
@media (max-width: 1000px) {
  body { display: block; }
  aside { width: 100%; }
  .metrics, .grid, .verify-workspace, .optional-fields { grid-template-columns: 1fr; }
  .wide, .span-2 { grid-column: span 1; }
}
