:root {
  color-scheme: light;
  --page: #f5f7f5;
  --surface: #ffffff;
  --surface-subtle: #fafbfa;
  --surface-hover: #f3f7f4;
  --text: #17211c;
  --text-soft: #3f4d45;
  --muted: #627068;
  --faint: #66736f;
  --line: #dce3de;
  --line-strong: #c8d2cb;
  --brand: #176c4d;
  --brand-hover: #125b40;
  --brand-soft: #eaf5ef;
  --brand-line: #b9ddca;
  --success: #176c4d;
  --warning: #9b5d13;
  --warning-soft: #fff5e5;
  --warning-line: #edcf9b;
  --danger: #a63d3d;
  --danger-soft: #fff0ee;
  --danger-line: #edc1bb;
  --info: #315f80;
  --info-soft: #eef5f9;
  --focus: #2176bd;
  --radius-sm: 4px;
  --radius-md: 6px;
  --sidebar: 224px;
  --topbar: 56px;
  --workspace-max: 1480px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --fast: 120ms;
  --normal: 180ms;
  --sheet: 220ms;
  font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0;
}

body.drawer-open,
body.overlay-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

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

button {
  color: inherit;
}

button:not(:disabled),
a[href] {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: #cde9da;
  color: var(--text);
}

h1,
h2,
h3,
p,
dl,
dd,
ol,
ul {
  margin: 0;
}

h1,
h2,
h3,
strong,
b {
  font-weight: 650;
}

button {
  border: 0;
  background: transparent;
}

.sr-only {
  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;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: #fff;
  text-decoration: none;
  transition: transform var(--fast) var(--ease);
}

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

.brand-symbol {
  display: inline-grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.primary-button,
.secondary-button,
.text-button,
.row-action,
.icon-button {
  min-height: 40px;
  border-radius: var(--radius-sm);
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease), opacity var(--fast) var(--ease);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}

.primary-button:hover:not(:disabled) {
  border-color: var(--brand-hover);
  background: var(--brand-hover);
}

.primary-button:active:not(:disabled),
.secondary-button:active:not(:disabled),
.text-button:active:not(:disabled),
.row-action:active:not(:disabled) {
  opacity: 0.72;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}

.secondary-button:hover:not(:disabled) {
  border-color: #aebbb2;
  background: var(--surface-hover);
}

.text-button {
  min-height: 36px;
  padding: 0 8px;
  color: var(--brand);
  font-weight: 600;
}

.text-button:hover:not(:disabled) {
  background: var(--brand-soft);
}

.row-action {
  min-height: 32px;
  padding: 0 8px;
  color: var(--brand);
  font-weight: 600;
}

.row-action:hover {
  background: var(--brand-soft);
}

.icon-button {
  display: inline-grid;
  width: 40px;
  min-width: 40px;
  height: 40px;
  place-items: center;
  color: var(--text-soft);
  font-size: 22px;
  line-height: 1;
}

.icon-button:hover {
  background: var(--surface-hover);
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background-color var(--fast) var(--ease);
}

textarea {
  min-height: 112px;
  padding: 10px 12px;
  line-height: 1.55;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #aebbb2;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 16%, transparent);
  outline: 0;
}

input[aria-invalid="true"] {
  border-color: var(--danger);
}

select:disabled,
input:disabled,
textarea:disabled {
  background: #f2f4f2;
  color: var(--faint);
}

.boot-screen {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--surface);
  color: var(--muted);
}

.boot-screen strong {
  margin-top: 8px;
  color: var(--text);
  font-size: 18px;
}

.skeleton-line {
  width: 180px;
  height: 3px;
  margin-top: 10px;
  overflow: hidden;
  background: #e7ece8;
}

.skeleton-line::after {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--brand);
  content: "";
  animation: loading-line 1.1s infinite var(--ease);
}

@keyframes loading-line {
  from { transform: translateX(-100%); }
  to { transform: translateX(350%); }
}

.boot-shell {
  min-height: 100vh;
  background: var(--surface);
}

.boot-shell .portal-sidebar,
.boot-shell .portal-main {
  pointer-events: none;
}

.boot-nav-row {
  display: grid;
  min-height: 44px;
  align-items: center;
  grid-template-columns: 24px 18px minmax(0, 1fr);
  gap: 10px;
  padding: 0 11px;
  color: var(--muted);
}

.boot-nav-row b {
  color: var(--faint);
  font-size: 12px;
  font-weight: 500;
}

.boot-nav-row > span {
  font-size: 14px;
}

.skeleton-block {
  display: block;
  width: 100%;
  height: 12px;
  border-radius: 2px;
  background: #e6ebe7;
  animation: skeleton-pulse 1.2s ease-in-out infinite alternate;
}

.skeleton-short { width: 72px; }
.skeleton-medium { width: 128px; }
.skeleton-wide { width: min(240px, 82%); }
.skeleton-title { width: min(180px, 60%); height: 24px; }

@keyframes skeleton-pulse {
  from { opacity: 0.52; }
  to { opacity: 1; }
}

.boot-sidebar .sidebar-account {
  gap: 9px;
}

.boot-topbar-lines {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.boot-page-header > div,
.boot-scope > span {
  display: grid;
  gap: 8px;
}

.boot-scope {
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.7fr) minmax(170px, 0.9fr);
}

.boot-scope > span {
  min-height: 48px;
  align-content: center;
}

.boot-resource .table-toolbar > div {
  display: flex;
  align-items: center;
  gap: 18px;
}

.boot-resource .resource-table td .skeleton-block {
  margin: 2px 0;
}

.boot-shell .metric-strip {
  --metric-count: 4;
}

.boot-table-lines {
  border-top: 1px solid var(--line);
}

.boot-table-lines > i {
  display: block;
  height: 58px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, transparent 0 3%, #edf1ee 3% 20%, transparent 20% 28%, #edf1ee 28% 42%, transparent 42% 54%, #edf1ee 54% 66%, transparent 66% 100%);
  opacity: 0.72;
}

.boot-metrics > span {
  display: block;
  min-height: 100px;
  border-left: 1px solid var(--line);
  background: linear-gradient(90deg, transparent 18px, #edf1ee 18px 72px, transparent 72px), linear-gradient(90deg, transparent 18px, #e6ebe7 18px 112px, transparent 112px);
  background-position: 0 22px, 0 48px;
  background-repeat: no-repeat;
  animation: skeleton-pulse 1.2s ease-in-out infinite alternate;
}

.boot-metrics > span:first-child {
  border-left: 0;
}

/* Logged-in application shell */

.portal-shell {
  min-height: 100vh;
}

.portal-sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar);
  min-height: 100vh;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #fbfcfb;
}

.sidebar-brand {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.sidebar-brand > span:nth-child(2) {
  display: grid;
  min-width: 0;
  flex: 1;
}

.sidebar-brand strong {
  font-size: 15px;
}

.sidebar-brand small,
.sidebar-account small {
  color: var(--muted);
  font-size: 12px;
}

.sidebar-close {
  display: none;
}

.portal-sidebar nav {
  display: grid;
  gap: 4px;
  padding: 18px 12px;
}

.nav-group-label {
  padding: 0 10px 6px;
  color: var(--faint);
  font-size: 12px;
}

.portal-sidebar nav button {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  border-left: 2px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  text-align: left;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

.portal-sidebar nav button:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.portal-sidebar nav button.active {
  border-left-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 650;
}

.nav-index {
  width: 24px;
  color: var(--faint);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.portal-sidebar nav button.active .nav-index {
  color: var(--brand);
}

.sidebar-account {
  display: grid;
  gap: 2px;
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.sidebar-account > span {
  color: var(--faint);
  font-size: 13px;
}

.sidebar-account strong,
.sidebar-account small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-account button {
  min-height: 38px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-soft);
}

.sidebar-account button:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
}

.sidebar-scrim {
  display: none;
}

.portal-main {
  width: calc(100% - var(--sidebar));
  min-height: 100vh;
  margin-left: var(--sidebar);
  background: var(--surface);
}

.portal-main:focus,
.public-main:focus,
.auth-page:focus {
  outline: 0;
}

.portal-topbar {
  position: sticky;
  z-index: 25;
  top: 0;
  display: flex;
  height: var(--topbar);
  align-items: center;
  gap: 12px;
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(10px);
}

.menu-button {
  display: none;
}

.topbar-context {
  color: var(--muted);
  font-size: 13px;
}

.topbar-service {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.topbar-service i,
.inline-notice > i,
.status-pill i,
.task-row > i,
.capability-strip i {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand);
}

.topbar-service.is-unknown i {
  background: var(--warning);
}

.topbar-service.is-stale i {
  background: var(--warning);
}

.sync-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  font-size: 18px;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

.sync-button:hover,
.sync-button:focus-visible {
  background: var(--surface-hover);
  color: var(--text);
}

.sync-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.page-header {
  display: flex;
  width: 100%;
  max-width: var(--workspace-max);
  align-items: flex-end;
  justify-content: space-between;
  margin-right: auto;
  margin-left: auto;
  padding: 28px 36px 22px;
}

.page-header > div {
  min-width: 0;
}

.page-header span {
  color: var(--muted);
  font-size: 12px;
}

.page-header h1 {
  margin-top: 4px;
  font-size: 26px;
  line-height: 36px;
}

.page-header p {
  max-width: 760px;
  margin-top: 4px;
  color: var(--muted);
}

.scope-bar {
  display: grid;
  width: calc(100% - 72px);
  max-width: calc(var(--workspace-max) - 72px);
  grid-template-columns: minmax(190px, 1.2fr) minmax(150px, 0.75fr) minmax(180px, 1fr) minmax(220px, 1.4fr);
  align-items: end;
  gap: 16px;
  margin: 0 auto;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.scope-tenant {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 42px;
}

.scope-tenant > span,
.scope-bar label > span {
  color: var(--faint);
  font-size: 12px;
}

.scope-tenant strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scope-tenant small {
  color: var(--muted);
  font-size: 12px;
}

.scope-bar label {
  display: grid;
  gap: 3px;
}

.scope-fixed {
  display: grid;
  min-height: 42px;
  align-content: center;
  gap: 2px;
}

.scope-fixed span {
  color: var(--faint);
  font-size: 12px;
}

.scope-fixed strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scope-bar select {
  min-height: 36px;
  padding-right: 28px;
}

.scope-bar > p {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.page-content {
  width: 100%;
  max-width: var(--workspace-max);
  margin-right: auto;
  margin-left: auto;
  padding: 24px 36px 52px;
}

.portal-section {
  display: grid;
  min-width: 0;
  gap: 24px;
}

.portal-subnav {
  display: flex;
  gap: 18px;
  min-height: 40px;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
}

.portal-subnav button {
  position: relative;
  min-height: 40px;
  padding: 0 2px;
  color: var(--muted);
  font-weight: 600;
}

.portal-subnav button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
}

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

.portal-subnav button.active {
  color: var(--brand);
}

.portal-subnav button.active::after {
  background: var(--brand);
}

.inline-notice {
  display: flex;
  min-height: 52px;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
}

.inline-notice > i {
  margin-top: 7px;
  background: var(--info);
}

.inline-notice > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.inline-notice strong {
  font-size: 13px;
}

.inline-notice small {
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.notice-success {
  border-color: var(--brand-line);
  background: var(--brand-soft);
}

.notice-success > i {
  background: var(--brand);
}

.notice-warning {
  border-color: var(--warning-line);
  background: var(--warning-soft);
}

.notice-warning > i {
  background: var(--warning);
}

.notice-danger {
  border-color: var(--danger-line);
  background: var(--danger-soft);
}

.notice-danger > i {
  background: var(--danger);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(var(--metric-count), minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.metric-item {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 110px;
  align-content: start;
  gap: 3px;
  padding: 18px 20px;
}

.metric-item + .metric-item {
  border-left: 1px solid var(--line);
}

.metric-item dt {
  color: var(--muted);
  font-size: 12px;
}

.metric-item dd {
  overflow: visible;
  color: var(--text);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  line-height: 30px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.metric-item small {
  overflow: visible;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  white-space: normal;
}

.metric-success dd {
  color: var(--brand);
}

.metric-warning dd {
  color: var(--warning);
}

.metric-progress {
  display: block;
  width: 100%;
  height: 3px;
  margin: 4px 0 2px;
  overflow: hidden;
  background: #e8ede9;
}

.metric-progress i {
  display: block;
  height: 100%;
  background: var(--brand);
}

.metric-warning .metric-progress i {
  background: var(--warning);
}

.continuous-section {
  min-width: 0;
  padding-top: 4px;
}

.section-heading {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.section-heading > div {
  display: grid;
  gap: 1px;
}

.section-heading span {
  color: var(--muted);
  font-size: 12px;
}

.section-heading h2,
.table-toolbar h2,
.help-links h2 {
  font-size: 20px;
  line-height: 29px;
}

.section-heading > small,
.table-toolbar > div > span {
  color: var(--muted);
  font-size: 12px;
}

.task-list {
  display: grid;
}

.task-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  min-height: 64px;
  align-items: center;
  gap: 14px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  transition: background-color var(--fast) var(--ease);
}

.task-row:hover {
  background: var(--surface-hover);
}

.task-row > i {
  background: var(--info);
}

.task-warning > i {
  background: var(--warning);
}

.task-danger > i {
  background: var(--danger);
}

.task-row > span {
  display: grid;
  min-width: 0;
}

.task-row strong {
  font-size: 14px;
}

.task-row small {
  overflow: visible;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
  white-space: normal;
}

.task-row > b {
  color: var(--muted);
  font-size: 17px;
}

.page-state {
  display: flex;
  min-height: 96px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  text-align: center;
}

.state-mark {
  display: block;
  width: 18px;
  height: 18px;
  margin-bottom: 8px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
}

.page-state strong {
  font-size: 15px;
}

.page-state p {
  max-width: 520px;
  margin-top: 4px;
  color: var(--muted);
}

.step-list {
  list-style: none;
}

.step-list li {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  min-height: 62px;
  align-items: center;
  gap: 14px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
}

.step-list li:not(:last-child)::after {
  position: absolute;
  top: 48px;
  bottom: -14px;
  left: 19px;
  width: 1px;
  background: var(--line);
  content: "";
}

.step-index {
  position: relative;
  z-index: 1;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.step-list .is-done .step-index {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}

.step-list li > span:nth-child(2) {
  display: grid;
}

.step-list li small {
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

/* Tables and toolbars */

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

.table-toolbar {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.table-toolbar > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}

.filter-toolbar {
  min-height: 62px;
}

.toolbar-resource-summary {
  display: grid !important;
  min-width: 0;
  align-items: start !important;
  gap: 8px !important;
  white-space: normal !important;
}

.toolbar-resource-summary > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.toolbar-facts {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: stretch;
}

.toolbar-fact {
  display: grid;
  min-width: 82px;
  min-height: 36px;
  align-content: center;
  gap: 0;
  padding: 0 12px;
  border-left: 1px solid var(--line);
  color: var(--text-soft);
  text-align: left;
}

.toolbar-fact:first-child {
  padding-left: 0;
  border-left: 0;
}

button.toolbar-fact {
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

button.toolbar-fact:hover,
button.toolbar-fact.active {
  background: var(--brand-soft);
  color: var(--brand);
}

.toolbar-fact small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.toolbar-fact strong {
  overflow: hidden;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-controls {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.filter-controls select {
  width: auto;
  min-width: 116px;
  min-height: 36px;
}

.search-control {
  display: flex;
  min-width: min(280px, 30vw);
}

.search-control input {
  min-height: 36px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.search-control button,
.help-search > button:first-of-type {
  min-width: 58px;
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-left: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface-subtle);
  font-weight: 600;
}

.search-control button:hover,
.help-search > button:first-of-type:hover {
  background: var(--surface-hover);
}

.table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  contain: layout inline-size paint;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.table-pagination {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.table-pagination > div {
  display: flex;
  gap: 4px;
}

.table-pagination button {
  min-width: 64px;
  min-height: 36px;
  color: var(--text-soft);
  font-weight: 600;
}

.table-pagination button:hover:not(:disabled) {
  background: var(--surface-hover);
}

.table-pagination button:disabled {
  color: var(--faint);
  cursor: not-allowed;
}

.resource-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  table-layout: auto;
}

.resource-table th,
.resource-table td {
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.resource-table th {
  height: 40px;
  background: var(--surface-subtle);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.resource-table td {
  min-height: 58px;
  height: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}

.resource-table tbody tr:last-child td {
  border-bottom: 0;
}

.resource-table tbody tr:hover td {
  background: var(--surface-hover);
}

.resource-table td strong {
  display: block;
  max-width: 320px;
  color: var(--text);
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
}

.resource-table td small {
  display: block;
  max-width: 360px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: normal;
}

.resource-table td .mobile-summary {
  display: none;
}

.resource-table .is-current-row td:first-child {
  box-shadow: inset 3px 0 0 var(--brand);
}

.status-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}

.status-pill i {
  width: 6px;
  height: 6px;
  background: var(--info);
}

.status-ok {
  color: var(--brand);
}

.status-ok i {
  background: var(--brand);
}

.status-warning {
  color: var(--warning);
}

.status-warning i {
  background: var(--warning);
}

.status-danger {
  color: var(--danger);
}

.status-danger i {
  background: var(--danger);
}

.status-muted {
  color: var(--muted);
}

.status-muted i {
  background: var(--faint);
}

.table-empty {
  display: flex;
  min-height: 92px;
  padding: 14px 20px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.table-empty strong {
  color: var(--text);
}

.table-empty span {
  max-width: 520px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.capability-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capability-strip > span {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 2px 9px;
  min-width: 0;
  padding: 12px 16px;
}

.capability-strip > span + span {
  border-left: 1px solid var(--line);
}

.capability-strip i {
  grid-row: 1 / 3;
  align-self: center;
  background: var(--faint);
}

.capability-strip i.is-on {
  background: var(--brand);
}

.capability-strip b,
.capability-strip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capability-strip b {
  font-size: 12px;
}

.capability-strip small {
  color: var(--muted);
  font-size: 12px;
}

/* Plan and account-level version */

.plan-summary-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.plan-summary-line > span {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 16px 20px;
}

.plan-summary-line > span + span {
  border-left: 1px solid var(--line);
}

.plan-summary-line small {
  color: var(--muted);
  font-size: 13px;
}

.plan-summary-line strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quota-list {
  border-top: 1px solid var(--line);
}

.quota-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(100px, auto) minmax(160px, 1fr);
  min-height: 54px;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.quota-row > span:first-child {
  display: grid;
}

.quota-row small {
  color: var(--muted);
  font-size: 13px;
}

.quota-value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
}

.quota-track {
  display: block;
  height: 4px;
  overflow: hidden;
  background: #e8ede9;
}

.quota-track i {
  display: block;
  height: 100%;
  background: var(--brand);
}

.plan-compare-section {
  margin-top: 4px;
}

.plan-compare-section > .inline-notice {
  margin: 12px 0 0;
}

.plan-compare-section > .inline-notice + .inline-notice {
  margin-top: 8px;
}

.comparison-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  contain: layout inline-size paint;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.comparison-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  table-layout: fixed;
}

.comparison-table th,
.comparison-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  border-left: 0;
}

.comparison-table thead th {
  background: var(--surface-subtle);
}

.comparison-table thead th:first-child {
  width: 150px;
  color: var(--muted);
  font-size: 14px;
}

.comparison-table thead th:not(:first-child) {
  height: 104px;
}

.comparison-table thead strong,
.comparison-table thead span {
  display: block;
}

.comparison-table thead strong {
  font-size: 15px;
}

.comparison-table thead span {
  min-height: 22px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.comparison-table thead em {
  display: block;
  margin-top: 10px;
  color: var(--brand);
  font-size: 13px;
  font-style: normal;
  font-weight: 650;
}

.comparison-table .is-current-plan {
  background: color-mix(in srgb, var(--brand-soft) 62%, var(--surface));
}

.comparison-table thead .is-current-plan {
  box-shadow: inset 0 3px 0 var(--brand);
}

.comparison-table tbody th {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.comparison-table tbody td {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}

.download-band {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.download-band > span {
  display: grid;
  min-width: 0;
}

.download-band small,
.download-band em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.download-band strong {
  font-size: 20px;
}

.update-steps .step-list li {
  grid-template-columns: 32px minmax(0, 1fr);
}

/* Help */

.help-search {
  display: flex;
  max-width: 720px;
  margin-bottom: 6px;
}

.help-search label {
  flex: 1;
}

.help-search input {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.help-search .text-button {
  margin-left: 6px;
}

.help-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 4px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary:hover {
  background: var(--surface-hover);
}

.faq-list summary span {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--muted);
  font-size: 0;
}

.faq-list summary span::before,
.faq-list summary span::after {
  position: absolute;
  top: 8px;
  left: 3px;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  content: "";
  transition: transform var(--normal) var(--ease), opacity var(--normal) var(--ease);
}

.faq-list summary span::after {
  transform: rotate(90deg);
}

.faq-list details[open] summary span::after {
  opacity: 0;
  transform: rotate(90deg) scaleX(0);
}

.faq-list details > p {
  max-width: 760px;
  padding: 0 4px 12px;
  color: var(--text-soft);
}

.scenario-steps {
  display: grid;
  gap: 8px;
  max-width: 820px;
  margin: 0 0 14px;
  padding-left: 24px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.65;
}

.faq-list details > .text-button {
  margin: 0 0 10px -4px;
}

.help-links {
  padding: 24px 0 4px;
  border-top: 1px solid var(--line);
}

.help-links > p {
  max-width: 820px;
  color: var(--text-soft);
  font-size: 14px;
}

.help-links ol {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding-left: 20px;
  color: var(--text-soft);
  font-size: 14px;
}

.help-links .text-button {
  display: block;
  margin-left: -8px;
}

.support-evidence {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.support-evidence h3 {
  font-size: 16px;
}

.support-evidence ul {
  display: grid;
  gap: 5px;
  margin: 10px 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.definition-lines {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  list-style: none;
}

.definition-lines li {
  min-height: 48px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 14px;
}

/* Drawer and dialog */

.drawer-layer,
.dialog-layer {
  position: fixed;
  inset: 0;
}

.drawer-layer {
  z-index: 100;
}

.dialog-layer {
  z-index: 200;
}

.drawer-backdrop,
.dialog-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 28, 23, 0.32);
}

.detail-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: min(520px, calc(100vw - 40px));
  height: 100%;
  flex-direction: column;
  background: var(--surface);
  box-shadow: -18px 0 40px rgba(25, 35, 29, 0.14);
  animation: drawer-in var(--sheet) var(--ease) both;
}

@keyframes drawer-in {
  from { transform: translateX(28px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.detail-drawer > header,
.modal-dialog > header {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.detail-drawer > header > span,
.modal-dialog > header > span {
  display: grid;
  min-width: 0;
}

.detail-drawer > header small,
.modal-dialog > header small {
  color: var(--muted);
  font-size: 12px;
}

.detail-drawer > header h2,
.modal-dialog > header h2 {
  overflow: hidden;
  font-size: 17px;
  line-height: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px 32px;
}

.definition-list > div,
.compact-definition > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1.3fr);
  min-height: 46px;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.definition-list dt,
.compact-definition dt {
  color: var(--muted);
  font-size: 12px;
}

.definition-list dd,
.compact-definition dd {
  overflow-wrap: anywhere;
  color: var(--text);
  text-align: right;
}

.drawer-section {
  margin-top: 28px;
}

.drawer-section h3 {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.drawer-section > p {
  padding: 12px 0;
  color: var(--text-soft);
  white-space: pre-wrap;
}

.after-sales-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
}

.after-sales-actions .primary-button,
.after-sales-actions .secondary-button {
  min-height: 38px;
  padding: 0 14px;
}

.drawer-list > div {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.drawer-list > div > span {
  display: grid;
  min-width: 0;
}

.drawer-list small,
.drawer-footnote,
.drawer-empty {
  color: var(--muted);
  font-size: 12px;
}

.drawer-empty {
  padding: 18px 0;
}

.keyword-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 12px 0;
}

.keyword-line span {
  position: relative;
  padding-left: 10px;
  color: var(--text-soft);
  font-size: 12px;
}

.keyword-line span::before {
  position: absolute;
  top: 8px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

.timeline {
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  padding: 12px 0;
}

.timeline i {
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.timeline span {
  display: grid;
}

.timeline small {
  color: var(--muted);
}

.dialog-layer {
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(25, 35, 29, 0.2);
  animation: modal-in var(--normal) var(--ease) both;
}

@keyframes modal-in {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-dialog > .definition-list,
.modal-dialog > .inline-notice,
.legal-copy {
  margin: 16px 20px 0;
}

.modal-dialog > footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px;
}

.after-sales-action-dialog {
  width: min(520px, 100%);
}

.after-sales-action-dialog > form {
  padding: 18px 20px 20px;
}

.dialog-copy {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 22px;
}

.after-sales-action-dialog .definition-list {
  margin-top: 14px;
}

.form-field {
  display: grid;
  gap: 7px;
  margin-top: 18px;
}

.form-field > span {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.form-field > small {
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.dialog-error {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13px;
  line-height: 20px;
}

.after-sales-action-dialog form > footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.legal-copy {
  display: grid;
  gap: 12px;
  color: var(--text-soft);
}

.toast {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 20px;
  max-width: min(380px, calc(100vw - 40px));
  padding: 11px 14px;
  border: 1px solid #34463b;
  border-radius: var(--radius-sm);
  background: #25342b;
  color: #fff;
  box-shadow: 0 12px 28px rgba(25, 35, 29, 0.18);
  animation: toast-in var(--normal) var(--ease) both;
}

@keyframes toast-in {
  from { transform: translateY(6px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Authentication */

.auth-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 56fr) minmax(420px, 44fr);
  background: var(--surface);
}

.auth-value-panel {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px max(48px, 8vw) 48px;
  border-right: 1px solid var(--line);
  background: #f1f5f2;
}

.auth-brand,
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.auth-brand > span:last-child,
.site-brand > span:last-child {
  display: grid;
}

.auth-brand strong,
.site-brand strong {
  font-size: 15px;
}

.auth-brand small,
.site-brand small {
  color: var(--muted);
  font-size: 12px;
}

.auth-value-panel > div {
  max-width: 620px;
  margin: auto 0;
  padding: 64px 0;
}

.auth-value-panel > div > span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 650;
}

.auth-value-panel h1 {
  max-width: 580px;
  margin-top: 12px;
  font-size: 34px;
  line-height: 1.35;
}

.auth-value-panel p {
  max-width: 560px;
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.8;
}

.auth-value-panel ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  list-style: none;
}

.auth-value-panel li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line-strong);
}

.auth-value-panel li b {
  color: var(--brand);
  font-size: 13px;
}

.auth-value-panel li span {
  display: grid;
}

.auth-value-panel li strong {
  font-size: 14px;
}

.auth-value-panel li small {
  color: var(--muted);
  font-size: 13px;
}

.auth-form-panel {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 72px 40px 40px;
}

.auth-back {
  position: absolute;
  top: 24px;
  left: 28px;
  min-height: 36px;
  padding: 0 8px;
  color: var(--muted);
}

.auth-back:hover {
  color: var(--brand);
}

.auth-form-shell {
  width: min(440px, 100%);
}

.auth-form-shell > header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-form-shell > header > div {
  display: grid;
}

.auth-form-shell > header small {
  color: var(--muted);
  font-size: 12px;
}

.auth-heading {
  margin-top: 38px;
}

.auth-heading h2 {
  font-size: 24px;
  line-height: 32px;
}

.auth-heading p {
  margin-top: 4px;
  color: var(--muted);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 26px;
  border-bottom: 1px solid var(--line);
}

.auth-tabs button {
  position: relative;
  min-height: 42px;
  color: var(--muted);
  font-weight: 600;
}

.auth-tabs button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
}

.auth-tabs button.active {
  color: var(--brand);
}

.auth-tabs button.active::after {
  background: var(--brand);
}

.form-alert {
  display: grid;
  gap: 1px;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid var(--danger-line);
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: var(--danger);
}

.form-alert span {
  font-size: 13px;
}

.auth-form {
  display: grid;
  margin-top: 20px;
}

.auth-form > label:not(.agreement-row) {
  margin: 12px 0 6px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
}

.auth-field {
  display: grid;
  min-width: 0;
}

.auth-field label {
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
}

.auth-field input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
}

.verification-field {
  display: grid;
  margin-top: 9px;
}

.verification-field > label {
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
}

.verification-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 8px;
}

.verification-row input,
.verification-row button {
  width: 100%;
  min-width: 0;
  min-height: 46px;
}

.verification-row button {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.verification-row button:hover:not(:disabled) {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.verification-row button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 24%, transparent);
  outline-offset: 2px;
}

.verification-row button:disabled {
  cursor: not-allowed;
  color: var(--muted);
  opacity: 0.72;
}

.verification-status {
  min-height: 18px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}

.verification-status.success {
  color: var(--success);
}

.verification-status.warning {
  color: var(--warning);
}

.verification-status.error {
  color: var(--danger);
}

.auth-form > input,
.password-field input {
  min-height: 46px;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 62px;
}

.password-field button {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 52px;
  height: 38px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
}

.password-field button:hover {
  background: var(--brand-soft);
}

.field-error {
  margin-top: 4px;
  color: var(--danger);
  font-size: 13px;
}

.agreement-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.agreement-row input {
  width: 16px;
  min-height: 16px;
  margin: 2px 0 0;
  accent-color: var(--brand);
}

.agreement-row button {
  min-height: auto;
  padding: 0;
  color: var(--brand);
  vertical-align: baseline;
}

.auth-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 20px;
}

.auth-form-shell > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

.auth-form-shell.is-registering .auth-heading {
  margin-top: 24px;
}

.auth-form-shell.is-registering .auth-tabs {
  margin-top: 18px;
}

.auth-form-shell.is-registering .auth-form {
  margin-top: 12px;
}

.auth-form-shell.is-registering .auth-form > label:not(.agreement-row) {
  margin-top: 9px;
}

.auth-form-shell.is-registering .agreement-row {
  margin-top: 12px;
}

.auth-form-shell.is-registering .auth-submit {
  margin-top: 14px;
}

.auth-form-shell.is-registering > footer {
  margin-top: 12px;
}

/* Public website */

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  height: 72px;
  align-items: center;
  gap: 28px;
  padding: 0 max(32px, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid rgba(16, 20, 24, 0.08);
  background: rgba(248, 246, 240, 0.86);
  backdrop-filter: blur(18px);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.site-header nav button,
.site-header > div > .text-button {
  min-height: 42px;
  padding: 0 11px;
  border-radius: 999px;
  color: rgba(16, 20, 24, 0.68);
  font-size: 14px;
}

.site-header nav button:hover,
.site-header > div > .text-button:hover {
  background: rgba(15, 118, 110, 0.08);
  color: var(--text);
}

.site-header > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-menu-button {
  display: none;
}

.site-menu-button > span,
.site-menu-button > span::before,
.site-menu-button > span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  content: "";
}

.site-menu-button > span {
  position: relative;
}

.site-menu-button > span::before {
  position: absolute;
  top: -5px;
}

.site-menu-button > span::after {
  position: absolute;
  top: 5px;
}

.site-header .primary-button {
  min-height: 42px;
  border-radius: 999px;
}

.public-main {
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 4%, rgba(15, 118, 110, 0.12), transparent 28rem),
    linear-gradient(180deg, #f8f6f0 0%, #fbfaf7 44%, #f5f7f4 100%);
  color: #101418;
  font-size: 16px;
  line-height: 1.65;
}

.public-hero {
  position: relative;
  isolation: isolate;
  min-height: 680px;
  padding: 82px 0 76px;
  border-bottom: 1px solid rgba(16, 20, 24, 0.08);
}

.public-hero::after {
  position: absolute;
  z-index: -1;
  right: -12rem;
  bottom: -20rem;
  width: 42rem;
  height: 42rem;
  border-radius: 999px;
  background: rgba(196, 122, 44, 0.12);
  content: "";
}

.hero-shell {
  display: grid;
  width: min(1200px, calc(100% - 64px));
  align-items: center;
  gap: clamp(36px, 5vw, 76px);
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  margin: 0 auto;
}

.hero-copy {
  width: 100%;
}

.public-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.public-section-kicker::before {
  width: 22px;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero-copy h1 {
  max-width: 720px;
  margin: 20px 0 0;
  font-size: clamp(40px, 3.7vw, 52px);
  line-height: 1.16;
  letter-spacing: -0.045em;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy p {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(16, 20, 24, 0.68);
  font-size: 18px;
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.hero-actions .primary-button,
.hero-actions .secondary-button,
.public-cta .primary-button,
.public-cta .secondary-button {
  min-height: 48px;
  border-radius: 999px;
  font-size: 15px;
}

.hero-proof-strip {
  display: flex;
  max-width: 660px;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-proof-strip span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: rgba(16, 20, 24, 0.68);
  font-size: 13px;
}

.public-proof-panel {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(16, 20, 24, 0.11);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(238, 245, 242, 0.7)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 28px 80px rgba(30, 45, 38, 0.13);
}

.public-proof-panel::before {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  content: "";
  pointer-events: none;
}

.proof-panel-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.proof-panel-head span {
  color: rgba(16, 20, 24, 0.54);
  font-size: 13px;
}

.proof-panel-head strong {
  max-width: 180px;
  text-align: right;
}

.conversation-demo {
  position: relative;
  display: grid;
  gap: 12px;
}

.conversation-demo p {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 15px 16px;
  border: 1px solid rgba(16, 20, 24, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.conversation-demo p:nth-child(2) {
  margin-left: 26px;
  background: rgba(15, 118, 110, 0.08);
}

.conversation-demo p:nth-child(3) {
  margin-left: 52px;
  background: #101418;
  color: #fff;
}

.conversation-demo b {
  color: #0f766e;
  font-size: 13px;
}

.conversation-demo p:nth-child(3) b {
  color: #8de0d4;
}

.conversation-demo span {
  font-size: 15px;
  line-height: 1.65;
}

.proof-metrics {
  position: relative;
  display: grid;
  gap: 0;
  margin: 2px 0 0;
  border-top: 1px solid rgba(16, 20, 24, 0.1);
}

.proof-metrics div {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(16, 20, 24, 0.08);
}

.proof-metrics dt {
  color: rgba(16, 20, 24, 0.52);
  font-size: 13px;
}

.proof-metrics dd {
  margin: 0;
  font-size: 14px;
}

.public-band {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
  padding: 88px 0;
  border-top: 1px solid rgba(16, 20, 24, 0.08);
}

.public-band > header {
  display: grid;
  max-width: 780px;
  gap: 12px;
}

.public-band > header h2,
.preview-copy h2,
.trust-band h2,
.public-cta h2,
.public-page-header h1 {
  margin: 0;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.public-band > header p,
.preview-copy p,
.trust-band p,
.public-cta p,
.public-page-header p {
  max-width: 760px;
  margin: 0;
  color: rgba(16, 20, 24, 0.62);
  font-size: 16px;
  line-height: 1.75;
}

.pain-map {
  display: grid;
  margin-top: 38px;
  border-top: 1px solid rgba(16, 20, 24, 0.12);
}

.pain-map article {
  display: grid;
  align-items: start;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 26px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(16, 20, 24, 0.1);
}

.pain-map b {
  color: rgba(15, 118, 110, 0.8);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.pain-map h3,
.preview-board h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.4;
}

.pain-map p {
  max-width: 760px;
  margin: 8px 0 0;
  color: rgba(16, 20, 24, 0.66);
}

.pain-map small {
  display: inline-flex;
  margin-top: 12px;
  color: #0f766e;
  font-size: 14px;
  line-height: 1.7;
}

.workflow-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}

.workflow-rail li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 190px;
  padding: 0 20px 0 0;
}

.workflow-rail li::before {
  position: absolute;
  top: 16px;
  right: 0;
  left: 42px;
  height: 1px;
  background: rgba(15, 118, 110, 0.24);
  content: "";
}

.workflow-rail li:last-child::before {
  content: none;
}

.workflow-rail b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(15, 118, 110, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #0f766e;
  font-size: 13px;
}

.workflow-rail span {
  display: grid;
  gap: 8px;
}

.workflow-rail strong {
  font-size: 15px;
}

.workflow-rail small {
  color: rgba(16, 20, 24, 0.6);
  font-size: 14px;
  line-height: 1.7;
}

.advantage-compare {
  display: grid;
  margin-top: 38px;
  overflow: hidden;
  border: 1px solid rgba(16, 20, 24, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.56);
}

.advantage-compare > div {
  display: grid;
  grid-template-columns: 160px minmax(0, 0.95fr) minmax(0, 1.25fr);
  min-height: 58px;
  align-items: center;
  border-top: 1px solid rgba(16, 20, 24, 0.08);
}

.advantage-compare > div:first-child {
  border-top: 0;
}

.advantage-compare span,
.advantage-compare strong {
  display: flex;
  min-height: 58px;
  align-items: center;
  padding: 14px 18px;
}

.advantage-compare span + span,
.advantage-compare strong {
  border-left: 1px solid rgba(16, 20, 24, 0.08);
}

.advantage-compare span {
  color: rgba(16, 20, 24, 0.64);
  font-weight: 500;
}

.advantage-compare strong {
  background: rgba(15, 118, 110, 0.07);
  color: #0b4f49;
  font-weight: 700;
}

.advantage-compare .compare-head {
  min-height: 48px;
  background: #101418;
  color: #fff;
}

.advantage-compare .compare-head span,
.advantage-compare .compare-head strong {
  min-height: 48px;
  color: #fff;
  font-size: 14px;
}

.advantage-compare .compare-head strong {
  background: rgba(15, 118, 110, 0.48);
}

.preview-band {
  display: grid;
  align-items: start;
  gap: 56px;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
}

.preview-copy {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 14px;
}

.preview-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 20, 24, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.58);
}

.preview-board article {
  display: grid;
  min-height: 182px;
  align-content: end;
  gap: 12px;
  padding: 24px;
  border-top: 1px solid rgba(16, 20, 24, 0.08);
  border-left: 1px solid rgba(16, 20, 24, 0.08);
}

.preview-board article:nth-child(-n + 2) {
  border-top: 0;
}

.preview-board article:nth-child(odd) {
  border-left: 0;
}

.preview-board p {
  margin: 0;
  color: rgba(16, 20, 24, 0.62);
  font-size: 14px;
}

.platform-roadmap {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 34px;
  border-top: 1px solid rgba(16, 20, 24, 0.11);
  border-bottom: 1px solid rgba(16, 20, 24, 0.11);
}

.platform-roadmap article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 176px;
  padding: 24px 18px;
}

.platform-roadmap article + article {
  border-left: 1px solid rgba(16, 20, 24, 0.09);
}

.platform-roadmap strong {
  font-size: 18px;
}

.platform-roadmap p {
  margin: 0;
  color: rgba(16, 20, 24, 0.6);
  font-size: 14px;
  line-height: 1.7;
}

.trust-band {
  display: grid;
  align-items: start;
  gap: 48px;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
}

.trust-band > div {
  display: grid;
  gap: 14px;
}

.trust-band ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(16, 20, 24, 0.1);
  list-style: none;
}

.trust-band li {
  position: relative;
  padding: 17px 0 17px 34px;
  border-bottom: 1px solid rgba(16, 20, 24, 0.1);
  color: rgba(16, 20, 24, 0.72);
}

.trust-band li::before {
  position: absolute;
  top: 24px;
  left: 4px;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(15, 118, 110, 0.42);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  content: "";
}

.public-cta {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 76px 28px 84px;
  border-top: 1px solid rgba(16, 20, 24, 0.08);
  background:
    linear-gradient(135deg, rgba(16, 20, 24, 0.96), rgba(12, 56, 51, 0.92)),
    #101418;
  color: #fff;
  text-align: center;
}

.public-cta .public-section-kicker {
  color: #8de0d4;
}

.public-cta p {
  color: rgba(255, 255, 255, 0.7);
}

.public-cta > div {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.public-cta .secondary-button {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.site-footer {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px max(32px, calc((100vw - 1200px) / 2));
  border-top: 1px solid rgba(16, 20, 24, 0.08);
  background: #fbfaf7;
}

.site-footer > span {
  display: grid;
}

.site-footer small {
  color: rgba(16, 20, 24, 0.52);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  gap: 4px;
}

.site-footer nav button {
  min-height: 36px;
  padding: 0 8px;
  color: rgba(16, 20, 24, 0.58);
}

.site-footer nav button:hover {
  color: #0f766e;
}

.public-page {
  min-height: calc(100vh - 182px);
}

.public-page-header,
.public-content {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
}

.public-page-header {
  padding: 64px 0 34px;
  border-bottom: 1px solid rgba(16, 20, 24, 0.1);
}

.public-page-header p {
  max-width: 720px;
  margin-top: 8px;
  color: rgba(16, 20, 24, 0.62);
}

.public-content {
  padding: 34px 0 72px;
}

.public-content.portal-section {
  display: grid;
}

.help-public {
  display: grid;
  gap: 28px;
}

@media (max-width: 1160px) {
  .hero-shell {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.84fr);
    gap: 40px;
  }

  .workflow-rail,
  .platform-roadmap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .workflow-rail li:nth-child(3)::before,
  .platform-roadmap article:nth-child(4) {
    border-left: 0;
  }

  .workflow-rail li:nth-child(n + 4),
  .platform-roadmap article:nth-child(n + 4) {
    border-top: 1px solid rgba(16, 20, 24, 0.09);
    padding-top: 24px;
  }
}

@media (max-width: 960px) {
  .hero-shell,
  .preview-band,
  .trust-band {
    grid-template-columns: 1fr;
  }

  .preview-copy {
    position: static;
  }

  .public-proof-panel {
    max-width: 640px;
  }
}

/* Windows desktop type hierarchy */

.portal-shell {
  font-size: 14px;
  line-height: 1.55;
}

.portal-shell button:not(.icon-button):not(.sync-button),
.portal-shell input,
.portal-shell select {
  font-size: 14px;
  line-height: 1.5;
}

.portal-shell small {
  font-size: 13px;
  line-height: 1.5;
}

.portal-shell .nav-group-label,
.portal-shell .page-header span,
.portal-shell .topbar-context,
.portal-shell .topbar-service,
.portal-shell .scope-tenant > span,
.portal-shell .scope-bar label > span,
.portal-shell .scope-fixed span,
.portal-shell .scope-bar > p,
.portal-shell .section-heading span,
.portal-shell .section-heading > small,
.portal-shell .table-toolbar > div > span,
.portal-shell .metric-item dt,
.portal-shell .status-pill,
.portal-shell .table-pagination,
.portal-shell .table-empty span,
.portal-shell .keyword-line span,
.portal-shell .drawer-footnote,
.portal-shell .drawer-empty,
.portal-shell .definition-list dt,
.portal-shell .compact-definition dt {
  font-size: 13px;
  line-height: 1.5;
}

.portal-shell .nav-index {
  font-size: 12px;
}

.portal-shell .page-header p,
.portal-shell .resource-table td,
.portal-shell .definition-list dd,
.portal-shell .compact-definition dd,
.portal-shell .drawer-section > p,
.portal-shell .faq-list details > p,
.portal-shell .help-links ol,
.portal-shell .definition-lines li,
.portal-shell .legal-copy {
  font-size: 14px;
  line-height: 1.55;
}

.portal-shell .detail-drawer > header h2,
.portal-shell .modal-dialog > header h2 {
  font-size: 20px;
  line-height: 29px;
}

.portal-shell .drawer-section h3,
.portal-shell .support-evidence h3 {
  font-size: 16px;
  line-height: 24px;
}

.portal-shell .toolbar-fact strong,
.portal-shell .task-row strong,
.portal-shell .step-list strong {
  font-size: 14px;
  line-height: 1.5;
}

/* Responsive behavior */

@media (max-width: 1160px) {
  :root {
    --sidebar: 200px;
  }

  .scope-bar {
    grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.7fr) minmax(170px, 0.9fr);
  }

  .scope-bar > p {
    grid-column: 1 / -1;
    padding-top: 2px;
  }

  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .metric-item:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .filter-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .filter-controls {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .search-control {
    min-width: 260px;
  }

  .public-hero {
    height: clamp(440px, calc(100svh - 104px), 680px);
  }

  .public-hero::before {
    width: min(690px, 64vw);
  }

  .hero-copy h1 {
    font-size: 42px;
  }
}

@media (max-width: 920px) {
  .portal-topbar {
    padding: 0 24px;
  }

  .page-header {
    padding: 24px 24px 18px;
  }

  .scope-bar {
    width: calc(100% - 48px);
    margin: 0 auto;
  }

  .page-content {
    padding: 22px 24px 44px;
  }

  .help-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .help-links {
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .definition-lines {
    grid-template-columns: minmax(0, 1fr);
  }

  .definition-lines li:not(:nth-child(3n + 1)) {
    border-left: 0;
  }

  .public-hero {
    height: clamp(440px, calc(100svh - 104px), 640px);
  }

  .public-hero::before {
    width: min(660px, 74vw);
  }

  .feature-lines,
  .workflow-band ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-lines article:nth-child(3),
  .workflow-band li:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .workflow-band li:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  .primary-button,
  .secondary-button,
  .text-button,
  .icon-button,
  .sync-button,
  .row-action,
  .portal-subnav button,
  .toolbar-fact,
  .scope-bar select,
  .filter-controls input,
  .filter-controls select,
  .search-control button,
  .help-search > button:first-of-type,
  .comparison-table thead button {
    min-height: 44px;
  }

  .sync-button,
  .icon-button {
    width: 44px;
  }

  .detail-drawer {
    width: 100%;
  }

  .dialog-layer {
    padding: 0;
  }

  .modal-dialog {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
}

@media (max-width: 760px) {
  .scope-bar {
    grid-template-columns: 1fr 1fr;
  }

  .scope-tenant {
    grid-column: 1 / -1;
  }

  .scope-bar > p {
    grid-column: 1 / -1;
  }

  .toolbar-resource-summary,
  .filter-toolbar {
    width: 100%;
  }

  .filter-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-facts {
    width: 100%;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .toolbar-fact {
    flex: 1 1 25%;
  }

  .capability-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-strip > span:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .capability-strip > span:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .plan-summary-line {
    grid-template-columns: 1fr;
  }

  .plan-summary-line > span + span {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .quota-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 16px;
    padding: 9px 0;
  }

  .quota-track {
    grid-column: 1 / -1;
  }

  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-value-panel {
    display: none;
  }

  .auth-form-panel {
    min-height: 100vh;
    padding: 72px 24px 36px;
  }

  .site-header {
    position: sticky;
    height: 64px;
    padding: 0 20px;
  }

  .site-header nav {
    position: absolute;
    top: 63px;
    right: 0;
    left: 0;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 10px 16px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 14px 28px rgba(25, 35, 29, 0.1);
  }

  .site-header nav.is-open {
    display: grid;
  }

  .site-header nav button {
    min-height: 44px;
    justify-content: flex-start;
    text-align: left;
  }

  .site-menu-button {
    display: inline-grid;
  }

  .site-header > div {
    display: flex;
    gap: 4px;
    margin-left: auto;
  }

  .public-band,
  .public-page-header,
  .public-content {
    width: min(100% - 40px, 680px);
  }

  .public-hero {
    width: 100%;
    height: clamp(440px, calc(100svh - 104px), 620px);
    padding: 0;
  }

  .public-hero::before {
    width: 100%;
    background: rgba(248, 250, 249, 0.88);
  }

  .hero-copy {
    width: min(100% - 40px, 680px);
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-copy h2 {
    font-size: 22px;
  }

  .public-band {
    padding: 56px 0;
  }

  .public-band > header h2,
  .public-cta h2,
  .public-page-header h1 {
    font-size: 25px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 20px;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .portal-topbar {
    padding: 0 14px;
  }

  .topbar-service span {
    display: none;
  }

  .page-header {
    padding: 20px 16px 16px;
  }

  .page-header h1 {
    font-size: 21px;
    line-height: 28px;
  }

  .scope-bar {
    grid-template-columns: 1fr;
    gap: 10px;
    width: calc(100% - 32px);
    margin: 0 auto;
  }

  .scope-tenant,
  .scope-fixed,
  .scope-bar > p {
    grid-column: 1;
  }

  .page-content {
    padding: 18px 16px 36px;
  }

  .portal-section {
    gap: 20px;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .metric-item {
    grid-template-columns: minmax(100px, 1fr) minmax(0, 1.2fr);
    min-height: 70px;
    align-items: center;
    gap: 0 12px;
    padding: 12px 4px;
  }

  .metric-item + .metric-item,
  .metric-item:nth-child(3),
  .metric-item:nth-child(4) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .metric-item dd {
    font-size: 18px;
    line-height: 24px;
    text-align: right;
  }

  .metric-item small {
    grid-column: 1 / -1;
    margin-top: 3px;
  }

  .metric-progress {
    grid-column: 1 / -1;
  }

  .task-row {
    align-items: start;
  }

  .task-row small {
    white-space: normal;
  }

  .step-list li {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .step-list li > .text-button {
    grid-column: 2;
    justify-self: start;
    margin-left: -8px;
  }

  .filter-controls,
  .filter-controls label,
  .filter-controls select,
  .search-control {
    width: 100%;
    min-width: 0;
  }

  .help-search {
    flex-wrap: wrap;
  }

  .help-search label {
    min-width: calc(100% - 64px);
  }

  .help-search .text-button {
    margin: 6px 0 0;
  }

  .table-wrap {
    overflow: visible;
  }

  .resource-table {
    display: block;
    min-width: 0;
  }

  .resource-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .resource-table tbody,
  .resource-table tr {
    display: block;
  }

  .resource-table tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 12px;
    min-height: 90px;
    padding: 14px 54px 14px 4px;
    border-bottom: 1px solid var(--line);
  }

  .resource-table td {
    display: none;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent !important;
  }

  .resource-table td[data-cell="primary"],
  .resource-table td[data-cell="secondary"],
  .resource-table td[data-cell="status"],
  .resource-table td[data-cell="action"],
  .resource-table td[data-cell="empty"] {
    display: block;
  }

  .resource-table tbody tr.empty-row {
    display: block;
    min-height: 92px;
    padding: 0;
  }

  .resource-table td[data-cell="empty"] {
    width: 100%;
  }

  .resource-table td[data-cell="primary"] {
    grid-column: 1 / 2;
  }

  .resource-table td[data-cell="primary"] strong {
    white-space: normal;
  }

  .resource-table td[data-cell="secondary"] {
    grid-column: 1 / 2;
    overflow: hidden;
    color: var(--muted);
  font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .resource-table td[data-cell="status"] {
    grid-column: 2 / 3;
    grid-row: 1;
  }

  .resource-table td[data-cell="status"] + td[data-cell="status"] {
    grid-row: 2;
  }

  .resource-table td[data-cell="action"] {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
  }

  .resource-table tr.has-mobile-summary td[data-cell="secondary"],
  .resource-table tr.has-mobile-summary .desktop-summary {
    display: none;
  }

  .resource-table tr.has-mobile-summary td[data-cell="primary"] {
    min-width: 0;
    align-self: center;
    grid-row: 1 / span 2;
  }

  .resource-table tr.has-mobile-summary td .mobile-summary {
    display: block;
    max-width: 100%;
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted);
  font-size: 12px;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .table-empty {
    min-height: 92px;
  }

  .toolbar-fact {
    min-width: 50%;
    flex-basis: 50%;
    border-top: 1px solid var(--line);
  }

  .toolbar-fact:nth-child(odd) {
    border-left: 0;
  }

  .toolbar-fact:nth-child(-n + 2) {
    border-top: 0;
  }

  .table-pagination {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0;
  }

  .capability-strip {
    grid-template-columns: 1fr;
  }

  .capability-strip > span + span,
  .capability-strip > span:nth-child(3),
  .capability-strip > span:nth-child(4) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .definition-lines {
    grid-template-columns: 1fr;
  }

  .definition-lines li:nth-child(even) {
    border-left: 0;
  }

  .download-band {
    align-items: stretch;
    flex-direction: column;
  }

  .download-band .primary-button {
    width: 100%;
  }

  .detail-drawer {
    width: 100%;
  }

  .definition-list > div,
  .compact-definition > div {
    grid-template-columns: minmax(90px, 0.65fr) minmax(0, 1.35fr);
  }

  .modal-dialog {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
  }

  .dialog-layer {
    padding: 0;
  }

  .auth-form-panel {
    padding-right: 18px;
    padding-left: 18px;
  }

  .auth-form-shell > footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-brand small {
    display: none;
  }

  .site-header > div > .text-button {
    display: inline-flex;
    padding-right: 7px;
    padding-left: 7px;
  }

  .site-trial-button {
    padding-right: 10px;
    padding-left: 10px;
  }

  .hero-copy > div {
    align-items: stretch;
    flex-direction: column;
  }

  .feature-lines,
  .workflow-band ol {
    grid-template-columns: 1fr;
  }

  .feature-lines article + article,
  .feature-lines article:nth-child(3),
  .workflow-band li + li,
  .workflow-band li:nth-child(3),
  .workflow-band li:nth-child(4) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .public-band,
  .public-page-header,
  .public-content {
    width: calc(100% - 32px);
  }

  .public-hero {
    width: 100%;
    height: clamp(440px, calc(100svh - 104px), 580px);
    padding: 0;
  }

  .hero-copy {
    width: calc(100% - 32px);
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-copy h2 {
    font-size: 20px;
  }

  .public-band {
    padding: 48px 0;
  }

  .public-platform-table {
    overflow-x: auto;
  }

  .public-platform-table .resource-table {
    display: table;
    min-width: 520px;
  }

  .public-platform-table .resource-table thead {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  .public-platform-table .resource-table tbody {
    display: table-row-group;
  }

  .public-platform-table .resource-table tr {
    display: table-row;
  }

  .public-platform-table .resource-table td {
    display: table-cell;
    height: 54px;
    padding: 0 12px;
    border-bottom: 1px solid var(--line);
  }

  .site-footer nav {
    display: grid;
    grid-template-columns: repeat(2, auto);
  }

  .toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }
}

/* Widths below 900px are outside the Windows desktop support matrix. */
@media (max-width: 899px) {
  body.has-profile .portal-sidebar,
  body.has-profile .portal-sidebar.is-open {
    visibility: visible;
    width: var(--sidebar);
    transform: none;
    box-shadow: none;
    transition: none;
  }

  body.has-profile .sidebar-close,
  body.has-profile .menu-button,
  body.has-profile .sidebar-scrim {
    display: none;
  }

  body.has-profile .portal-main {
    width: calc(100% - var(--sidebar));
    margin-left: var(--sidebar);
  }

  body.has-profile .portal-topbar {
    padding: 0 24px;
  }

  body.has-profile .topbar-service span {
    display: inline;
  }

  body.has-profile .page-header {
    padding: 24px 24px 18px;
  }

  body.has-profile .page-header h1 {
    font-size: 26px;
    line-height: 36px;
  }

  body.has-profile .scope-bar {
    grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.7fr) minmax(170px, 0.9fr);
    gap: 16px;
    width: calc(100% - 48px);
    margin: 0 auto;
  }

  body.has-profile .scope-tenant,
  body.has-profile .scope-fixed {
    grid-column: auto;
  }

  body.has-profile .scope-bar > p {
    grid-column: 1 / -1;
  }

  body.has-profile .page-content {
    padding: 22px 24px 44px;
  }

  body.has-profile .portal-section {
    gap: 24px;
  }

  body.has-profile .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.has-profile .metric-item {
    display: grid;
    min-height: 110px;
    align-content: start;
    align-items: initial;
    grid-template-columns: none;
    gap: 3px;
    padding: 18px 20px;
  }

  body.has-profile .metric-item + .metric-item {
    border-left: 1px solid var(--line);
  }

  body.has-profile .metric-item:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  body.has-profile .metric-item:nth-child(4) {
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  body.has-profile .metric-item dd {
    font-size: 22px;
    line-height: 30px;
    text-align: left;
  }

  body.has-profile .metric-item small,
  body.has-profile .metric-progress {
    grid-column: auto;
  }

  body.has-profile .step-list li {
    grid-template-columns: 32px minmax(0, 1fr) auto;
  }

  body.has-profile .step-list li > .text-button {
    grid-column: auto;
    justify-self: auto;
    margin-left: 0;
  }

  body.has-profile .help-search {
    flex-wrap: nowrap;
  }

  body.has-profile .help-search label {
    min-width: 0;
  }

  body.has-profile .toolbar-fact {
    min-width: 82px;
    flex: 0 0 auto;
    border-top: 0;
  }

  body.has-profile .toolbar-fact:nth-child(odd),
  body.has-profile .toolbar-fact:nth-child(-n + 2) {
    border-left: 1px solid var(--line);
  }

  body.has-profile .toolbar-fact:first-child {
    padding-left: 0;
    border-left: 0;
  }

  body.has-profile .plan-summary-line {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.has-profile .plan-summary-line > span + span {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  body.has-profile .quota-row {
    grid-template-columns: minmax(180px, 1fr) minmax(100px, auto) minmax(160px, 1fr);
    gap: 20px;
    padding: 0;
  }

  body.has-profile .quota-track {
    grid-column: auto;
  }

  body.has-profile .table-wrap {
    overflow-x: auto;
  }

  body.has-profile .resource-table {
    display: table;
    width: 100%;
    min-width: 780px;
  }

  body.has-profile .resource-table thead {
    position: static;
    display: table-header-group;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  body.has-profile .resource-table tbody {
    display: table-row-group;
  }

  body.has-profile .resource-table tr,
  body.has-profile .resource-table tbody tr,
  body.has-profile .resource-table tbody tr.empty-row {
    display: table-row;
    min-height: 0;
    padding: 0;
    border-bottom: 0;
  }

  body.has-profile .resource-table td,
  body.has-profile .resource-table td[data-cell] {
    position: static;
    display: table-cell !important;
    width: auto;
    height: auto;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    background: transparent;
    transform: none;
  }

  body.has-profile .resource-table td[data-cell="primary"],
  body.has-profile .resource-table td[data-cell="secondary"],
  body.has-profile .resource-table td[data-cell="status"],
  body.has-profile .resource-table td[data-cell="action"],
  body.has-profile .resource-table td[data-cell="empty"] {
    grid-column: auto;
    grid-row: auto;
  }

  body.has-profile .resource-table tr.has-mobile-summary td .mobile-summary {
    display: none !important;
  }

  body.has-profile .resource-table tr.has-mobile-summary .desktop-summary {
    display: block;
  }

  body.has-profile .table-pagination {
    align-items: center;
    flex-direction: row;
    padding: 0;
  }

  body.has-profile .detail-drawer {
    width: 520px;
  }

  body.has-profile .dialog-layer {
    padding: 24px;
  }

  body.has-profile .modal-dialog {
    width: 520px;
    height: auto;
    max-height: calc(100vh - 48px);
    border-radius: var(--radius-md);
  }

  body.has-profile .definition-list > div,
  body.has-profile .compact-definition > div {
    grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1.3fr);
  }

  body.has-profile .definition-lines {
    grid-template-columns: minmax(0, 1fr);
  }

  body.has-profile .definition-lines li {
    border-left: 0;
  }

  body.has-profile .download-band {
    align-items: center;
    flex-direction: row;
  }

  body.has-profile .download-band .primary-button {
    width: auto;
  }
}

.portal-shell small,
.public-main small,
.auth-page small,
.site-header small,
.site-footer small,
.nav-group-label,
.nav-index,
.topbar-service,
.page-header > div > span,
.scope-bar label > span,
.scope-bar > p,
.metric-item dt,
.section-heading > div > span,
.table-toolbar > div > span,
.table-pagination,
.status-pill,
.step-index,
.keyword-line span,
.public-page-header > span,
.feature-lines b,
.workflow-band b {
  font-size: 13px;
}

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