:root { --color-primary: #1e3a5f; --color-secondary: #0f172a; --color-accent: #0f766e; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", sans-serif; background: #f8fafc; color: #0f172a; }
a { color: inherit; }
header, .top { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 24px; background: white; border-bottom: 1px solid #e2e8f0; }
nav { display: flex; flex-wrap: wrap; gap: 16px; }
main { max-width: 980px; margin: 0 auto; padding: 28px 16px; }
.staff > main { max-width: none; margin: 0; padding: 28px 32px; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { min-height: 120px; margin: 0; display: flex; flex-direction: column; justify-content: center; }
.stat strong { display: block; font-size: 2.5rem; line-height: 1; }
.stat span { margin-top: 8px; color: #475569; }
.stat-action { text-decoration: none; font-size: 1.15rem; font-weight: 700; align-items: center; background: var(--color-primary); color: white; border-color: var(--color-primary); }
.lede { max-width: 70rem; line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.actions form { margin: 0; }
.btn-small { padding: 4px 8px; font-size: 13px; }
@media (max-width: 900px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
}
.staff { display: grid; grid-template-columns: 200px 1fr; min-height: 100vh; }
.side { background: var(--color-secondary); color: white; padding: 20px 14px; }
.side a { display: block; color: white; text-decoration: none; padding: 8px 0; }
.side a.active { font-weight: 700; text-decoration: underline; }
.side .who { margin: 16px 0 0; font-size: 13px; opacity: 0.85; }
.signature-pad { width: min(100%, 640px); height: auto; touch-action: none; background: #fff; border: 1px dashed #94a3b8; border-radius: 8px; cursor: crosshair; }
.signature-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; padding: 8px 12px; font-weight: 650; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--color-primary); color: white; }
.btn-accent { background: var(--color-accent); color: white; }
.btn-quiet { background: white; color: #0f172a; border: 1px solid #cbd5e1; }
.card { background: white; border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px; margin: 12px 0; }
.field { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; font-size: 14px; }
.field input, .field select, .field textarea { border: 1px solid #cbd5e1; border-radius: 6px; padding: 8px 10px; font: inherit; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b91c1c; background: #fef2f2; }
.field-error { color: #b91c1c; font-size: 13px; }
.hint { position: relative; display: inline-flex; vertical-align: middle; margin-left: 6px; }
.hint-button { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--color-primary); background: white; color: var(--color-primary); font-size: 12px; font-weight: 700; line-height: 16px; padding: 0; cursor: pointer; }
.hint-pop { display: none; position: absolute; z-index: 5; left: 0; top: 24px; width: 260px; background: #0f172a; color: white; padding: 8px 10px; border-radius: 6px; font-size: 13px; font-weight: 400; line-height: 1.4; }
.hint.open .hint-pop, .hint-button:focus + .hint-pop { display: block; }
#client-card div { margin: 4px 0; }
.error { color: #b91c1c; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.source-choice { display: flex; gap: 16px; flex-wrap: wrap; margin: 8px 0 12px; }
.peak-table input { width: 100%; box-sizing: border-box; }
.chart-image { max-width: 100%; height: auto; background: #fff; border: 1px solid #e5e7eb; }
.strength-choice { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
details { margin: 12px 0; }
.login { min-height: 100vh; display: grid; place-items: center; }
.swatch { color: white; border-radius: 6px; padding: 8px 10px; }
