:root {
  color-scheme: light;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-subtle: #f6f8fa;
  --hover: #e9edf2;
  --ink: #17212e;
  --text: #2c3745;
  --muted: #3f4a58;
  --line: #cbd0d8;
  --control-border: #677181;
  --green: #034289;
  --green-hover: #053568;
  --on-brand: #ffffff;
  --mint: #e9edf2;
  --focus: #1756b5;
  --focus-gap: #ffffff;
  --success: #31475f;
  --success-bg: #eaf0f7;
  --danger: #752f32;
  --danger-bg: #f8edef;
  --warning: #57450d;
  --warning-bg: #f8f2e5;
  --info: #31475f;
  --info-bg: #eaf0f7;
  --disabled-bg: #f6f8fa;
  --toast-bg: #252d38;
  --toast-text: #ffffff;
  --log-bg: #171c24;
  --log-heading-bg: #252d38;
  --log-text: #f3f5f8;
  --log-muted: #d6dce5;
  --icon-filter: none;
  --brand-icon-filter: invert(1);
  font-family: "Segoe UI", "Malgun Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--text); font-size: 0.875rem; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; box-shadow: 0 0 0 3px var(--focus-gap); }
.login-shell { background: var(--surface-subtle); display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding: 40px 24px; }
.login-card { width: 390px; max-width: 100%; padding: 32px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: none; }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; color: var(--ink); }
.login-brand img { filter: grayscale(1); width: 36px; height: 36px; object-fit: contain; }
.login-brand > span { font-size: 1.25rem; font-weight: 650; line-height: 1.3; letter-spacing: -.65px; }
.login-brand > span > span { display: block; margin-top: 3px; color: var(--muted); font-size: 0.875rem; font-weight: 500; letter-spacing: .1px; }
.admin-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.8125rem; }
.admin-label > span { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.login-heading h1 { margin: 12px 0 12px; color: var(--ink); font-size: 1.5rem; font-weight: 600; letter-spacing: -.9px; line-height: 1.4; }
.login-heading p { margin: 0; color: var(--muted); font-size: 0.875rem; line-height: 1.85; letter-spacing: -.2px; }
.google-signin { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 44px; height: auto; margin-top: 33px; border: 1px solid var(--control-border); border-radius: 6px; background: var(--surface); color: var(--text); text-decoration: none; padding: 12px 15px; line-height: 1.5; font: 500 0.875rem/1.5 Arial, "Malgun Gothic", sans-serif; transition: background .15s, border-color .15s, box-shadow .15s; }
.google-signin img { flex: 0 0 auto; width: 20px; height: 20px; object-fit: contain; }
.google-signin:hover { border-color: var(--control-border); background: var(--hover); box-shadow: 0 1px 3px #17212e08; }
.google-signin:active { background: var(--hover); }
.google-signin.pending { pointer-events: none; color: var(--muted); border-color: var(--control-border); background: var(--disabled-bg); }
.login-access-note { margin: 17px 0 0; color: var(--muted); font-size: 0.8125rem; text-align: center; line-height: 1.8; }
.login-footer { margin: 23px 0 0; color: var(--muted); font-size: 0.8125rem; }
.toast-region { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 100; width: max-content; max-width: min(540px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 14px; padding: 14px 17px; border: 1px solid var(--toast-text); border-radius: 6px; background: var(--toast-bg); color: var(--toast-text); box-shadow: 0 8px 35px #17212e20; font-size: 0.8125rem; line-height: 1.8; }
.toast > span { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.toast button { min-width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: inherit; font-size: 1.375rem; opacity: 1; line-height: 1; cursor: pointer; }
@media (max-width: 480px) { .login-shell { padding: 28px 21px; } .login-card { padding: 34px 28px 29px; border-radius: 6px; } .login-brand { margin-bottom: 39px; } .login-heading h1 { font-size: 1.6875rem; } .login-heading p { font-size: 0.8125rem; } .google-signin { margin-top: 29px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.login-heading p, .login-access-note { max-inline-size: 40em; max-inline-size: 40ic; line-height: 1.5; margin-block-end: 2.25em; }
.login-brand > span, .google-signin > span { min-width: 0; overflow-wrap: anywhere; }
.google-signin { flex-wrap: wrap; }
@media (max-width: 30em) { .login-shell { padding-inline: 1rem; } .login-card { padding-inline: 1.25rem; } .toast { flex-wrap: wrap; } .toast > span { flex-basis: 100%; } }

/* Shared interaction geometry and readable text at browser/user text scaling. */
html { scroll-padding-block: 1rem; }
button, input, select, summary, a { scroll-margin-block: 1rem; }
button, select, summary { min-inline-size: 44px; min-block-size: 44px; }
button, a, input, select, p, h1, h2, h3, dt, dd, code, pre { overflow-wrap: anywhere; }
button, select, input { max-inline-size: 100%; }
button, select { line-height: 1.5; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; inset-inline-start: 1rem; top: -12rem; z-index: 1000; display: flex; align-items: center; min-width: 44px; min-height: 44px; max-inline-size: calc(100vw - 2rem); padding: .75rem 1rem; border: 2px solid var(--green); border-radius: .5rem; background: var(--surface); color: var(--green); }
.skip-link:focus { top: 1rem; }
.toast { max-block-size: calc(100dvh - 2rem); overflow: auto; }
.toast button, .toast a, .toast-action { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 44px; min-height: 44px; padding: .5rem; color: var(--toast-text); background: transparent; border: 1px solid currentColor; border-radius: .375rem; font: inherit; line-height: 1.5; text-decoration: underline; text-underline-offset: .2em; }
.toast button[aria-label] { font-size: 1.375rem; text-decoration: none; }
.toast button:focus-visible, .toast a:focus-visible { outline-color: var(--toast-text); box-shadow: 0 0 0 3px var(--toast-bg); }
.field-error { margin: .5rem 0 0; color: var(--danger); font-size: .875rem; line-height: 1.5; }
.reauth-dialog { width: 30rem; max-width: calc(100vw - 2rem); max-height: calc(100dvh - 2rem); overflow: auto; padding: 1.75rem; border: 1px solid var(--control-border); border-radius: .8125rem; background: var(--surface); color: var(--text); }
.reauth-dialog::backdrop { background: #171c2499; }
.reauth-dialog h2 { color: var(--ink); font-size: 1.375rem; line-height: 1.5; }
.reauth-dialog p { line-height: 1.5; max-inline-size: 40em; max-inline-size: 40ic; margin-block-end: 2.25em; }
.reauth-dialog .dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; }
.reauth-dialog button, .reauth-dialog a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: .625rem .875rem; border: 1px solid var(--control-border); border-radius: .4375rem; background: var(--surface); color: var(--text); font: inherit; line-height: 1.5; }
.reauth-dialog .button-primary { color: var(--on-brand); background: var(--green); border-color: var(--green); }
.reauth-dialog .button-primary:hover { background: var(--green-hover); border-color: var(--green-hover); }
@media (forced-colors: active) {
  :focus-visible { outline: 3px solid Highlight !important; box-shadow: none !important; }
  button, input, select, summary, dialog, .button, .google-signin { border-color: ButtonText; }
  .run-row.selected, .task-row.selected, .nav-item.active { outline: 2px solid Highlight; outline-offset: -3px; }
  .status-icon, .badge, .status-badge { border: 1px solid currentColor; }
  .icon, .connection-label img, .device-symbol img { filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
