/* Account, alerts, watchlist, legal, and 404 pages aligned to the 2026 theme. */

:root {
  --paper: #fff8ea;
  --paper-deep: #f6e7cc;
  --paper-light: #ffffff;
  --ink: #1f1b16;
  --ink-soft: #5c554b;
  --ink-faint: #8a8173;
  --line: #e6dcc8;
  --line-strong: #b9ad97;
  --accent: #9a4414;
  --accent-deep: #7a3410;
  --green: #1e4d1a;
  --amber: #8a6a1f;
  --blue: #9a4414;
  --yellow: #ffd9a8;
  --orange: #b25a12;
  --display: var(--sa-font);
  --serif: var(--sa-font);
  --sans: var(--sa-font);
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --radius: 14px;
  --hard-shadow: none;
  --page: min(1120px, calc(100vw - 48px));
}

body.account-page {
  color: var(--sa-ink);
  background: var(--sa-paper);
  font-family: var(--sa-font);
}

.grain {
  display: none;
}

.account-main {
  width: min(1120px, calc(100vw - 48px));
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 0 72px;
}

.sa-account-main {
  padding-top: 36px;
}

.account-head {
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--sa-line);
}

.account-head h1,
.page-hero h1 {
  font-family: var(--sa-font);
  font-size: clamp(2.4rem, 4.8vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.page-lede {
  max-width: 42rem;
  margin-top: 12px;
  color: var(--sa-muted);
  font-size: 15px;
  line-height: 1.6;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--sa-accent);
  font-family: var(--sa-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.sa-auth-flash {
  margin-bottom: 20px;
}

.sa-auth-flash .sa-flash {
  margin: 0 0 8px;
}

.panel,
.quota-card,
.notice-panel,
.watch-card,
.reward-card,
.alert-form-panel,
.rule-item,
.triggered-item,
.detail-panel {
  background: #fff;
  border: 1px solid var(--sa-line);
  border-radius: 14px;
  box-shadow: none;
}

.panel {
  padding: 22px;
}

.panel h2,
.reward-card h3 {
  font-family: var(--sa-font);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.panel-head {
  align-items: flex-start;
}

.quota-row strong {
  font-family: var(--sa-font);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.quota-row span {
  color: var(--sa-muted);
  font-size: 12px;
}

.plan-pill,
.pill {
  font-family: var(--sa-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
}

.button-link {
  padding: 10px 16px;
  color: var(--sa-ink);
  background: #fff;
  border: 1px solid var(--sa-border);
  border-radius: 999px;
  font-family: var(--sa-font);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.button-link:hover,
.button-link.primary {
  color: #fff;
  background: var(--sa-ink);
  border-color: var(--sa-ink);
}

.button-link.primary:hover {
  background: #000;
  border-color: #000;
}

.button-link.ghost {
  color: var(--sa-muted);
  background: transparent;
  border-color: var(--sa-line);
}

.text-link {
  color: var(--sa-accent);
  font-family: var(--sa-font);
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--sa-accent-deep);
}

.text-button {
  color: var(--sa-accent);
  font-family: var(--sa-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.text-button:hover {
  color: var(--sa-accent-deep);
}

.muted-copy,
.field-help {
  color: var(--sa-muted);
  font-size: 12px;
  line-height: 1.55;
}

.field-label {
  color: var(--sa-muted);
  font-family: var(--sa-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.account-main input[type="text"],
.account-main input[type="email"],
.account-main input[type="tel"],
.account-main input[type="password"],
.account-main input[type="number"],
.account-main input[type="search"],
.account-main select,
.account-main textarea {
  color: var(--sa-ink);
  background: #fff;
  border: 1px solid var(--sa-line);
  border-radius: 10px;
}

.account-main input:focus,
.account-main select:focus,
.account-main textarea:focus {
  border-color: var(--sa-accent);
  box-shadow: 0 0 0 3px var(--sa-accent-soft);
  outline: 0;
}

.saved-item,
.alert-item,
.credential-list li {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--sa-line);
  border-radius: 0;
  box-shadow: none;
}

.alert-item strong,
.saved-item strong {
  font-family: var(--sa-font);
}

.perk-row {
  background: var(--sa-row);
  border: 1px solid var(--sa-line);
  border-radius: 12px;
}

.reward-card {
  background: var(--sa-paper);
}

.perk-form,
.inline-referral-form {
  border-color: var(--sa-line);
}

.watch-card {
  overflow: hidden;
}

.empty-panel {
  background: #fff;
  border: 1px dashed var(--sa-line);
  border-radius: 14px;
  box-shadow: none;
}

.legal-page {
  width: min(860px, calc(100vw - 48px));
  margin: 24px auto 72px;
  padding: 40px 44px;
  background: #fff;
  border: 1px solid var(--sa-line);
  border-radius: 16px;
  box-shadow: none;
}

.legal-page h1 {
  font-family: var(--sa-font);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.legal-page h2 {
  margin-top: 30px;
  font-family: var(--sa-font);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.legal-page p,
.legal-page li {
  color: var(--sa-muted);
  font-size: 15px;
  line-height: 1.7;
}

.legal-page a {
  color: var(--sa-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-meta {
  padding-bottom: 18px;
  margin-bottom: 24px;
  color: var(--sa-muted) !important;
  border-bottom: 1px solid var(--sa-line);
  font-size: 13px !important;
}

.not-found-page h1 {
  font-family: var(--sa-font);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
}

.not-found-page p:not(.eyebrow) {
  color: var(--sa-muted);
  font-weight: 400;
}

.not-found-art {
  mix-blend-mode: normal;
}

.api-limit-grid label {
  color: var(--sa-muted);
  font-family: var(--sa-font);
}

.api-limits .reward-actions {
  margin-top: 8px;
}

@media (max-width: 700px) {
  .account-main {
    width: calc(100vw - 32px);
    padding-top: 24px;
  }

  .legal-page {
    width: calc(100vw - 32px);
    padding: 28px 20px;
  }

  .account-head h1,
  .page-hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }
}

/* Alerts page layout and selection */
.page-jump {
  position: static;
  gap: 8px;
  padding: 0;
  margin: 18px 0 22px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.page-jump a {
  padding: 8px 12px;
  color: var(--sa-ink);
  background: #fff;
  border: 1px solid var(--sa-line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.page-jump a:hover,
.page-jump a:focus-visible {
  color: var(--sa-accent);
  border-color: var(--sa-accent);
}

.alert-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  padding-top: 18px;
}

.alert-exports {
  margin: 14px 0 0;
  color: var(--sa-muted);
  font-size: 12px;
}

.ai-form-block {
  padding: 16px;
  margin: 18px 0 14px;
  background: var(--sa-row);
  border: 1px solid var(--sa-line);
  border-radius: 12px;
}

.ai-form-block .eyebrow span {
  color: var(--sa-muted);
  font-size: 11px;
}

.ai-analysis {
  background: var(--sa-row);
  border: 1px solid var(--sa-line);
  border-radius: 12px;
}

.alert-select-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px;
  margin: 16px 0 4px;
  background: var(--sa-row);
  border: 1px solid var(--sa-line);
  border-radius: 12px;
}

.alert-select-toolbar .check-toggle {
  margin: 0;
}

.alert-select-toolbar .alert-selected-count {
  margin-right: auto;
  color: var(--sa-muted);
  font-size: 12px;
}

.alert-select-toolbar .button-link {
  margin: 0;
}

.alert-analysis-status {
  min-height: 1.2em;
  margin: 8px 0 0;
  color: var(--sa-muted);
  font-size: 12px;
}

.triggered-id {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hit-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sa-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.hit-select input {
  width: 15px;
  height: 15px;
  accent-color: var(--sa-accent);
}

.triggered-item.is-selected {
  background: var(--sa-row);
  box-shadow: inset 3px 0 var(--sa-accent);
}

.triggered-item {
  border-bottom-color: var(--sa-line);
}

.triggered-body h3 {
  font-family: var(--sa-font);
}

.triggered-source,
.triggered-topline time {
  font-family: var(--sa-font);
  font-size: 10px;
}

.alert-usa {
  margin: 10px 0;
}

.sa-billing-manage {
  display: inline-flex;
  margin: 0;
}

.sa-billing-manage button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  color: var(--sa-ink);
  background: #fff;
  border: 1px solid var(--sa-border);
  border-radius: var(--sa-radius-input);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.sa-billing-manage button:hover {
  background: var(--sa-soft);
}

.verification-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed var(--sa-line);
  border-radius: 12px;
}

.verification-panel .inline-form {
  margin: 8px 0;
}

.verification-panel .field-label {
  margin-bottom: 4px;
}

.verification-panel button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  text-decoration: none;
}

.button-link.danger {
  color: #fff;
  background: #a52a1f;
  border-color: #a52a1f;
}

.button-link.danger:hover {
  background: #821f17;
  border-color: #821f17;
}

.danger-zone {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--sa-line);
}

.danger-zone summary {
  color: #a52a1f;
  cursor: pointer;
  font-weight: 600;
}

.delete-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-top: 10px;
}

.delete-form input {
  min-width: 150px;
}

.email-verify-form {
  margin: 10px 0 14px;
}

.email-verify-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

.email-verify-row input {
  flex: 1 1 260px;
  min-height: 40px;
}

.email-verify-row .button-link {
  flex: 0 0 auto;
}

@media (max-width: 620px) {
  .email-verify-row .button-link {
    width: 100%;
  }
}

/* Search alert trigger counters and filtered views */
.rule-trigger-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin: 8px 0 0;
  font-size: 12px;
}

.rule-trigger-stats strong {
  font-size: 15px;
}

.alert-filter-note {
  margin: 0 0 12px;
}

.account-plan-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 12px;
}

.account-plan-inline .plan-pill {
  padding: 8px 16px;
  color: #fff;
  background: var(--ui-forest, #162e50);
  border-radius: 999px;
  font-family: var(--sa-font);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-transform: none;
}

.account-plan-inline .account-plan-meta {
  color: var(--sa-muted);
  font-size: 14px;
}

@media (max-width: 760px) {
  .account-plan-inline .plan-pill {
    font-size: 15px;
    padding: 7px 13px;
  }
}

/* Bug bounty */
.bounty-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  margin-top: 18px;
}

.bounty-card,
.bounty-aside .panel,
.bounty-rules {
  padding: 24px;
}

.bounty-card h2,
.bounty-rules h2 {
  margin: 18px 0 12px;
  font-size: 22px;
}

.bounty-card h2:first-of-type,
.bounty-rules h2:first-child {
  margin-top: 0;
}

.bounty-card .field-label,
.bounty-card input,
.bounty-card select,
.bounty-card textarea {
  width: 100%;
}

.bounty-card .field-label {
  display: block;
  margin: 14px 0 6px;
}

.bounty-card textarea {
  min-height: 110px;
  resize: vertical;
}

.bounty-hidden {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.bounty-good-faith {
  align-items: flex-start;
  margin: 18px 0;
}

.bounty-success h2 {
  margin-top: 0;
}

.bounty-reward strong {
  display: block;
  margin: 2px 0 6px;
  font-family: var(--sa-font);
  font-size: 40px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.bounty-reward p,
.bounty-aside p {
  margin: 0 0 10px;
}

.bounty-aside h2 {
  margin: 18px 0 8px;
  font-size: 19px;
}

.bounty-aside h3,
.bounty-rules h3 {
  margin: 18px 0 6px;
  font-size: 16px;
}

.bounty-steps,
.bounty-list {
  margin: 0;
  padding-left: 20px;
  color: var(--sa-muted);
  font-size: 14px;
  line-height: 1.6;
}

.bounty-steps li + li,
.bounty-list li + li {
  margin-top: 4px;
}

.bounty-rules {
  margin-top: 18px;
}

.bounty-rules p {
  color: var(--sa-muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .bounty-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Admin dashboard */
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.admin-stat {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--sa-line);
  border-radius: var(--sa-radius-input, 10px);
}

.admin-stat span {
  display: block;
  color: var(--sa-muted);
  font-size: 12px;
  font-weight: 600;
}

.admin-stat strong {
  display: block;
  margin-top: 4px;
  font-family: var(--sa-font);
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.admin-section {
  margin-top: 18px;
  padding: 22px;
}

.admin-section .panel-head {
  align-items: flex-start;
  gap: 12px;
}

.admin-section .panel-head h2 {
  margin: 0;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 12px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

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

.admin-table th {
  color: var(--sa-muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-table details {
  margin-top: 6px;
}

.admin-table details p {
  margin: 5px 0;
  max-width: 70ch;
  white-space: pre-wrap;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 180px;
}

.admin-actions form,
.admin-inline-form {
  margin: 0;
}

.admin-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  color: var(--sa-muted);
  background: var(--sa-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.admin-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sa-soft);
  font-size: 11px;
  font-weight: 700;
}

.admin-badge.is-ok {
  color: #1e4d1a;
  background: #e4f0df;
}

.admin-badge.is-warn {
  color: #7a3410;
  background: #ffe6c2;
}

.admin-badge.is-bad {
  color: #8a1f13;
  background: #f7d9d3;
}

.admin-form {
  margin: 12px 0;
  padding: 16px;
  border: 1px solid var(--sa-line);
  border-radius: var(--sa-radius-input, 10px);
  background: var(--sa-soft);
}

.admin-form .form-grid {
  margin-bottom: 12px;
}

.admin-form input,
.admin-form select {
  width: 100%;
}

.admin-search {
  display: flex;
  gap: 8px;
}

.admin-search input {
  min-width: 220px;
}

.admin-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.admin-inline-form select,
.admin-inline-form input {
  width: auto;
  min-height: 36px;
}

@media (max-width: 760px) {
  .admin-search {
    flex-direction: column;
    width: 100%;
  }

  .admin-search input {
    min-width: 0;
    width: 100%;
  }
}

/* Admin sorting, filters and gift/edit dialogs */
.admin-form textarea {
  width: 100%;
}

.admin-check {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: end;
  min-height: 38px;
  font-size: 13px;
  font-weight: 600;
}

.admin-check input {
  width: auto;
  min-height: 0;
}

.form-grid-full {
  grid-column: 1 / -1;
}

.sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sort-btn::after {
  content: "↕";
  opacity: 0.35;
  font-weight: 400;
}

.sort-btn[data-active="true"]::after {
  content: "↑";
  opacity: 1;
}

.sort-btn[aria-sort="descending"]::after {
  content: "↓";
}

.admin-dialog {
  width: min(680px, calc(100vw - 32px));
}

.admin-dialog .admin-form {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
}

.admin-dialog .sa-dialog-actions {
  margin-top: 18px;
}

.admin-stat-note {
  max-width: 100ch;
  margin: -4px 0 18px;
}

.admin-table small {
  color: var(--sa-muted);
  font-size: 12px;
  font-weight: 500;
}

/* Compact, centered account header */
.account-head.account-head-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px 16px;
  padding-bottom: 16px;
  text-align: center;
}

.account-head-inline .account-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.account-head-inline .account-name {
  max-width: 20ch;
  margin: 0;
  overflow: hidden;
  font-family: var(--sa-font);
  font-size: clamp(18px, 1.55vw, 24px);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-head-inline .account-email {
  max-width: 24ch;
  overflow: hidden;
  color: var(--sa-muted);
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-head-inline .account-plan-inline {
  flex-wrap: nowrap;
  gap: 6px 10px;
  margin: 0;
}

.account-head-inline .account-plan-inline .plan-pill {
  padding: 5px 10px;
  font-size: 13px;
}

.account-head-inline .account-plan-inline .account-plan-meta {
  font-size: 12px;
  white-space: nowrap;
}

.account-head-inline .account-plan-actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
}

.account-head-inline .account-action-link {
  min-height: 34px;
  padding: 0 9px;
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .account-head.account-head-inline {
    flex-wrap: wrap;
    justify-content: flex-start;
    text-align: left;
  }
}

/* Email alert verification feedback */
.field-help.field-error {
  margin-top: 5px;
  color: #a12a1c;
  font-weight: 650;
}
.field-help.field-error[hidden] {
  display: none;
}
.email-alert-shake {
  animation: sa-email-alert-shake 0.55s ease;
}
@keyframes sa-email-alert-shake {
  0%, 100% { transform: translateX(0); border-color: var(--sa-border); }
  20%, 60% { transform: translateX(-4px); border-color: #a12a1c; box-shadow: 0 0 0 3px rgb(161 42 28 / 0.15); }
  40%, 80% { transform: translateX(4px); border-color: #a12a1c; box-shadow: 0 0 0 3px rgb(161 42 28 / 0.15); }
}

/* Email newsletter preferences */
.newsletter-prefs {
  padding: 12px 14px 14px;
  margin: 12px 0 14px;
  border: 1px solid var(--sa-line);
  border-radius: 10px;
}
.newsletter-prefs legend {
  padding: 0 4px;
}
.newsletter-prefs legend span {
  color: var(--sa-muted);
  font-weight: 400;
}
.newsletter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin-top: 10px;
}
.newsletter-option {
  align-items: flex-start;
  color: var(--sa-ink);
  font-size: 14px;
}
.newsletter-option small {
  display: block;
  color: var(--sa-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}
@media (max-width: 700px) {
  .newsletter-grid {
    grid-template-columns: 1fr;
  }
}

.field-help.is-success {
  color: var(--sa-green);
  font-weight: 650;
}

/* Collapsible admin topics */
.admin-fold > .panel-head,
.admin-fold > .admin-section-head { position: relative; padding-right: 42px; cursor: pointer; }
.admin-fold > .panel-head form,
.admin-fold > .panel-head input,
.admin-fold > .panel-head select,
.admin-fold > .panel-head button:not(.admin-fold-toggle),
.admin-fold > .admin-section-head form,
.admin-fold > .admin-section-head input,
.admin-fold > .admin-section-head select,
.admin-fold > .admin-section-head button:not(.admin-fold-toggle) { cursor: auto; }
.admin-fold.is-collapsed > :not(.panel-head):not(.admin-section-head) { display: none; }
.admin-fold-body { max-height: min(70vh, 680px); overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-gutter: stable; }
.admin-fold-toggle { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--sa-line); border-radius: 999px; background: #fff; color: var(--sa-muted); font: 700 15px/1 var(--sa-font); cursor: pointer; }
.admin-fold-toggle::before { content: "\25BE"; transform: translateY(-1px); }
.admin-fold.is-collapsed .admin-fold-toggle::before { content: "\25B8"; }
.admin-fold-toggle:hover { border-color: var(--sa-accent); background: var(--sa-soft); color: var(--sa-accent); }
.admin-fold-toggle:focus-visible { outline: 3px solid var(--sa-focus); outline-offset: 2px; }

/* Admin table actions */
.admin-actions { align-items: center; gap: 6px; min-width: 0; }
.admin-actions form { display: inline-flex; margin: 0; }
.admin-actions .button-link,
.admin-actions .text-button { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 5px 10px; border: 1px solid var(--sa-line); border-radius: 7px; background: #fff; color: var(--sa-ink); box-shadow: none; font: 650 12px/1.2 var(--sa-font); text-decoration: none; white-space: nowrap; }
.admin-actions .button-link:hover,
.admin-actions .text-button:hover { border-color: var(--sa-accent); background: var(--sa-soft); color: var(--sa-accent); }
.admin-actions .button-link.primary { border-color: var(--ui-forest); background: var(--ui-forest); color: #fff; }
.admin-actions .button-link.primary:hover { border-color: var(--ui-forest); background: var(--ui-forest); color: #fff; }
.admin-actions .text-button.is-danger { border-color: #e8c8c1; color: #a12a1c; }
.admin-actions .text-button.is-danger:hover { border-color: #d99a8e; background: #ffede8; color: #7b201a; }
.admin-promo-link { min-width: 210px; max-width: 300px; }
.admin-promo-link a { display: block; color: var(--sa-accent); font: 600 11px/1.35 var(--sa-font); overflow-wrap: anywhere; }
.admin-promo-link .text-button { min-height: 28px; margin-top: 5px; padding: 3px 8px; border: 1px solid var(--sa-line); border-radius: 6px; background: #fff; color: var(--sa-muted); font: 650 11px/1.2 var(--sa-font); }
.admin-promo-link .text-button:hover { border-color: var(--sa-accent); background: var(--sa-soft); color: var(--sa-accent); }
