:root {
  color-scheme: dark;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #f1f2f6;
  background: #0b0d13;
  font-synthesis: none;
  --muted: #9ca2b5;
  --accent: #c1b6ff;
  --line: #282c39;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; background: radial-gradient(ellipse at 80% 30%, #191627 0, transparent 43%); }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.page-shell { max-width: 1320px; min-height: 100vh; margin: 0 auto; padding: 0 64px; display: flex; flex-direction: column; }
.site-header { min-height: 112px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { color: #f6f6fa; display: inline-flex; align-items: baseline; gap: 5px; font-size: 32px; font-weight: 850; letter-spacing: -.08em; text-decoration: none; }
.wordmark-dot { display: inline-block; height: 6px; width: 6px; background: var(--accent); border-radius: 1px; }
.header-label, .site-footer, .eyebrow, .card-topline, .section-number, .summary-label { font-size: 10px; font-weight: 650; letter-spacing: .16em; }
.header-label { color: var(--muted); }
main { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 430px); gap: clamp(40px, 7vw, 100px); align-items: center; padding: 72px 0; }
.eyebrow { color: var(--accent); display: flex; align-items: center; gap: 10px; margin: 0 0 28px; }
.status-dot { height: 6px; width: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #c1b6ff12; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(42px, 4.8vw, 66px); letter-spacing: -.055em; line-height: 1.07; margin-bottom: 25px; font-weight: 650; }
.welcome-copy h1 span { color: var(--accent); }
.welcome-description { color: #aeb4c5; font-size: 16px; line-height: 1.7; max-width: 360px; margin-bottom: 0; }
.welcome-details { display: grid; gap: 23px; margin-top: 51px; }
.welcome-detail { display: flex; gap: 19px; }
.detail-number { color: #777d92; font-size: 11px; padding-top: 3px; }
.welcome-detail h2 { font-size: 13px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; }
.welcome-detail p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0; }
.account-card, .settings-card { background: #12151e; border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.account-card { box-shadow: 0 24px 80px #00000035; }
.card-topline { color: #888fa5; display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; font-size: 9px; }
.card-corner { color: var(--accent); font-size: 17px; }
.auth-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid #252938; background: #0d0f17; border-radius: 9px; margin-bottom: 28px; }
.auth-tab { flex: 1; border: 0; border-radius: 6px; background: transparent; color: var(--muted); padding: 10px 5px; font-size: 12px; font-weight: 600; }
.auth-tab[aria-selected="true"] { color: #f6f5ff; background: #282735; box-shadow: 0 2px 5px #00000020; }
.account-card h2, .settings-card h2 { font-size: 23px; font-weight: 600; letter-spacing: -.035em; margin-bottom: 9px; }
.card-description { color: var(--muted); font-size: 13px; line-height: 1.65; margin-bottom: 26px; }
.field { margin-bottom: 19px; }
label { display: block; font-size: 12px; font-weight: 550; color: #d5d8e4; margin-bottom: 9px; }
input { width: 100%; min-height: 46px; background: #0c0f16; border: 1px solid #2c3040; border-radius: 7px; padding: 11px 13px; color: #f1f2f6; font-size: 13px; transition: border-color .15s; }
input:hover { border-color: #464d63; }
input::placeholder { color: #858ca2; opacity: 1; }
input[aria-invalid="true"] { border-color: #efb0ae; }
.field-help { color: var(--muted); font-size: 11px; line-height: 1.55; margin: 7px 0 0; }
.primary-button, .secondary-button { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 7px; min-height: 46px; padding: 12px 16px; font-size: 12px; font-weight: 650; transition: background .15s, border-color .15s; }
.primary-button { background: var(--accent); border: 1px solid var(--accent); color: #191426; width: 100%; margin-top: 25px; }
.primary-button:hover:enabled { background: #d1c9ff; border-color: #d1c9ff; }
.secondary-button { color: #e4e4ee; background: #191c27; border: 1px solid #383c4d; }
.secondary-button:hover:enabled { background: #252939; border-color: #64677f; }
.card-footnote { color: #8f96aa; font-size: 11px; text-align: center; border-top: 1px solid var(--line); padding-top: 22px; margin: 25px 0 0; line-height: 1.6; }
.notice, .form-error, .noscript-notice { font-size: 12px; line-height: 1.65; padding: 12px 14px; border: 1px solid #455242; background: #172219; color: #c2e3bd; border-radius: 7px; margin: 0 0 20px; overflow-wrap: anywhere; }
.notice.is-error, .form-error { border-color: #613a40; background: #291a21; color: #ffc2c7; }
.notice.is-info { border-color: #3f405b; background: #1c1d2e; color: #d9d6f5; }
.form-error { margin-top: 12px; margin-bottom: 0; }
.site-footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; padding: 27px 0 29px; color: #9299ac; font-size: 9px; }
.site-footer span span { color: #4d5366; margin: 0 7px; }
.site-footer > span:last-child { letter-spacing: .04em; font-weight: 450; font-size: 11px; }
.loading-view { text-align: center; padding: 100px 20px; color: var(--muted); font-size: 13px; }
.loading-indicator { display: inline-block; width: 22px; height: 22px; border: 2px solid #383446; border-top-color: var(--accent); border-radius: 50%; margin-bottom: 16px; animation: spin 1s linear infinite; }
.account-layout { padding: 60px 0 72px; }
.account-heading-row { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-bottom: 40px; }
.account-heading-row .eyebrow { margin-bottom: 20px; }
.account-heading-row h1 { font-size: clamp(30px, 3.5vw, 44px); margin-bottom: 13px; overflow-wrap: anywhere; }
.account-heading-row .welcome-description { max-width: none; font-size: 14px; }
.account-heading-row .secondary-button { flex-shrink: 0; }
.account-summary { display: grid; grid-template-columns: 1fr 1fr 1.4fr; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 28px; background: #11141c; padding: 27px 0; }
.summary-item { display: flex; flex-direction: column; gap: 11px; padding: 0 28px; min-width: 0; }
.summary-item + .summary-item { border-left: 1px solid var(--line); }
.summary-label { color: var(--muted); font-size: 9px; }
.summary-item strong { color: #ececf6; font-size: 15px; font-weight: 550; overflow-wrap: anywhere; }
.summary-note { color: var(--muted); font-size: 11px; margin-top: -5px; }
.settings-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; }
.section-number { display: block; color: var(--accent); font-size: 9px; margin-bottom: 25px; }
.settings-card .card-description { max-width: 340px; }
.settings-card form { margin-top: 26px; }
.session-card { display: flex; flex-direction: column; }
.session-illustration { display: flex; flex: 1; min-height: 180px; align-items: center; justify-content: center; position: relative; }
.session-ring { position: absolute; width: 118px; height: 118px; border: 1px solid #3d374f; border-radius: 50%; box-shadow: 0 0 0 25px #1b1925, 0 0 0 26px #292433; }
.session-symbol { position: relative; font-size: 47px; font-weight: 750; color: var(--accent); }
.wide-button { width: 100%; margin-top: 30px; }
.noscript-notice { margin: 30px 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1000px) {
  .page-shell { padding: 0 36px; }
  .auth-layout { gap: 40px; grid-template-columns: 1fr minmax(330px, 400px); }
  h1 { font-size: 48px; }
  .welcome-description { font-size: 14px; }
  .account-card, .settings-card { padding: 27px; }
}
@media (max-width: 760px) {
  .page-shell { padding: 0 24px; }
  .site-header { min-height: 86px; }
  .auth-layout { grid-template-columns: 1fr; gap: 34px; padding: 42px 0; max-width: 460px; width: 100%; margin: 0 auto; }
  .welcome-copy .eyebrow { margin-bottom: 19px; }
  h1 { font-size: 46px; margin-bottom: 18px; }
  .welcome-description { max-width: 360px; }
  .welcome-details { display: none; }
  .account-layout { padding: 40px 0; }
  .account-heading-row { align-items: flex-start; flex-direction: column; gap: 22px; }
  .account-summary { grid-template-columns: 1fr; padding: 0 23px; }
  .summary-item { padding: 23px 0; }
  .summary-item + .summary-item { border-left: 0; border-top: 1px solid var(--line); }
  .settings-grid { grid-template-columns: 1fr; gap: 22px; }
  .session-illustration { min-height: 180px; }
  .site-footer { font-size: 8px; letter-spacing: .08em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
