:root {
  color-scheme: light;
  font: 16px/1.5 Inter, "Segoe UI", Arial, sans-serif;
  color: #162542;
  background: #f6f6f1;
  --ink: #162542;
  --nav: #102344;
  --accent: #244df4;
  --accent-hover: #1d3fd3;
  --muted: #4c5c72;
  --border: #dce3ed;
  --pale: #eaf0ff;
  --white: #fff;
  --green: #10634f;
  --mint: #def4ec;
  --amber: #795019;
  --sand: #fff0d8;
  --red: #a32b42;
  --rose: #fcebef;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-inline-size: 280px; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
:focus-visible { outline: 3px solid #4974ef; outline-offset: 3px; }
main:focus, h1:focus, [tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
.skip-link { position: fixed; z-index: 10; left: 12px; top: 12px; padding: 10px 16px; border-radius: 6px; background: var(--white); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.icon { width: 21px; height: 21px; flex: 0 0 auto; vertical-align: middle; }
.initial { min-height: 100vh; display: grid; align-content: center; justify-items: center; padding: 24px; }
.initial .card { width: min(100%, 400px); }
.eyebrow { font-size: .75rem; font-weight: 750; line-height: 1.45; letter-spacing: .035em; }
.brand { display: flex; align-items: center; gap: 12px; color: white; line-height: 1.16; }
.brand img { flex: 0 0 auto; }
.brand strong { display: block; font-size: 1.25rem; font-weight: 780; }
.brand small { display: block; margin-top: 4px; color: #c4d3eb; font-size: .8125rem; }

.button { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; min-height: 42px; border: 1px solid transparent; border-radius: 8px; font-size: .875rem; font-weight: 725; text-align: center; text-decoration: none; line-height: 1.32; }
.button .icon { width: 17px; height: 17px; }
.button.primary { color: white; background: var(--accent); }
.button.primary:hover { background: var(--accent-hover); }
.button.secondary { background: white; border-color: #cbd7e7; color: var(--ink); }
.button.secondary:hover { background: #f2f5fd; }
.button.danger { background: var(--red); color: white; }
.button.danger:hover { background: #802034; }
.button:disabled, .button:disabled:hover { opacity: .65; }
.button[aria-busy="true"], form[aria-busy="true"] button[type="submit"] { cursor: progress; }
.link-button { padding: 4px 0; border: 0; color: #2348cd; background: transparent; font-weight: 700; font-size: .875rem; text-align: start; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { color: #142d93; }
.link-button:disabled { color: var(--muted); text-decoration: none; }
.link-button .icon { width: 18px; height: 18px; margin-right: 4px; }

.auth-layout { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); min-height: 100vh; min-height: 100svh; }
.auth-side { display: flex; flex-direction: column; padding: clamp(36px, 4.4vw, 64px); background: var(--nav); color: white; }
.auth-story { margin: auto 0; padding: 50px 0; }
.auth-story .eyebrow { color: #d0def5; }
.story-title { margin: 14px 0 15px; max-width: 540px; font-size: clamp(2.5rem, 4.45vw, 4rem); line-height: 1.03; letter-spacing: -.045em; font-weight: 755; text-wrap: balance; }
.story-description { max-width: 418px; color: #cbd9ed; font-size: clamp(.9375rem, 1.45vw, 1.0625rem); }
.auth-rule { display: flex; align-items: flex-start; gap: 10px; max-width: 400px; padding-top: 21px; margin-top: 29px; border-top: 1px solid #435b7c; font-size: .875rem; }
.auth-rule p { margin-top: 2px; color: #c0d0e8; font-size: .8125rem; }
.auth-tagline { color: #c0cfe5; font-size: .75rem; }
.auth-main { display: grid; place-items: center; min-width: 0; padding: clamp(28px, 4vw, 56px); }
.auth-card { width: min(100%, 510px); padding: clamp(24px, 3.2vw, 42px); background: white; border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 14px 38px -32px #18356360; }
.feature-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; background: var(--pale); color: #2145d4; }
.auth-card h1 { margin: 15px 0 6px; font-size: clamp(1.88rem, 3.1vw, 2.625rem); line-height: 1.07; font-weight: 760; letter-spacing: -.043em; }
.auth-description { color: var(--muted); font-size: .9375rem; overflow-wrap: anywhere; }
.auth-description strong { color: var(--ink); }
.auth-card form { margin-top: 23px; }
.auth-card .submit { margin-top: 16px; width: 100%; min-height: 46px; }
.auth-card .notice { margin-top: 12px; }
.auth-card footer { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 13px; color: var(--muted); font-size: .8125rem; }
.resend { margin-top: 13px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; color: var(--muted); font-size: .8125rem; }
.code-input { font-variant-numeric: tabular-nums; letter-spacing: .26em; }

.field { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: .875rem; font-weight: 740; }
.field input, .field select { width: 100%; min-height: 43px; color: var(--ink); border: 1px solid #acbad0; border-radius: 8px; background: #fff; padding: 8px 11px; font-size: .9375rem; }
.field select { padding-right: 28px; }
.field input::placeholder { color: #65758a; }
.field [aria-invalid="true"] { border-color: var(--red); }
.field small { color: var(--muted); font-size: .8125rem; }
.notice { display: flex; gap: 9px; padding: 12px 14px; max-width: 100%; border: 1px solid #c9d6f5; background: #eef3ff; border-radius: 9px; color: #2141a0; font-size: .875rem; align-items: flex-start; }
.notice p { color: inherit; font-size: .8125rem; margin-top: 3px; }
.notice.error { background: var(--rose); color: var(--red); border-color: #e6bdc6; }
.notice.success { background: var(--mint); color: var(--green); border-color: #afd7ca; }

.workspace-layout { min-height: 100vh; display: grid; grid-template-columns: 226px minmax(0, 1fr); }
.sidebar { padding: 23px 14px 19px; background: var(--nav); color: #cbd8ee; display: flex; flex-direction: column; gap: 24px; }
.sidebar .brand { gap: 9px; padding: 0 7px; }
.sidebar .brand img { width: 34px; height: 34px; }
.sidebar .brand strong { font-size: 1.0625rem; }
.sidebar .brand small { font-size: .6875rem; margin-top: 3px; }
.side-footer { margin: auto 7px 0; padding-top: 12px; border-top: 1px solid #3c5479; color: #c3d1e7; font-size: .75rem; }
.side-footer strong { color: #eef4ff; }
.nav-item { width: 100%; display: flex; align-items: center; text-decoration: none; gap: 8px; margin: 2px 0; padding: 9px 9px; min-height: 41px; border-radius: 7px; color: #d4dff2; font-size: .8125rem; font-weight: 650; }
.nav-item:hover, .nav-item[aria-current="page"] { background: #254375; color: white; }
.nav-item .icon { width: 17px; height: 17px; }
.nav-heading { margin: 19px 9px 5px; font-size: .6875rem; color: #b8c7df; font-weight: 730; }
.home-link { margin-bottom: 16px; }
.mobile-nav { display: none; }

.workspace-main { min-width: 0; }
.topbar { min-height: 62px; padding: 8px clamp(20px, 3vw, 42px); border-bottom: 1px solid var(--border); background: white; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.scope { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 1px 12px; color: var(--muted); font-size: .8125rem; }
.scope strong { color: var(--ink); font-size: .875rem; overflow-wrap: anywhere; }
.scope span { overflow-wrap: anywhere; }
.account-menu { position: relative; flex: 0 0 auto; }
.account-menu summary, .mobile-nav summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.account-menu summary::-webkit-details-marker, .mobile-nav summary::-webkit-details-marker { display: none; }
.account-menu summary { min-height: 42px; padding: 3px 5px; border-radius: 7px; color: var(--ink); font-size: .8125rem; font-weight: 700; }
.account-menu summary:hover { background: #f0f4fb; }
.account-menu summary > .icon { width: 16px; height: 16px; }
.account-label { max-width: 160px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; flex: 0 0 auto; overflow: hidden; color: #2343b3; background: #e6edff; font-size: .75rem; font-weight: 750; }
.account-dropdown { position: absolute; z-index: 3; right: 0; top: calc(100% + 5px); min-width: 200px; width: max-content; max-width: min(280px, 77vw); border: 1px solid var(--border); padding: 6px 6px 8px; border-radius: 10px; background: white; box-shadow: 0 10px 25px #10234419; font-size: .8125rem; }
.account-dropdown p { color: var(--muted); padding: 9px; border-bottom: 1px solid var(--border); margin-bottom: 4px; overflow-wrap: anywhere; }
.account-dropdown a, .account-dropdown button { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 36px; padding: 6px 8px; border-radius: 6px; text-decoration: none; font-size: .8125rem; }
.account-dropdown a:hover, .account-dropdown button:hover { background: #f0f4fb; }
.account-dropdown .icon { width: 16px; height: 16px; }

.main-content { max-width: 1230px; padding: 27px clamp(20px, 3vw, 42px) 40px; margin-inline: auto; }
.page-heading { margin: 0 0 18px; }
.page-heading .eyebrow { margin-bottom: 5px; color: #2746bc; }
.page-heading h1 { font-size: clamp(1.875rem, 3.1vw, 2.5rem); line-height: 1.11; letter-spacing: -.037em; font-weight: 765; }
.page-heading > p:last-child { margin-top: 6px; color: var(--muted); font-size: .9375rem; }
.content-grid, .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stack { display: grid; gap: 12px; min-width: 0; }
.card, .workspace-card { min-width: 0; padding: clamp(16px, 2vw, 23px); background: white; border: 1px solid var(--border); border-radius: 11px; }
.card h2, .workspace-card h2 { font-size: 1.1875rem; line-height: 1.25; letter-spacing: -.016em; }
.card h3 { font-size: .9375rem; }
.card p { color: var(--muted); font-size: .875rem; }
.card-heading { margin-bottom: 14px; }
.card-heading p { margin-top: 4px; }
.workspace-card { display: grid; justify-items: start; align-content: start; gap: 10px; color: white; background: var(--nav); border-color: var(--nav); }
.workspace-card .feature-icon { color: white; background: #2b497f; }
.workspace-card p { color: #d5e0f4; font-size: .875rem; }
.workspace-card .button { margin-top: 5px; }
.form-grid { align-items: start; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.card .form-actions { margin-top: 15px; }
.card .notice { margin-top: 12px; }
.signout { color: var(--red); }
.signout:hover { color: #802034; }
.detail { display: grid; grid-template-columns: minmax(110px, 26%) minmax(0, 1fr); align-items: start; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); font-size: .875rem; }
.detail dt { color: var(--muted); font-weight: 660; }
.detail dd { overflow-wrap: anywhere; }
.detail:last-child { padding-bottom: 0; }
.chips { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.badge { display: inline-flex; border-radius: 5px; padding: 3px 7px; color: #425c7c; background: #edf1f7; font-size: .71875rem; font-weight: 745; }
.badge.blue { background: var(--pale); color: #2440b3; }
.badge.green { background: var(--mint); color: var(--green); }
.badge.amber { background: var(--sand); color: var(--amber); }
.muted { color: var(--muted); }
.loading { padding: 17px 0; color: var(--muted); }
.access-help { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
#global-message { margin-bottom: 12px; }

.section-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.section-link { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 9px; border: 1px solid var(--border); border-radius: 8px; color: var(--ink); text-decoration: none; }
.section-link:hover { background: #f2f5ff; border-color: #bfcef3; }
.section-link .feature-icon { width: 34px; height: 34px; border-radius: 7px; }
.section-link .feature-icon .icon { width: 17px; height: 17px; }
.section-link strong, .section-link small { display: block; }
.section-link strong { font-size: .8125rem; }
.section-link small { margin-top: 2px; color: var(--muted); font-size: .75rem; }
.section-link > .icon { margin-left: auto; width: 15px; }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead { background: #f2f5fa; text-align: start; }
th, td { padding: 11px 10px; border-bottom: 1px solid var(--border); text-align: start; vertical-align: top; }
thead th { color: var(--muted); font-size: .75rem; font-weight: 740; }
tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 660; }
tbody th small { display: block; margin-top: 3px; color: var(--muted); font-size: .75rem; font-weight: 500; }
.empty { display: flex; gap: 10px; padding: 14px; border: 1px dashed #c8d5e8; border-radius: 8px; color: #264aba; background: #f5f7fb; }
.empty h3 { color: var(--ink); }
.empty p { margin-top: 3px; }
.notification-table th:is(:nth-child(2), :nth-child(3)), .notification-table td { width: 94px; text-align: center; vertical-align: middle; }
.toggle { display: inline-flex; position: relative; width: 45px; height: 30px; align-items: center; cursor: pointer; }
.toggle input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.toggle span { display: block; position: relative; width: 40px; height: 23px; margin: auto; border-radius: 20px; background: #63748e; pointer-events: none; }
.toggle span::after { content: ''; position: absolute; top: 4px; left: 4px; width: 15px; height: 15px; border-radius: 50%; background: #fff; }
.toggle input:checked + span { background: var(--accent); }
.toggle input:checked + span::after { left: 21px; }
.toggle input:focus-visible + span { outline: 3px solid #4974ef; outline-offset: 3px; }

.session-list { list-style: none; padding: 0; }
.session-row { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-top: 1px solid var(--border); }
.session-row:last-child { padding-bottom: 0; }
.session-info { flex: 1 1 auto; min-width: 0; }
.session-info h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.session-info p { font-size: .8125rem; margin-top: 3px; }
.session-row .button { flex: 0 0 auto; }
dialog { max-width: min(410px, calc(100vw - 32px)); padding: 20px; border: 1px solid var(--border); border-radius: 12px; color: var(--ink); }
dialog::backdrop { background: #10234474; }
dialog h2 { font-size: 1.25rem; }
dialog p { color: var(--muted); margin: 6px 0 16px; font-size: .9rem; }
dialog .form-actions { justify-content: flex-end; }

@media (max-width: 1050px) {
  .section-links { grid-template-columns: 1fr; }
}

@media (max-width: 740px) {
  .auth-layout { display: block; }
  .auth-side { padding: 24px clamp(20px, 6vw, 44px); }
  .auth-side .brand img { width: 34px; height: 34px; }
  .auth-side .brand strong { font-size: 1.0625rem; }
  .auth-side .brand small { font-size: .6875rem; }
  .auth-story { padding: 19px 0 0; }
  .story-title { font-size: clamp(1.55rem, 5.5vw, 2.5rem); max-width: 500px; margin: 4px 0 5px; }
  .story-description { max-width: 475px; font-size: .875rem; }
  .auth-rule, .auth-tagline { display: none; }
  .auth-main { padding: 20px clamp(14px, 5vw, 30px) 27px; }
  .auth-card { border-radius: 13px; padding: clamp(19px, 5vw, 29px); }
  .auth-card form { margin-top: 16px; }
  .workspace-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .sidebar { padding: 9px clamp(15px, 4vw, 24px); gap: 4px; flex-direction: row; justify-content: space-between; align-items: center; position: relative; z-index: 5; }
  .sidebar .brand { gap: 6px; padding: 0; }
  .sidebar .brand img { width: 28px; height: 28px; }
  .sidebar .brand strong { font-size: .875rem; }
  .sidebar .brand small { font-size: .625rem; }
  .desktop-nav, .side-footer { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav summary { gap: 5px; min-height: 40px; padding: 4px 0 4px 4px; color: #e7efff; font-size: .75rem; font-weight: 660; }
  .mobile-nav summary .icon { width: 15px; height: 15px; }
  .mobile-nav nav { position: absolute; right: clamp(15px, 4vw, 24px); top: calc(100% - 2px); width: min(245px, 91vw); max-height: 75vh; overflow-y: auto; padding: 9px; background: var(--nav); border: 1px solid #47618d; border-radius: 9px; box-shadow: 0 12px 20px #10234435; }
  .topbar { min-height: 51px; }
  .main-content { padding-top: 21px; }
}

@media (max-width: 510px) {
  .scope { display: block; line-height: 1.25; }
  .scope strong, .scope span { display: block; }
  .scope span { font-size: .75rem; }
  .account-label { display: none; }
  .form-grid, .content-grid { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 38% minmax(0, 1fr); gap: 7px; }
  .session-row { flex-wrap: wrap; }
  .session-row > .button { margin-left: 52px; }
  .notification-table th:is(:nth-child(2), :nth-child(3)), .notification-table td { width: 52px; padding-inline: 3px; }
  .notification-table tr > :first-child { padding-inline: 6px; }
}
