@font-face {
  font-family: "Inter";
  src: url("/v2/static/assets/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("/v2/static/assets/inter-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --navy: #071858;
  --navy-2: #12349a;
  --blue: #1464ff;
  --blue-dark: #0b46c2;
  --cyan: #1bb9e8;
  --ink: #0b174d;
  --muted: #687595;
  --muted-dark: #4f5d7c;
  --line: rgb(10 39 118 / 13%);
  --line-strong: rgb(10 39 118 / 22%);
  --surface: #ffffff;
  --surface-soft: #f3f7ff;
  --canvas: #f8fbff;
  --success: #087a57;
  --warning: #8a4d00;
  --danger: #b4233c;
  --shadow-sm: 0 10px 32px rgb(19 58 130 / 7%);
  --shadow-lg: 0 28px 90px rgb(18 52 154 / 12%);
  --focus: 0 0 0 4px rgb(20 100 255 / 20%);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at 8% 10%, rgb(20 100 255 / 9%), transparent 28rem),
    radial-gradient(circle at 92% 88%, rgb(27 185 232 / 10%), transparent 30rem),
    var(--canvas);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgb(7 24 88 / 3.2%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(7 24 88 / 3.2%) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 92%);
}

body.is-loading {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(1280px, calc(100% - 64px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: relative;
  min-height: 104px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  width: 178px;
  align-items: center;
  line-height: 0;
  border-radius: 8px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.header-context {
  min-width: 0;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-left: 1px solid var(--line);
}

.tenant-name {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.context-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-menu {
  position: relative;
  z-index: 20;
  justify-self: end;
}

.account-menu-trigger {
  min-width: 248px;
  max-width: min(340px, 42vw);
  min-height: 50px;
  padding: 7px 12px 7px 7px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: rgb(255 255 255 / 92%);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.account-menu-trigger:hover,
.account-menu-trigger[aria-expanded="true"] {
  border-color: rgb(20 100 255 / 42%);
  background: #fff;
  box-shadow: 0 14px 34px rgb(19 58 130 / 12%);
}

.account-menu-trigger:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.account-menu-identity {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.account-menu-identity small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.account-menu-identity strong {
  width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-chevron {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--muted-dark);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 150ms ease;
}

.account-menu-trigger[aria-expanded="true"] .account-menu-chevron {
  transform: rotate(180deg);
}

.account-menu-panel {
  position: absolute;
  z-index: 50;
  top: calc(100% + 10px);
  right: 0;
  width: min(330px, calc(100vw - 24px));
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgb(255 255 255 / 98%);
  box-shadow: 0 24px 70px rgb(7 24 88 / 20%);
  backdrop-filter: blur(18px);
}

.account-menu-panel form {
  margin: 0;
}

.account-menu-item {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 9px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
}

.account-menu-item:hover,
.account-menu-item:focus-visible {
  color: var(--blue-dark);
  background: var(--surface-soft);
}

.account-menu-item:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.account-menu-icon,
.account-menu-check {
  width: 20px;
  flex: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.account-menu-language {
  padding-top: 5px;
}

.account-menu-heading {
  margin: 0;
  padding: 8px 11px 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.account-language-option[aria-checked="true"] {
  color: var(--blue-dark);
  background: rgb(20 100 255 / 8%);
}

.account-language-option[aria-checked="true"] .account-menu-check {
  color: var(--blue);
  font-weight: 900;
}

.account-menu-separator {
  height: 1px;
  margin: 7px 5px;
  background: var(--line);
}

.account-menu-logout {
  color: #8b2940;
}

.account-menu-logout:hover,
.account-menu-logout:focus-visible {
  color: var(--danger);
  background: #fff4f6;
}

main {
  min-width: 0;
  flex: 1;
}

.site-footer {
  min-height: 88px;
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  color: var(--navy);
}

.auth-layout {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 88%);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.auth-story {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(42px, 6vw, 78px);
  color: #fff;
  background:
    radial-gradient(circle at 78% 16%, rgb(27 185 232 / 32%), transparent 18rem),
    radial-gradient(circle at 12% 78%, rgb(20 100 255 / 45%), transparent 22rem),
    linear-gradient(145deg, #071858 0%, #0b2375 54%, #12349a 100%);
}

.auth-story::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.32;
  background-image:
    linear-gradient(rgb(255 255 255 / 9%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 9%) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(135deg, #000, transparent 75%);
}

.story-orbit {
  position: absolute;
  z-index: 1;
  display: block;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 50%;
}

.story-orbit::before,
.story-orbit::after {
  position: absolute;
  display: block;
  width: 10px;
  height: 10px;
  border: 4px solid rgb(255 255 255 / 16%);
  border-radius: 50%;
  content: "";
  background: var(--cyan);
}

.story-orbit-one {
  top: -90px;
  right: -80px;
  width: 420px;
  height: 420px;
}

.story-orbit-one::before {
  top: 265px;
  left: 8px;
}

.story-orbit-one::after {
  right: 42px;
  bottom: 72px;
}

.story-orbit-two {
  top: 64px;
  right: 32px;
  width: 230px;
  height: 230px;
}

.story-orbit-two::before {
  top: -7px;
  left: 105px;
}

.story-orbit-two::after {
  display: none;
}

.story-content {
  position: relative;
  z-index: 2;
  max-width: 630px;
}

.auth-story .eyebrow {
  color: #8de4ff;
}

.auth-story .story-title {
  max-width: 610px;
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 4.4vw, 66px);
  font-weight: 690;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.auth-story p:not(.eyebrow):not(.story-title) {
  max-width: 560px;
  margin: 26px 0 0;
  color: rgb(255 255 255 / 76%);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.7;
}

.security-assurance {
  margin-top: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgb(255 255 255 / 88%);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.assurance-icon {
  position: relative;
  width: 24px;
  height: 20px;
  border: 2px solid var(--cyan);
  border-radius: 7px;
}

.assurance-icon::before {
  position: absolute;
  top: -10px;
  left: 5px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--cyan);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  content: "";
}

.auth-card {
  min-width: 0;
  padding: clamp(44px, 6vw, 82px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgb(255 255 255 / 86%);
}

.auth-card h1,
.auth-card h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(32px, 3.5vw, 46px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.intro {
  max-width: 510px;
  margin: 20px 0 30px;
  color: var(--muted-dark);
  font-size: 15px;
  line-height: 1.65;
}

form {
  margin: 0;
}

.auth-card form {
  display: grid;
  gap: 18px;
}

.auth-card .auth-secondary-action {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.text-button {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  color: var(--blue-dark);
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.text-button:hover {
  color: var(--blue);
}

.field {
  position: relative;
  display: grid;
  gap: 8px;
}

.field label,
.workspace-tools label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
}

.field input,
.search-field input {
  width: 100%;
  min-width: 0;
  border: 1px solid #aeb9d0;
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: #fff;
  outline: 0;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.field input {
  min-height: 52px;
  padding: 13px 15px;
}

.field input:hover,
.search-field input:hover {
  border-color: #7d8caf;
}

.field input:focus,
.search-field input:focus {
  border-color: var(--blue);
  box-shadow: var(--focus);
}

.field-hint {
  position: absolute;
  top: 47px;
  right: 14px;
  max-width: 46%;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.primary-button,
.quiet-button,
.primary-link {
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 740;
  text-decoration: none;
}

.primary-button {
  min-height: 52px;
  margin-top: 4px;
  padding: 13px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(110deg, var(--blue-dark), var(--blue));
  box-shadow: 0 12px 24px rgb(20 100 255 / 19%);
  cursor: pointer;
}

.primary-button:hover {
  background: linear-gradient(110deg, #082f8e, #0c55e8);
}

.button-arrow {
  font-size: 20px;
  font-weight: 500;
}

.form-alert {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid #f2d4a4;
  border-radius: 10px;
  color: var(--warning);
  background: #fff8e9;
  font-size: 13px;
  line-height: 1.45;
}

.verification-layout {
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(340px, 0.88fr) minmax(440px, 1.12fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 88%);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.verification-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle, rgb(27 185 232 / 17%), transparent 44%),
    linear-gradient(145deg, #eef5ff, #f8fbff);
}

.verification-visual::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgb(7 24 88 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(7 24 88 / 4%) 1px, transparent 1px);
  background-size: 36px 36px;
}

.verification-rings {
  position: relative;
  width: 300px;
  height: 300px;
  display: grid;
  place-items: center;
}

.verification-rings > span {
  position: absolute;
  border: 1px solid rgb(20 100 255 / 16%);
  border-radius: 50%;
}

.verification-rings > span:nth-child(1) {
  inset: 0;
}

.verification-rings > span:nth-child(2) {
  inset: 46px;
}

.verification-rings > span:nth-child(3) {
  inset: 92px;
  border-color: rgb(27 185 232 / 34%);
  background: rgb(255 255 255 / 78%);
  box-shadow: 0 20px 60px rgb(20 100 255 / 12%);
}

.verification-shield {
  position: relative;
  z-index: 2;
  width: 55px;
  height: 66px;
  border-radius: 16px 16px 24px 24px;
  background: linear-gradient(145deg, var(--blue), var(--cyan));
  clip-path: polygon(50% 0, 94% 16%, 88% 72%, 50% 100%, 12% 72%, 6% 16%);
  box-shadow: 0 16px 32px rgb(20 100 255 / 22%);
}

.verification-shield::after {
  position: absolute;
  top: 24px;
  left: 21px;
  width: 14px;
  height: 8px;
  border-bottom: 3px solid #fff;
  border-left: 3px solid #fff;
  content: "";
  transform: rotate(-45deg);
}

.totp-input {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.32em;
  text-align: center;
}

.enrollment-layout {
  grid-template-columns: minmax(360px, 0.92fr) minmax(460px, 1.08fr);
}

.enrollment-qr-frame {
  position: relative;
  z-index: 1;
  width: min(76%, 340px);
  padding: 20px;
  border: 1px solid rgb(20 100 255 / 14%);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgb(20 100 255 / 15%);
}

.enrollment-qr-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.enrollment-card {
  padding-block: clamp(34px, 5vw, 62px);
}

.enrollment-steps {
  margin: 0 0 20px;
  padding-left: 22px;
  color: var(--muted-dark);
  font-size: 14px;
  line-height: 1.55;
}

.enrollment-steps li + li {
  margin-top: 6px;
}

.manual-key {
  margin: 0 0 12px;
  padding: 14px 16px;
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.manual-key span {
  color: var(--muted-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.manual-key code {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.enrollment-expiry {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.workspace {
  min-height: 590px;
  padding: clamp(30px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 86%);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.workspace-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.workspace-header h1 {
  margin: 0;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
}

.workspace-summary {
  margin: 15px 0 0;
  color: var(--muted-dark);
  font-size: 14px;
}

.workspace-refresh {
  flex: 0 0 auto;
}

.workspace-refresh-button {
  min-height: 42px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.workspace-refresh-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.workspace-language-error {
  margin: 24px 0 0;
  padding: 12px 14px;
  border: 1px solid rgb(180 35 60 / 22%);
  border-radius: 10px;
  color: #8b2940;
  background: #fff4f6;
  font-size: 13px;
  line-height: 1.5;
}

.account-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--navy-2), var(--blue));
  font-size: 13px;
  font-weight: 800;
}

.quiet-button {
  min-height: 46px;
  padding: 11px 15px;
  border: 1px solid var(--line-strong);
  color: var(--navy);
  background: #fff;
  cursor: pointer;
}

.quiet-button:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
  background: var(--surface-soft);
}

.workspace-notice {
  margin: 28px 0 0;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  color: var(--muted-dark);
  background: var(--surface-soft);
  font-size: 12px;
  line-height: 1.5;
}

.workspace-notice > span {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.workspace-tools {
  max-width: 620px;
  margin-top: 28px;
  display: grid;
  gap: 9px;
}

.search-field {
  position: relative;
}

.search-field input {
  min-height: 50px;
  padding: 12px 16px 12px 46px;
}

.search-icon {
  position: absolute;
  z-index: 1;
  top: 15px;
  left: 17px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  pointer-events: none;
}

.search-icon::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  content: "";
  background: var(--muted);
  transform: rotate(45deg);
}

.resource-groups {
  margin-top: 36px;
  display: grid;
  gap: 40px;
}

.resource-group {
  min-width: 0;
}

.group-heading {
  margin-bottom: 16px;
  padding-bottom: 13px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.group-context {
  margin: 0 0 6px;
  display: flex;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.group-context strong {
  max-width: 460px;
  overflow: hidden;
  color: var(--blue-dark);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-heading h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}

.folder-badge {
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  color: var(--muted-dark);
  background: var(--surface-soft);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.folder-badge > span {
  width: 13px;
  height: 9px;
  display: block;
  border: 1.5px solid var(--blue);
  border-radius: 2px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 245px), 1fr));
  gap: 14px;
}

.resource-card {
  min-width: 0;
  min-height: 190px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 98%), rgb(248 251 255 / 94%));
  box-shadow: 0 10px 28px rgb(18 52 154 / 5%);
  outline: 0;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.resource-card:hover {
  border-color: rgb(20 100 255 / 28%);
  box-shadow: 0 16px 34px rgb(18 52 154 / 9%);
  transform: translateY(-2px);
}

.resource-card:focus-visible {
  border-color: var(--blue);
  box-shadow: var(--focus), 0 16px 34px rgb(18 52 154 / 9%);
}

.resource-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.resource-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(20 100 255 / 9%);
  border-radius: 15px;
  background: linear-gradient(145deg, #e9f1ff, #f6fbff);
}

.resource-icon-remoteapp {
  background: linear-gradient(145deg, #e8faff, #f3fbff);
}

.resource-icon img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.resource-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.resource-icon-remoteapp svg {
  stroke: #0582aa;
}

.resource-type {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: #eaf1ff;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.resource-type-remoteapp {
  color: #056684;
  background: #e6f8fd;
}

.resource-details {
  margin-top: 14px;
}

.resource-details h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 720;
  line-height: 1.3;
}

.resource-details p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.resource-actions {
  margin-top: auto;
  padding-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.resource-actions button {
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid #c6cee0;
  border-radius: 10px;
  color: #5f6d8d;
  background: #f3f5fa;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.resource-actions-single {
  grid-template-columns: 1fr;
}

.resource-actions button:disabled {
  cursor: not-allowed;
  opacity: 1;
}

.resource-actions form {
  min-width: 0;
}

.resource-actions form button {
  width: 100%;
  height: 100%;
}

.resource-actions .native-launch-button,
.resource-actions .html5-launch-button {
  border-color: #1267df;
  color: #ffffff;
  background: #1267df;
  cursor: pointer;
}

.resource-actions .native-launch-button:hover,
.resource-actions .html5-launch-button:hover {
  border-color: #0a50ba;
  background: #0a50ba;
}

@media (hover: hover) and (pointer: fine) and (min-width: 821px) {
  .resource-card .resource-actions {
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition:
      opacity 140ms ease,
      transform 140ms ease;
  }

  .resource-card:hover .resource-actions,
  .resource-card:focus-within .resource-actions {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

.settings-page main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.settings-shell {
  padding: clamp(1.5rem, 4vw, 3.5rem) 0 4rem;
}

.settings-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.settings-header h1 {
  margin: 0.25rem 0 0.75rem;
}

.settings-header p:last-child {
  max-width: 72ch;
  color: var(--muted);
}

.settings-success {
  padding: 0.9rem 1rem;
  border: 1px solid #91d0b0;
  border-radius: 0.75rem;
  background: #ecfff5;
  color: #125b38;
}

.settings-section-nav {
  position: sticky;
  top: 12px;
  z-index: 8;
  margin: 0 0 1.5rem;
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 8px 28px rgb(24 54 84 / 8%);
  backdrop-filter: blur(14px);
}

.settings-section-nav a {
  min-height: 36px;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.settings-section-nav a:hover {
  border-color: var(--line-strong);
  color: var(--blue-dark);
  background: var(--surface-soft);
}

.settings-form > h2,
.settings-section-heading {
  scroll-margin-top: 78px;
}

.settings-form > h2:focus-visible,
.settings-section-heading:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.settings-form > h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
}

.setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 1.5rem;
  align-items: center;
  padding: 1.15rem;
  margin-bottom: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 54, 84, 0.05);
}

.setting-copy h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.setting-copy p,
.setting-copy details {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.setting-copy details code,
.setting-copy details span {
  display: block;
  margin-top: 0.35rem;
  overflow-wrap: anywhere;
}

.setting-risk {
  padding-left: 0.65rem;
  border-left: 3px solid #d4a22f;
}

.setting-risk-high {
  border-left-color: #c45151;
}

.setting-control {
  display: grid;
  gap: 0.65rem;
}

.setting-control select,
.setting-control input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.6rem;
  background: #fff;
  color: var(--ink);
}

.setting-input-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.resolution-picker,
.resolution-picker [data-resolution-custom] {
  display: grid;
  gap: 0.45rem;
}

.resolution-picker [data-resolution-custom][hidden] {
  display: none;
}

.resolution-picker > label,
.resolution-picker [data-resolution-custom] > label {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.setting-control label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.managed-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: #edf2f8;
  color: #41566d;
  font-size: 0.78rem;
  font-weight: 700;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.confirm-restore {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  color: var(--muted);
}

.danger-button {
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 1px solid #c94545;
  border-radius: 0.65rem;
  background: #fff;
  color: #a52222;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 760px) {
  .settings-section-nav {
    position: static;
  }

  .settings-header,
  .setting-row {
    grid-template-columns: 1fr;
  }

  .settings-header {
    display: grid;
  }

  .confirm-restore {
    width: 100%;
    margin-left: 0;
  }
}

.workspace-empty,
.search-empty {
  max-width: 660px;
  margin: 64px auto 20px;
  padding: 34px;
  text-align: center;
}

.workspace-empty h2,
.search-empty h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.workspace-empty > p:last-child,
.search-empty p {
  max-width: 570px;
  margin: 15px auto 0;
  color: var(--muted-dark);
  font-size: 14px;
  line-height: 1.65;
}

.empty-illustration {
  position: relative;
  width: 140px;
  height: 105px;
  margin: 0 auto 30px;
}

.empty-illustration::before {
  position: absolute;
  inset: 32px 12px 0;
  border: 1px solid rgb(20 100 255 / 20%);
  border-radius: 18px;
  content: "";
  background: linear-gradient(145deg, #eaf2ff, #f6fbff);
  box-shadow: 0 16px 35px rgb(20 100 255 / 10%);
}

.empty-illustration span {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 6px 16px rgb(20 100 255 / 20%);
}

.empty-illustration span:nth-child(1) {
  top: 18px;
  left: 20px;
}

.empty-illustration span:nth-child(2) {
  top: 2px;
  left: 59px;
  background: var(--cyan);
}

.empty-illustration span:nth-child(3) {
  top: 22px;
  right: 17px;
  background: var(--navy-2);
}

.empty-symbol {
  position: relative;
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  display: block;
  border: 3px solid var(--blue);
  border-radius: 50%;
}

.empty-symbol::after {
  position: absolute;
  right: -8px;
  bottom: 1px;
  width: 16px;
  height: 3px;
  border-radius: 3px;
  content: "";
  background: var(--blue);
  transform: rotate(45deg);
}

.state-page main {
  display: grid;
  place-items: center;
}

.state-card {
  width: min(610px, 100%);
  margin: 40px auto;
  padding: clamp(34px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  background: rgb(255 255 255 / 90%);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.state-card h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.state-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 28px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  font-size: 27px;
  font-weight: 760;
}

.state-icon-error {
  color: var(--danger);
  background: #fff0f2;
}

.state-icon-success {
  color: var(--success);
  background: #eaf8f2;
}

.state-icon-time {
  position: relative;
  border-radius: 50%;
  background: #edf3ff;
}

.state-icon-time::before {
  position: absolute;
  inset: 16px;
  border: 3px solid var(--blue);
  border-radius: 50%;
  content: "";
}

.state-icon-time span::before,
.state-icon-time span::after {
  position: absolute;
  top: 31px;
  left: 32px;
  width: 11px;
  height: 3px;
  border-radius: 2px;
  content: "";
  background: var(--blue);
  transform-origin: left center;
}

.state-icon-time span::before {
  transform: rotate(-90deg);
}

.state-icon-time span::after {
  transform: rotate(25deg);
}

.state-intro {
  max-width: 500px;
  margin: 20px auto 28px;
  color: var(--muted-dark);
  font-size: 15px;
  line-height: 1.65;
}

.incident-details {
  margin: 0 0 30px;
  padding: 5px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  background: var(--surface-soft);
}

.incident-details > div {
  padding: 13px 0;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 14px;
}

.incident-details > div + div {
  border-top: 1px solid var(--line);
}

.incident-details dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.incident-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.primary-link {
  min-height: 50px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(110deg, var(--blue-dark), var(--blue));
  box-shadow: 0 12px 24px rgb(20 100 255 / 19%);
}

.loading-overlay {
  position: fixed;
  z-index: 90;
  inset: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgb(7 24 88 / 38%);
  backdrop-filter: blur(12px);
}

.loading-card {
  width: min(470px, 100%);
  padding: 42px;
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 26px;
  text-align: center;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 30px 100px rgb(7 24 88 / 26%);
}

.loading-mark {
  position: relative;
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  display: block;
  border: 2px solid rgb(20 100 255 / 14%);
  border-radius: 50%;
}

.loading-mark::before {
  position: absolute;
  inset: 7px;
  border: 3px solid transparent;
  border-top-color: var(--blue);
  border-right-color: var(--cyan);
  border-radius: 50%;
  content: "";
  animation: loading-spin 850ms linear infinite;
}

.loading-kicker {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.loading-card h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.035em;
}

.loading-card > p:not(.loading-kicker) {
  margin: 14px 0 22px;
  color: var(--muted-dark);
  font-size: 14px;
  line-height: 1.6;
}

.loading-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4eaf5;
}

.loading-progress span {
  width: 38%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  animation: loading-progress 1.25s ease-in-out infinite alternate;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:where(
  a,
  button,
  input,
  [tabindex="0"]
):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loading-progress {
  from {
    transform: translateX(-4%);
  }
  to {
    transform: translateX(168%);
  }
}

@media (max-width: 1040px) {
  .site-shell {
    width: min(100% - 40px, 920px);
  }

  .auth-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
  }

  .auth-story {
    padding: 42px;
  }

  .auth-story .story-title {
    font-size: 44px;
  }

  .verification-layout {
    grid-template-columns: minmax(300px, 0.78fr) minmax(400px, 1.22fr);
  }

  .workspace {
    padding: 36px;
  }

  .search-field input {
    font-size: 14px;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 94px;
  }

  .header-context {
    display: none;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .auth-layout,
  .verification-layout {
    grid-template-columns: 1fr;
  }

  .auth-story {
    min-height: 280px;
    align-items: center;
    padding: 36px;
  }

  .auth-story .story-title {
    max-width: 560px;
    font-size: 42px;
  }

  .auth-story p:not(.eyebrow):not(.story-title) {
    margin-top: 18px;
  }

  .security-assurance {
    margin-top: 24px;
  }

  .auth-card {
    padding: 46px;
  }

  .verification-visual {
    min-height: 250px;
  }

  .verification-rings {
    width: 210px;
    height: 210px;
  }

  .verification-rings > span:nth-child(2) {
    inset: 34px;
  }

  .verification-rings > span:nth-child(3) {
    inset: 70px;
  }

  .workspace-header {
    align-items: stretch;
    flex-direction: column;
  }

  .workspace-refresh-button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 24px, 520px);
  }

  .site-header {
    min-height: 78px;
    gap: 12px;
  }

  .brand-link {
    width: 130px;
  }

  .account-menu-trigger {
    width: min(230px, calc(100vw - 166px));
    min-width: 0;
    max-width: none;
  }

  .account-menu-identity small {
    display: none;
  }

  .account-menu-panel {
    width: min(320px, calc(100vw - 24px));
  }

  .site-footer {
    min-height: 94px;
    margin-top: 20px;
    padding: 22px 0;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
  }

  .auth-layout,
  .verification-layout,
  .workspace,
  .state-card {
    border-radius: 22px;
  }

  .auth-story {
    min-height: 205px;
    padding: 27px 24px;
  }

  .auth-story .eyebrow {
    margin-bottom: 10px;
    font-size: 9px;
  }

  .auth-story .story-title {
    font-size: 32px;
  }

  .auth-story p:not(.eyebrow):not(.story-title) {
    display: none;
  }

  .security-assurance {
    margin-top: 17px;
    font-size: 10px;
  }

  .auth-card {
    padding: 32px 24px 34px;
  }

  .auth-card h1,
  .auth-card h2 {
    font-size: 32px;
  }

  .intro {
    margin: 15px 0 24px;
    font-size: 14px;
  }

  .verification-visual {
    min-height: 180px;
  }

  .verification-rings {
    width: 160px;
    height: 160px;
  }

  .verification-rings > span:nth-child(2) {
    inset: 27px;
  }

  .verification-rings > span:nth-child(3) {
    inset: 54px;
  }

  .verification-shield {
    width: 44px;
    height: 53px;
  }

  .verification-shield::after {
    top: 18px;
    left: 16px;
  }

  .workspace {
    min-height: 520px;
    padding: 28px 20px;
  }

  .workspace-header h1 {
    font-size: 38px;
  }

  .quiet-button {
    width: 100%;
  }

  .workspace-notice {
    align-items: flex-start;
  }

  .resource-groups {
    margin-top: 30px;
    gap: 34px;
  }

  .group-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .group-context strong {
    max-width: 210px;
  }

  .resource-card {
    min-height: 0;
  }

  .resource-actions {
    grid-template-columns: 1fr;
  }

  .workspace-empty,
  .search-empty {
    margin-top: 40px;
    padding: 20px 4px;
  }

  .state-card {
    margin: 20px auto;
    padding: 34px 22px;
  }

  .incident-details > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .loading-card {
    padding: 34px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* V3-M3 product shell and accessibility refinements. */
.public-language-selector {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
}

.public-language-selector a {
  min-height: 36px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--muted-dark);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.public-language-selector a[aria-current="true"] {
  color: #fff;
  background: var(--blue-dark);
}

.global-notification {
  max-width: 1120px;
  margin: 0 auto 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.global-notification-error {
  border: 1px solid rgb(180 35 60 / 28%);
  color: #7d1f32;
  background: #fff4f6;
}

.resource-catalog {
  margin-top: 30px;
}

.resource-card {
  min-height: 190px;
  background: #fff;
  transform: none;
}

.resource-card:hover {
  transform: none;
}

.resource-actions button,
.account-menu-item,
.danger-button,
.quiet-button {
  min-height: 44px;
}

.settings-entitlement {
  width: fit-content;
  margin-top: 18px !important;
  padding: 8px 11px;
  display: flex;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 12px;
}

.setting-summary {
  margin: 12px 0 0;
  display: grid;
  gap: 5px;
}

.setting-summary > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.75fr) minmax(0, 1fr);
  gap: 10px;
}

.setting-summary dt,
.setting-summary dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.setting-summary dt {
  color: var(--muted);
}

.setting-summary dd {
  color: var(--ink);
  font-weight: 650;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

:where(h1, h2, h3, [id]):target,
#main-content {
  scroll-margin-top: 20px;
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

@media (max-width: 560px) {
  .public-language-selector {
    gap: 0;
  }

  .public-language-selector a {
    min-height: 40px;
    padding-inline: 7px;
    font-size: 10px;
  }

  .setting-summary > div {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .settings-actions > *,
  .inline-actions > * {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .site-shell {
    width: calc(100% - 16px);
  }

  .site-header {
    grid-template-columns: minmax(0, 112px) minmax(0, 1fr);
  }

  .brand-link {
    width: 112px;
  }

  .account-menu-trigger {
    width: min(198px, calc(100vw - 144px));
  }

  .account-avatar {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .account-menu-trigger {
    grid-template-columns: 32px minmax(0, 1fr) 16px;
    gap: 7px;
  }
}

@media (forced-colors: active) {
  * {
    box-shadow: none !important;
  }

  :where(a, button, input, select, summary):focus-visible {
    outline: 3px solid Highlight;
    outline-offset: 3px;
  }

  .resource-type,
  .managed-badge,
  .settings-entitlement,
  .workspace-notice {
    border: 1px solid CanvasText;
  }

  .account-avatar,
  .resource-actions .native-launch-button,
  .resource-actions .html5-launch-button,
  .public-language-selector a[aria-current="true"] {
    forced-color-adjust: none;
  }
}
