:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #20242b;
  background: #f5f6f8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.container { width: min(960px, calc(100% - 32px)); margin: 0 auto; }
.site-header { padding: 34px 0 28px; background: #fff; border-bottom: 1px solid #e5e7eb; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.eyebrow { margin: 0 0 10px; color: #687080; font-size: .75rem; letter-spacing: .12em; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -.04em; }
h2 { margin: 0 0 10px; font-size: 1.25rem; }
h3 { margin: 0 0 16px; font-size: 1rem; }
.subtitle { margin: 10px 0 0; color: #626b78; }
main { padding-top: 28px; }
.panel { min-width: 0; padding: 22px; border: 1px solid #dfe3e8; border-radius: 12px; background: #fff; }
.auth-panel { width: min(440px, 100%); margin: 24px auto; }
.auth-panel form, .form-panel { display: flex; flex-direction: column; gap: 10px; }
label { display: block; margin-top: 4px; font-size: .88rem; font-weight: 600; }
input, select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #cfd5dd; border-radius: 8px; background: #fff; color: inherit; font: inherit; }
input:focus, select:focus { outline: 3px solid #dbe5fb; border-color: #7388b7; }
button { min-height: 42px; padding: 10px 15px; border: 1px solid #27364b; border-radius: 8px; background: #27364b; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
button:hover { filter: brightness(1.08); }
button:focus-visible { outline: 3px solid #9cb6e9; outline-offset: 2px; }
.secondary-button { border-color: #dfe3e8; background: #fff; color: #27364b; }
.muted { margin: 4px 0 12px; color: #737b87; font-size: .9rem; line-height: 1.5; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading .muted { margin-bottom: 0; }
.content-grid { display: grid; grid-template-columns: minmax(240px, .85fr) minmax(0, 1.15fr); gap: 16px; margin-bottom: 24px; }
.stack-list { display: grid; gap: 10px; }
.list-item { padding: 13px 14px; border: 1px solid #e4e7ec; border-radius: 9px; background: #fcfcfd; overflow-wrap: anywhere; }
.list-item strong { display: block; margin-bottom: 4px; }
.list-item p { margin: 5px 0 0; }
.records-panel { margin-top: 4px; }
.record-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
.record-form > div { min-width: 0; }
.record-form label { margin: 0 0 6px; }
.time-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wide-field { grid-column: span 2; }
.record-form button { width: 100%; }
.record-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 12px; }
.record-item .muted, .record-item > p:last-child { grid-column: 1 / -1; }
.duration { font-weight: 700; font-variant-numeric: tabular-nums; }
.message { min-height: 1.3em; margin: 10px 0 0; font-size: .9rem; }
.error { color: #a12626; }
.success { color: #247548; }
footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding: 18px 0; border-top: 1px solid #dfe3e8; color: #737b87; font-size: .82rem; }
[hidden] { display: none !important; }
@media (max-width: 700px) {
  .content-grid { grid-template-columns: 1fr; }
  .record-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wide-field { grid-column: 1 / -1; }
  .header-row { align-items: flex-start; }
}
@media (max-width: 460px) {
  .container { width: calc(100% - 24px); }
  .site-header { padding-top: 28px; }
  .panel { padding: 16px; }
  .record-form { grid-template-columns: 1fr; }
  .wide-field { grid-column: auto; }
  footer { flex-direction: column; }
}
