.login-page { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; max-width: none; padding: 48px 32px; background: radial-gradient(ellipse at 15% 15%, #fff8f0, transparent 55%), #edf0f2; color: #23313b; }
.login-card { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); width: min(100%, 1120px); overflow: hidden; border: 1px solid #e2e5e7; border-radius: 20px; background: #fff; box-shadow: 0 24px 64px #24313b0c, 0 2px 8px #24313b04; }
.login-brand { padding: 48px 44px 36px; background: #f7f8f8; border-right: 1px solid #e9edef; }
.login-brand .wordmark { width: fit-content; font-size: 28px; color: #25323c; border-bottom: 3px solid var(--orange); padding-bottom: 6px; }
.login-brand h1 { font-size: clamp(28px, 3vw, 38px); font-weight: 600; letter-spacing: -1.2px; line-height: 1.2; margin: 44px 0 32px; }
.login-brand img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.login-form { align-self: center; padding: 52px 48px; }
.login-form h2 { font-size: 28px; font-weight: 600; letter-spacing: -.6px; margin-bottom: 32px; }
.login-form h2::before { content: ""; display: block; width: 32px; height: 3px; background: var(--orange); margin-bottom: 18px; }
#sign-in { display: grid; gap: 24px; }
#sign-in label, .data-controls label { display: grid; gap: .4rem; }
#sign-in label { font-size: 13px; font-weight: 600; color: #44515b; gap: 9px; }
#sign-in input { font: inherit; font-size: 15px; color: #23313b; width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid #ccd3d8; border-radius: 7px; background: #fafbfc; transition: border-color .15s, box-shadow .15s; }
#sign-in input:hover { border-color: #8998a3; }
#sign-in input:focus-visible { outline: 2px solid #a84700; outline-offset: 2px; border-color: #a84700; background: #fff; }
#sign-in button { min-height: 48px; margin-top: 8px; padding: 12px 18px; border: 1px solid #e56c00; border-radius: 7px; background: var(--orange); color: #202b34; font-size: 14px; font-weight: 700; box-shadow: 0 4px 10px #ff79001a; transition: background .15s, box-shadow .15s; }
#sign-in button:hover:not(:disabled) { background: #f28a2e; box-shadow: 0 6px 16px #ff79002a; }
#sign-in button:active:not(:disabled) { background: #ed7000; box-shadow: none; }
#sign-in button:disabled { opacity: .6; cursor: wait; }
#login-status { min-height: 1.5rem; margin-top: 20px; font-size: 12px; }
#login-status.error, #data-status.error { color: #9c2323; font-weight: bold; }
.account-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.account-toolbar h2 { margin-right: auto; }
.account-toolbar button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); }
.account-toolbar #import-info { flex-basis: 100%; min-width: 0; overflow-wrap: anywhere; font-size: 12px; }
.data-controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; }
.real-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.measurements-panel .real-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.real-grid > .card { min-width: 0; overflow-wrap: anywhere; }
.real-grid .metric { font-size: 1.6rem; }
.real-grid svg { width: 100%; }
.reading-chart .overview-chart { display: none; }
#overview .reading-chart .overview-chart { display: block; width: 100%; height: 56px; margin-top: 6px; }
#overview .reading-chart .detail-chart { display: none; }
.overview-active .playback-panel { display: none; }
.summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#data-status { min-height: 1.5rem; }
.navigation a { color: inherit; padding: 1rem; }
@media (max-width: 900px) { .real-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 500px) { .real-grid, .measurements-panel .real-grid { grid-template-columns: 1fr; } }
@media (max-width: 1100px) {
  .navigation nav { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-page { padding: 24px 16px; }
  .login-card { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
  .login-brand { padding: 28px 28px 20px; border-right: 0; border-bottom: 1px solid #e9edef; }
  .login-brand .wordmark { font-size: 23px; }
  .login-brand h1 { font-size: 28px; letter-spacing: -.8px; margin: 26px 0 20px; }
  .login-brand img { width: min(100%, 300px); margin: auto; }
  .login-form { padding: 32px 28px 24px; }
  .login-form h2 { font-size: 25px; margin-bottom: 24px; }
}

@media (min-width: 1100px) {
  .overview-active .masthead { height: 64px; padding: 12px 20px; }
  .overview-active > main { max-width: none; padding: 14px 24px; }
  .overview-active .account-toolbar { gap: 8px; }
  .overview-active .account-toolbar #import-info { flex: 1 1 280px; margin-left: auto; text-align: right; }
  .overview-active #data-status { font-size: 11px; min-height: 18px; line-height: 1.5; }
  .overview-active #data-status:not(.error) { display: none; }
  .overview-active .playback-panel { display: none; }
  .overview-active .summary-grid { gap: 8px; margin: 6px 0; }
  .overview-active .summary { min-height: 76px; padding: 10px 12px; }
  .overview-active .summary h2 { min-height: 20px; margin-bottom: 5px; line-height: 1.3; font-size: 12px; }
  .overview-active .summary .metric { font-size: 24px; }
  .overview-active .summary:nth-child(n+5) .metric { font-size: 14px; }
  .overview-active #overview > .main-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 12px; margin-bottom: 10px; }
  .overview-active .stand-panel { display: block; min-height: 0; }
  .overview-active .stand-visual { display: flex; padding: 14px; min-height: 0; height: 100%; gap: 6px; }
  .overview-active .stand-visual h2 { font-size: 17px; align-self: start; }
  .overview-active .stand-visual .machine-image { margin: auto 0; flex: 0 1 auto; }
  .overview-active .stand-visual .stand-art { min-height: 0; max-height: 120px; }
  .overview-active .stand-visual .machine-badge { margin-top: 6px; font-size: 10px; }
  .overview-active .stand-details, .overview-active .illustration-label { display: none; }
  .overview-active .measurements-panel { padding: 14px; }
  .overview-active .section-heading { margin-bottom: 6px; }
  .overview-active .section-heading p { display: none; }
  .overview-active .section-heading h2 { font-size: 16px; }
  .overview-active .eyebrow { display: none; }
  .overview-active .measurements-panel .real-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 6px; }
  .overview-active .real-grid > .card { padding: 10px; border-radius: 7px; background: #fafbfd; }
  .overview-active .real-grid h2 { font-size: 12px; line-height: 1.4; margin-bottom: 5px; }
  .overview-active .real-grid p { font-size: 12px; line-height: 1.4; }
  .overview-active .real-grid .metric { font-size: 22px; line-height: 1.3; }
  .overview-active .source-details, .overview-active .source-timestamp { display: none; }
  .overview-active .reading-conditions:empty { display: none; }
  .overview-active .reading-conditions { color: #9c2323; }
  .overview-active .reading-chart { width: 100%; }
  .overview-active .reading-chart svg text { display: none; }
  .overview-active .measurements-panel > p, .overview-active #circuit-trends p { font-size: 12px; line-height: 1.4; }
  .overview-active #circuit-trends { display: none; }
  .overview-active .reference-bottom { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; margin-top: 0; }
  .overview-active .reference-bottom > .card:nth-child(2) { display: none; }
  .overview-active .reference-bottom > .card { padding: 10px 12px; }
  .overview-active .reference-bottom h2 { font-size: 14px; margin-bottom: 5px; }
  .overview-active .reference-bottom > .card > h2 { margin-bottom: 5px; line-height: 1.3; }
  .overview-active .reference-bottom p { font-size: 12px; line-height: 1.4; }
  .overview-active #rotations-trend svg { display: block; width: 100%; height: 120px; }
  .overview-active #rotations-trend svg text { font-size: 12px; fill: var(--muted); }
  .overview-active #recent-events table { font-size: 12px; }
  .overview-active #recent-events td, .overview-active #recent-events th { padding: 7px 8px; line-height: 1.4; }
  .overview-active #recent-events tbody tr:nth-child(n+4) { display: none; }
  .overview-active footer { display: none; }
  #overview .reading-chart .overview-chart { height: 48px; }
}
