html {
  font-size: 14px;
}

.site-nav {
  position: relative;
  z-index: 1030;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(18, 79, 146, 0.25);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background:
    radial-gradient(circle at top, rgba(117, 198, 255, 0.18), transparent 35%),
    linear-gradient(180deg, #f6f9fc 0%, #edf3f9 100%);
  color: #10213a;
}

.site-button,
.site-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.9rem;
  padding: 0.72rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, #124f92, #0f7d8f);
  color: #fff;
  font-weight: 700;
  line-height: 1;
  margin-block: 0.3rem;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease, background-color 120ms ease;
  box-shadow: 0 10px 24px rgba(18, 79, 146, 0.2);
}

.site-button:hover,
.site-auth-button:hover {
  color: #fff;
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.site-button:disabled,
.site-button[disabled],
.site-auth-button:disabled,
.site-auth-button[disabled] {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
  box-shadow: none;
}

.site-button-secondary,
.site-auth-button-secondary {
  background: #10213a;
  box-shadow: 0 10px 24px rgba(16, 33, 58, 0.18);
}

.site-button-danger {
  background: linear-gradient(135deg, #9f2f3a, #c14b36);
  box-shadow: 0 10px 24px rgba(159, 47, 58, 0.18);
}

.site-button-success {
  background: linear-gradient(135deg, #2f6b3b, #3b8548);
  box-shadow: 0 10px 24px rgba(47, 107, 59, 0.18);
}

.site-button-ghost {
  background: transparent;
  border: 2px solid rgba(18, 79, 146, 0.2);
  color: #124f92;
  box-shadow: none;
}

.site-button-ghost:hover {
  color: #124f92;
  border-color: rgba(18, 79, 146, 0.4);
  background: rgba(18, 79, 146, 0.04);
}

.site-button-sm {
  min-height: 2.2rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
}

.site-button-block {
  width: 100%;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.hero-panel {
  padding: 5rem 1.5rem;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(231, 240, 250, 0.92));
  box-shadow: 0 24px 65px rgba(18, 35, 58, 0.08);
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(14, 82, 145, 0.1);
  color: #0c4f8e;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 42rem;
  margin: 1rem auto 1.75rem;
  color: #52627a;
  font-size: 1.05rem;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: #10213a;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.hero-link:hover {
  color: #fff;
}

.users-shell {
  display: grid;
  gap: 2rem;
}

.users-hero {
  padding: 2.5rem;
  border-radius: 30px;
  background: linear-gradient(135deg, #10213a, #0f5a7c);
  color: #f4f9ff;
  box-shadow: 0 24px 60px rgba(15, 41, 69, 0.18);
}

.users-kicker,
.users-section-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.users-section-kicker {
  background: rgba(12, 79, 142, 0.1);
  color: #0c4f8e;
}

.users-panel {
  display: grid;
  gap: 1.25rem;
  padding: 1.6rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(16, 33, 58, 0.08);
  box-shadow: 0 18px 45px rgba(18, 35, 58, 0.06);
}

.users-console {
  display: grid;
  gap: 1.5rem;
}

.users-table-panel,
.users-detail-panel {
  align-content: start;
}

.users-panel-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.users-panel-header-stack {
  align-items: start;
}

.users-panel-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
}

.users-panel-header h2,
.users-detail-empty h2 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.users-summary {
  margin: 0;
  color: #52627a;
  font-weight: 600;
}

.users-toolbar,
.users-detail-form,
.users-role-form,
.users-delete-form {
  display: grid;
  gap: 1rem;
}

.users-toolbar {
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(160px, 0.7fr)) auto;
  align-items: end;
}

.users-toolbar-field,
.users-field {
  display: grid;
  gap: 0.45rem;
}

.users-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.users-field label,
.users-field-label,
.users-toolbar-field label {
  font-weight: 700;
  color: #18304c;
}

.users-field .form-control,
.users-toolbar .form-control,
.users-toolbar .form-select {
  min-height: 3rem;
  border-radius: 16px;
  border-color: rgba(16, 33, 58, 0.12);
}

.users-form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.users-field-full-span {
  grid-column: 1 / -1;
}

.users-role-selector {
  display: grid;
  gap: 0.75rem;
}

.users-table-wrap {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(16, 33, 58, 0.08);
  background: #f9fbfd;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
}

.users-table th {
  padding: 0.95rem 1rem;
  background: #eef3f8;
  color: #52627a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.users-table td {
  padding: 0.95rem 1rem;
  border-top: 1px solid rgba(16, 33, 58, 0.08);
  vertical-align: middle;
}

.users-table-row {
  background: #fff;
  cursor: pointer;
  transition: background-color 120ms ease, box-shadow 120ms ease;
}

.users-table-row:hover {
  background: #f7fbff;
}

.users-table-row:focus-visible {
  outline: 2px solid rgba(18, 79, 146, 0.35);
  outline-offset: -2px;
}

.users-table-row.is-selected {
  background: #edf6ff;
  box-shadow: inset 4px 0 0 #124f92;
}

.users-row-trigger {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  color: inherit;
  text-align: left;
  pointer-events: none;
}

.users-row-primary {
  font-weight: 800;
  color: #10213a;
}

.users-row-secondary {
  color: #6b7c93;
  font-size: 0.82rem;
}

.users-table-empty {
  padding: 2.2rem 1rem;
  color: #52627a;
  text-align: center;
}

.users-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.users-pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.8rem;
  min-height: 2.8rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: #f0f5fb;
  color: #18304c;
  font-weight: 700;
  text-decoration: none;
}

.users-pagination-link:hover {
  color: #18304c;
  background: #e5eff9;
}

.users-pagination-link.is-current {
  background: linear-gradient(135deg, #124f92, #0f7d8f);
  color: #fff;
}

.users-pagination-link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.users-detail-shell {
  display: grid;
  gap: 1.25rem;
}

.users-detail-section {
  display: grid;
  gap: 0.9rem;
}

.users-detail-section-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.users-detail-section-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #10213a;
}

.users-detail-section-header p {
  margin: 0.3rem 0 0;
  color: #607287;
  font-size: 0.95rem;
}

.users-detail-header {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.users-detail-header h2 {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.users-detail-header p,
.users-detail-empty p {
  margin: 0.35rem 0 0;
  color: #52627a;
}

.users-detail-meta {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.users-detail-meta div {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: #f4f8fc;
  border: 1px solid rgba(16, 33, 58, 0.06);
}

.users-detail-meta span {
  color: #6b7c93;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.users-detail-meta strong {
  color: #10213a;
}

.users-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.users-display-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(12, 79, 142, 0.14);
  background: #e7f1fb;
  color: #0c4f8e;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.users-display-pill-muted {
  border-color: rgba(15, 106, 87, 0.18);
  background: linear-gradient(180deg, #eef9f5 0%, #e3f3ed 100%);
  color: #0f6a57;
}

.users-toggle-list {
  display: grid;
  gap: 1rem;
}

.users-toggle-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: #f4f8fc;
  border: 1px solid rgba(16, 33, 58, 0.06);
}

.users-toggle-option-copy {
  color: #18304c;
  font-weight: 700;
}

.users-toggle-option .users-switch {
  flex-shrink: 0;
}

.users-toggle-option-control {
  display: inline-flex;
  align-items: center;
}

.users-status {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
}

.users-status-active {
  background: #e7f7ef;
  color: #126645;
}

.users-status-inactive {
  background: #fbeaea;
  color: #8f2b2b;
}

.users-toggle-field {
  align-content: end;
}

.users-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.users-switch-labeled {
  min-height: 3rem;
}

.users-switch-compact {
  gap: 0;
}

.users-switch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  appearance: none;
  -webkit-appearance: none;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
}

.users-switch-slider {
  position: relative;
  flex-shrink: 0;
  width: 3.9rem;
  height: 2.15rem;
  border-radius: 999px;
  background: #ced7e2;
  box-shadow: inset 0 0 0 1px rgba(16, 33, 58, 0.08);
  transition: background-color 120ms ease, box-shadow 120ms ease;
}

.users-switch-slider-compact {
  width: 3.35rem;
  height: 1.9rem;
}

.users-switch-slider::before {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0.22rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(16, 33, 58, 0.16);
  transition: transform 120ms ease;
}

.users-switch-slider-compact::before {
  top: 0.16rem;
  left: 0.18rem;
  width: 1.58rem;
  height: 1.58rem;
}

.users-switch-input:checked + .users-switch-slider {
  background: linear-gradient(135deg, #2e9f72, #147a56);
}

.users-switch-input:checked + .users-switch-slider::before {
  transform: translateX(1.75rem);
}

.users-switch-input:checked + .users-switch-slider.users-switch-slider-compact::before {
  transform: translateX(1.4rem);
}

.users-switch-input:focus-visible + .users-switch-slider {
  box-shadow: 0 0 0 0.2rem rgba(18, 79, 146, 0.18);
}

.users-switch-text {
  display: grid;
  gap: 0.15rem;
}

.users-switch-title {
  color: #607287;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.users-switch-state {
  min-width: 5.75rem;
  font-weight: 800;
}

.users-switch-state-on,
.users-switch-state-off {
  display: none;
}

.users-switch-input:checked ~ .users-switch-text .users-switch-state-on {
  display: inline;
  color: #147a56;
}

.users-switch-input:not(:checked) ~ .users-switch-text .users-switch-state-off {
  display: inline;
  color: #5f6d80;
}

.users-toggle-option-state {
  min-width: 2.5rem;
  color: #607287;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: right;
}

.users-toggle-option-state-on,
.users-toggle-option-state-off {
  display: none;
}

.users-switch-input:checked ~ .users-toggle-option-state .users-toggle-option-state-on {
  display: inline;
  color: #147a56;
}

.users-switch-input:not(:checked) ~ .users-toggle-option-state .users-toggle-option-state-off {
  display: inline;
  color: #5f6d80;
}

.users-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
  padding-top: 0.35rem;
}

.users-action-primary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.users-action-row .site-button-danger {
  margin-left: auto;
}

.users-password-form {
  display: grid;
  gap: 1rem;
  padding-top: 0.2rem;
}

.users-password-shell {
  display: grid;
  gap: 0.85rem;
  padding-top: 0.2rem;
  border-top: 1px solid rgba(16, 33, 58, 0.08);
}

.users-password-actions {
  display: flex;
  justify-content: flex-start;
}

.users-password-toggle-row {
  padding-top: 0.15rem;
}

.users-password-toggle-button {
  align-self: start;
}

.users-action-row-bottom {
  margin-top: 0.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(16, 33, 58, 0.08);
}

.users-detail-empty {
  display: grid;
  gap: 0.5rem;
  align-content: center;
  min-height: 100%;
  padding: 1rem 0;
}

.users-modal {
  border: 1px solid rgba(16, 33, 58, 0.08);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(18, 35, 58, 0.14);
}

.users-modal-header,
.users-modal-footer {
  border: none;
}

.users-modal-copy {
  margin: 0;
  color: #52627a;
  font-size: 1rem;
}

.roles-shell {
  display: grid;
  gap: 2rem;
}

.roles-hero {
  padding: 2.5rem;
  border-radius: 30px;
  background: linear-gradient(135deg, #14324f, #176d66);
  color: #f4f9ff;
  box-shadow: 0 24px 60px rgba(15, 41, 69, 0.18);
}

.roles-kicker,
.roles-section-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.roles-section-kicker {
  background: rgba(15, 106, 87, 0.1);
  color: #0f6a57;
}

.roles-console {
  display: grid;
  gap: 1.5rem;
}

.roles-panel {
  display: grid;
  gap: 1.25rem;
  padding: 1.6rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(16, 33, 58, 0.08);
  box-shadow: 0 18px 45px rgba(18, 35, 58, 0.06);
}

.roles-panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.roles-panel-header-stack {
  align-items: start;
}

.roles-panel-header h2,
.roles-detail-empty h2 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.roles-panel-copy {
  max-width: 34rem;
  margin: 0;
  color: #5d6d83;
}

.roles-list {
  display: grid;
  gap: 0.9rem;
}

.roles-list-item {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(16, 33, 58, 0.08);
  border-radius: 18px;
  background: #f9fbfd;
  color: #10213a;
  text-align: left;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.roles-list-item:hover {
  transform: translateY(-1px);
  background: #f3f8fc;
  box-shadow: 0 12px 24px rgba(18, 35, 58, 0.08);
}

.roles-list-item.is-selected {
  background: #edf8f5;
  border-color: rgba(15, 106, 87, 0.18);
  box-shadow: inset 4px 0 0 #0f6a57;
}

.roles-list-item-title {
  font-weight: 800;
}

.roles-list-item-copy,
.roles-list-item-meta,
.roles-detail-header p,
.roles-detail-empty p,
.roles-detail-section-header p {
  color: #607287;
}

.roles-list-item-meta {
  font-size: 0.86rem;
  font-weight: 700;
}

.roles-empty {
  padding: 1rem;
  border-radius: 18px;
  background: #f4f8fc;
  color: #607287;
  text-align: center;
}

.roles-detail-shell,
.roles-form {
  display: grid;
  gap: 1.1rem;
}

.roles-detail-header h2 {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.roles-detail-section {
  display: grid;
  gap: 0.9rem;
}

.roles-detail-section-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #10213a;
}

.roles-toggle-list {
  display: grid;
  gap: 0.9rem;
}

.roles-toggle-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: #f4f8fc;
  border: 1px solid rgba(16, 33, 58, 0.06);
}

.roles-toggle-option-copy {
  color: #18304c;
  font-weight: 700;
}

.roles-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.roles-switch-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.roles-switch-slider {
  position: relative;
  flex-shrink: 0;
  width: 3.35rem;
  height: 1.95rem;
  border-radius: 999px;
  background: #c9d5e4;
  box-shadow: inset 0 0 0 1px rgba(16, 33, 58, 0.08);
  transition: background-color 120ms ease, box-shadow 120ms ease;
}

.roles-switch-slider::after {
  content: "";
  position: absolute;
  top: 0.22rem;
  left: 0.22rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(16, 33, 58, 0.16);
  transition: transform 120ms ease;
}

.roles-switch-input:checked + .roles-switch-slider {
  background: linear-gradient(135deg, #176d66, #0f6a57);
}

.roles-switch-input:checked + .roles-switch-slider::after {
  transform: translateX(1.4rem);
}

.roles-switch-input:focus-visible + .roles-switch-slider {
  box-shadow: 0 0 0 0.2rem rgba(15, 106, 87, 0.18);
}

.roles-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.roles-display-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 106, 87, 0.14);
  background: #e9f4f1;
  color: #0f6a57;
  font-weight: 700;
}

.roles-action-row {
  display: flex;
  justify-content: flex-start;
  padding-top: 0.35rem;
}

.roles-detail-empty {
  display: grid;
  gap: 0.5rem;
  align-content: center;
  min-height: 100%;
  padding: 1rem 0;
}

.sessions-detail-shell {
  display: grid;
  gap: 1.25rem;
}

.sessions-detail-empty {
  display: grid;
  gap: 0.5rem;
  align-content: center;
  min-height: 100%;
  padding: 1rem 0;
}

.sessions-detail-empty h2,
.sessions-detail-header h2 {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.sessions-detail-empty p,
.sessions-detail-header p,
.sessions-detail-section-header p {
  margin: 0.35rem 0 0;
  color: #607287;
}

.sessions-detail-header {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.sessions-detail-section {
  display: grid;
  gap: 0.9rem;
}

.sessions-detail-section-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #10213a;
}

.sessions-detail-meta {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.sessions-detail-meta div {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: #f4f8fc;
  border: 1px solid rgba(16, 33, 58, 0.06);
}

.sessions-detail-meta span {
  color: #6b7c93;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sessions-detail-meta strong {
  color: #10213a;
}

.sessions-user-agent {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: #f4f8fc;
  border: 1px solid rgba(16, 33, 58, 0.06);
  color: #18304c;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.sessions-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.35rem;
}

.sessions-action-primary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sessions-revoke-form {
  margin: 0;
}

@media (min-width: 1100px) {
  .users-console {
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    align-items: start;
  }

  .users-detail-panel {
    position: sticky;
    top: 1.5rem;
  }

  .roles-console {
    grid-template-columns: minmax(290px, 0.75fr) minmax(0, 1.05fr);
    align-items: start;
  }

  .roles-detail-panel {
    position: sticky;
    top: 1.5rem;
  }
}

@media (max-width: 991px) {
  .users-toolbar {
    grid-template-columns: 1fr;
  }

  .users-toolbar-actions {
    justify-content: start;
  }

  .users-panel-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .users-table {
    min-width: 640px;
  }

  .users-action-row,
  .users-action-primary,
  .users-password-actions,
  .sessions-action-row,
  .sessions-action-primary {
    flex-direction: column;
    align-items: stretch;
  }
}

.audit-shell {
  display: grid;
  gap: 2rem;
}

.audit-hero {
  padding: 2.5rem;
  border-radius: 30px;
  background: linear-gradient(135deg, #152640, #7b4d20);
  color: #f8fbff;
  box-shadow: 0 24px 60px rgba(21, 38, 64, 0.18);
}

.audit-kicker,
.audit-section-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audit-section-kicker {
  background: rgba(151, 96, 27, 0.1);
  color: #7b4d20;
}

.audit-panel {
  display: grid;
  gap: 1.25rem;
  padding: 1.6rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(16, 33, 58, 0.08);
  box-shadow: 0 18px 45px rgba(18, 35, 58, 0.06);
}

.audit-console {
  display: grid;
  gap: 1.5rem;
}

.audit-table-panel {
  align-content: start;
}

.audit-panel-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.audit-panel-header-stack {
  align-items: start;
}

.audit-panel-header h2,
.audit-detail-empty h2 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.audit-summary {
  margin: 0;
  color: #52627a;
  font-weight: 600;
}

.audit-toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  align-items: end;
}

.audit-toolbar-field {
  display: grid;
  gap: 0.45rem;
}

.audit-toolbar-search {
  grid-column: auto;
}

.audit-toolbar-field label {
  font-weight: 700;
  color: #18304c;
}

.audit-toolbar .form-control,
.audit-toolbar .form-select {
  min-height: 3rem;
  border-radius: 16px;
  border-color: rgba(16, 33, 58, 0.12);
}

.audit-toolbar-actions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.audit-toolbar-actions .site-button {
  margin-block: 0;
}

.audit-load-error {
  padding: 0.95rem 1.1rem;
  border-radius: 18px;
  background: rgba(159, 47, 58, 0.08);
  border: 1px solid rgba(159, 47, 58, 0.18);
  color: #7a2230;
  font-weight: 600;
}

.audit-table-wrap {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(16, 33, 58, 0.08);
  background: #f9fbfd;
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
}

.audit-table th {
  padding: 0.95rem 1rem;
  background: #eef3f8;
  color: #52627a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audit-table td {
  padding: 0.95rem 1rem;
  border-top: 1px solid rgba(16, 33, 58, 0.08);
  vertical-align: middle;
}

.audit-table-row {
  background: #fff;
  cursor: pointer;
  transition: background-color 120ms ease, box-shadow 120ms ease;
}

.audit-table-row:hover {
  background: #fbf8f4;
}

.audit-table-row:focus-visible {
  outline: 2px solid rgba(123, 77, 32, 0.25);
  outline-offset: -2px;
}

.audit-table-row.is-selected {
  background: #fff4e7;
  box-shadow: inset 4px 0 0 #97601b;
}

.audit-row-trigger {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  color: inherit;
  text-align: left;
  pointer-events: none;
}

.audit-row-primary {
  font-weight: 800;
  color: #10213a;
}

.audit-row-secondary {
  color: #6b7c93;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.audit-table-empty {
  padding: 2.2rem 1rem;
  color: #52627a;
  text-align: center;
}

.audit-status {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
}

.audit-status-success {
  background: #e7f7ef;
  color: #126645;
}

.audit-status-failure {
  background: #fbeaea;
  color: #8f2b2b;
}

.audit-status-info {
  background: #edf2fb;
  color: #264f92;
}

.audit-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.audit-pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.8rem;
  min-height: 2.8rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: #f0f5fb;
  color: #18304c;
  font-weight: 700;
  text-decoration: none;
}

.audit-pagination-link:hover {
  color: #18304c;
  background: #e5eff9;
}

.audit-pagination-link.is-current {
  background: linear-gradient(135deg, #7b4d20, #b5792e);
  color: #fff;
}

.audit-pagination-link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.audit-modal {
  border: 1px solid rgba(16, 33, 58, 0.08);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(18, 35, 58, 0.16);
}

.audit-modal-header {
  border: none;
  padding-bottom: 0;
}

.audit-modal-body {
  padding-top: 1.25rem;
}

.audit-detail-shell {
  display: grid;
  gap: 1.25rem;
}

.audit-detail-empty {
  display: grid;
  gap: 0.5rem;
  align-content: center;
  min-height: 100%;
  padding: 1rem 0;
}

.audit-detail-empty h2,
.audit-detail-header h2 {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.audit-detail-empty p,
.audit-detail-header p,
.audit-detail-section-header p {
  margin: 0.35rem 0 0;
  color: #607287;
}

.audit-detail-header {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.audit-detail-section {
  display: grid;
  gap: 0.9rem;
}

.audit-detail-section-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #10213a;
}

.audit-detail-meta {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.audit-detail-meta div {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: #f4f8fc;
  border: 1px solid rgba(16, 33, 58, 0.06);
}

.audit-detail-meta span {
  color: #6b7c93;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.audit-detail-meta strong {
  color: #10213a;
  overflow-wrap: anywhere;
}

.audit-detail-body,
.audit-detail-pre {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: #f4f8fc;
  border: 1px solid rgba(16, 33, 58, 0.06);
  color: #18304c;
  font-size: 0.9rem;
  line-height: 1.5;
}

.audit-detail-pre {
  white-space: pre-wrap;
  word-break: break-word;
}

@media (min-width: 1200px) {
  .audit-toolbar-search {
    grid-column: span 2;
  }
}

@media (max-width: 991px) {
  .audit-toolbar {
    grid-template-columns: 1fr;
  }

  .audit-toolbar-search {
    grid-column: auto;
  }

  .audit-toolbar-actions {
    justify-content: start;
  }

  .audit-table {
    min-width: 760px;
  }
}




body.public-layout {
  --public-bg: #f7efe1;
  --public-surface: rgba(255, 251, 245, 0.84);
  --public-surface-strong: #fffaf2;
  --public-border: rgba(69, 49, 29, 0.12);
  --public-ink: #24160f;
  --public-muted: #67564a;
  --public-accent: #b24c26;
  --public-accent-dark: #8f3414;
  --public-highlight: #f3c56b;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding-bottom: 0;
  background:
    radial-gradient(circle at top left, rgba(243, 197, 107, 0.28), transparent 30%),
    radial-gradient(circle at top right, rgba(178, 76, 38, 0.18), transparent 24%),
    linear-gradient(180deg, #fbf4e7 0%, #f2e6d4 52%, #ede2d4 100%);
  color: var(--public-ink);
}

.public-layout-shell {
  flex: 1 0 auto;
  min-height: 0;
  padding: 0 0 4rem;
}

.public-layout-inner,
.public-site-header-inner,
.public-footer-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.public-layout-inner {
  display: grid;
  gap: 2.25rem;
}

.public-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1rem 0;
  backdrop-filter: blur(18px);
  background: rgba(247, 239, 225, 0.78);
  border-bottom: 1px solid rgba(69, 49, 29, 0.08);
}

.public-site-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem 1.5rem;
}

.public-site-brand {
  display: inline-grid;
  gap: 0.15rem;
  color: var(--public-ink);
  text-decoration: none;
}

.public-site-menu {
  display: contents;
}

.public-site-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid rgba(36, 22, 15, 0.12);
  border-radius: 18px;
  background: rgba(255, 251, 245, 0.88);
  box-shadow: 0 10px 24px rgba(73, 52, 32, 0.08);
  cursor: pointer;
}

.public-site-menu-toggle-line {
  display: block;
  width: 1.2rem;
  height: 0.14rem;
  border-radius: 999px;
  background: var(--public-ink);
  transition: transform 120ms ease, opacity 120ms ease;
}

.public-site-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.public-site-brand-mark,
.public-footer-kicker,
.public-home-eyebrow,
.public-section-kicker,
.public-card-tag,
.public-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(178, 76, 38, 0.1);
  color: var(--public-accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.public-site-brand-mark {
  padding: 0;
  background: none;
  color: var(--public-muted);
  letter-spacing: 0.08em;
}

.public-site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.public-site-nav-link {
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  color: var(--public-muted);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.public-site-nav-link:hover,
.public-site-nav-link.is-active {
  color: var(--public-ink);
  background: rgba(36, 22, 15, 0.08);
}

.public-site-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
}

.public-site-action,
.public-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.82rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--public-accent), var(--public-accent-dark));
  color: #fff7f0;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(143, 52, 20, 0.18);
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
}

.public-site-action:hover,
.public-button:hover {
  color: #fff7f0;
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.public-site-action-secondary,
.public-button-secondary {
  background: transparent;
  color: var(--public-ink);
  border-color: rgba(36, 22, 15, 0.12);
  box-shadow: none;
}

.public-site-action-secondary:hover,
.public-button-secondary:hover {
  color: var(--public-ink);
  background: rgba(255, 251, 245, 0.88);
}

.public-site-status,
.public-link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.82rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(36, 22, 15, 0.12);
  color: var(--public-ink);
  background: rgba(255, 251, 245, 0.72);
  font-weight: 700;
  text-decoration: none;
}

.public-link-pill:hover {
  color: var(--public-ink);
  background: rgba(255, 251, 245, 0.95);
}

.public-home,
.public-page {
  display: grid;
  gap: 2rem;
}

.public-home-hero,
.public-page-hero,
.public-signal-card,
.public-story-card,
.public-feature-card,
.public-page-card,
.public-product-card,
.public-legal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--public-border);
  border-radius: 32px;
  background: var(--public-surface);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 50px rgba(73, 52, 32, 0.08);
}

.public-home-hero,
.public-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  padding: 2.3rem;
}

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

.public-home-copy,
.public-page-hero-copy,
.public-feature-copy,
.public-story-card,
.public-feature-card,
.public-page-card,
.public-product-card,
.public-legal-card {
  display: grid;
  gap: 1rem;
}

.public-home-copy h1,
.public-page-hero h1,
.public-feature-copy h2,
.public-page-card h2,
.public-product-card h2,
.public-legal-card h2,
.public-story-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.public-page-hero h1,
.public-feature-copy h2,
.public-page-card h2,
.public-product-card h2,
.public-legal-card h2,
.public-story-card h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.public-home-intro,
.public-home-support,
.public-page-hero p,
.public-page-card p,
.public-product-card p,
.public-feature-copy p,
.public-story-card p,
.public-legal-card p,
.public-list-copy {
  margin: 0;
  color: var(--public-muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.public-home-actions,
.public-page-actions,
.public-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.public-home-panel {
  display: grid;
  gap: 1rem;
}

.public-signal-card,
.public-story-card,
.public-feature-card,
.public-page-card,
.public-product-card,
.public-legal-card {
  padding: 1.6rem;
}

.public-signal-card h2,
.public-signal-card p,
.public-signal-list,
.public-story-card h2,
.public-feature-copy h2,
.public-page-card h2,
.public-product-card h2,
.public-legal-card h2 {
  margin: 0;
}

.public-signal-card h2,
.public-story-card h2,
.public-feature-copy h2,
.public-page-card h2,
.public-product-card h2,
.public-legal-card h2 {
  font-size: 1.55rem;
  line-height: 1.1;
}

.public-signal-list,
.public-bullet-list,
.public-inline-list {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.public-signal-list li,
.public-bullet-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--public-ink);
  line-height: 1.6;
}

.public-signal-list li::before,
.public-bullet-list li::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--public-accent);
  box-shadow: 0 0 0 0.25rem rgba(178, 76, 38, 0.12);
}

.public-home-grid,
.public-page-grid,
.public-product-grid,
.public-legal-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.public-home-grid > *,
.public-page-grid > *,
.public-product-grid > *,
.public-legal-grid > * {
  grid-column: span 6;
}

.public-home-grid > .public-feature-card,
.public-page-grid > .public-page-card-full,
.public-legal-grid > .public-legal-card-full {
  grid-column: 1 / -1;
}

.public-feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 1.4rem;
  align-items: stretch;
}

.public-feature-visual {
  display: grid;
  gap: 1rem;
  align-content: space-between;
  padding: 1.6rem;
  border-radius: 26px;
  background:
    radial-gradient(circle at top, rgba(243, 197, 107, 0.34), transparent 32%),
    linear-gradient(160deg, #3f1f16, #8f3414);
  color: #fff5e9;
  min-height: 100%;
}

.public-feature-visual strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.public-feature-visual span,
.public-micro-note {
  color: rgba(255, 245, 233, 0.82);
  line-height: 1.6;
}

.public-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.public-inline-list li {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff7ef;
  font-size: 0.9rem;
  font-weight: 700;
}

.public-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 0.8rem;
}

.public-legal-card-visual {
  display: grid;
  place-items: center;
  width: min(100%, 12rem);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 0.35rem;
}

.public-legal-card-icon {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  box-shadow:
    0 16px 28px rgba(73, 52, 32, 0.18),
    0 6px 12px rgba(73, 52, 32, 0.1);
  object-fit: contain;
}

.public-status-pill {
  background: rgba(243, 197, 107, 0.24);
  color: #7d4109;
}

.public-status-pill.is-beta {
  background: rgba(178, 76, 38, 0.12);
  color: var(--public-accent-dark);
}

.public-footer {
  flex-shrink: 0;
  padding: 0 0 calc(1.5rem + env(safe-area-inset-bottom, 0px));
  background: transparent;
}

.public-footer {
  border-top: 0;
}

.public-footer-inner {
  padding: 1.5rem 0 0;
}

.public-footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 1.6rem;
  border-radius: 28px;
  border: 1px solid var(--public-border);
  background: rgba(255, 251, 245, 0.74);
  box-shadow: 0 18px 42px rgba(73, 52, 32, 0.08);
}

.public-footer-copy,
.public-footer-meta {
  margin: 0;
  color: var(--public-muted);
  line-height: 1.7;
}

.public-footer-links {
  display: grid;
  gap: 0.55rem;
}

.public-footer-links a,
.public-footer-inner a {
  color: var(--public-ink);
  text-decoration: none;
}

.public-footer-links a:hover,
.public-footer-inner a:hover {
  color: var(--public-accent-dark);
}

.public-footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 0 0;
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .public-site-header-inner,
  .public-home-hero,
  .public-feature-card {
    grid-template-columns: 1fr;
  }

  .public-site-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .public-site-menu-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .public-site-menu {
    display: none;
    grid-column: 1 / -1;
    gap: 0.9rem;
    padding: 0.5rem 0 0;
  }

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

  .public-site-header.is-menu-open .public-site-menu-toggle-line:nth-child(1) {
    transform: translateY(0.44rem) rotate(45deg);
  }

  .public-site-header.is-menu-open .public-site-menu-toggle-line:nth-child(2) {
    opacity: 0;
  }

  .public-site-header.is-menu-open .public-site-menu-toggle-line:nth-child(3) {
    transform: translateY(-0.44rem) rotate(-45deg);
  }

  .public-site-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .public-site-nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.7rem 0.95rem;
  }

  .public-site-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .public-home-grid > *,
  .public-page-grid > *,
  .public-product-grid > *,
  .public-legal-grid > * {
    grid-column: 1 / -1;
  }

  .public-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .public-legal-card-visual {
    width: min(100%, 9rem);
    padding: 0.75rem;
    border-radius: 22px;
  }

  .public-layout-shell {
    padding-bottom: 3rem;
  }

  .public-site-header {
    position: static;
    padding: 0.65rem 0;
  }

  .public-site-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.9rem;
  }

  .public-site-brand {
    width: 100%;
  }

  .public-site-brand img {
    width: 56px !important;
    height: 56px !important;
  }

  .public-site-brand strong {
    font-size: 1.05rem;
  }

  .public-site-brand-mark {
    display: none;
  }

  .public-site-menu-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .public-site-menu {
    display: none;
    grid-column: 1 / -1;
    gap: 0.9rem;
    padding: 0.5rem 0 0;
  }

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

  .public-site-header.is-menu-open .public-site-menu-toggle-line:nth-child(1) {
    transform: translateY(0.44rem) rotate(45deg);
  }

  .public-site-header.is-menu-open .public-site-menu-toggle-line:nth-child(2) {
    opacity: 0;
  }

  .public-site-header.is-menu-open .public-site-menu-toggle-line:nth-child(3) {
    transform: translateY(-0.44rem) rotate(-45deg);
  }

  .public-site-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .public-site-nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.7rem 0.95rem;
  }

  .public-site-brand {
    width: 100%;
  }

  .public-site-brand img {
    width: 56px !important;
    height: 56px !important;
  }

  .public-site-brand strong {
    font-size: 1.05rem;
  }

  .public-site-brand-mark {
    display: none;
  }

  .public-home-hero,
  .public-page-hero,
  .public-signal-card,
  .public-story-card,
  .public-feature-card,
  .public-page-card,
  .public-product-card,
  .public-legal-card,
  .public-footer-grid {
    padding: 1.25rem;
    border-radius: 24px;
  }

  .public-home-copy h1,
  .public-page-hero h1 {
    font-size: 2.4rem;
  }

  .public-home-actions,
  .public-page-actions,
  .public-card-actions {
    flex-direction: column;
  }

  .public-site-action,
  .public-button,
  .public-site-action-secondary,
  .public-button-secondary,
  .public-link-pill,
  .public-site-status {
    width: 100%;
  }

  .public-site-action,
  .public-button,
  .public-site-action-secondary,
  .public-button-secondary,
  .public-link-pill,
  .public-site-status {
    min-height: 2.75rem;
    padding: 0.72rem 1rem;
  }
}



/* ── Admin table row/cell styles (global — scoped CSS can't reach JS-rendered rows) ── */

/* Shared row trigger */
.applications-row-trigger,
.cultures-row-trigger,
.appconfig-row-trigger,
.translations-row-trigger {
    display: grid;
    gap: 0.2rem;
}

.applications-row-primary,
.cultures-row-primary,
.appconfig-row-primary,
.translations-row-primary {
    font-weight: 800;
    color: #10213a;
}

.applications-row-secondary,
.cultures-row-secondary,
.appconfig-row-secondary,
.translations-row-secondary {
    color: #6b7c93;
    font-size: 0.82rem;
}

/* No-results row for show/hide filtering */
.table-no-results-row td {
    text-align: center;
    padding: 2rem 1rem;
    color: #607287;
    font-size: 0.92rem;
}

/* Key / code badges (monospace green) */
.applications-key-badge,
.appconfig-key-badge,
.translations-key-badge,
.translations-culture-badge,
.cultures-code-badge {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    border-radius: 8px;
    background: rgba(123, 158, 65, 0.1);
    color: #45611d;
    font-family: "Cascadia Code", "Consolas", monospace;
    font-size: 0.82rem;
    font-weight: 600;
}

/* Translations key badge uses orange theme */
.translations-key-badge,
.translations-culture-badge {
    background: rgba(180, 93, 46, 0.08);
    color: #8a431a;
}

/* Type pill */
.appconfig-type-pill {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: #e8f0d8;
    color: #45611d;
    font-size: 0.78rem;
    font-weight: 700;
}

/* Secret badge */
.appconfig-secret-badge {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.appconfig-secret-badge.is-secret {
    background: #f4ead6;
    color: #8b5c16;
}

.appconfig-secret-badge.is-plain {
    background: #e6f1e4;
    color: #2f6b3b;
}

/* App chips */
.appconfig-app-chips,
.translations-app-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.appconfig-app-chip {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    border-radius: 8px;
    background: rgba(123, 158, 65, 0.1);
    color: #45611d;
    font-size: 0.76rem;
    font-weight: 600;
}

.translations-app-chip {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    border-radius: 8px;
    background: rgba(180, 93, 46, 0.08);
    color: #8a431a;
    font-size: 0.76rem;
    font-weight: 600;
}

.appconfig-no-apps {
    color: #9aacbe;
    font-style: italic;
    font-size: 0.88rem;
}

/* API Keys table styles */
.api-keys-table-wrap {
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid rgba(16, 33, 58, 0.08);
    background: #fff;
    box-shadow: 0 4px 12px rgba(16, 33, 58, 0.04);
}

.api-keys-table {
    width: 100%;
    min-width: 900px;
    border-collapse: separate;
    border-spacing: 0;
}

.api-keys-table th {
    padding: 1.1rem 1.2rem;
    background: linear-gradient(180deg, #f8fafc, #eef3f8);
    color: #52627a;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(16, 33, 58, 0.08);
    position: sticky;
    top: 0;
    z-index: 10;
}

.api-keys-table th:first-child {
    border-top-left-radius: 20px;
}

.api-keys-table th:last-child {
    border-top-right-radius: 20px;
}

.api-keys-table td {
    padding: 1.1rem 1.2rem;
    border-bottom: 1px solid rgba(16, 33, 58, 0.06);
    vertical-align: middle;
    color: #18304c;
    background: #fff;
}

.api-keys-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 20px;
}

.api-keys-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 20px;
}

.api-keys-table tbody tr:last-child td {
    border-bottom: none;
}

.api-keys-table-row {
    cursor: pointer;
    transition: all 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

.api-keys-table-row:hover td,
.api-keys-table-row:focus-visible td {
    background: linear-gradient(90deg, #f7fbff, #fafcff);
    outline: none;
}

.api-keys-table-row.is-selected td {
    background: linear-gradient(90deg, #edf6ff, #f0f8ff);
    box-shadow: inset 4px 0 0 #124f92;
    font-weight: 500;
}

.api-keys-table-row.is-selected td:first-child {
    box-shadow: inset 4px 0 0 #124f92;
}

.api-keys-row-trigger {
    display: grid;
    gap: 0.35rem;
}

.api-keys-row-primary {
    font-weight: 700;
    color: #10213a;
    font-size: 0.95rem;
}

.api-keys-row-secondary {
    color: #6b7c93;
    font-size: 0.78rem;
    font-family: "Cascadia Code", "Consolas", monospace;
}

.api-keys-app-badge {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(123, 158, 65, 0.12), rgba(123, 158, 65, 0.08));
    color: #45611d;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(123, 158, 65, 0.2);
    box-shadow: 0 2px 4px rgba(123, 158, 65, 0.08);
}

.api-keys-masked-key {
    font-family: "Cascadia Code", "Consolas", monospace;
    font-size: 0.82rem;
    color: #52627a;
    background: linear-gradient(135deg, rgba(82, 98, 122, 0.06), rgba(82, 98, 122, 0.04));
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    border: 1px solid rgba(82, 98, 122, 0.12);
    display: inline-block;
}

.api-keys-status-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.api-keys-status-active {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.08));
    color: #166534;
    border-color: rgba(34, 197, 94, 0.3);
}

.api-keys-status-expired {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.15), rgba(251, 146, 60, 0.08));
    color: #9a3412;
    border-color: rgba(251, 146, 60, 0.3);
}

.api-keys-status-revoked {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.08));
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.3);
}

.api-keys-table-timestamp {
    color: #607287;
    font-size: 0.86rem;
    white-space: nowrap;
    font-weight: 500;
}

/* Decrypted secret value display */
.appconfig-decrypted-section {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(47, 107, 59, 0.04), rgba(59, 133, 72, 0.06));
    border: 2px solid rgba(47, 107, 59, 0.15);
}

.appconfig-decrypted-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.appconfig-decrypted-value {
    padding: 0.95rem 1.1rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(47, 107, 59, 0.12);
    color: #2f6b3b;
    font-family: "Cascadia Code", "Consolas", monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    word-break: break-all;
    white-space: pre-wrap;
}

/* SQL script display */
.appconfig-sql-section {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(18, 79, 146, 0.04), rgba(15, 125, 143, 0.06));
    border: 2px solid rgba(18, 79, 146, 0.15);
}

.appconfig-sql-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.appconfig-sql-header > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.appconfig-sql-value {
    width: 100%;
    padding: 0.95rem 1.1rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(18, 79, 146, 0.12);
    color: #124f92;
    font-family: "Cascadia Code", "Consolas", monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    resize: vertical;
    min-height: 400px;
}

.appconfig-sql-value:focus {
    outline: none;
    border-color: rgba(18, 79, 146, 0.3);
    box-shadow: 0 0 0 3px rgba(18, 79, 146, 0.08);
}

/* Count badges */
.applications-count-badge,
.cultures-count-badge {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: #eef3f7;
    color: #44576b;
    font-size: 0.82rem;
    font-weight: 700;
}

/* Sort badge */
.cultures-sort-badge {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    border-radius: 8px;
    background: #f3f5f8;
    color: #52627a;
    font-size: 0.82rem;
    font-weight: 700;
}

/* Status pills */
.cultures-status-pill {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.cultures-status-pill.is-active {
    background: #e6f1e4;
    color: #2f6b3b;
}

.cultures-status-pill.is-inactive {
    background: #eef3f7;
    color: #607287;
}

/* Translation status badges */
.translations-table-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.translations-list-badge {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.translations-list-badge.is-published {
    background: #e6f1e4;
    color: #2f6b3b;
}

.translations-list-badge.is-stale {
    background: #fdf3e3;
    color: #8b5c16;
}

.translations-list-badge.is-draft {
    background: #e8f0fb;
    color: #1a4d8f;
}

.translations-list-badge.is-missing {
    background: #fdecea;
    color: #9b2a1a;
}

/* Culture tabs */
.translations-culture-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.translations-culture-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: opacity 0.15s, box-shadow 0.15s;
    opacity: 0.8;
}

.translations-culture-tab:hover {
    opacity: 1;
    text-decoration: none;
}

.translations-culture-tab.is-active {
    opacity: 1;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px currentColor;
}

.translations-culture-tab.tab-published {
    background: #2f6b3b;
    color: #fff;
}

.translations-culture-tab.tab-draft {
    background: #8b5c16;
    color: #fff;
}

.translations-culture-tab.tab-stale {
    background: #7a5100;
    color: #fff;
}

.translations-culture-tab.tab-missing {
    background: #9b2a1a;
    color: #fff;
}

/* Timestamps */
.applications-table-timestamp,
.appconfig-table-timestamp,
.cultures-table-timestamp,
.translations-table-timestamp {
    color: #607287;
    font-size: 0.88rem;
    white-space: nowrap;
}


/* ── Admin shared table structure (global — matches users-table-wrap pattern) ── */

.applications-table-wrap,
.cultures-table-wrap,
.appconfig-table-wrap,
.translations-table-wrap {
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(16, 33, 58, 0.08);
    background: #f9fbfd;
}

.applications-table,
.cultures-table,
.appconfig-table,
.translations-table {
    width: 100%;
    border-collapse: collapse;
}

.applications-table th,
.cultures-table th,
.appconfig-table th,
.translations-table th {
    padding: 0.95rem 1rem;
    background: #eef3f8;
    color: #52627a;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.applications-table td,
.cultures-table td,
.appconfig-table td,
.translations-table td {
    padding: 0.95rem 1rem;
    border-top: 1px solid rgba(16, 33, 58, 0.08);
    vertical-align: middle;
    color: #18304c;
}

.applications-table-row,
.cultures-table-row,
.appconfig-table-row,
.translations-table-row {
    background: #fff;
    cursor: pointer;
    transition: background-color 120ms ease, box-shadow 120ms ease;
}

.applications-table-row:hover,
.cultures-table-row:hover,
.appconfig-table-row:hover,
.translations-table-row:hover,
.applications-table-row:focus-visible,
.cultures-table-row:focus-visible,
.appconfig-table-row:focus-visible,
.translations-table-row:focus-visible {
    background: #f7fbff;
    outline: none;
}

.applications-table-row.is-selected,
.cultures-table-row.is-selected,
.appconfig-table-row.is-selected,
.translations-table-row.is-selected {
    background: #edf6ff;
    box-shadow: inset 4px 0 0 #124f92;
}
.happyhog-page {
    --hog-red: #DA291C;
    --hog-red-deep: #a61111;
    --hog-cream: #fff4dd;
    --hog-cream-strong: #ffe3a9;
    --hog-gold: #f4c44f;
    --hog-ink: #2a1010;
    --hog-shadow: rgba(67, 8, 8, 0.28);
    --hog-card-bg: #F7E600;
    --hog-card-border: #2E8B57;
    --hog-card-text: #1f1a17;
    --hog-card-heading: #a50000;
    position: relative;
    margin-inline: calc(50% - 50vw);
    padding: 1.5rem 1.25rem 3.5rem;
    overflow: hidden;
    background: #da291c;
    color: var(--hog-cream);
}

.happyhog-page-glow {
    display: none;
}

.happyhog-page-glow-left {
    top: -10rem;
    left: -8rem;
}

.happyhog-page-glow-right {
    right: -10rem;
    bottom: -12rem;
}

.happyhog-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.happyhog-topbar,
.happyhog-store-panel,
.happyhog-legal-card,
.happyhog-legal-actions,
.happyhog-store-buttons,
.happyhog-language-switch-wrap,
.happyhog-language-switch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
}

.happyhog-language-pill,
.happyhog-legal-button,
.happyhog-store-button,
.happyhog-contact-link,
.happyhog-back-link {
    text-decoration: none;
}

.happyhog-topbar {
    justify-content: space-between;
    align-items: flex-start;
}

.happyhog-back-link {
    display: inline-grid;
    gap: 0.2rem;
    min-width: 11rem;
    padding: 0.9rem 1rem;
    border-radius: 22px;
    border: 7px solid var(--hog-card-border);
    background: var(--hog-card-bg);
    color: var(--hog-card-heading);
    box-shadow: 0 14px 0 rgba(46, 139, 87, 0.26), 0 20px 30px rgba(42, 7, 7, 0.16);
}

.happyhog-back-link-label {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.happyhog-back-link strong {
    font-size: 1.1rem;
    color: var(--hog-card-heading);
}

.happyhog-language-switch-wrap {
    justify-content: flex-end;
    flex: 1 1 auto;
}

.happyhog-language-switch {
    justify-content: flex-end;
    gap: 0.75rem;
}

.happyhog-language-pill {
    display: inline-grid;
    align-items: center;
    justify-items: center;
    gap: 0.4rem;
    min-width: 8.5rem;
    min-height: 5.25rem;
    padding: 0.8rem 1rem;
    border-radius: 22px;
    border: 7px solid var(--hog-card-border);
    background: var(--hog-card-bg);
    color: var(--hog-card-heading);
    font-weight: 800;
    box-shadow: 0 14px 0 rgba(46, 139, 87, 0.26), 0 20px 30px rgba(42, 7, 7, 0.16);
    transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.happyhog-language-flag {
    display: block;
    width: 1.9rem;
    height: auto;
    border-radius: 0.28rem;
    box-shadow: 0 2px 4px rgba(42, 7, 7, 0.14);
    flex: 0 0 auto;
}

.happyhog-language-pill.is-active,
.happyhog-language-pill:hover {
    background: color-mix(in srgb, var(--hog-card-bg) 88%, white 12%);
    color: #8f0000;
    transform: translateY(-2px);
}

.happyhog-language-pill span:last-child {
    font-size: 1rem;
    line-height: 1.1;
}

.happyhog-hero-card,
.happyhog-card,
.happyhog-legal-card,
.happyhog-disclaimer-card,
.happyhog-policy-modal-content {
    border-radius: 32px;
    background: linear-gradient(180deg, var(--hog-card-bg), #eddc00);
    border: 7px solid var(--hog-card-border);
    box-shadow: 0 20px 0 rgba(46, 139, 87, 0.38), 0 34px 48px rgba(78, 14, 10, 0.2);
    overflow: hidden;
}

.happyhog-hero-card {
    display: grid;
    gap: 1.5rem;
    padding: 1.5rem;
}

.happyhog-logo-panel {
    position: relative;
    display: grid;
    justify-items: center;
}

.happyhog-logo-frame {
    position: relative;
    display: grid;
    place-items: center;
    width: min(320px, 100%);
    aspect-ratio: 1;
    padding: 0;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 244, 221, 0.94), rgba(255, 224, 167, 0.88));
    border: 0;
    box-shadow: 0 18px 40px rgba(43, 5, 5, 0.22);
    overflow: hidden;
}

.happyhog-logo-stage {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
}

.happyhog-logo-image {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 28px;
    background-image: url('/images/happyhoghalftime-logo.png?v=2');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.happyhog-logo-shadow {
    width: 74%;
    height: 1.4rem;
    margin-top: 0.9rem;
    border-radius: 999px;
    background: rgba(40, 6, 6, 0.45);
    filter: blur(8px);
}

.happyhog-copy-panel {
    display: grid;
    gap: 0.9rem;
    align-content: start;
}

.happyhog-kicker,
.happyhog-card-kicker,
.happyhog-beta-chip,
.happyhog-policy-meta span,
.happyhog-store-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 2rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.happyhog-kicker,
.happyhog-card-kicker,
.happyhog-store-eyebrow {
    background: linear-gradient(180deg, #2e8b57, #256f46);
    color: #fff7c9;
}

.happyhog-beta-chip {
    background: linear-gradient(180deg, #fff15a, #f7e600);
    color: #2E8B57;
    border: 4px solid #2E8B57;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 10px 18px rgba(46, 139, 87, 0.18);
}

.happyhog-copy-panel h1,
.happyhog-card h2,
.happyhog-legal-card h2,
.happyhog-disclaimer-card h2,
.happyhog-policy-modal-header h2 {
    margin: 0;
    color: var(--hog-card-heading);
    letter-spacing: -0.04em;
}

.happyhog-copy-panel h1 {
    font-size: clamp(2.4rem, 4vw, 4.3rem);
}

.happyhog-subtitle {
    margin: 0;
    max-width: 30rem;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    color: #9c0000;
    font-weight: 700;
}

.happyhog-body-copy,
.happyhog-card p,
.happyhog-disclaimer-card p,
.happyhog-legal-copy p,
.happyhog-policy-modal-header p,
.happyhog-policy-render,
.happyhog-policy-fallback,
.happyhog-policy-warning {
    margin: 0;
    color: rgba(31, 26, 23, 0.94);
    line-height: 1.75;
}

.happyhog-body-copy.is-support {
    color: rgba(31, 26, 23, 0.8);
}

.happyhog-store-panel {
    margin-top: 0.5rem;
    padding: 1rem 1.05rem;
    border-radius: 24px;
    background: var(--hog-card-bg);
    border: 7px solid var(--hog-card-border);
    align-items: stretch;
    justify-content: center;
    text-align: center;
}

.happyhog-store-panel h2 {
    margin: 0 0 0.3rem;
    font-size: 1.15rem;
    color: var(--hog-card-heading);
}

.happyhog-store-panel p {
    margin: 0;
    color: rgba(31, 26, 23, 0.78);
}

.happyhog-store-panel > div:first-child {
    display: grid;
    justify-items: center;
    width: 100%;
}

.happyhog-store-buttons {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 1rem;
}

.happyhog-store-button,
.happyhog-legal-button {
    display: grid;
    gap: 0.45rem;
    min-width: 12.5rem;
    padding: 0.95rem 1rem;
    border-radius: 24px;
    border: 7px solid var(--hog-card-border);
    background: var(--hog-card-bg);
    color: #5e180f;
    box-shadow: 0 14px 0 rgba(46, 139, 87, 0.26), 0 20px 30px rgba(42, 7, 7, 0.16);
}

.happyhog-legal-button {
    appearance: none;
    font: inherit;
    cursor: pointer;
}

.happyhog-store-button-icon-only {
    justify-items: center;
    align-items: center;
    min-height: 0;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.happyhog-store-button-head {
    display: grid;
    justify-content: center;
    justify-items: center;
    width: auto;
}

.happyhog-store-logo {
    display: block;
    width: min(100%, 12.25rem);
    max-width: 12.25rem;
    height: auto;
    min-width: 12.25rem;
    flex: 0 0 auto;
    transition: opacity 120ms ease, filter 120ms ease, transform 120ms ease;
}

.happyhog-store-button:hover,
.happyhog-legal-button:hover {
    color: #5e180f;
    transform: translateY(-2px);
}

.happyhog-store-button.is-disabled {
    background: transparent;
    border-color: transparent;
    color: rgba(94, 24, 15, 0.62);
    box-shadow: none;
    cursor: default;
    opacity: 0.72;
    filter: grayscale(0.18) saturate(0.7);
    pointer-events: none;
}

.happyhog-store-button.is-disabled .happyhog-store-logo {
    opacity: 0.72;
    filter: grayscale(0.35) brightness(1.05);
}

.happyhog-legal-button.is-disabled {
    background: linear-gradient(180deg, color-mix(in srgb, var(--hog-card-bg) 88%, white 12%), color-mix(in srgb, #eddc00 82%, white 18%));
    border-color: color-mix(in srgb, var(--hog-card-border) 76%, white 24%);
    color: rgba(94, 24, 15, 0.72);
    box-shadow: 0 12px 0 rgba(46, 139, 87, 0.2), 0 18px 26px rgba(42, 7, 7, 0.12);
    cursor: default;
    opacity: 0.92;
    filter: saturate(0.84);
    pointer-events: none;
}

.happyhog-legal-button.is-disabled strong {
    color: rgba(94, 24, 15, 0.88);
}

.happyhog-store-button:not(.is-disabled):hover .happyhog-store-logo {
    transform: translateY(-2px);
}

.happyhog-contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 2.9rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: var(--hog-card-bg);
    border: 7px solid var(--hog-card-border);
    color: #5e180f;
    font-weight: 800;
    box-shadow: 0 14px 0 rgba(46, 139, 87, 0.26), 0 20px 30px rgba(42, 7, 7, 0.16);
}

.happyhog-contact-link:hover {
    color: #5e180f;
    transform: translateY(-2px);
}

.happyhog-content-grid {
    display: grid;
    gap: 2rem 1.25rem;
}

.happyhog-paired-cards {
    display: grid;
    gap: 2rem 1.25rem;
}

.happyhog-card,
.happyhog-disclaimer-card {
    display: grid;
    gap: 0.9rem;
    padding: 1.4rem;
}

.happyhog-card-featured {
    background: linear-gradient(180deg, #f7e600, #e6d100);
}

.happyhog-bullet-list {
    display: grid;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.happyhog-bullet-list li {
    position: relative;
    padding-left: 1.5rem;
    color: rgba(31, 26, 23, 0.94);
}

.happyhog-bullet-list li::before {
    content: "";
    position: absolute;
    top: 0.7rem;
    left: 0;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: var(--hog-card-border);
    box-shadow: 0 4px 0 rgba(46, 139, 87, 0.24);
}

.happyhog-image-rotator {
    position: relative;
    width: min(100%, 22rem);
    aspect-ratio: 1 / 1;
    justify-self: center;
    margin: 0.15rem auto 0.35rem;
    border-radius: 22px;
    background: rgba(255, 244, 221, 0.72);
    border: 4px solid rgba(46, 139, 87, 0.3);
    box-shadow: 0 10px 18px rgba(46, 139, 87, 0.12);
    overflow: hidden;
}

.happyhog-image-rotator-item {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0.85rem;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.happyhog-image-rotator-item.is-active {
    opacity: 1;
}

.happyhog-legal-card {
    display: grid;
    gap: 1rem;
    padding: 1.4rem;
}

.happyhog-legal-actions {
    justify-content: flex-start;
}

.happyhog-policy-warning {
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(255, 249, 197, 0.68);
    border: 2px solid rgba(46, 139, 87, 0.25);
}

.happyhog-policy-modal-header,
.happyhog-policy-modal-body {
    padding: 1.4rem 1.5rem;
    background: #f7e600;
}

.happyhog-policy-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.happyhog-policy-modal-header > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.happyhog-policy-modal-header .btn-close {
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    margin: 0;
    padding: 0;
    border: 6px solid #ffffff;
    border-radius: 999px;
    background:
        #da291c
        url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M3 3l10 10M13 3L3 13' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round'/%3e%3c/svg%3e")
        center / 1.2rem 1.2rem no-repeat;
    box-shadow: 0 8px 0 rgba(46, 139, 87, 0.18), 0 12px 18px rgba(42, 7, 7, 0.08);
    opacity: 1;
}

.happyhog-policy-modal-header .btn-close:hover,
.happyhog-policy-modal-header .btn-close:focus {
    background-color: #c61e14;
    transform: translateY(-1px);
    opacity: 1;
}

.happyhog-policy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.happyhog-policy-meta-pill {
    background: linear-gradient(180deg, #2e8b57, #256f46);
    color: #fff7c9;
    box-shadow: 0 8px 0 rgba(46, 139, 87, 0.18), 0 12px 18px rgba(42, 7, 7, 0.08);
    margin-top:10px;
}

.happyhog-policy-fallback {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: rgba(255, 249, 197, 0.68);
    border: 2px solid rgba(46, 139, 87, 0.22);
}

.happyhog-policy-render :is(h1, h2, h3) {
    margin-top: 0;
    color: var(--hog-card-heading);
    letter-spacing: -0.03em;
}

.happyhog-policy-render :is(p, ul, ol, blockquote, pre) {
    margin: 0 0 1rem;
}

.happyhog-policy-render blockquote {
    padding: 0.95rem 1rem;
    border-left: 4px solid var(--hog-card-border);
    border-radius: 0 18px 18px 0;
    background: rgba(255, 249, 197, 0.68);
}

.happyhog-policy-render code,
.happyhog-policy-render pre {
    font-family: Consolas, "Courier New", monospace;
}

.happyhog-policy-render code {
    padding: 0.15rem 0.35rem;
    border-radius: 8px;
    background: rgba(46, 139, 87, 0.12);
}

.happyhog-policy-render pre {
    padding: 1rem;
    border-radius: 18px;
    overflow: auto;
    background: rgba(31, 26, 23, 0.94);
    color: #fff9d8;
}

.happyhog-policy-render a {
    color: #0f6b82;
}

@media (min-width: 900px) {
    .happyhog-hero-card {
        grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
        align-items: center;
        padding: 1.8rem;
    }

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

    .happyhog-paired-cards {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .happyhog-page {
        padding: 1rem 0.85rem 3rem;
    }

    .happyhog-shell {
        gap: 1.4rem;
    }

    .happyhog-topbar {
        justify-content: stretch;
        gap: 1rem;
    }

    .happyhog-language-switch-wrap {
        justify-content: center;
    }

    .happyhog-back-link,
    .happyhog-language-switch-wrap,
    .happyhog-language-switch {
        width: 100%;
    }

    .happyhog-language-switch {
        justify-content: stretch;
        gap: 0.6rem;
    }

    .happyhog-language-pill {
        flex: 1 1 0;
        min-width: 0;
        min-height: 4.65rem;
        padding: 0.7rem 0.75rem;
        font-size: 0.94rem;
    }

    .happyhog-hero-card,
    .happyhog-card,
    .happyhog-legal-card,
    .happyhog-disclaimer-card {
        border-radius: 26px;
        border: 5px solid #2E8B57;
        background: linear-gradient(180deg, #ffea00 0%, #f7e600 100%);
        box-shadow: 0 14px 0 rgba(46, 139, 87, 0.32), 0 24px 30px rgba(78, 14, 10, 0.16);
    }

    .happyhog-hero-card {
        display: flex;
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        justify-items: center;
        text-align: center;
    }

    .happyhog-logo-panel,
    .happyhog-copy-panel {
        width: 100%;
        justify-items: center;
    }

    .happyhog-logo-frame {
        width: min(250px, 74vw);
    }

    .happyhog-logo-stage {
        padding: 0;
    }

    .happyhog-logo-image {
        width: 100%;
        height: 100%;
    }

    .happyhog-copy-panel h1 {
        font-size: clamp(2.1rem, 12vw, 3rem);
        line-height: 1.02;
    }

    .happyhog-subtitle {
        font-size: 1.05rem;
        max-width: 24rem;
    }

    .happyhog-body-copy {
        max-width: 34rem;
    }

    .happyhog-store-panel,
    .happyhog-card,
    .happyhog-disclaimer-card,
    .happyhog-legal-card {
        padding: 1rem;
    }

    .happyhog-store-panel {
        gap: 0.85rem;
        border: 5px solid #2E8B57;
        background: linear-gradient(180deg, #ffea00 0%, #f7e600 100%);
        width: 100%;
    }

    .happyhog-store-panel h2 {
        font-size: 1.45rem;
        line-height: 1.15;
        text-wrap: balance;
    }

    .happyhog-content-grid {
        gap: 1.4rem;
    }

    .happyhog-paired-cards {
        gap: 1.4rem;
    }

    .happyhog-store-button,
    .happyhog-legal-button,
    .happyhog-contact-link {
        width: 100%;
        min-width: 0;
    }

    .happyhog-legal-button,
    .happyhog-contact-link {
        display: grid;
        justify-items: center;
        align-items: center;
        gap: 0.45rem;
        padding: 0.95rem 1rem;
        border-radius: 24px;
        border: 7px solid transparent;
        background-clip: padding-box;
        background: linear-gradient(180deg, #ffea00 0%, #f7e600 100%);
        color: #5e180f;
        box-shadow: inset 0 0 0 7px #2E8B57, 0 12px 0 rgba(46, 139, 87, 0.28), 0 18px 24px rgba(42, 7, 7, 0.14);
        text-decoration: none;
    }

    .happyhog-legal-button span,
    .happyhog-legal-button strong {
        display: block;
        text-align: center;
    }

    .happyhog-store-button-icon-only.is-disabled {
        border-color: transparent;
        background: transparent;
        box-shadow: none;
    }

    .happyhog-store-buttons {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        width: 100%;
        gap: 0.75rem;
    }

    .happyhog-store-logo {
        width: min(100%, 12.5rem);
        max-width: 12.5rem;
        min-width: 0;
    }

    .happyhog-topbar,
    .happyhog-store-panel,
    .happyhog-legal-card {
        align-items: stretch;
    }

    .happyhog-legal-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .happyhog-card,
    .happyhog-legal-card,
    .happyhog-disclaimer-card {
        text-align: left;
    }

    .happyhog-policy-modal-header,
    .happyhog-policy-modal-body {
        padding: 1rem;
    }

    .happyhog-policy-modal-header {
        flex-direction: column;
    }

    .happyhog-policy-modal-header .btn-close {
        align-self: flex-end;
    }

    .happyhog-contact-link {
        width: 100%;
        font-weight: 800;
    }

    .happyhog-beta-chip {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: fit-content;
        min-height: 2rem;
        padding: 0.35rem 0.8rem;
        border-radius: 999px;
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        background: linear-gradient(180deg, #fff27a 0%, #f7e600 100%);
        color: #2E8B57;
        border: 4px solid #2E8B57;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 10px 18px rgba(46, 139, 87, 0.18);
    }
}

@media (max-width: 640px) {
    .happyhog-page {
        padding-inline: 0.65rem;
    }

    .happyhog-shell {
        gap: 1.1rem;
    }

    .happyhog-card,
    .happyhog-card-featured,
    .happyhog-legal-card,
    .happyhog-disclaimer-card {
        margin-bottom: 0.75rem;
    }

    .happyhog-hero-card,
    .happyhog-card,
    .happyhog-legal-card,
    .happyhog-disclaimer-card,
    .happyhog-policy-modal-content,
    .happyhog-store-panel {
        border-radius: 22px;
    }

    .happyhog-copy-panel {
        gap: 0.75rem;
    }

    .happyhog-copy-panel h1 {
        font-size: clamp(1.85rem, 11vw, 2.5rem);
    }

    .happyhog-subtitle {
        font-size: 0.98rem;
    }

    .happyhog-store-panel h2,
    .happyhog-card h2,
    .happyhog-legal-card h2,
    .happyhog-disclaimer-card h2,
    .happyhog-policy-modal-header h2 {
        font-size: 1.4rem;
    }

    .happyhog-body-copy,
    .happyhog-card p,
    .happyhog-disclaimer-card p,
    .happyhog-legal-copy p,
    .happyhog-policy-render,
    .happyhog-policy-fallback,
    .happyhog-policy-warning {
        line-height: 1.6;
    }

    .happyhog-logo-frame {
        width: min(220px, 68vw);
        border-radius: 24px;
    }

    .happyhog-logo-shadow {
        width: 62%;
        height: 1rem;
        margin-top: 0.6rem;
    }

    .happyhog-logo-image {
        border-radius: 22px;
    }

    .happyhog-language-pill {
        min-height: 4.25rem;
        padding: 0.65rem 0.5rem;
        border-width: 5px;
        border-color: var(--hog-card-border);
        background: linear-gradient(180deg, #fff27a 0%, #ffe700 100%);
        box-shadow: 0 10px 0 rgba(46, 139, 87, 0.24), 0 16px 20px rgba(42, 7, 7, 0.12);
    }

    .happyhog-language-pill span:last-child {
        font-size: 0.92rem;
    }

    .happyhog-contact-link {
        display: grid;
        justify-items: center;
        align-items: center;
        width: 100%;
        min-width: 0;
        padding: 0.95rem 1rem;
        border: 7px solid transparent;
        background-clip: padding-box;
        border-radius: 24px;
        background: linear-gradient(180deg, #ffea00 0%, #f7e600 100%);
        color: #5e180f;
        font-weight: 800;
        text-decoration: none;
        box-shadow: inset 0 0 0 7px #2E8B57, 0 12px 0 rgba(46, 139, 87, 0.28), 0 18px 24px rgba(42, 7, 7, 0.14);
    }

    .happyhog-beta-chip,
    .happyhog-policy-meta span,
    .happyhog-store-eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.06em;
    }

    .happyhog-beta-chip {
        border-width: 4px;
        border-color: #2E8B57;
    }

    .happyhog-bullet-list li {
        padding-left: 1.25rem;
    }

    .happyhog-bullet-list li::before {
        top: 0.62rem;
        width: 0.58rem;
        height: 0.58rem;
    }

    .happyhog-image-rotator {
        width: min(100%, 18rem);
        border-radius: 18px;
    }

    .happyhog-image-rotator-item {
        padding: 0.65rem;
    }

    .happyhog-store-logo {
        width: min(100%, 11.5rem);
        max-width: 11.5rem;
    }

    .happyhog-policy-meta {
        gap: 0.45rem;
        margin-bottom: 0.75rem;
    }
}

/* Application Configuration datetime input */
.appconfig-datetime-input {
    margin-bottom: 1rem;
}

.appconfig-datetime-input input[type="datetime-local"] {
    width: 100%;
    max-width: 400px;
}

/* ==================== Global Page Loading Indicator ==================== */

/* Full-screen overlay with backdrop blur effect */
.page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(246, 249, 252, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease-in-out;
}

/* Centered spinner container */
.page-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(18, 79, 146, 0.15);
    animation: pageLoadingFadeIn 0.3s ease-in-out;
}

/* Rotating spinner icon */
.page-loading-icon {
    font-size: 3rem;
    color: #124f92;
    display: inline-block;
    will-change: transform;
    animation: pageLoadingSpin 1s linear infinite;
    -webkit-animation: pageLoadingSpin 1s linear infinite;
}

/* Loading text */
.page-loading-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #10213a;
    letter-spacing: 0.5px;
}

/* Fade-in animation for spinner container */
@keyframes pageLoadingFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Rotation animation for spinner icon */
@keyframes pageLoadingSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes pageLoadingSpin {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* Ensure spinner is visible above all content */
.page-loading-overlay.active {
    display: flex !important;
}

/* Initial page load visibility - shows overlay immediately on new tab/direct URL/bookmark/refresh */
.page-loading-overlay.page-loading-initial {
    display: flex !important;
    /* Fallback: auto-fadeout if JS fails to hide overlay */
    animation: pageLoadingInitialFadeOut 1s ease-in-out 3s forwards;
}

/* Fallback fadeout animation - hides overlay if JS doesn't remove initial class within 3s */
@keyframes pageLoadingInitialFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* ── Auth status badge ───────────────────────────────────────── */
.auth-status-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.auth-status-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(13, 74, 131, 0.08);
    color: #133b63;
    cursor: pointer;
    transition: background 0.15s;
}

.auth-status-toggle:hover {
    background: rgba(13, 74, 131, 0.16);
}

.auth-status-icon {
    font-size: 1rem;
    transition: color 0.2s;
}

.auth-status-icon--warn {
    color: #b45309;
}

.auth-status-panel {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    z-index: 200;
    min-width: 16rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.5rem;
    background: #fff;
    border: 1px solid rgba(13, 74, 131, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    font-size: 0.8rem;
}

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

.auth-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 0;
}

.auth-status-row + .auth-status-row {
    border-top: 1px solid rgba(13, 74, 131, 0.08);
}

.auth-status-label {
    color: #555;
    white-space: nowrap;
}

.auth-status-value {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: #133b63;
    white-space: nowrap;
}

