/* Closed product surfaces: accounts, business dashboard and moderation queue. */

.dashboard-theme,
.auth-theme,
.moderation-theme {
  --workbench-info: #245f73;
  --workbench-info-soft: #eaf5f7;
  --workbench-success: #0d6b4d;
  --workbench-success-soft: #e8f6ed;
  --workbench-warning: #785b00;
  --workbench-warning-soft: #fff2c7;
  --workbench-danger: #a93434;
  --workbench-danger-soft: #fff0ed;
  --workbench-sidebar: #123c32;
  --workbench-sidebar-soft: #1b4a3e;
  --workbench-control-height: 44px;
}

.dashboard-theme .message,
.auth-theme .message,
.moderation-theme .message {
  position: relative;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--workbench-info);
  background: var(--workbench-info-soft);
  color: var(--ink);
  font-weight: 650;
}

.dashboard-theme .message.success,
.auth-theme .message.success,
.moderation-theme .message.success {
  border-color: #aed5bd;
  border-left-color: var(--workbench-success);
  background: var(--workbench-success-soft);
  color: #174c37;
}

.dashboard-theme .message.warning,
.auth-theme .message.warning,
.moderation-theme .message.warning {
  border-color: #dec979;
  border-left-color: var(--workbench-warning);
  background: var(--workbench-warning-soft);
  color: #594600;
}

.dashboard-theme .message.error,
.auth-theme .message.error,
.moderation-theme .message.error {
  border-color: #e6b8b1;
  border-left-color: var(--workbench-danger);
  background: var(--workbench-danger-soft);
  color: #742727;
}

.dashboard-theme .button,
.auth-theme .button,
.moderation-theme .button {
  min-height: var(--workbench-control-height);
}

.dashboard-theme .button-compact,
.moderation-theme .button-compact {
  min-height: var(--workbench-control-height);
  padding: 9px 13px;
}

.dashboard-theme .button-danger,
.moderation-theme .button-danger {
  border-color: var(--workbench-danger);
  background: var(--workbench-danger);
  color: #fff;
}

.dashboard-theme .button-danger:hover,
.moderation-theme .button-danger:hover {
  background: #842929;
  color: #fff;
}

/* Authentication */

.auth-theme main {
  background:
    radial-gradient(circle at 12% 12%, rgba(221, 234, 103, 0.28), transparent 30rem),
    linear-gradient(145deg, #edf4ef 0%, #f7f4ec 55%, #e8f1ed 100%);
}

.auth-theme .auth-page {
  min-height: max(70vh, 620px);
  padding: 64px 24px 76px;
  background: transparent;
}

.auth-theme .auth-card {
  position: relative;
  width: min(500px, 100%);
  overflow: hidden;
  border: 1px solid rgba(18, 60, 50, 0.16);
  border-radius: var(--radius-lg);
  padding: 38px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-float);
}

.auth-theme .auth-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--green), var(--lime));
  content: "";
}

.auth-theme .auth-card-warning::before {
  background: var(--workbench-warning);
}

.auth-theme .auth-card-success::before {
  background: var(--workbench-success);
}

.auth-theme .auth-card .eyebrow {
  margin-bottom: 12px;
}

.auth-theme .auth-card h1 {
  margin: 0;
  font-size: clamp(30px, 7vw, 42px);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.auth-theme .auth-lead,
.auth-theme .auth-card > p:not(.eyebrow):not(.auth-foot) {
  color: var(--muted);
  font-size: 16px;
}

.auth-theme .auth-card form {
  margin-top: 26px;
}

.auth-theme .auth-card form > div {
  gap: 7px;
  margin-bottom: 18px;
}

.auth-theme .auth-card label {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 750;
}

.auth-theme .auth-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.auth-theme .auth-card select,
.auth-theme .auth-card textarea {
  min-height: 48px;
  border-color: var(--line-strong);
  border-radius: 12px;
  padding: 12px 13px;
  background: #fff;
}

.auth-theme .auth-card input:focus,
.auth-theme .auth-card select:focus,
.auth-theme .auth-card textarea:focus {
  border-color: var(--green);
}

.auth-theme .auth-card .errorlist {
  margin: 4px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--workbench-danger-soft);
  color: var(--workbench-danger);
  font-size: 13px;
  font-weight: 650;
  list-style-position: inside;
}

.auth-theme .auth-card .helptext,
.auth-theme .auth-card .helptext ul {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.auth-theme .auth-card .helptext ul {
  padding-left: 20px;
}

.auth-theme .auth-card .button-block {
  min-height: 50px;
  margin-top: 6px;
}

.auth-theme .auth-foot {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.auth-theme .auth-support a {
  display: inline-flex;
  min-height: var(--workbench-control-height);
  align-items: center;
  font-weight: 750;
}

.operator-contact-actions {
  flex-wrap: wrap;
}

.auth-theme .operator-contact-actions {
  margin-top: 12px !important;
}

@media (max-width: 620px) {
  .operator-contact-actions {
    align-items: stretch;
    flex-direction: column !important;
  }

  .operator-contact-actions .button {
    width: 100%;
  }
}

.auth-theme .auth-summary {
  display: grid;
  gap: 1px;
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}

.auth-theme .auth-summary > div {
  display: grid;
  grid-template-columns: minmax(100px, 0.7fr) minmax(0, 1.3fr);
  gap: 16px;
  padding: 12px 14px;
  background: var(--wash);
}

.auth-theme .auth-summary dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.auth-theme .auth-summary dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

/* Dashboard application shell */

.dashboard-theme main {
  background: #f4f7f5;
}

.dashboard-theme .dashboard-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  padding-top: 38px;
  padding-bottom: 80px;
}

.dashboard-theme .dashboard-nav {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: var(--workbench-sidebar);
  box-shadow: 0 18px 46px rgba(18, 60, 50, 0.18);
  color: #fff;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
  scrollbar-width: thin;
}

.dashboard-theme .dashboard-context {
  padding: 22px 18px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.dashboard-theme .dashboard-context .eyebrow {
  margin: 0 0 6px;
  color: #ddea67;
}

.dashboard-theme .dashboard-business-name {
  display: block;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 17px;
  line-height: 1.25;
}

.dashboard-theme .dashboard-business-switch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 15px;
}

.dashboard-theme .dashboard-business-switch select {
  min-width: 0;
  min-height: var(--workbench-control-height);
  border-color: rgba(255, 255, 255, 0.28);
  background: var(--workbench-sidebar-soft);
  color: #fff;
  font-size: 13px;
}

.dashboard-theme .dashboard-business-switch select option {
  background: #fff;
  color: var(--ink);
}

.dashboard-theme .dashboard-business-switch .button {
  min-height: var(--workbench-control-height);
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.dashboard-theme .dashboard-nav-toggle {
  display: none;
}

.dashboard-theme .dashboard-nav-links {
  display: grid !important;
  gap: 0;
  margin: 0;
  padding: 12px;
}

.dashboard-theme .dashboard-nav-group {
  display: grid;
  gap: 3px;
  padding: 5px 0 10px;
}

.dashboard-theme .dashboard-nav-group + .dashboard-nav-group {
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-theme .dashboard-nav-label {
  margin: 0;
  padding: 5px 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.dashboard-theme .dashboard-nav-links a {
  position: relative;
  display: flex;
  min-height: var(--workbench-control-height);
  align-items: center;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 9px 11px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
}

.dashboard-theme .dashboard-nav-links a:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.dashboard-theme .dashboard-nav-links a[aria-current="page"] {
  border-color: rgba(221, 234, 103, 0.28);
  background: #f3f6cf;
  color: var(--forest);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.12);
  font-weight: 800;
}

.dashboard-theme .dashboard-main {
  width: 100%;
  min-width: 0;
}

.dashboard-theme .dashboard-head,
.moderation-theme .dashboard-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.dashboard-theme .dashboard-head > div,
.moderation-theme .dashboard-head > div {
  min-width: 0;
}

.dashboard-theme .dashboard-head h1,
.moderation-theme .dashboard-head h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.dashboard-theme .dashboard-head p,
.moderation-theme .dashboard-head p {
  max-width: 740px;
  margin: 8px 0 0;
  color: var(--muted);
}

.dashboard-theme .dashboard-head > .button,
.moderation-theme .dashboard-head > .button {
  flex: 0 0 auto;
}

.dashboard-theme .dashboard-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.dashboard-theme .dashboard-filters a {
  display: inline-flex;
  min-height: var(--workbench-control-height);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 720;
  text-decoration: none;
}

.dashboard-theme .dashboard-filter-current {
  display: inline-flex;
  min-height: var(--workbench-control-height);
  align-items: center;
  border-radius: 999px;
  padding: 8px 13px;
  background: var(--workbench-sidebar);
  color: #fff;
  font-size: 13px;
  font-weight: 760;
}

.dashboard-theme .stat-grid,
.moderation-theme .stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.dashboard-theme .stat-grid article,
.moderation-theme .stat-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.dashboard-theme .stat-grid span,
.moderation-theme .stat-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dashboard-theme .stat-grid strong,
.moderation-theme .stat-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--forest);
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1;
}

.dashboard-theme .panel,
.moderation-theme .panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(18px, 2.8vw, 28px);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.dashboard-theme .panel h2,
.moderation-theme .panel h2 {
  margin-top: 0;
  font-size: clamp(21px, 3vw, 28px);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.dashboard-theme .section-heading,
.moderation-theme .section-heading {
  align-items: flex-start;
  margin-bottom: 20px;
}

.dashboard-theme .quick-actions {
  gap: 10px;
}

.dashboard-theme .quick-actions a {
  min-height: 112px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: var(--wash);
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.dashboard-theme .quick-actions a:hover {
  border-color: var(--green);
  background: #f3f8f4;
  transform: translateY(-2px);
}

.dashboard-theme .notice,
.moderation-theme .notice {
  position: relative;
  margin-bottom: 18px;
  border: 1px solid #bfd6dc;
  border-left: 5px solid var(--workbench-info);
  border-radius: 16px;
  padding: 17px 19px;
  background: var(--workbench-info-soft);
  color: #23444e;
  box-shadow: none;
}

.dashboard-theme .notice > strong,
.moderation-theme .notice > strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.3;
}

.dashboard-theme .notice p,
.moderation-theme .notice p {
  max-width: 860px;
}

.dashboard-theme .notice-success,
.moderation-theme .notice-success {
  border-color: #aed5bd;
  border-left-color: var(--workbench-success);
  background: var(--workbench-success-soft);
  color: #174c37;
}

.dashboard-theme .notice-warning,
.moderation-theme .notice-warning {
  border-color: #dec979;
  border-left-color: var(--workbench-warning);
  background: var(--workbench-warning-soft);
  color: #594600;
}

.dashboard-theme .notice-danger,
.moderation-theme .notice-danger {
  border-color: #e6b8b1;
  border-left-color: var(--workbench-danger);
  background: var(--workbench-danger-soft);
  color: #742727;
}

.dashboard-theme .dashboard-task {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 20px;
}

.dashboard-theme .dashboard-task > strong,
.dashboard-theme .dashboard-task > p {
  grid-column: 1;
}

.dashboard-theme .dashboard-task > .button,
.dashboard-theme .dashboard-task > a.button {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.dashboard-theme .status {
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  padding: 5px 9px;
  background: #eef1ef;
  color: #46534c;
  font-weight: 750;
}

.dashboard-theme .status-published {
  border-color: #aed5bd;
  background: var(--workbench-success-soft);
  color: #174c37;
}

.dashboard-theme .status-pending,
.dashboard-theme .status-draft,
.dashboard-theme .stale-stock {
  border-color: #dec979;
  background: var(--workbench-warning-soft);
  color: #594600;
}

.dashboard-theme .status-rejected,
.dashboard-theme .status-archived {
  border-color: #e6b8b1;
  background: var(--workbench-danger-soft);
  color: #742727;
}

/* Forms */

.dashboard-theme .form-panel {
  width: min(820px, 100%);
  max-width: 820px;
}

.dashboard-theme .form-section {
  margin-bottom: 18px;
  border-color: var(--line);
  border-radius: 18px;
  padding: 22px 24px 10px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.dashboard-theme .form-section-highlight {
  border-color: #a9cdbb;
  background: linear-gradient(145deg, #eef8f1, #fff);
}

.dashboard-theme .form-section legend,
.dashboard-theme .schedule-row legend {
  max-width: calc(100% - 16px);
  color: var(--forest);
  font-size: 19px;
  line-height: 1.25;
}

.dashboard-theme .form-section-intro {
  max-width: 700px;
  color: var(--muted);
  line-height: 1.55;
}

.dashboard-theme .field,
.dashboard-theme .form-panel > div {
  min-width: 0;
}

.dashboard-theme .field > label,
.dashboard-theme .form-panel > div > label {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 760;
}

.dashboard-theme input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.dashboard-theme select,
.dashboard-theme textarea {
  min-height: 46px;
  border-color: var(--line-strong);
  border-radius: 11px;
  background: #fff;
}

.dashboard-theme textarea {
  min-height: 132px;
}

.dashboard-theme input:focus,
.dashboard-theme select:focus,
.dashboard-theme textarea:focus {
  border-color: var(--green);
}

.dashboard-theme input[type="file"] {
  min-height: 50px;
  padding: 8px;
  border-style: dashed;
  background: var(--wash);
}

.dashboard-theme .help {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-theme .form-errors,
.dashboard-theme .error {
  border-radius: 10px;
  color: var(--workbench-danger);
  font-size: 13px;
}

.dashboard-theme .form-errors {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid #e6b8b1;
  background: var(--workbench-danger-soft);
}

.dashboard-theme .error .errorlist,
.dashboard-theme .form-errors .errorlist {
  margin: 0;
  padding-left: 20px;
}

.dashboard-theme .field-error input,
.dashboard-theme .field-error select,
.dashboard-theme .field-error textarea {
  border-width: 2px;
  border-color: var(--workbench-danger);
  background: #fffafa;
}

.dashboard-theme .form-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-theme .form-actions .button {
  min-height: 46px;
}

.dashboard-theme .schedule-rows {
  gap: 12px;
}

.dashboard-theme .schedule-row {
  border-color: var(--line);
  border-radius: 16px;
  background: #fbfcfb;
}

.dashboard-theme .schedule-row.is-deleted {
  border-color: var(--workbench-danger);
  background: var(--workbench-danger-soft);
}

/* Lists and data tables */

.dashboard-theme .table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border-color: var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--line-strong) var(--wash);
  scrollbar-width: auto;
}

.dashboard-theme .table-wrap:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.dashboard-theme .table-wrap table {
  min-width: 680px;
}

.dashboard-theme .table-wrap th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 14px;
  background: #eaf0ec;
  color: #4c5c54;
  font-size: 11px;
  letter-spacing: 0.075em;
}

.dashboard-theme .table-wrap td {
  padding: 14px;
  vertical-align: top;
}

.dashboard-theme .table-wrap tbody tr:hover {
  background: #fafcfb;
}

.dashboard-theme .table-wrap td small {
  margin-top: 4px;
  line-height: 1.45;
}

.dashboard-theme .table-wrap a,
.dashboard-theme .table-wrap button {
  min-height: var(--workbench-control-height);
}

.dashboard-theme .table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
}

.dashboard-theme .table-actions a {
  align-items: center;
  border-radius: 9px;
  padding: 7px 8px;
  font-size: 13px;
  font-weight: 720;
}

.dashboard-theme .table-actions a:hover {
  background: var(--wash);
  text-decoration: none;
}

.dashboard-theme .table-primary-action {
  margin-top: 8px;
}

.dashboard-theme .table-primary-action .button {
  width: 100%;
  padding-inline: 12px;
}

.dashboard-theme .inline-form {
  align-items: stretch;
  flex-wrap: wrap;
}

.dashboard-theme .inline-form select {
  min-height: var(--workbench-control-height);
}

.dashboard-theme .outlet-list {
  gap: 10px;
  padding: 10px;
}

.dashboard-theme .outlet-card {
  border-color: var(--line);
  border-radius: 14px;
  background: #fbfcfb;
}

.dashboard-theme .outlet-card h2 {
  margin: 0 0 5px;
  font-size: 20px;
}

.dashboard-theme .outlet-actions {
  justify-content: flex-end;
}

.dashboard-theme .empty-state {
  border: 1px dashed var(--line-strong);
  background: #f7faf8;
}

.dashboard-theme .pagination .button,
.moderation-theme .pagination .button {
  min-width: 116px;
}

/* Moderation workspace */

.moderation-theme main {
  background: #f4f7f5;
}

.moderation-theme .moderation-page {
  padding-top: 42px;
  padding-bottom: 80px;
}

.moderation-theme .moderation-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 24px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.moderation-theme .moderation-sections a {
  display: inline-flex;
  min-height: var(--workbench-control-height);
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  background: var(--wash);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.moderation-theme .moderation-sections a:hover {
  border-color: var(--green);
  background: #f3f8f4;
}

.moderation-theme .moderation-sections span {
  display: inline-grid;
  min-width: 24px;
  min-height: 24px;
  place-items: center;
  border-radius: 999px;
  padding-inline: 6px;
  background: var(--forest);
  color: #fff;
  font-size: 11px;
}

.moderation-theme .moderation-section {
  scroll-margin-top: 96px;
}

.moderation-theme .pilot-status {
  border-top: 4px solid var(--workbench-warning);
}

.moderation-theme .pilot-status-ready {
  border-top-color: var(--workbench-success);
}

.moderation-theme .pilot-status-heading {
  align-items: flex-start;
}

.moderation-theme .pilot-status-heading .status {
  flex: 0 0 auto;
}

.moderation-theme .pilot-status-heading .status-ready {
  background: var(--workbench-success-soft);
  color: var(--workbench-success);
}

.moderation-theme .pilot-status-heading .status-warning {
  background: var(--workbench-warning-soft);
  color: var(--workbench-warning);
}

.moderation-theme .pilot-status-grid {
  margin-bottom: 18px;
}

.moderation-theme .pilot-status-grid small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.moderation-theme .pilot-status-notice {
  margin-bottom: 18px;
}

.moderation-theme .pilot-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.moderation-theme .moderation-section-ready {
  border-top: 4px solid var(--workbench-success);
}

.moderation-theme .moderation-section-warning,
.moderation-theme .moderation-section-blocked {
  border-top: 4px solid var(--workbench-warning);
}

.moderation-theme .moderation-section-private {
  border-top: 4px solid var(--workbench-info);
  background: #f8fbfb;
}

.moderation-theme .moderation-list {
  gap: 9px;
}

.moderation-theme .moderation-list > article {
  min-height: 76px;
  border-color: var(--line);
  border-radius: 13px;
  background: #f8faf9;
}

.moderation-theme .moderation-list > article .button {
  flex: 0 0 auto;
}

.moderation-theme .zero-search-review-card {
  align-items: flex-start;
}

.moderation-theme .zero-search-review-summary {
  flex: 1 1 260px;
}

.moderation-theme .zero-search-review-form {
  display: grid;
  flex: 1 1 520px;
  grid-template-columns: minmax(140px, 0.55fr) minmax(220px, 1fr);
  gap: 10px 12px;
  min-width: 0;
}

.moderation-theme .zero-search-review-form label,
.moderation-theme .zero-search-review-form label > span,
.moderation-theme .zero-search-review-form label > small {
  display: block;
}

.moderation-theme .zero-search-review-form label > span {
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.moderation-theme .zero-search-review-form label > small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.moderation-theme .zero-search-review-form select,
.moderation-theme .zero-search-review-form input,
.moderation-theme .zero-search-review-form textarea {
  width: 100%;
  min-width: 0;
}

.moderation-theme .zero-search-review-form label:nth-of-type(3),
.moderation-theme .zero-search-review-form .button {
  grid-column: 1 / -1;
}

.moderation-theme .zero-search-review-form .button {
  justify-self: end;
}

.moderation-theme .moderation-comment {
  border-left-color: var(--workbench-warning);
  background: var(--workbench-warning-soft);
}

@media (max-width: 960px) {
  .dashboard-theme .dashboard-shell {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 26px;
  }

  .dashboard-theme .dashboard-task {
    grid-template-columns: 1fr;
  }

  .dashboard-theme .dashboard-task > .button,
  .dashboard-theme .dashboard-task > a.button {
    grid-column: 1;
    grid-row: auto;
    width: max-content;
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .moderation-theme .zero-search-review-form {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .moderation-theme .zero-search-review-form label:nth-of-type(3),
  .moderation-theme .zero-search-review-form .button {
    grid-column: 1;
  }

  .moderation-theme .zero-search-review-form .button {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 850px) {
  .dashboard-theme .dashboard-shell {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 24px;
  }

  .dashboard-theme .dashboard-nav {
    position: static;
    max-height: none;
    overflow: visible;
    border-radius: 18px;
  }

  .dashboard-theme .dashboard-context {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }

  .dashboard-theme .dashboard-business-switch {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .dashboard-theme .dashboard-nav-toggle {
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 0 0 17px 17px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 780;
    cursor: pointer;
  }

  .dashboard-theme .dashboard-nav.nav-ready .dashboard-nav-toggle {
    display: flex;
  }

  .dashboard-theme .dashboard-nav.nav-ready .dashboard-nav-links:not(.open) {
    display: none !important;
  }

  .dashboard-theme .dashboard-nav-links,
  .dashboard-theme .dashboard-nav-links.open {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .dashboard-theme .dashboard-nav-group {
    align-content: start;
    padding: 0;
  }

  .dashboard-theme .dashboard-nav-group + .dashboard-nav-group {
    padding-top: 0;
    border-top: 0;
  }

  .dashboard-theme .dashboard-head,
  .moderation-theme .dashboard-head {
    align-items: flex-start;
  }

  .dashboard-theme .dashboard-head .form-actions {
    margin-top: 0 !important;
  }

  .moderation-theme .moderation-page {
    padding-top: 28px;
  }
}

@media (max-width: 620px) {
  .auth-theme .auth-page {
    min-height: 0;
    padding: 30px 12px 46px;
  }

  .auth-theme .auth-card {
    border-radius: 19px;
    padding: 30px 20px 24px;
  }

  .auth-theme .auth-summary > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .dashboard-theme .dashboard-shell {
    padding-top: 16px;
    padding-bottom: 52px;
  }

  .dashboard-theme .dashboard-business-switch {
    grid-template-columns: 1fr;
  }

  .dashboard-theme .dashboard-business-switch .button {
    width: 100%;
  }

  .dashboard-theme .dashboard-nav-links,
  .dashboard-theme .dashboard-nav-links.open {
    grid-template-columns: 1fr;
  }

  .dashboard-theme .dashboard-head,
  .moderation-theme .dashboard-head {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 22px;
  }

  .dashboard-theme .dashboard-head h1,
  .moderation-theme .dashboard-head h1 {
    font-size: clamp(29px, 10vw, 38px);
  }

  .dashboard-theme .dashboard-head > .button,
  .moderation-theme .dashboard-head > .button,
  .dashboard-theme .dashboard-head > form,
  .dashboard-theme .dashboard-head > form .button {
    width: 100%;
  }

  .dashboard-theme .dashboard-head .form-actions {
    width: 100%;
    flex-direction: column !important;
  }

  .dashboard-theme .dashboard-head .form-actions .button {
    width: 100%;
  }

  .dashboard-theme .stat-grid,
  .moderation-theme .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .dashboard-theme .stat-grid article,
  .moderation-theme .stat-grid article {
    padding: 14px;
  }

  .dashboard-theme .panel,
  .moderation-theme .panel {
    border-radius: 16px;
    padding: 17px 14px;
  }

  .dashboard-theme .notice,
  .moderation-theme .notice {
    border-radius: 14px;
    padding: 15px 14px;
  }

  .dashboard-theme .dashboard-task > .button,
  .dashboard-theme .dashboard-task > a.button {
    width: 100%;
  }

  .dashboard-theme .form-section {
    border-radius: 15px;
    padding: 18px 13px 7px;
  }

  .dashboard-theme .form-actions {
    align-items: stretch;
    flex-direction: column !important;
  }

  .dashboard-theme .form-actions .button {
    width: 100%;
  }

  .dashboard-theme .table-wrap {
    margin-inline: -2px;
    border-radius: 13px;
  }

  .dashboard-theme .table-wrap table {
    min-width: 700px;
  }

  .dashboard-theme .table-wrap th,
  .dashboard-theme .table-wrap td {
    padding: 11px 12px;
  }

  .dashboard-theme .outlet-card,
  .moderation-theme .moderation-list > article {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-theme .outlet-actions,
  .moderation-theme .moderation-list > article .button {
    width: 100%;
  }

  .dashboard-theme .outlet-actions .button,
  .dashboard-theme .outlet-actions form,
  .dashboard-theme .outlet-actions form .button {
    width: 100%;
  }

  .moderation-theme .moderation-sections {
    display: grid;
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .moderation-theme .moderation-sections a {
    justify-content: space-between;
    border-radius: 11px;
  }

  .dashboard-theme .pagination,
  .moderation-theme .pagination {
    flex-wrap: wrap;
  }

  .dashboard-theme .pagination .button,
  .moderation-theme .pagination .button {
    flex: 1 1 120px;
    min-width: 0;
  }
}

@media (max-width: 380px) {
  .dashboard-theme .stat-grid,
  .moderation-theme .stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-theme .quick-actions a,
  .dashboard-theme .button,
  .auth-theme .button,
  .moderation-theme .button {
    transition: none;
  }
}

@media (forced-colors: active) {
  .dashboard-theme .notice,
  .dashboard-theme .status,
  .dashboard-theme .dashboard-nav-links a[aria-current="page"],
  .auth-theme .auth-card,
  .moderation-theme .moderation-section {
    border: 2px solid CanvasText;
  }
}
