/* Copyright (c) 2026 CTD Systems. All rights reserved. */
:root {
  --bg: #f3f6f8;
  --surface: #ffffff;
  --ink: #14212a;
  --muted: #4a5a66;
  --brand: #2b4f5f;
  --brand-ink: #ffffff;
  --line: #dce5eb;
  --warn-bg: #fff4d6;
  --warn-ink: #5a3d00;
  --error: #b42318;
  --brand-soft: #ddeaf2;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #0d141a;
  --surface: #141e26;
  --ink: #e8eef2;
  --muted: #a9b8c3;
  --brand: #7db8da;
  --brand-ink: #0b1d28;
  --line: #24323d;
  --warn-bg: #3a2c05;
  --warn-ink: #ffe7a3;
  --error: #ffb4a8;
  --brand-soft: #173041;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.5 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
}
.env-banner {
  background: var(--warn-bg);
  color: var(--warn-ink);
  text-align: center;
  font-weight: 600;
  padding: 6px 16px;
  font-size: 14px;
}
.shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 100px);
  padding: 24px 16px;
}
.card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
}
.mark {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 800;
  font-size: 22px;
}
h1 {
  margin: 0 0 4px;
  font-size: 28px;
}
.lead {
  margin: 0 0 16px;
}
.muted {
  color: var(--muted);
  margin: 0 0 24px;
}
.foot {
  text-align: center;
  padding: 0 16px 24px;
}
.card h1 {
  font-size: 24px;
}
.card {
  text-align: left;
}
.card .mark {
  margin: 0 0 12px;
}
.field {
  margin: 0 0 16px;
}
label {
  display: block;
  font-weight: 600;
  margin: 0 0 6px;
}
input[type='email'],
input[type='password'],
input[type='text'],
input:not([type]) {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--muted);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
input:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 400;
  margin: 0 0 16px;
  min-height: 44px;
}
.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
}
.btn {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: var(--brand-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.card .btn {
  width: 100%;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.link-btn {
  background: none;
  border: 0;
  padding: 10px 4px;
  min-height: 44px;
  color: var(--ink);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
a {
  color: var(--ink);
}
.small {
  margin: 16px 0 0;
}
.error {
  color: var(--error);
  font-weight: 600;
  margin: 0 0 12px;
}
.error:empty {
  display: none;
}
.notice {
  background: var(--brand-soft);
  border-radius: 10px;
  padding: 10px 12px;
}
.hint {
  color: var(--muted);
  font-size: 14px;
}
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  margin-right: auto;
}
.mark.sm {
  width: 32px;
  height: 32px;
  font-size: 16px;
  margin: 0;
  border-radius: 8px;
}
.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin: 0 0 20px;
}
.panel h2 {
  margin: 0 0 12px;
  font-size: 18px;
}
.sessions {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sessions li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 45%);
  display: grid;
  place-items: center;
  padding: 16px;
}
.overlay[hidden] {
  display: none;
}
.dialog {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px;
  max-width: 380px;
}
