:root {
  --fs-bg: #f3f6f7;
  --fs-bg-panel: #ffffff;
  --fs-bg-panel-muted: #f7faf9;
  --fs-bg-shell: #0f2027;
  --fs-text: #172026;
  --fs-text-strong: #0b1418;
  --fs-muted: #60707a;
  --fs-border: #d7e0e3;
  --fs-border-strong: #aab9bf;
  --fs-brand: #12343b;
  --fs-brand-2: #0f766e;
  --fs-brand-3: #2f6f4e;
  --fs-focus: rgba(15, 118, 110, 0.22);
  --fs-danger: #b42318;
  --fs-danger-hover: #991b1b;
  --fs-warning: #a15c07;
  --fs-success: #166534;
  --fs-radius-sm: 6px;
  --fs-radius-md: 8px;
  --fs-radius-lg: 10px;
  --fs-shadow-sm: 0 1px 2px rgba(15, 32, 39, 0.08);
  --fs-shadow-md: 0 10px 28px rgba(15, 32, 39, 0.08);
  --fs-shadow-lg: 0 20px 52px rgba(15, 32, 39, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--fs-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--fs-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  background:
    linear-gradient(180deg, rgba(15, 32, 39, 0.05) 0, rgba(15, 32, 39, 0) 260px),
    linear-gradient(135deg, rgba(15, 118, 110, 0.06) 0 22%, transparent 22% 100%),
    var(--fs-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body#index-page {
  padding-bottom: 3rem;
}

body[data-page="login"],
body[data-page="signup"],
body[data-page="plans"],
body[data-page="demo"] {
  display: grid;
  padding: 1rem;
}

body[data-page="plans"],
body[data-page="demo"] {
  display: block;
  padding: 0;
}

body[data-page="login"],
body[data-page="signup"] {
  place-items: center;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--fs-brand-2);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--fs-brand);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.icon-button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--fs-border-strong);
  border-radius: var(--fs-radius-sm);
  color: var(--fs-text);
  background: #ffffff;
  box-shadow: var(--fs-shadow-sm);
  cursor: pointer;
  touch-action: manipulation;
  transition:
    border-color 120ms ease,
    background-color 120ms ease,
    color 120ms ease,
    box-shadow 120ms ease,
    transform 120ms ease;
}

button:hover,
.icon-button:hover,
button:focus-visible,
.icon-button:focus-visible {
  border-color: var(--fs-brand-2);
  color: var(--fs-brand);
  background: var(--fs-bg-panel-muted);
}

button[type="submit"],
.primary-action {
  border-color: var(--fs-brand);
  color: #ffffff;
  background: var(--fs-brand);
}

button[type="submit"]:hover,
.primary-action:hover {
  border-color: var(--fs-brand-2);
  color: #ffffff;
  background: var(--fs-brand-2);
}

button:active,
.icon-button:active {
  transform: translateY(1px);
}

button:disabled,
button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.68;
  border-color: var(--fs-border-strong);
  color: var(--fs-muted);
  background: #ffffff;
  box-shadow: none;
}

button:disabled:hover,
button:disabled:focus-visible,
button[aria-disabled="true"]:hover,
button[aria-disabled="true"]:focus-visible {
  border-color: var(--fs-border-strong);
  color: var(--fs-muted);
  background: #ffffff;
  box-shadow: none;
  transform: none;
}

button[type="submit"]:disabled,
button[type="submit"]:disabled:hover,
button[type="submit"]:disabled:focus-visible {
  border-color: var(--fs-border-strong);
  color: var(--fs-muted);
  background: #ffffff;
  box-shadow: none;
  transform: none;
}

a.primary-action,
a.secondary-action,
.pricing-nav-actions a:not(.primary-action),
button.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 76px;
  padding: 8px 14px;
  border: 1px solid var(--fs-border-strong);
  border-radius: var(--fs-radius-sm);
  box-shadow: var(--fs-shadow-sm);
  font-weight: 850;
  text-decoration: none;
}

.pricing-nav-actions .primary-action {
  min-width: 132px;
}

a.secondary-action,
.pricing-nav-actions a:not(.primary-action),
button.secondary-action {
  color: var(--fs-brand);
  background: #ffffff;
}

a.secondary-action:hover,
a.secondary-action:focus-visible,
.pricing-nav-actions a:not(.primary-action):hover,
.pricing-nav-actions a:not(.primary-action):focus-visible,
button.secondary-action:hover,
button.secondary-action:focus-visible {
  border-color: var(--fs-brand-2);
  color: var(--fs-brand);
  background: var(--fs-bg-panel-muted);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--fs-focus);
  outline-offset: 2px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
select,
textarea {
  width: 100%;
  min-height: 40px;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--fs-border-strong);
  border-radius: var(--fs-radius-sm);
  color: var(--fs-text-strong);
  background: #ffffff;
  box-shadow: inset 0 1px 1px rgba(15, 32, 39, 0.03);
}

textarea {
  min-height: 10rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #72838a;
  opacity: 1;
}

h1,
h2 {
  margin: 0;
  color: var(--fs-text-strong);
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(1.65rem, 1.35rem + 1vw, 2.35rem);
}

h2 {
  font-size: clamp(1.12rem, 1rem + 0.35vw, 1.35rem);
}

p {
  margin: 0;
}

main,
.page-container {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.page-container,
main {
  display: grid;
  gap: 1rem;
}

.panel,
#filters,
#active-scans,
#completed-scans,
.active-scan-list-panel,
.scan-section,
#datetime-display {
  position: relative;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--fs-shadow-md);
}

.panel,
#filters,
#active-scans,
#completed-scans {
  padding: 1.15rem;
}

.panel > header,
.page-heading {
  margin: 0;
}

.panel header p,
.panel > p,
section > p,
.active-scan-empty,
.pagination-summary,
#auth-status-label {
  color: var(--fs-muted);
}

form {
  display: grid;
  gap: 0.85rem;
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--fs-text-strong);
  font-weight: 800;
}

form > div {
  display: grid;
  gap: 0.35rem;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.student-list-summary {
  display: flex;
  min-height: 40px;
  align-items: center;
  color: var(--fs-muted);
  font-weight: 800;
}

.table-wrap,
#active-scans,
#completed-scans {
  overflow-x: auto;
}

.member-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr) auto auto;
  gap: 10px;
  align-items: end;
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid var(--fs-border);
  border-bottom: 0;
  border-radius: var(--fs-radius-md) var(--fs-radius-md) 0 0;
  background: var(--fs-bg-panel-muted);
}

.member-filter-grid label {
  color: var(--fs-muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.member-filter-grid input,
.member-filter-grid select {
  min-height: 40px;
}

.member-filter-grid .secondary-action {
  min-height: 40px;
  white-space: nowrap;
}

.member-filter-grid #users-filter-summary {
  align-self: center;
  color: var(--fs-muted);
  font-weight: 800;
  white-space: nowrap;
}

.users-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 1rem 0 0;
  padding: 10px 12px;
  border: 1px solid var(--fs-border);
  border-bottom: 0;
  border-radius: var(--fs-radius-md) var(--fs-radius-md) 0 0;
  background: #ffffff;
}

.member-filter-grid + .users-bulk-actions {
  margin-top: 0;
  border-radius: 0;
}

.users-select-all-control {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  font-weight: 850;
}

.users-bulk-actions input[type="checkbox"],
#users-table input.user-select-checkbox,
#users-table input[data-user-select] {
  -webkit-appearance: none;
  appearance: none;
  display: inline-grid;
  place-content: center;
  box-sizing: border-box;
  inline-size: 18px !important;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  block-size: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  padding: 0 !important;
  margin: 0;
  border: 1px solid var(--fs-border-strong);
  border-radius: 4px;
  background: #ffffff;
  box-shadow: none;
  accent-color: var(--fs-brand);
  flex: 0 0 18px;
  cursor: pointer;
  vertical-align: middle;
}

.users-bulk-actions input[type="checkbox"]:checked,
#users-table input.user-select-checkbox:checked,
#users-table input[data-user-select]:checked {
  border-color: var(--fs-brand);
  background-color: var(--fs-brand);
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.6 3.8 5.7 9.7 2.4 6.4' fill='none' stroke='%23fff' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
}

.users-bulk-actions input[type="checkbox"]:focus-visible,
#users-table input.user-select-checkbox:focus-visible,
#users-table input[data-user-select]:focus-visible {
  outline: 3px solid var(--fs-focus);
  outline-offset: 2px;
}

.users-bulk-actions input[type="checkbox"]:disabled,
#users-table input.user-select-checkbox:disabled,
#users-table input[data-user-select]:disabled {
  border-color: #dce5e8;
  cursor: not-allowed;
  opacity: 0.55;
  background: #f3f6f7;
}

#users-table th:first-child,
#users-table td:first-child {
  width: 92px;
  min-width: 92px;
  text-align: center;
  white-space: nowrap;
}

#users-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

#users-table th:nth-child(2),
#users-table td:nth-child(2) {
  width: 34%;
}

#users-table th:nth-child(3),
#users-table td:nth-child(3) {
  width: 150px;
}

#users-table th:nth-child(4),
#users-table td:nth-child(4) {
  width: auto;
}

#users-table th:nth-child(5),
#users-table td:nth-child(5) {
  width: 180px;
  min-width: 0;
}

#users-table th {
  white-space: nowrap;
}

#users-selection-summary {
  color: var(--fs-muted);
  font-weight: 800;
}

.users-bulk-actions .danger-action {
  min-height: 36px;
  margin-left: auto;
  min-width: 190px;
  padding: 7px 12px;
  box-shadow: none;
}

.users-bulk-actions .danger-action:disabled,
.users-bulk-actions .danger-action:disabled:hover,
.users-bulk-actions .danger-action:disabled:focus-visible {
  border-color: var(--fs-border-strong);
  color: var(--fs-muted);
  background: #ffffff;
  cursor: not-allowed;
  opacity: 1;
}

.users-bulk-actions + .table-wrap table {
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

#users-table .member-status-cell {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
}

#users-table .member-status-meta {
  display: block;
  color: var(--fs-muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#users-table td:last-child {
  display: grid;
  gap: 8px;
  justify-items: start;
  align-content: start;
}

#users-table td:last-child button {
  margin: 0;
  max-width: 100%;
}

section[aria-labelledby="current-users-heading"] .table-wrap {
  overflow-x: visible;
}

.users-bulk-actions input[type="checkbox"],
#users-table input.user-select-checkbox,
#users-table input[data-user-select] {
  -webkit-appearance: none;
  appearance: none;
  display: inline-grid !important;
  place-content: center;
  box-sizing: border-box;
  inline-size: 18px !important;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  block-size: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid var(--fs-border-strong);
  border-radius: 4px;
  background: #ffffff;
  box-shadow: none;
  accent-color: var(--fs-brand);
  flex: 0 0 18px;
  vertical-align: middle;
}

.users-bulk-actions input[type="checkbox"]:checked,
#users-table input.user-select-checkbox:checked,
#users-table input[data-user-select]:checked {
  border-color: var(--fs-brand);
  background-color: var(--fs-brand);
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.6 3.8 5.7 9.7 2.4 6.4' fill='none' stroke='%23fff' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-md);
  background: #ffffff;
}

th,
td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--fs-border);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--fs-text-strong);
  background: var(--fs-bg-panel-muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

tbody tr:not(.has-highlight):nth-child(even) {
  background-color: rgba(247, 250, 249, 0.72);
}

tbody tr:not(.has-highlight):hover {
  background-color: rgba(15, 118, 110, 0.07);
}

body[data-flowstack-shell][data-page="status"] .dashboard-summary-card {
  display: grid;
  gap: 14px;
}

body[data-flowstack-shell][data-page="status"] .metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

body[data-flowstack-shell][data-page="status"] .metric-card {
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-md);
  background: var(--fs-bg-panel-muted);
}

body[data-flowstack-shell][data-page="status"] .metric-card dt {
  color: var(--fs-muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-flowstack-shell][data-page="status"] .metric-card dd {
  margin: 0;
  color: var(--fs-text-strong);
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
}

nav.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  border-bottom: 1px solid rgba(215, 224, 227, 0.84);
  background: rgba(243, 246, 247, 0.92);
  backdrop-filter: blur(14px);
}

nav.navbar ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  list-style: none;
}

nav.navbar li {
  margin: 0;
}

nav.navbar a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.5rem 0.65rem 0.5rem 0.8rem;
  border: 1px solid transparent;
  border-radius: var(--fs-radius-md);
  color: var(--fs-text);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: none;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

nav.navbar a:hover,
nav.navbar a:focus-visible {
  border-color: var(--fs-border);
  color: var(--fs-brand);
  background: #f1f8f7;
}

nav.navbar a:focus-visible,
nav.navbar #logout-item button:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.22);
  outline-offset: 2px;
}

nav.navbar a.active,
nav.navbar a[aria-current="page"] {
  color: var(--fs-brand);
  border-color: rgba(15, 118, 110, 0.22);
  background: linear-gradient(180deg, #eef8f7, #e7f3f1);
  box-shadow: none;
}

.nav-menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 35;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  gap: 0;
  border-color: var(--fs-brand);
  color: #ffffff;
  background: var(--fs-brand);
}

.nav-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 2px 0;
  border-radius: 999px;
  background: currentColor;
}

.nav-menu-toggle:hover,
.nav-menu-toggle:focus-visible {
  color: #ffffff;
  background: var(--fs-brand-2);
}

.nav-brand-link {
  display: inline-grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  margin-right: 0.35rem;
  padding-left: 0 !important;
}

.nav-brand-link img {
  display: block;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: var(--fs-radius-md);
  box-shadow: var(--fs-shadow-sm);
}

.nav-brand-text {
  display: grid;
  gap: 0.1rem;
}

.nav-brand-name {
  color: var(--fs-text-strong);
  font-weight: 900;
  line-height: 1;
}

.nav-brand-subtitle {
  color: var(--fs-muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

nav.navbar #auth-status-item {
  margin-left: auto;
  font-size: 0.86rem;
  font-weight: 750;
}

nav.navbar #logout-item button {
  width: 100%;
  justify-content: center;
  min-height: 40px;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--fs-brand);
  border-radius: var(--fs-radius-md);
  color: #ffffff;
  background: var(--fs-brand);
  box-shadow: var(--fs-shadow-sm);
  font-weight: 800;
  text-align: center;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

nav.navbar #logout-item button:hover,
nav.navbar #logout-item button:focus-visible {
  border-color: var(--fs-brand-2);
  color: #ffffff;
  background: var(--fs-brand-2);
}

.auth-shell {
  width: 100%;
  max-width: 560px;
  min-width: 0;
  justify-self: center;
}

.auth-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0;
  min-width: 0;
  padding: 1.6rem;
  border: 1px solid var(--fs-border);
  border-top: 4px solid var(--fs-brand-2);
  border-radius: var(--fs-radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--fs-shadow-lg);
}

@media (max-width: 420px) {
  body[data-page="login"],
  body[data-page="signup"] {
    padding: 0.75rem;
  }

  .auth-card {
    padding: 1.3rem;
  }
}

.auth-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), transparent 34%);
}

.auth-card > * {
  position: relative;
  z-index: 1;
}

.auth-brand {
  display: inline-grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-bottom: 14px;
  color: inherit;
  text-decoration: none;
}

.auth-brand:hover {
  color: inherit;
}

.auth-brand img {
  display: block;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: var(--fs-radius-md);
  box-shadow: var(--fs-shadow-sm);
}

.auth-brand-text,
.auth-brand div {
  display: grid;
  gap: 2px;
}

.auth-brand-name,
.auth-brand p {
  margin: 0;
  color: var(--fs-text-strong);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.05;
}

.auth-brand-subtitle,
.auth-brand span {
  display: block;
  margin-top: 0;
  color: var(--fs-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--fs-brand-2);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

section[aria-labelledby="current-users-heading"] > .eyebrow {
  margin: 0 0 4px;
  color: #0f766e;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.page-lede,
.auth-footer {
  color: var(--fs-muted);
  overflow-wrap: anywhere;
}

.auth-footer {
  margin: 18px 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.page-lede {
  color: var(--fs-muted);
  margin: 8px 0 0;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.55;
}

.auth-form {
  min-width: 0;
  margin-top: 20px;
}

.auth-next-steps {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-md);
  background: var(--fs-bg-panel-muted);
}

.auth-next-steps h2 {
  margin: 0 0 0.45rem;
  color: var(--fs-text-strong);
  font-size: 0.95rem;
  line-height: 1.25;
}

.auth-next-steps ol {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding-left: 1.15rem;
  color: var(--fs-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.form-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.field-help {
  color: var(--fs-muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.form-actions button {
  min-width: 120px;
}

body[data-flowstack-shell] .auth-form .form-actions {
  margin-top: 2px;
}

body[data-flowstack-shell] .auth-form .form-actions button[type="submit"] {
  width: 100%;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0;
}

.page-message {
  margin: 0 0 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-md);
  color: var(--fs-text);
  background: #ffffff;
  box-shadow: var(--fs-shadow-sm);
  font-weight: 800;
}

.login-message:not([hidden]) {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-md);
  color: var(--fs-text);
  background: #ffffff;
  box-shadow: var(--fs-shadow-sm);
  font-weight: 700;
}

.login-message[hidden],
.login-message:empty {
  display: none;
}

.login-message[data-state="info"] {
  border-color: var(--fs-border);
  color: var(--fs-text);
  background: #ffffff;
}

.login-message[data-state="success"] {
  border-color: rgba(22, 101, 52, 0.28);
  color: var(--fs-success);
  background: rgba(22, 101, 52, 0.08);
}

.login-message[data-state="error"] {
  border-color: rgba(180, 35, 24, 0.28);
  color: var(--fs-danger);
  background: #fff5f4;
}

.page-message[data-state="info"] {
  border-color: var(--fs-border);
  color: var(--fs-text);
  background: #ffffff;
}

.page-message[data-state="error"] {
  border-color: rgba(180, 35, 24, 0.28);
  color: var(--fs-danger);
  background: #fff5f4;
}

.page-message[data-state="success"] {
  border-color: rgba(22, 101, 52, 0.28);
  color: var(--fs-success);
  background: rgba(22, 101, 52, 0.08);
}

.checkout-redirect-notice {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: var(--fs-radius-md);
  color: var(--fs-brand);
  background: rgba(15, 118, 110, 0.08);
  box-shadow: var(--fs-shadow-sm);
}

.checkout-redirect-notice.checkout-redirect-success {
  border-color: rgba(22, 101, 52, 0.28);
  color: var(--fs-success);
  background: rgba(22, 101, 52, 0.08);
}

.checkout-redirect-notice.checkout-redirect-cancel {
  border-color: rgba(161, 92, 7, 0.28);
  color: #7a4304;
  background: rgba(245, 158, 11, 0.09);
}

.checkout-redirect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.checkout-redirect-actions a {
  align-self: start;
}

.message-focus {
  outline: 3px solid var(--fs-focus);
  outline-offset: 3px;
}

.paywall-message {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.75rem 0;
  padding: 0.75rem;
  border: 1px solid rgba(161, 92, 7, 0.24);
  border-radius: var(--fs-radius-sm);
  color: #7a4304;
  background: rgba(245, 158, 11, 0.09);
  font-weight: 850;
}

.paywall-message[hidden] {
  display: none;
}

.paywall-link {
  font-weight: 900;
}

.paywall-action {
  margin-left: 0.2rem;
}

.paywall-locked-row td {
  background: rgba(247, 250, 249, 0.78);
}

.locked-record-mask {
  display: inline-block;
  max-width: 100%;
  color: transparent;
  background: linear-gradient(90deg, rgba(96, 112, 122, 0.24), rgba(96, 112, 122, 0.1), rgba(96, 112, 122, 0.24));
  border-radius: 999px;
  user-select: none;
  filter: blur(3px);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 18px;
  color: var(--fs-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--fs-border);
}

.auth-sso-actions {
  display: grid;
  gap: 0.55rem 0.75rem;
  margin-top: 18px;
  align-items: center;
  justify-items: stretch;
  --sso-label-width: 168px;
  --sso-button-width: 288px;
  --sso-render-width: 280px;
}

body[data-page="login"] .auth-card {
  overflow: visible;
  width: 100%;
  max-width: 560px;
}

.sso-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: var(--sso-label-width) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  width: 100%;
}

.auth-sso-actions .sso-help,
.auth-sso-actions .notice {
  grid-column: 1 / -1;
}

.auth-sso-actions .sso-help {
  margin: 2px 0 0;
  color: var(--fs-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.sso-label {
  margin: 0;
  color: var(--fs-text-strong);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.google-identity-button {
  display: flex;
  justify-content: flex-end;
  overflow: visible;
  width: 100%;
  max-width: none;
  min-height: 44px;
  max-height: none;
  margin: 0;
  padding-right: 10px;
  box-sizing: border-box;
}

.google-identity-button > div {
  display: block;
  flex: 0 0 var(--sso-render-width);
  width: var(--sso-render-width);
  max-width: var(--sso-render-width);
}

.google-identity-button iframe {
  display: block;
  max-width: none;
}

.auth-sso-actions .notice {
  flex: 1 0 100%;
  margin: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(180, 35, 24, 0.28);
  border-radius: var(--fs-radius-sm);
  background: #fff8f6;
  color: var(--fs-danger);
  font-size: 0.84rem;
  line-height: 1.4;
}

.auth-sso-actions .sso-help {
  flex: 1 0 100%;
}

@media (max-width: 560px) {
  .sso-label,
  .google-identity-button,
  .sso-row,
  .auth-sso-actions .sso-help,
  .auth-sso-actions .notice {
    flex-basis: 100%;
    width: 100%;
  }

  .sso-label {
    white-space: normal;
  }

  .sso-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.auth-guidance {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-sm);
  color: var(--fs-muted);
  background: var(--fs-bg-panel-muted);
  box-shadow: var(--fs-shadow-sm);
  font-size: 0.84rem;
  line-height: 1.4;
}

.auth-guidance[hidden] {
  display: none;
}

.auth-guidance p {
  margin: 0;
}

.google-sso-button {
  display: inline-grid;
  grid-template-columns: 1.65rem minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--fs-border-strong);
  border-radius: var(--fs-radius-sm);
  color: var(--fs-text-strong);
  background: #ffffff;
  box-shadow: var(--fs-shadow-sm);
  font-weight: 850;
}

.google-sso-button:hover:not(:disabled) {
  border-color: rgba(15, 118, 110, 0.38);
  color: var(--fs-brand);
  background: rgba(15, 118, 110, 0.05);
}

.google-sso-button:disabled {
  cursor: not-allowed;
  color: var(--fs-muted);
  background: rgba(241, 245, 249, 0.86);
  box-shadow: none;
  opacity: 0.78;
}

.google-sso-mark {
  display: inline-grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border: 1px solid var(--fs-border);
  border-radius: 50%;
  color: #2563eb;
  background: #ffffff;
  font-weight: 900;
  line-height: 1;
}

.workspace-stat-grid,
.owner-workspace-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.65rem;
  margin: 0;
}

.workspace-stat-grid div,
.owner-workspace-summary-grid div {
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-sm);
  background: #ffffff;
}

.workspace-stat-grid div.usage-limit-reached {
  border-color: rgba(161, 92, 7, 0.32);
  background: rgba(245, 158, 11, 0.08);
}

.workspace-stat-grid dt,
.owner-workspace-summary-grid dt {
  color: var(--fs-muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.workspace-stat-grid dd,
.owner-workspace-summary-grid dd {
  margin: 0.25rem 0 0;
  color: var(--fs-text-strong);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
}

.workspace-stat-grid p {
  margin: 0.35rem 0 0;
  color: var(--fs-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.user-management-overview {
  display: grid;
  gap: 1rem;
}

.user-management-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.user-management-header p {
  margin-top: 0.2rem;
  color: var(--fs-muted);
}

.user-management-guidance {
  padding: 0.8rem;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-sm);
  background: #ffffff;
}

.user-management-guidance summary {
  cursor: pointer;
  color: var(--fs-text-strong);
  font-weight: 900;
}

.user-management-guidance ul {
  margin: 0.7rem 0 0;
  padding-left: 1.25rem;
  color: var(--fs-muted);
  font-weight: 750;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.status-badge-active {
  color: var(--fs-success);
  background: rgba(22, 101, 52, 0.12);
}

.status-badge-inactive {
  color: var(--fs-muted);
  background: var(--fs-bg-panel-muted);
}

#users-table .membership-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  margin: 0;
  padding: 3px 8px;
  border: 1px solid #d5e1e5;
  border-radius: 999px;
  color: #33434b;
  background: #f1f5f6;
  box-shadow: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
  vertical-align: middle;
  white-space: nowrap;
}

#users-table .membership-status-pill.status-approved,
#users-table .membership-status-pill.status-active,
#users-table .membership-status-pill.status-complete {
  border-color: #9bd7b1;
  color: #166534;
  background: #eaf7ef;
}

#users-table .membership-status-pill.status-pending,
#users-table .membership-status-pill.status-attention {
  border-color: #f2c36b;
  color: #7a4100;
  background: #fff7e6;
}

#users-table .membership-status-pill.status-rejected,
#users-table .membership-status-pill.status-suspended,
#users-table .membership-status-pill.status-inactive,
#users-table .membership-status-pill.status-incomplete {
  border-color: #f8c4bd;
  color: #8f1d14;
  background: #fff1f0;
}

#users-table .membership-status-pill.status-neutral {
  border-color: #d5e1e5;
  color: #33434b;
  background: #f1f5f6;
}

.user-account-note {
  display: block;
  max-width: 22rem;
  margin-top: 0.25rem;
  color: var(--fs-muted);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.35;
}

.member-identity,
.member-edit-stack {
  display: grid;
  gap: 0.18rem;
}

.member-identity strong,
.member-edit-stack strong {
  color: var(--fs-text-strong);
  font-weight: 900;
}

.member-identity span {
  color: var(--fs-muted);
  font-size: 0.86rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.member-edit-stack label {
  display: grid;
  gap: 0.25rem;
  color: var(--fs-muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.member-edit-stack input {
  width: min(100%, 22rem);
  min-height: 38px;
}

.account-profile-panel {
  display: grid;
  gap: 1rem;
}

.account-profile-header {
  display: grid;
  gap: 0.2rem;
}

.account-profile-header h2,
.account-profile-header p {
  margin: 0;
}

.account-profile-header p:not(.eyebrow) {
  margin-top: 0.2rem;
  color: var(--fs-muted);
}

.account-readiness-grid dd {
  overflow-wrap: anywhere;
  word-break: normal;
}

.account-readiness-grid {
  grid-template-columns:
    minmax(110px, 1fr)
    minmax(240px, 1.8fr)
    minmax(150px, 1.25fr)
    minmax(92px, 0.8fr)
    minmax(104px, 0.85fr);
  gap: 10px;
}

.account-readiness-grid div {
  box-sizing: border-box;
  min-height: 86px;
  padding: 12px 14px;
  border-radius: var(--fs-radius-md);
}

.account-readiness-grid dt {
  font-size: 0.74rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.account-readiness-grid dd {
  margin-top: 6px;
  font-size: 0.94rem;
  line-height: 1.3;
}

.account-readiness-grid p {
  display: none;
}

@media (max-width: 899px) {
  .account-readiness-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

.account-readiness-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--fs-muted);
  font-weight: 750;
}

.account-profile-form {
  display: grid;
  gap: 0.85rem;
}

.workspace-display-form {
  max-width: 720px;
  gap: 10px;
}

.workspace-display-form label,
.workspace-display-form .field-help {
  margin: 0;
}

.workspace-display-form input {
  width: 100%;
}

.workspace-display-actions {
  justify-content: flex-start;
  gap: 10px;
}

.workspace-display-actions button {
  width: fit-content;
}

#account-profile-form > div:not(.form-actions) {
  display: grid;
  gap: 0.45rem;
  max-width: 420px;
}

#account-profile-form .form-actions {
  justify-content: flex-start;
  gap: 10px;
}

body[data-page="account"] .account-profile-panel {
  display: block;
}

body[data-page="account"] .account-profile-header {
  display: block;
  margin: 0 0 22px;
}

body[data-page="account"] .account-profile-header .eyebrow {
  margin: 0 0 18px;
  color: var(--fs-brand-2);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page="account"] .account-profile-header h2 {
  margin: 0;
  color: var(--fs-text-strong);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
}

body[data-page="account"] .account-profile-header p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--fs-muted);
  font-size: 1rem;
  line-height: 1.45;
}

body[data-page="account"] .account-profile-panel > .account-profile-form,
body[data-page="account"] .account-profile-panel > .account-readiness-grid {
  margin-top: 0;
}

body[data-page="account"] .account-paired-settings-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

body[data-page="account"] .account-paired-settings-row > .content-card {
  min-width: 0;
}

body[data-page="account"] #change-password-form {
  gap: 10px;
}

body[data-page="account"] #change-password-form > div:not(.form-actions) {
  display: grid;
  gap: 7px;
  max-width: none;
  margin: 0;
}

body[data-page="account"] #change-password-form > div:not(.form-actions) label {
  margin: 0;
}

body[data-page="account"] #change-password-form > div:not(.form-actions) input {
  width: 100%;
}

body[data-page="account"] #change-password-form .form-actions {
  justify-content: flex-start;
  margin-top: 0;
}

body[data-page="account"] #change-password-button {
  width: fit-content;
}

body[data-page="account"] .account-hash-focus {
  outline: 3px solid rgba(20, 184, 166, 0.36);
  outline-offset: 4px;
  scroll-margin-top: 18px;
}

body[data-page="account"] .weekly-notification-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

body[data-page="account"] .weekly-notification-grid div {
  box-sizing: border-box;
  min-height: 86px;
  padding: 12px 14px;
  border-radius: var(--fs-radius-md);
}

body[data-page="account"] .weekly-notification-grid dt {
  font-size: 0.74rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

body[data-page="account"] .weekly-notification-grid dd {
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.25;
}

body[data-page="account"] .weekly-notification-grid p {
  display: none;
}

body[data-page="account"] .account-notification-automation-gate {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(180, 35, 24, 0.22);
  border-radius: var(--fs-radius-md);
  background: #fff8f6;
}

body[data-page="account"] .account-notification-automation-gate .weekly-digest-field-label {
  display: block;
  margin-bottom: 5px;
  color: var(--fs-brand-2);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

body[data-page="account"] .account-notification-automation-gate strong {
  display: block;
  color: var(--fs-text);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
}

body[data-page="account"] .account-notification-automation-gate strong + span {
  display: block;
  margin-top: 5px;
  color: var(--fs-muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

body[data-page="account"] .account-notification-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

body[data-page="account"] .account-notification-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--fs-border-strong);
  border-radius: var(--fs-radius-sm);
  background: #fff;
  color: var(--fs-muted);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

body[data-page="account"] .account-notification-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding-right: 16px;
  padding-left: 16px;
  color: var(--fs-brand-2);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

body[data-page="account"] .account-notification-automation-gate[data-state="no_opt_ins"],
body[data-page="account"] .account-notification-automation-gate[data-state="opt_in_saved"],
body[data-page="account"] .account-notification-automation-gate[data-state="scheduled_delivery_active"] {
  border-color: rgba(15, 118, 110, 0.22);
  background: #ecfdf7;
}

body[data-page="account"] .scanner-notification-preference-group {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-md);
  background: #ffffff;
}

body[data-page="account"] .scanner-notification-preference-group h3,
body[data-page="account"] .scanner-weekly-digest-test-email h3 {
  margin: 0;
  color: var(--fs-text-strong);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.25;
}

body[data-page="account"] .scanner-notification-preference-group > p,
body[data-page="account"] .scanner-weekly-digest-schedule > p,
body[data-page="account"] .scanner-weekly-digest-test-email > p {
  margin: 0;
  color: var(--fs-muted);
}

body[data-page="account"] .scanner-weekly-digest-schedule {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-md);
  background: #fffdfb;
}

body[data-page="account"] .scanner-weekly-digest-schedule-controls {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(110px, 160px) auto;
  gap: 10px;
  align-items: end;
  margin-top: 2px;
}

body[data-page="account"] .scanner-weekly-digest-schedule-controls label {
  display: grid;
  gap: 6px;
  color: var(--fs-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

body[data-page="account"] .scanner-notification-preference-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(100%, 620px);
  padding: 12px 14px;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-md);
  background: #fbfdfd;
}

body[data-page="account"] .scanner-notification-preference-option input {
  margin-top: 3px;
}

body[data-page="account"] .scanner-notification-preference-option > span {
  display: grid;
  gap: 5px;
}

body[data-page="account"] .scanner-notification-preference-option strong {
  color: var(--fs-text-strong);
  font-weight: 850;
}

body[data-page="account"] .scanner-notification-preference-option small {
  color: var(--fs-muted);
  font-size: 0.9rem;
  font-weight: 650;
}

body[data-page="account"] .scanner-notification-paid-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  min-height: 22px;
  margin-left: 8px;
  padding: 0 10px;
  border: 1px solid #f4b571;
  border-radius: 999px;
  color: #60707a;
  background: #ffe8c2;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

body[data-page="account"] .scanner-notification-actions {
  justify-content: flex-start;
  gap: 10px;
}

body[data-page="account"] .scanner-notification-status {
  margin: 0;
  color: var(--fs-muted);
  font-weight: 700;
}

body[data-page="account"] .scanner-notification-status[data-state="error"] {
  color: var(--fs-danger);
}

body[data-page="account"] .scanner-notification-status[data-state="success"] {
  color: var(--fs-success);
}

body[data-page="account"] .scanner-weekly-digest-test-email {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: 16px;
}

body[data-page="account"] .scanner-weekly-digest-history {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

body[data-page="account"] .scanner-weekly-digest-history h3 {
  margin: 0;
  color: var(--fs-text-strong);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.25;
}

body[data-page="account"] .scanner-weekly-digest-history-grid {
  margin-top: 0;
}

@media (max-width: 1180px) {
  body[data-page="account"] .weekly-notification-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  body[data-page="account"] .account-notification-automation-gate {
    grid-template-columns: 1fr;
  }

  body[data-page="account"] .account-notification-gate-actions {
    justify-content: flex-start;
  }

  body[data-page="account"] .scanner-weekly-digest-schedule-controls {
    grid-template-columns: 1fr;
  }
}

.student-plan-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.student-plan-header h2 {
  margin: 0;
}

.student-plan-header p {
  margin: 0.2rem 0 0;
  color: var(--fs-muted);
}

input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  color: var(--fs-muted);
  background: var(--fs-bg-panel-muted);
  opacity: 0.72;
}

body[data-flowstack-shell] .page-shell {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 24px;
  background: transparent;
}

body[data-flowstack-shell] .platform-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

body[data-flowstack-shell] .platform-sidebar {
  position: sticky;
  top: 24px;
  min-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(15, 32, 39, 0.16);
  border-radius: var(--fs-radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 249, 0.94)),
    var(--fs-bg-panel);
  box-shadow: var(--fs-shadow-md);
}

body[data-flowstack-shell] .platform-brand {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: auto;
  margin-bottom: 10px;
  color: var(--fs-text-strong);
  text-decoration: none;
  border-radius: var(--fs-radius-md);
}

body[data-flowstack-shell] .platform-brand-mark {
  display: block;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: var(--fs-radius-md);
  box-shadow: var(--fs-shadow-sm);
}

body[data-flowstack-shell] .platform-brand p {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.05;
}

body[data-flowstack-shell] .platform-brand span {
  display: block;
  margin-top: 3px;
  color: var(--fs-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-flowstack-shell] .platform-brand > div {
  display: grid;
  gap: 1px;
  line-height: 1.2;
}

body[data-flowstack-shell] .platform-nav,
body[data-flowstack-shell] .admin-nav.platform-nav {
  display: grid;
  gap: 5px;
  align-content: start;
}

body[data-flowstack-shell] .admin-nav {
  display: grid;
  gap: 12px;
}

body[data-flowstack-shell] .platform-nav-list {
  display: grid;
  gap: 5px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

body[data-flowstack-shell] .platform-nav-list li {
  min-width: 0;
}

body[data-flowstack-shell] .platform-nav a:not(.platform-brand),
body[data-flowstack-shell] .platform-nav button {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 10px 8px 13px;
  border: 1px solid transparent;
  border-radius: var(--fs-radius-md);
  color: #33434b;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  overflow-wrap: anywhere;
  box-shadow: none;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

body[data-flowstack-shell] .platform-nav a:not(.platform-brand):hover,
body[data-flowstack-shell] .platform-nav a:not(.platform-brand):focus-visible,
body[data-flowstack-shell] .platform-nav button:hover,
body[data-flowstack-shell] .platform-nav button:focus-visible {
  border-color: var(--fs-border);
  color: var(--fs-brand);
  background: #f1f8f7;
}

body[data-flowstack-shell] .platform-nav a:not(.platform-brand)[aria-current="page"],
body[data-flowstack-shell] .platform-nav a:not(.platform-brand).active {
  color: var(--fs-brand);
  border-color: rgba(15, 118, 110, 0.22);
  background: linear-gradient(180deg, #eef8f7, #e7f3f1);
  box-shadow: none;
}

body[data-flowstack-shell] .platform-nav-list #auth-status-item {
  width: 100%;
  margin: 7px 0 0;
  padding-top: 7px;
  border-top: 1px solid var(--fs-border);
  color: var(--fs-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

body[data-flowstack-shell] .platform-nav-list .logout-item {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--fs-border);
}

body[data-flowstack-shell] .platform-nav-list .logout-item button {
  justify-content: center;
  border-color: var(--fs-brand);
  color: #ffffff;
  background: var(--fs-brand);
  box-shadow: var(--fs-shadow-sm);
}

body[data-flowstack-shell] .platform-nav-list .logout-item button:hover,
body[data-flowstack-shell] .platform-nav-list .logout-item button:focus-visible {
  border-color: var(--fs-brand-2);
  color: #ffffff;
  background: var(--fs-brand-2);
}

body[data-flowstack-shell][data-auth-role="user"] .platform-shell {
  grid-template-columns: minmax(0, 1fr);
}

body[data-flowstack-shell][data-auth-role="user"] .nav-menu-toggle {
  display: inline-grid;
}

body[data-flowstack-shell][data-auth-role="user"] .platform-sidebar {
  position: fixed;
  inset: 4rem auto 1rem 1rem;
  z-index: 30;
  width: min(260px, calc(100vw - 2rem));
  min-height: 0;
  overflow-y: auto;
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

body[data-flowstack-shell][data-auth-role="user"][data-nav-collapsed="true"] .platform-sidebar {
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(-100% - 2rem));
}

body[data-flowstack-shell][data-auth-role="user"][data-nav-collapsed="false"] .platform-shell {
  grid-template-columns: 260px minmax(0, 1fr);
}

body[data-flowstack-shell][data-auth-role="user"][data-nav-collapsed="false"] .platform-sidebar {
  position: sticky;
  inset: auto;
  top: 72px;
  width: auto;
  min-height: calc(100vh - 96px);
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

body[data-flowstack-shell] .platform-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

body[data-flowstack-shell] .page-header {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(15, 32, 39, 0.16);
  border-radius: var(--fs-radius-lg);
  background:
    linear-gradient(100deg, #ffffff 0%, #f8fbfb 54%, #eef6f4 100%);
  box-shadow: var(--fs-shadow-md);
}

body[data-flowstack-shell] .page-header::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--fs-brand-2), var(--fs-brand-3));
}

body[data-flowstack-shell] .page-header > div {
  min-width: 0;
}
body[data-flowstack-shell] .owner-support-activity-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

body[data-flowstack-shell] .owner-support-activity-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-md);
  background: var(--fs-bg-panel-muted);
}

body[data-flowstack-shell] .owner-support-activity-main,
body[data-flowstack-shell] .owner-support-activity-badges {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

body[data-flowstack-shell] .owner-support-activity-badges {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

body[data-flowstack-shell] .owner-support-activity-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

body[data-flowstack-shell] .owner-support-activity-details div {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-sm);
  background: #ffffff;
}

body[data-flowstack-shell] .owner-support-activity-details dt {
  color: var(--fs-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

body[data-flowstack-shell] .owner-support-activity-details dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  color: var(--fs-text);
  font-size: 0.84rem;
}

body[data-flowstack-shell][data-owner-user-preview="true"] [data-owner-only-nav],
body[data-flowstack-shell][data-owner-user-preview="true"] .owner-only {
  display: none !important;
}

body[data-flowstack-shell] .content-card {
  padding: 20px;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-md);
  background: var(--fs-bg-panel);
  box-shadow: var(--fs-shadow-sm);
}

body[data-flowstack-shell] .settings-workspace {
  display: grid;
  gap: 18px;
  position: relative;
}

body[data-flowstack-shell] .report-workspace {
  display: grid;
  gap: 18px;
  position: relative;
}

body[data-flowstack-shell] .settings-section {
  display: grid;
  gap: 14px;
}

body[data-flowstack-shell] .report-section {
  display: grid;
  gap: 14px;
}

body[data-flowstack-shell] .section-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

body[data-flowstack-shell] .section-heading-row h2,
body[data-flowstack-shell] .section-heading-row p {
  margin: 0;
}

body[data-flowstack-shell] .section-heading-row .muted {
  margin-top: 0.25rem;
  color: var(--fs-muted);
  font-weight: 650;
}

body[data-flowstack-shell][data-page="blocks"] .account-profile-form {
  max-width: 760px;
}

body[data-flowstack-shell][data-page="blocks"] .form-actions {
  justify-content: flex-start;
  gap: 10px;
}

body[data-flowstack-shell][data-page="scan"] .scan-page-layout {
  display: grid;
  gap: 1rem;
  width: min(100%, 780px);
  justify-self: center;
  padding-top: 0;
}

body[data-flowstack-shell][data-page="status"] .dashboard-filter-card,
body[data-flowstack-shell][data-page="status"] .dashboard-table-card {
  display: grid;
  gap: 14px;
}

body[data-flowstack-shell] .manage-users-owner-card {
  display: grid;
  gap: 12px;
}

.owner-workspace-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.owner-request-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.owner-request-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-md);
  background: #ffffff;
}

.owner-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.owner-workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.owner-workspace-action-note {
  flex: 0 0 100%;
  margin: 0 0 0.15rem;
}

.owner-workspace-plan-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-sm);
  background: #ffffff;
}

.owner-workspace-plan-control {
  display: flex;
  flex: 1 1 220px;
  align-items: center;
  gap: 0.5rem;
  color: var(--fs-muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.owner-workspace-plan-control select {
  min-width: 8rem;
}

.owner-workspace-usage-panel {
  display: grid;
  gap: 0.7rem;
  padding: 0.8rem;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-sm);
  background: #ffffff;
}

.owner-workspace-usage-panel summary {
  cursor: pointer;
  color: var(--fs-text-strong);
  font-size: 0.86rem;
  font-weight: 900;
}

.owner-workspace-usage-panel[open] summary {
  margin-bottom: 0.7rem;
}

.owner-workspace-usage-grid {
  margin-bottom: 0.7rem;
}

.owner-workspace-billing-panel {
  display: grid;
  gap: 0.65rem;
  padding: 0.8rem;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-sm);
  background: #ffffff;
}

.owner-workspace-billing-ready {
  border-color: rgba(18, 98, 71, 0.28);
  background: #f3fbf7;
}

.owner-workspace-billing-muted {
  border-color: rgba(96, 112, 122, 0.28);
}

.owner-workspace-billing-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.owner-workspace-billing-heading strong {
  color: var(--fs-text-strong);
  font-size: 0.86rem;
  font-weight: 900;
}

.owner-workspace-billing-heading span {
  color: var(--fs-muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.plan-badge {
  flex: 0 0 auto;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.plan-badge-free {
  color: #075985;
  background: #e0f2fe;
}

.plan-badge-paid {
  color: #126247;
  background: #dff7ed;
}

.timing-source-options {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.timing-source-options legend {
  margin-bottom: 0.5rem;
  color: var(--fs-text-strong);
  font-weight: 850;
}

.timing-source-options label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--fs-text);
  font-weight: 750;
}

.timing-source-options label.is-disabled {
  color: var(--fs-muted);
}

.timing-source-options label.is-disabled input {
  cursor: not-allowed;
}

.settings-help {
  margin: -0.25rem 0 1rem;
  color: var(--fs-muted);
  font-weight: 650;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.settings-fieldset {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-sm);
  background: var(--fs-bg-panel-muted);
}

.settings-fieldset legend {
  padding: 0 0.35rem;
  color: var(--fs-text-strong);
  font-weight: 900;
}

.inline-field-row,
.settings-color-grid {
  display: grid;
  grid-template-columns: minmax(90px, 140px) auto;
  align-items: center;
  gap: 0.65rem;
}

.settings-color-grid {
  grid-template-columns: auto 52px;
}

.settings-fieldset input[type="color"] {
  width: 52px;
  height: 42px;
  padding: 0.2rem;
}

.settings-fieldset.is-disabled {
  opacity: 0.72;
}

.pricing-shell {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
  padding: 24px 0 44px;
}

.demo-shell {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
  padding: 24px 0 44px;
}

.pricing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.pricing-nav-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pricing-header,
.pricing-safety-note {
  padding: 1.25rem;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--fs-shadow-md);
}

.pricing-header h1 {
  max-width: 820px;
  margin: 0;
  color: var(--fs-text-strong);
  font-size: clamp(2rem, 1.4rem + 2vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.pricing-plan-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 100%;
  padding: 1.15rem;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-lg);
  background: #ffffff;
  box-shadow: var(--fs-shadow-md);
}

.pricing-plan-featured {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 14px 34px rgba(15, 118, 110, 0.14);
}

.pricing-plan-heading h2,
.pricing-price,
.pricing-note {
  margin: 0;
}

.pricing-price {
  color: var(--fs-text-strong);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
}

.pricing-note {
  color: var(--fs-muted);
  font-weight: 750;
}

.pricing-feature-list {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  color: var(--fs-text);
  font-size: 0.94rem;
  list-style: none;
}

.pricing-feature-list li {
  position: relative;
  padding-left: 24px;
}

.pricing-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.38em;
  width: 12px;
  height: 12px;
  border: 3px solid var(--fs-brand-2);
  border-radius: 50%;
  background: #ffffff;
}

.pricing-plan-action {
  width: 100%;
  margin-top: auto;
}

.pricing-safety-note {
  margin-top: 18px;
  padding: 18px 20px;
  border-color: rgba(15, 118, 110, 0.24);
  background: rgba(240, 253, 250, 0.72);
  clear: both;
}

.pricing-demo-action {
  margin-top: 8px;
}

.demo-hero {
  overflow: hidden;
  border-top: 4px solid var(--fs-brand-2);
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.09), rgba(255, 255, 255, 0.96) 42%),
    rgba(255, 255, 255, 0.96);
}

.demo-hero h1 {
  max-width: 780px;
  margin-top: 0.3rem;
}

.demo-hero .page-lede {
  max-width: 820px;
  margin-top: 0.65rem;
}

.demo-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

button.secondary-action {
  font: inherit;
  cursor: pointer;
}

.demo-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.demo-status-grid .panel {
  display: grid;
  gap: 0.35rem;
}

.demo-status-grid h2 {
  font-size: 1.45rem;
}

.demo-workspace {
  display: grid;
  grid-template-columns: minmax(360px, 560px) minmax(260px, 360px);
  justify-content: center;
  align-items: start;
  gap: 1rem;
}

.demo-scan-column {
  display: grid;
  gap: 0.85rem;
}

.demo-student-panel {
  display: grid;
  gap: 0.65rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--fs-shadow-md);
}

.demo-student-panel h2 {
  margin: 0;
  font-size: 1.12rem;
}

.demo-chip-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.demo-chip {
  min-height: 32px;
  padding: 0.35rem 0.55rem;
  border-color: rgba(15, 118, 110, 0.28);
  color: var(--fs-brand);
  background: rgba(15, 118, 110, 0.06);
  box-shadow: none;
  font-size: 0.88rem;
  font-weight: 850;
}

.pricing-checkout-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
  margin-top: 0.75rem;
}

#planBillingCard {
  display: grid;
  gap: 10px;
}

#planBillingCard > .eyebrow,
#planBillingCard > h2,
#planBillingCard > p,
#planBillingCard > .field-help {
  margin: 0;
}

#planBillingCard > .workspace-stat-grid {
  gap: 10px;
  margin-top: 6px;
}

#planBillingCard > .workspace-stat-grid > div {
  min-height: 86px;
  padding: 12px 14px;
}

#planBillingCard > .pricing-checkout-actions {
  margin-top: 6px;
}

.billing-contact-link {
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: keep-all;
}

.pricing-checkout-actions > button,
.pricing-checkout-actions > a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 850;
  letter-spacing: 0px;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.pricing-checkout-actions > a {
  border: 1px solid var(--fs-border-strong);
  border-radius: var(--fs-radius-sm);
  color: var(--fs-brand);
  background: #ffffff;
  box-shadow: var(--fs-shadow-sm);
  text-decoration: none;
}

.pricing-checkout-actions > button[data-billing-action-state="unavailable"]:not(:disabled) {
  border-color: var(--fs-border-strong);
  color: var(--fs-text);
  background: #ffffff;
  cursor: pointer;
  box-shadow: var(--fs-shadow-sm);
}

.pricing-checkout-actions > button[data-billing-action-state="unavailable"]:not(:disabled):hover,
.pricing-checkout-actions > button[data-billing-action-state="unavailable"]:not(:disabled):focus-visible {
  border-color: #9ab2b0;
  color: #1f4e4a;
  background: #f4fbf9;
}

.billing-notice-dialog-backdrop[hidden] {
  display: none;
}

.billing-notice-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 32, 39, 0.36);
}

.billing-notice-dialog {
  display: grid;
  gap: 12px;
  width: min(100%, 430px);
  padding: 18px;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-md);
  background: var(--fs-bg-panel);
  box-shadow: var(--fs-shadow-md);
}

.billing-notice-dialog h3,
.billing-notice-dialog p {
  margin: 0;
}

.billing-notice-dialog h3 {
  color: var(--fs-text-strong);
  font-size: 1.05rem;
}

.billing-notice-dialog p {
  color: var(--fs-muted);
}

.billing-notice-dialog p a {
  color: var(--fs-accent);
  font-weight: 800;
}

.billing-notice-dialog-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.billing-notice-dialog-actions .primary-action,
.billing-notice-dialog-actions .secondary-action {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  min-width: 88px;
  border: 1px solid var(--fs-border-strong);
  border-radius: var(--fs-radius-sm);
  box-shadow: var(--fs-shadow-sm);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 850;
  letter-spacing: 0px;
  line-height: 1.15;
  padding: 8px 14px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.billing-notice-dialog-actions .primary-action {
  border-color: var(--fs-brand);
  color: #ffffff;
  background: var(--fs-brand);
}

.billing-notice-dialog-actions .primary-action:hover,
.billing-notice-dialog-actions .primary-action:focus-visible {
  border-color: var(--fs-brand-2);
  color: #ffffff;
  background: var(--fs-brand-2);
}

.billing-notice-dialog-actions .secondary-action {
  color: var(--fs-text);
  background: #ffffff;
}

.billing-notice-dialog-actions .secondary-action:hover,
.billing-notice-dialog-actions .secondary-action:focus-visible {
  border-color: var(--fs-brand-2);
  color: var(--fs-brand);
  background: var(--fs-bg-panel-muted);
}

@media (max-width: 860px) {
  .pricing-checkout-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .pricing-checkout-actions {
    grid-template-columns: 1fr;
  }
}

.billing-panel-selected {
  outline: 3px solid rgba(15, 118, 110, 0.24);
  outline-offset: 3px;
}

.billing-action-selected {
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.2);
}

.pricing-checkout-status {
  margin: 0 0 0.6rem;
  color: var(--fs-muted);
  font-weight: 800;
}

.pricing-checkout-status[data-tone="ready"] {
  color: var(--fs-success);
}

.pricing-checkout-status[data-tone="error"] {
  color: var(--fs-danger);
}

.block-edit-control {
  min-width: 8rem;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.table-empty {
  color: var(--fs-muted);
  font-weight: 750;
  text-align: center;
}

body[data-flowstack-shell] .owner-workspace-summary-card,
.owner-workspace-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-sm);
  background: var(--fs-bg-panel-muted);
}

.owner-workspace-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.owner-workspace-heading-row h3 {
  margin: 0;
  color: var(--fs-text-strong);
  font-size: 0.95rem;
  line-height: 1.2;
}

.owner-workspace-health {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.owner-workspace-health-healthy {
  color: #126247;
  background: #dff7ed;
}

.owner-workspace-health-review {
  color: #8b3a04;
  background: #fff1d6;
}

.owner-workspace-health-urgent {
  color: #8a1f17;
  background: #ffe0dc;
}

.owner-workspace-meta,
.owner-workspace-note {
  margin: 0;
  color: var(--fs-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.owner-workspace-health-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--fs-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  body[data-flowstack-shell] .platform-shell {
    grid-template-columns: 1fr;
  }

  body[data-flowstack-shell] .platform-sidebar {
    position: static;
    min-height: 0;
  }

  body[data-page="account"] .account-paired-settings-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body[data-flowstack-shell] .page-shell {
    padding: 14px;
  }
}

body[data-flowstack-shell][data-auth-role="user"] .page-shell {
  padding-top: 72px;
}

body[data-flowstack-shell][data-auth-role="user"][data-nav-collapsed="true"] .platform-sidebar {
  position: fixed;
  inset: 4rem auto 1rem 1rem;
  min-height: 0;
}

body[data-flowstack-shell][data-auth-role="user"][data-nav-collapsed="false"] .platform-shell {
  grid-template-columns: 260px minmax(0, 1fr);
}

body[data-flowstack-shell][data-auth-role="user"][data-nav-collapsed="false"] .platform-sidebar {
  position: sticky;
  inset: auto;
  top: 72px;
  width: auto;
  min-height: calc(100vh - 96px);
}

@media (max-width: 900px) {
  body[data-flowstack-shell][data-auth-role="user"][data-nav-collapsed="false"] .platform-shell {
    grid-template-columns: 1fr;
  }

  body[data-flowstack-shell][data-auth-role="user"][data-nav-collapsed="false"] .platform-sidebar {
    position: static;
    width: auto;
    min-height: 0;
  }
}

.shift-action-btn {
  min-height: 38px;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 850;
}

.danger-button,
#delete-all-active,
#delete-all-completed,
#delete-all {
  border-color: rgba(180, 35, 24, 0.32);
  color: #ffffff;
  background: var(--fs-danger);
}

.danger-button:hover,
#delete-all-active:hover,
#delete-all-completed:hover,
#delete-all:hover {
  border-color: var(--fs-danger-hover);
  color: #ffffff;
  background: var(--fs-danger-hover);
}

.auto-end-btn {
  border-color: var(--fs-brand-2);
  color: #ffffff;
  background: var(--fs-brand-2);
}

.auto-end-btn:hover {
  border-color: var(--fs-brand);
  color: #ffffff;
  background: var(--fs-brand);
}

.scan-page-layout {
  width: min(780px, calc(100% - 1.5rem));
  padding-top: 1.4rem;
}

.center-wrapper {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  width: 100%;
  text-align: center;
}

.scan-page-intro {
  max-width: 560px;
  margin: 0;
  color: var(--fs-muted);
  font-size: 1rem;
}

#datetime-display {
  width: min(100%, 440px);
  padding: 1rem 1.25rem;
  border-top: 4px solid var(--fs-brand-2);
}

#datetime-display p {
  margin: 0.25rem 0;
  color: var(--fs-muted);
  font-weight: 750;
}

#datetime-display p:first-child {
  color: var(--fs-text-strong);
}

#scan-wrapper,
#demo-scan-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#scan-inputs,
#demo-scan-inputs {
  width: min(100%, 440px);
  display: grid;
  gap: 0.75rem;
}

.entitlement-locked-surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 250px;
  border-radius: var(--fs-radius-md);
}

.entitlement-locked-content {
  filter: blur(2px);
  opacity: 0.42;
  pointer-events: none;
  user-select: none;
}

.entitlement-lock-overlay,
.paywall-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 18px;
  background: rgba(246, 250, 250, 0.68);
}

.page-container.entitlement-locked-surface > .entitlement-lock-overlay {
  top: clamp(128px, 12vw, 154px);
}

.entitlement-lock-panel,
.paywall-card {
  width: min(100%, 700px);
  margin-top: 18px;
  padding: 1rem;
  border: 1px solid var(--fs-border);
  border-top: 4px solid var(--fs-brand-2);
  border-radius: var(--fs-radius-md);
  color: var(--fs-text);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--fs-shadow-md);
}

.entitlement-lock-panel h2,
.entitlement-lock-panel p,
.paywall-card h1,
.paywall-card h2,
.paywall-card p {
  margin: 0;
}

.entitlement-lock-panel h2,
.paywall-card h1,
.paywall-card h2 {
  padding: 0;
  border: 0;
  color: var(--fs-text-strong);
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  line-height: 1.15;
  text-decoration: none;
}

.entitlement-lock-panel p:not(.eyebrow),
.paywall-card p:not(.eyebrow) {
  margin-top: 0.5rem;
  color: var(--fs-muted);
  font-weight: 750;
}

.paywall-details {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.paywall-details p {
  margin: 0;
}

.entitlement-lock-actions,
.paywall-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.entitlement-lock-actions a,
.paywall-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--fs-border-strong);
  border-radius: var(--fs-radius-sm);
  color: var(--fs-text);
  background: #ffffff;
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1.15;
  text-decoration: none;
}

.entitlement-lock-actions a.primary-action,
.paywall-actions a.primary-action {
  border-color: var(--fs-brand);
  color: #ffffff;
  background: var(--fs-brand);
}

.scan-section {
  display: grid;
  gap: 0.65rem;
  padding: 1rem 1.25rem;
}

.scan-section-primary {
  border-top: 4px solid var(--fs-brand-2);
}

.scan-section-secondary {
  background: rgba(255, 255, 255, 0.78);
}

.scan-section label {
  justify-items: center;
  text-align: center;
}

.scan-section .eyebrow {
  margin: 0 auto;
}

.scan-section input[type="text"] {
  min-height: 52px;
  font-size: 1.24rem;
  text-align: center;
}

.scan-input-help {
  margin: 0;
  color: var(--fs-muted);
  font-size: 0.91rem;
  line-height: 1.4;
  text-align: center;
}

.scan-mode-toggle {
  width: 100%;
  min-height: 42px;
  color: var(--fs-brand);
  background: rgba(15, 118, 110, 0.06);
  box-shadow: none;
}

.scan-mode-toggle:hover,
.scan-mode-toggle:focus-visible {
  border-color: rgba(15, 118, 110, 0.42);
  background: rgba(15, 118, 110, 0.11);
}

#scan-active-lists {
  width: 100%;
  display: grid;
  gap: 1rem;
}

.active-scan-list-panel {
  padding: 1rem 1.25rem;
}

.active-scan-list-panel h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.08rem;
}

.active-scan-count {
  min-width: 2rem;
  padding: 0.16rem 0.52rem;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  color: var(--fs-brand);
  background: rgba(15, 118, 110, 0.08);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.active-scan-summary {
  margin: -0.25rem 0 0.75rem;
  color: var(--fs-muted);
  font-size: 0.9rem;
}

.active-scan-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.active-scan-list li {
  display: grid;
  gap: 0.18rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-left: 4px solid var(--fs-brand-2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.76);
}

.active-scan-name {
  color: var(--fs-text-strong);
  font-weight: 800;
}

.active-scan-meta,
.active-scan-note {
  color: var(--fs-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.active-scan-note {
  color: var(--fs-brand);
  font-weight: 700;
}

.active-scans-table colgroup col,
.completed-scans-table colgroup col {
  width: auto;
}

.active-scans-table colgroup col:nth-child(1),
.completed-scans-table colgroup col:nth-child(1) {
  width: 12%;
}

.active-scans-table colgroup col:nth-child(2),
.completed-scans-table colgroup col:nth-child(2) {
  width: 12%;
}

.active-scans-table colgroup col:nth-child(3),
.completed-scans-table colgroup col:nth-child(3) {
  width: 16%;
}

.active-scans-table colgroup col:nth-child(4),
.completed-scans-table colgroup col:nth-child(4) {
  width: 12%;
}

.active-scans-table colgroup col:nth-child(5),
.completed-scans-table colgroup col:nth-child(5) {
  width: 9%;
}

.active-scans-table colgroup col:nth-child(6),
.completed-scans-table colgroup col:nth-child(6) {
  width: 11%;
}

.active-scans-table colgroup col:nth-child(7),
.completed-scans-table colgroup col:nth-child(7) {
  width: 9%;
}

.active-scans-table colgroup col:nth-child(8),
.completed-scans-table colgroup col:nth-child(8) {
  width: 10%;
}

.active-scans-table colgroup col:nth-child(9),
.completed-scans-table colgroup col:nth-child(9) {
  width: 10%;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100vw;
  height: 100vh;
  padding: 1rem;
  background: rgba(15, 32, 39, 0.48);
}

.modal-overlay {
  align-items: center;
  justify-content: center;
}

.modal-content {
  width: min(100%, 420px);
  margin: 10vh auto 0;
  padding: 1.5rem;
  border: 1px solid var(--fs-border);
  border-top: 4px solid var(--fs-brand-2);
  border-radius: var(--fs-radius-lg);
  color: var(--fs-text);
  background: #ffffff;
  box-shadow: var(--fs-shadow-lg);
  text-align: left;
}

.modal-overlay .modal-content {
  margin: 0;
}

.toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  bottom: auto;
  left: auto;
  z-index: 1100;
  width: max-content;
  max-width: min(26rem, calc(100vw - 2rem));
  padding: 1rem;
  border-radius: var(--fs-radius-md);
  box-shadow: var(--fs-shadow-lg);
  color: #ffffff;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.toast.show {
  opacity: 1;
}

.toast.success {
  background-color: var(--fs-success);
}

.toast.error,
.toast.end {
  background-color: var(--fs-danger);
}

.toast.popup {
  top: 1rem;
  right: 1rem;
  left: auto;
  bottom: auto;
  display: block;
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
  cursor: pointer;
  transform: none;
}

.flagged-row,
tbody tr.flagged-row,
tbody tr.flagged-row td {
  background-color: #dbeafe !important;
}

.tr-bathroom-over-7,
.tr-bathroom-over-7 td {
  background-color: #fee2e2 !important;
}

.duration-highlight-row,
.duration-highlight-row td {
  background-color: var(--scan-duration-highlight) !important;
}

.tr-work-under-25,
.tr-work-under-25 td {
  background-color: #fef3c7 !important;
}

.tr-work-25-50,
.tr-work-25-50 td {
  background-color: #ffedd5 !important;
}

.tr-work-50-plus,
.tr-work-50-plus td {
  background-color: #dcfce7 !important;
}

.tr-bathroom-ok,
.tr-bathroom-ok td {
  background-color: #ffffff !important;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pagination[hidden] {
  display: none;
}

.pagination-button,
.pagination-summary,
.pagination-ellipsis,
.pagination-jump {
  margin: 0;
}

.pagination-button {
  min-width: 2.5rem;
}

.pagination-summary {
  margin-left: 0.5rem;
  white-space: nowrap;
}

.pagination-jump {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.pagination-select {
  min-height: 2.25rem;
  max-width: 5.5rem;
  padding: 0.35rem 1.6rem 0.35rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  color: var(--text);
  background: #ffffff;
}

@media (max-width: 760px) {
  main,
  .page-container {
    padding-inline: 0.75rem;
  }

  .pricing-shell,
  .demo-shell {
    padding-inline: 0;
  }

  .pricing-nav,
  .pricing-grid,
  .demo-status-grid,
  .demo-workspace {
    grid-template-columns: 1fr;
  }

  .demo-student-panel {
    order: 3;
  }

  .pricing-nav {
    display: grid;
  }

  .pricing-nav-actions {
    justify-content: flex-start;
  }

  nav.navbar ul {
    align-items: flex-start;
    padding-inline: 0.75rem;
  }

  nav.navbar #auth-status-item {
    width: 100%;
    margin-left: 0;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 680px;
  }
}

@media (max-width: 640px) {
  body#index-page {
    padding-bottom: 2rem;
  }

  .scan-page-layout {
    width: calc(100% - 1rem);
  }

  #datetime-display,
  #scan-inputs {
    width: 100%;
  }

  .toast,
  .toast.popup {
    top: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    max-width: none;
    font-size: 1rem;
  }

  .nav-brand-link {
    width: 100%;
  }
}

@media (min-width: 900px) {
  body:not([data-flowstack-shell]):not([data-page="login"]):not([data-page="signup"]):not([data-page="plans"]):not([data-page="demo"]) {
    padding-left: 248px;
  }

  body:not([data-flowstack-shell]):not([data-page="login"]):not([data-page="signup"]):not([data-page="plans"]):not([data-page="demo"]) main,
  body:not([data-flowstack-shell]):not([data-page="login"]):not([data-page="signup"]):not([data-page="plans"]):not([data-page="demo"]) .page-container {
    margin-inline: auto;
  }

  body:not([data-flowstack-shell]) nav.navbar {
    position: fixed;
    inset: 1rem auto 1rem 1rem;
    width: 216px;
    border: 1px solid rgba(215, 224, 227, 0.84);
    border-radius: var(--fs-radius-lg);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 249, 0.94)),
      var(--fs-bg-panel);
    box-shadow: var(--fs-shadow-md);
    overflow-y: auto;
  }

  body:not([data-flowstack-shell]) nav.navbar ul {
    display: grid;
    align-items: stretch;
    width: 100%;
    padding: 0.85rem;
  }

  body:not([data-flowstack-shell]) nav.navbar a,
  body:not([data-flowstack-shell]) nav.navbar button {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-brand-link {
    margin: 0 0 0.35rem;
  }

  body:not([data-flowstack-shell]) nav.navbar #auth-status-item {
    width: 100%;
    margin-left: 0;
    padding-top: 0.55rem;
    border-top: 1px solid var(--fs-border);
  }

  body:not([data-flowstack-shell]) nav.navbar #logout-item {
    margin-top: 0.45rem;
    padding-top: 0.45rem;
    border-top: 1px solid var(--fs-border);
  }
}

body[data-auth-role="user"]:not([data-flowstack-shell]):not([data-page="login"]) {
  padding-left: 0;
}

body[data-auth-role="user"]:not([data-flowstack-shell]) .nav-menu-toggle {
  display: inline-grid;
}

body[data-auth-role="user"]:not([data-flowstack-shell]) nav.navbar {
  position: fixed;
  inset: 4rem auto 1rem 1rem;
  z-index: 30;
  width: min(216px, calc(100vw - 2rem));
  border: 1px solid rgba(215, 224, 227, 0.84);
  border-radius: var(--fs-radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 249, 0.96)),
    var(--fs-bg-panel);
  box-shadow: var(--fs-shadow-md);
  overflow-y: auto;
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

body[data-auth-role="user"]:not([data-flowstack-shell]) nav.navbar ul {
  display: grid;
  align-items: stretch;
  width: 100%;
  padding: 0.85rem;
}

body[data-auth-role="user"]:not([data-flowstack-shell]) nav.navbar a,
body[data-auth-role="user"]:not([data-flowstack-shell]) nav.navbar button {
  width: 100%;
  justify-content: flex-start;
}

body[data-auth-role="user"]:not([data-flowstack-shell]) nav.navbar #auth-status-item {
  width: 100%;
  margin-left: 0;
  padding-top: 0.55rem;
  border-top: 1px solid var(--fs-border);
}

body[data-auth-role="user"]:not([data-flowstack-shell]) nav.navbar #logout-item {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--fs-border);
}

body[data-auth-role="user"][data-nav-collapsed="true"]:not([data-flowstack-shell]) nav.navbar {
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(-100% - 2rem));
}

@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;
  }
}

/* Late cascade guard for Workspace Members label and membership pills. */
body[data-page="users"] section[aria-labelledby="current-users-heading"] > .eyebrow {
  margin: 0 0 4px;
  color: #0f766e;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

body[data-page="users"] #users-table .membership-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  margin: 0;
  padding: 3px 8px;
  border: 1px solid #d5e1e5;
  border-radius: 999px;
  color: #33434b;
  background: #f1f5f6;
  box-shadow: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
  vertical-align: middle;
  white-space: nowrap;
}

body[data-page="users"] #users-table .membership-status-pill.status-approved,
body[data-page="users"] #users-table .membership-status-pill.status-active,
body[data-page="users"] #users-table .membership-status-pill.status-complete {
  border-color: #9bd7b1;
  color: #166534;
  background: #eaf7ef;
}

body[data-page="users"] #users-table .membership-status-pill.status-pending,
body[data-page="users"] #users-table .membership-status-pill.status-attention {
  border-color: #f2c36b;
  color: #7a4100;
  background: #fff7e6;
}

body[data-page="users"] #users-table .membership-status-pill.status-rejected,
body[data-page="users"] #users-table .membership-status-pill.status-suspended,
body[data-page="users"] #users-table .membership-status-pill.status-inactive,
body[data-page="users"] #users-table .membership-status-pill.status-incomplete {
  border-color: #f8c4bd;
  color: #8f1d14;
  background: #fff1f0;
}

body[data-page="users"] #users-table .membership-status-pill.status-neutral {
  border-color: #d5e1e5;
  color: #33434b;
  background: #f1f5f6;
}

/* Match Ticketing's compact Workspace Members table rhythm. */
body[data-page="users"] section[aria-labelledby="current-users-heading"] .table-wrap {
  width: 100%;
  overflow-x: visible;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-md);
  background: #ffffff;
}

body[data-page="users"] #users-table {
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0;
  table-layout: fixed;
  overflow: hidden;
  color: var(--fs-text);
  background: #ffffff;
  box-shadow: none;
}

body[data-page="users"] #users-table th,
body[data-page="users"] #users-table td {
  padding: 6px 7px;
  border: 1px solid #e5ecee;
  color: var(--fs-text);
  font-size: 0.82rem;
  line-height: 1.18;
  text-align: left;
  vertical-align: middle;
}

body[data-page="users"] #users-table thead th {
  background: #edf3f4;
  color: #2b3a42;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

body[data-page="users"] #users-table th:nth-child(1),
body[data-page="users"] #users-table td:nth-child(1) {
  width: 92px;
  min-width: 92px;
  text-align: center;
}

body[data-page="users"] #users-table th:nth-child(2),
body[data-page="users"] #users-table td:nth-child(2) {
  width: 34%;
}

body[data-page="users"] #users-table th:nth-child(3),
body[data-page="users"] #users-table td:nth-child(3) {
  width: 150px;
}

body[data-page="users"] #users-table th:nth-child(5),
body[data-page="users"] #users-table td:nth-child(5) {
  width: 180px;
  white-space: normal;
}

body[data-page="users"] #users-table tbody tr:hover td {
  background: #f7fbfa;
}

body[data-page="users"] #users-table .member-identity,
body[data-page="users"] #users-table .member-edit-stack {
  display: grid;
  gap: 1px;
  min-width: 0;
  color: var(--fs-text);
  font-size: 0.82rem;
  line-height: 1.18;
}

body[data-page="users"] #users-table .member-identity strong,
body[data-page="users"] #users-table .member-identity small,
body[data-page="users"] #users-table .member-status-cell,
body[data-page="users"] #users-table .member-status-meta,
body[data-page="users"] #users-table .user-account-note {
  min-width: 0;
  overflow-wrap: anywhere;
}

body[data-page="users"] #users-table .member-status-cell {
  display: grid;
  gap: 3px;
  align-items: start;
}

body[data-page="users"] #users-table .member-status-meta,
body[data-page="users"] #users-table .user-account-note {
  color: var(--fs-muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

body[data-page="users"] #users-table .member-action-note {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--fs-muted);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.1;
}

body[data-page="users"] #users-table td.owner-protected-actions {
  position: relative;
  vertical-align: middle;
}

body[data-page="users"] #users-table td.owner-protected-actions .member-action-note {
  position: absolute;
  top: 50%;
  left: 7px;
  transform: translateY(-50%);
  width: max-content;
  max-width: 100%;
  margin: 0;
}

body[data-page="users"] #users-table input,
body[data-page="users"] #users-table select {
  width: 100%;
  min-height: 32px;
  padding: 5px 7px;
  font-size: 0.8rem;
  line-height: 1.2;
}

body[data-page="users"] #users-table button {
  min-height: 28px;
  padding: 4px 6px;
  font-size: 0.74rem;
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: none;
}

body[data-page="users"] #users-table td:last-child {
  display: table-cell;
  white-space: normal;
}

body[data-page="users"] #users-table .user-action-stack,
body[data-page="users"] #users-table .actions-cell {
  display: grid;
  gap: 8px;
  justify-items: start;
  align-content: start;
  min-width: 0;
}

body[data-page="users"] #users-table .user-action-stack > *,
body[data-page="users"] #users-table .actions-cell > * {
  margin: 0;
  max-width: 100%;
}

@media (max-width: 900px) {
  body[data-flowstack-shell][data-page="status"] .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body[data-flowstack-shell][data-page="status"] .metric-grid {
    grid-template-columns: 1fr;
  }
}
