:root {
  --portal-ink: #17212b;
  --portal-muted: #66717d;
  --portal-subtle: #89939e;
  --portal-line: #dfe4e8;
  --portal-line-strong: #cbd3da;
  --portal-bg: #f5f7f8;
  --portal-surface: #ffffff;
  --portal-surface-soft: #f9fafb;
  --portal-primary: #176b62;
  --portal-primary-dark: #12554e;
  --portal-blue: #355f8a;
  --portal-gold: #9a6718;
  --portal-plum: #7c4b68;
  --portal-red: #a94343;
  --portal-shadow: 0 12px 32px rgba(25, 37, 48, 0.07);
}

html {
  min-width: 320px;
}

body {
  min-height: 100vh;
  background: var(--portal-bg);
  color: var(--portal-ink);
}

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

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(23, 107, 98, 0.22);
  outline-offset: 2px;
}

.portal-shell {
  width: min(1240px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 0 56px;
}

.portal-shell h1,
.portal-shell h2,
.portal-shell p {
  margin: 0;
}

.portal-shell h1 {
  max-width: none;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: 0;
}

.portal-shell h2 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: 0;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--portal-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--portal-ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 7px;
  background: var(--portal-ink);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
}

.brand-name {
  display: grid;
  gap: 1px;
}

.brand-name strong {
  font-size: 15px;
  line-height: 1.1;
}

.brand-name small {
  color: var(--portal-muted);
  font-size: 11px;
  line-height: 1.2;
}

.portal-topbar {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--portal-line);
}

.portal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.user-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: 6px;
}

.user-summary > span:last-child {
  display: grid;
  gap: 1px;
  max-width: 180px;
}

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

.user-summary strong {
  font-size: 13px;
}

.user-summary small {
  color: var(--portal-muted);
  font-size: 11px;
}

.user-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #c7ddd9;
  border-radius: 50%;
  background: #eaf3f1;
  color: var(--portal-primary-dark);
  font-size: 11px;
  font-weight: 800;
}

.portal-button,
.portal-actions button,
.signin-panel button,
.admin-form button,
.admin-row-actions button,
.admin-row > button,
.error-state button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--portal-ink);
  border-radius: 6px;
  background: var(--portal-ink);
  color: #fff;
  padding: 0 15px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 720;
  line-height: 1;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.portal-button:hover,
.portal-actions button:hover,
.signin-panel button:hover,
.admin-form button:hover,
.admin-row-actions button:hover,
.admin-row > button:hover,
.error-state button:hover {
  border-color: #2d3c4a;
  background: #2d3c4a;
}

.portal-button:active,
.portal-actions button:active,
.signin-panel button:active,
.admin-form button:active,
.admin-row-actions button:active,
.admin-row > button:active,
.error-state button:active {
  transform: translateY(1px);
}

.portal-button.secondary,
.portal-actions button.secondary,
.admin-form button.secondary,
.admin-row-actions button.secondary,
.admin-row > button.secondary,
.signin-panel button.secondary {
  border-color: var(--portal-line-strong);
  background: var(--portal-surface);
  color: var(--portal-ink);
}

.portal-button.secondary:hover,
.portal-actions button.secondary:hover,
.admin-row-actions button.secondary:hover,
.admin-row > button.secondary:hover,
.signin-panel button.secondary:hover {
  border-color: #aeb9c2;
  background: #f4f6f7;
}

.portal-actions .icon-button {
  width: 42px;
  padding: 0;
  border-color: var(--portal-line-strong);
  background: var(--portal-surface);
  color: var(--portal-muted);
}

.portal-actions .icon-button:hover {
  border-color: #aeb9c2;
  background: #f4f6f7;
  color: var(--portal-ink);
}

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

.portal-header {
  display: flex;
  min-height: 214px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 44px 0 34px;
}

.portal-header .eyebrow {
  margin-bottom: 10px;
}

.portal-header .lede {
  max-width: 660px;
  margin-top: 12px;
  color: var(--portal-muted);
  font-size: 15px;
  line-height: 1.5;
}

.workspace-security,
.secure-label {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 650;
}

.workspace-security {
  padding-bottom: 5px;
}

/* Authentication and application states */
.auth-page,
.app-state-page {
  width: min(100%, 460px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 0;
}

.auth-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.signin-panel {
  display: grid;
  gap: 15px;
  width: 100%;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: var(--portal-surface);
  box-shadow: var(--portal-shadow);
  padding: 30px;
}

.auth-icon,
.state-icon,
.loading-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #c8ded9;
  border-radius: 8px;
  background: #edf5f3;
  color: var(--portal-primary);
}

.auth-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 3px;
}

.auth-heading h1,
.loading-state h1,
.error-state h1 {
  font-size: 28px;
  line-height: 1.15;
}

.auth-heading > p:last-child,
.loading-state p,
.error-state > p:not(.eyebrow) {
  color: var(--portal-muted);
  font-size: 14px;
  line-height: 1.5;
}

.signin-panel .google-auth-button,
.microsoft-auth-button {
  position: relative;
  width: 100%;
  border-color: #c8cdd2;
  background: #fff;
  color: #24292f;
  font-weight: 650;
}

.signin-panel .google-auth-button:hover,
.microsoft-auth-button:hover {
  border-color: #aeb5bb;
  background: #f8f9fa;
}

.google-mark {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
}

.google-unavailable {
  border: 1px solid #ead7b2;
  border-radius: 6px;
  background: #fff9ee;
  padding: 11px 12px;
  color: #74501d;
  font-size: 13px;
  line-height: 1.4;
}

.microsoft-auth-button {
  display: grid;
  grid-template-columns: 20px 1fr 20px;
  gap: 12px;
}

.microsoft-auth-button > span {
  display: grid;
  grid-template-columns: repeat(2, 8px);
  gap: 2px;
  width: 18px;
  height: 18px;
}

.microsoft-auth-button i {
  display: block;
  width: 8px;
  height: 8px;
}

.microsoft-auth-button i:nth-child(1) { background: #f25022; }
.microsoft-auth-button i:nth-child(2) { background: #7fba00; }
.microsoft-auth-button i:nth-child(3) { background: #00a4ef; }
.microsoft-auth-button i:nth-child(4) { background: #ffb900; }

.signin-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 11px;
  align-items: center;
  color: var(--portal-subtle);
  font-size: 11px;
  font-weight: 700;
}

.signin-divider::before,
.signin-divider::after {
  content: "";
  height: 1px;
  background: var(--portal-line);
}

.signin-form,
.admin-form {
  display: grid;
  gap: 12px;
}

.signin-form label,
.admin-form label {
  display: grid;
  gap: 6px;
  color: #4d5964;
  font-size: 12px;
  font-weight: 700;
}

.signin-form input,
.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--portal-line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--portal-ink);
  padding: 9px 11px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.signin-form input:hover,
.admin-form input:hover,
.admin-form textarea:hover,
.admin-form select:hover {
  border-color: #aeb8c1;
}

.signin-form input:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  border-color: var(--portal-primary);
  box-shadow: 0 0 0 3px rgba(23, 107, 98, 0.1);
}

.signin-form button,
.admin-form button {
  width: 100%;
}

.input-with-icon {
  position: relative;
  display: block;
}

.input-with-icon > svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 12px;
  color: var(--portal-subtle);
  transform: translateY(-50%);
}

.input-with-icon input {
  padding-left: 39px;
}

.form-message {
  border: 1px solid #cddde9;
  border-left: 3px solid var(--portal-blue);
  border-radius: 4px;
  background: #f2f7fa;
  padding: 10px 12px;
  color: #425a6b;
  font-size: 12px;
  line-height: 1.5;
}

.auth-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 2px;
  color: var(--portal-subtle);
  font-size: 11px;
}

.mfa-panel {
  width: min(100%, 460px);
}

.mfa-qr {
  width: min(220px, 100%);
  aspect-ratio: 1;
  margin: 3px auto;
  border: 1px solid var(--portal-line);
  background: #fff;
}

.mfa-secret {
  display: grid;
  gap: 4px;
  overflow-wrap: anywhere;
  color: var(--portal-muted);
  font-size: 12px;
}

.mfa-secret code {
  color: var(--portal-ink);
  font-size: 12px;
}

.app-state-page {
  display: grid;
  align-content: center;
  gap: 42px;
}

.loading-state,
.error-state {
  display: grid;
  gap: 14px;
  max-width: 410px;
}

.loading-icon svg {
  animation: loading-spin 1.1s linear infinite;
}

.loading-track {
  width: 100%;
  height: 3px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 3px;
  background: #e4e8eb;
}

.loading-track span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: var(--portal-primary);
  animation: loading-progress 1.45s ease-in-out infinite;
}

.error-state .state-icon.error {
  border-color: #ead0d0;
  background: #fbf1f1;
  color: var(--portal-red);
}

.error-state > code {
  overflow-wrap: anywhere;
  border: 1px solid var(--portal-line);
  border-radius: 6px;
  background: #fff;
  padding: 10px;
  color: var(--portal-muted);
  font-size: 11px;
  line-height: 1.5;
}

/* Customer dashboard */
.collection-section {
  padding-top: 6px;
}

.collection-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.collection-heading h2 {
  font-size: 17px;
}

.collection-heading p {
  margin-top: 3px;
  color: var(--portal-muted);
  font-size: 12px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-card {
  --card-accent: var(--portal-primary);
  display: grid;
  min-width: 0;
  min-height: 248px;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  border: 1px solid var(--portal-line);
  border-top: 3px solid var(--card-accent);
  border-radius: 7px;
  background: var(--portal-surface);
  color: var(--portal-ink);
  padding: 20px;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.dashboard-card:hover {
  border-color: #c5cdd4;
  border-top-color: var(--card-accent);
  box-shadow: var(--portal-shadow);
  transform: translateY(-2px);
}

.dashboard-card.is-disabled {
  border-style: solid;
  background: #fbfbfc;
}

.dashboard-card.is-disabled:hover {
  border-color: var(--portal-line);
  border-top-color: var(--card-accent);
  box-shadow: none;
  transform: none;
}

.dashboard-card.is-disabled .dashboard-card-footer > span {
  color: var(--portal-subtle);
}

.dashboard-card.accent-1 { --card-accent: var(--portal-blue); }
.dashboard-card.accent-2 { --card-accent: var(--portal-gold); }
.dashboard-card.accent-3 { --card-accent: var(--portal-plum); }

.dashboard-card-top,
.dashboard-card-footer,
.admin-row-title,
.panel-title-row,
.tool-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.visualization-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 7px;
  background: color-mix(in srgb, var(--card-accent) 10%, white);
  color: var(--card-accent);
}

.status-badge,
.permission-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  border: 1px solid #d3d9de;
  border-radius: 999px;
  background: #f7f8f9;
  color: #5a6671;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: capitalize;
  white-space: nowrap;
}

.status-active {
  border-color: #c7dfd3;
  background: #edf7f1;
  color: #226044;
}

.status-failed {
  border-color: #ead0d0;
  background: #fcf2f2;
  color: #9b3e3e;
}

.status-pending,
.status-pending-review,
.status-deploying,
.status-draft {
  border-color: #eadcbf;
  background: #fff9ed;
  color: #7a551b;
}

.dashboard-card-copy {
  align-self: start;
}

.dashboard-card-copy strong {
  display: block;
  font-size: 18px;
  line-height: 1.3;
}

.dashboard-card-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 8px;
  color: var(--portal-muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.dashboard-card-footer {
  padding-top: 13px;
  border-top: 1px solid var(--portal-line);
}

.dashboard-card-footer code {
  min-width: 0;
  overflow: hidden;
  color: var(--portal-subtle);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-card-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--card-accent);
  font-size: 12px;
  font-weight: 750;
}

.empty-state {
  display: grid;
  min-height: 270px;
  place-items: center;
  align-content: center;
  gap: 9px;
  border: 1px dashed var(--portal-line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  padding: 34px;
  text-align: center;
}

.empty-state > span {
  color: var(--portal-primary);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.empty-state p {
  max-width: 420px;
  color: var(--portal-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Administration */
.admin-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.admin-overview > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--portal-line);
  border-radius: 7px;
  background: var(--portal-surface);
  padding: 14px;
}

.admin-overview > div > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.admin-overview small {
  overflow: hidden;
  color: var(--portal-muted);
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-overview strong {
  font-size: 20px;
  line-height: 1.1;
}

.overview-icon,
.tool-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: #edf5f3;
  color: var(--portal-primary);
}

.overview-icon.blue { background: #eef3f8; color: var(--portal-blue); }
.overview-icon.green { background: #edf5f3; color: var(--portal-primary); }
.overview-icon.gold { background: #fbf4e8; color: var(--portal-gold); }
.overview-icon.plum { background: #f6eef3; color: var(--portal-plum); }

.global-message {
  margin-bottom: 18px;
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 16px;
  align-items: start;
}

.admin-main,
.admin-tools {
  display: grid;
  gap: 16px;
}

.admin-panel {
  display: grid;
  gap: 15px;
  min-width: 0;
  border: 1px solid var(--portal-line);
  border-radius: 7px;
  background: var(--portal-surface);
  padding: 18px;
}

.panel-title-row {
  align-items: flex-start;
  padding-bottom: 2px;
}

.panel-title-row > div,
.tool-heading > div {
  display: grid;
  gap: 3px;
}

.item-count {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--portal-line);
  border-radius: 6px;
  background: var(--portal-surface-soft);
  color: var(--portal-muted);
  font-size: 11px;
  font-weight: 800;
}

.admin-list {
  display: grid;
}

.admin-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  border-top: 1px solid var(--portal-line);
  padding: 14px 0;
}

.admin-row:last-child {
  padding-bottom: 1px;
}

.admin-row-copy {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.admin-row-title {
  justify-content: flex-start;
}

.admin-row-title strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-row-copy p {
  color: var(--portal-muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-row-copy code {
  overflow: hidden;
  color: var(--portal-subtle);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.permission-badge {
  border-color: #cfdae7;
  background: #f0f5fa;
  color: var(--portal-blue);
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.admin-row-actions .portal-button,
.admin-row-actions button,
.admin-row > button,
.compact-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 11px;
}

.tool-heading {
  justify-content: flex-start;
}

.tool-icon {
  width: 34px;
  height: 34px;
}

.tool-heading h2 {
  font-size: 15px;
}

.admin-form textarea {
  min-height: 74px;
  resize: vertical;
}

.admin-form select {
  padding-right: 30px;
}

.file-input-label > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.file-input-label input[type="file"] {
  min-height: 44px;
  padding: 6px;
  color: var(--portal-muted);
  font-size: 11px;
}

.file-input-label input[type="file"]::file-selector-button {
  min-height: 30px;
  margin-right: 8px;
  border: 0;
  border-radius: 4px;
  background: #edf1f3;
  color: var(--portal-ink);
  padding: 0 9px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.inline-empty {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--portal-line);
  padding: 16px 0 2px;
  color: var(--portal-subtle);
}

.inline-empty p {
  font-size: 12px;
}

.activity-panel {
  align-self: start;
}

.audit-list {
  max-height: 430px;
  overflow: auto;
}

.audit-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--portal-line);
  padding: 11px 0;
}

.audit-marker {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--portal-primary);
}

.audit-row > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.audit-row strong {
  font-size: 12px;
  font-weight: 720;
  text-transform: capitalize;
}

.audit-row code,
.audit-row time {
  overflow: hidden;
  color: var(--portal-subtle);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

@keyframes loading-progress {
  0% { transform: translateX(-110%); }
  55% { transform: translateX(95%); }
  100% { transform: translateX(290%); }
}

@media (max-width: 980px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .admin-tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}

@media (max-width: 760px) {
  .portal-shell {
    width: min(calc(100% - 28px), 1240px);
    padding-bottom: 34px;
  }

  .portal-shell h1 {
    font-size: 36px;
  }

  .portal-topbar {
    min-height: 68px;
  }

  .user-summary > span:last-child {
    display: none;
  }

  .user-summary {
    margin-right: 0;
  }

  .portal-header {
    min-height: 176px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-end;
    gap: 14px;
    padding: 34px 0 26px;
  }

  .workspace-security {
    padding-bottom: 0;
  }

  .admin-tools {
    grid-template-columns: 1fr;
  }

  .audit-row {
    grid-template-columns: 8px minmax(0, 1fr);
  }

  .audit-row time {
    grid-column: 2;
  }
}

@media (max-width: 580px) {
  .portal-shell {
    width: min(calc(100% - 22px), 1240px);
  }

  .portal-shell h1 {
    font-size: 31px;
  }

  .brand-name {
    display: none;
  }

  .portal-actions button.secondary {
    width: 42px;
    padding: 0;
    font-size: 0;
    gap: 0;
  }

  .portal-actions button.secondary svg {
    width: 18px;
    height: 18px;
  }

  .auth-page,
  .app-state-page {
    width: 100%;
    padding: 24px 0;
  }

  .auth-page {
    justify-content: flex-start;
  }

  .auth-brand-row {
    min-height: 52px;
    margin-bottom: 14px;
  }

  .auth-brand-row .brand-name,
  .app-state-page .brand-name {
    display: grid;
  }

  .signin-panel {
    padding: 22px;
  }

  .auth-heading h1,
  .loading-state h1,
  .error-state h1 {
    font-size: 25px;
  }

  .dashboard-grid,
  .admin-overview {
    grid-template-columns: 1fr;
  }

  .dashboard-card {
    min-height: 220px;
  }

  .admin-overview {
    gap: 8px;
  }

  .admin-row {
    grid-template-columns: 1fr;
  }

  .admin-row-actions {
    justify-content: flex-start;
  }

  .admin-row > button {
    width: fit-content;
  }

  .admin-row-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

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