:root {
  --bg: #f4f6f7;
  --panel: #ffffff;
  --text: #182025;
  --muted: #66757f;
  --line: #dfe6ea;
  --line-soft: #edf2f4;
  --primary: #156f5b;
  --primary-dark: #0e5646;
  --primary-soft: #e8f4ef;
  --warn: #b66a00;
  --danger: #b84242;
  --blue: #2f6ea3;
  --shadow: 0 12px 28px rgba(24, 32, 37, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

[hidden] {
  display: none !important;
}

.is-hidden {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

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

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  width: 100%;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  background: #10231f;
  color: #fff;
  overflow-y: auto;
  padding: 20px 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 0 4px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  background: #e0b35a;
}

.brand span {
  display: block;
  color: #a7b7b1;
  margin-top: 2px;
  font-size: 12px;
}

nav {
  display: grid;
  gap: 6px;
}

.nav-btn {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 11px 14px;
  background: transparent;
  color: #d8e4df;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-btn:hover {
  background: #18332e;
  color: #fff;
}

.nav-btn.active {
  background: #21463e;
  color: #fff;
  font-weight: 700;
}

main {
  min-width: 0;
  width: 100%;
  min-height: 100vh;
  padding: 24px 28px 36px;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 24px;
  letter-spacing: 0;
}

.topbar p {
  color: var(--muted);
  margin-top: 6px;
}

.top-actions,
.toolbar,
.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.top-actions {
  justify-content: flex-end;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  color: var(--muted);
  white-space: nowrap;
}

.primary-button,
.ghost-button,
.danger-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 40px;
  padding: 8px 12px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
  text-align: left;
}

.link-button:hover {
  text-decoration: underline;
}

.primary-button {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.primary-button:hover {
  background: var(--primary-dark);
}

.ghost-button.active-filter {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.danger-button {
  border-color: #f0cdcd;
  color: var(--danger);
}

.icon-button {
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.stat-card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 15px 16px;
}

.stat-card span {
  color: var(--muted);
}

.stat-card strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  letter-spacing: 0;
}

.panel {
  padding: 15px;
  margin-bottom: 14px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.panel-head h2 {
  font-size: 18px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

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

th {
  color: var(--muted);
  font-weight: 650;
  background: #f8fafb;
}

tbody tr:hover {
  background: #fbfdfc;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  background: #edf2f4;
  color: #38505b;
  white-space: nowrap;
}

.badge.available,
.badge.settled {
  background: #e4f4ed;
  color: #176245;
}

.badge.rented,
.badge.active,
.badge.reserved,
.badge.sesame {
  background: #e8f0fa;
  color: #255b8d;
}

.badge.maintenance,
.badge.partial,
.badge.manual_waive {
  background: #fff1d8;
  color: var(--warn);
}

.badge.retired,
.badge.cancelled,
.badge.unpaid {
  background: #fae7e7;
  color: var(--danger);
}

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

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 5px;
  color: var(--muted);
}

.field-block {
  display: grid;
  gap: 5px;
  color: var(--muted);
}

.inline-filter {
  min-width: 220px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 40px;
  padding: 8px 10px;
  background: #fff;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(21, 111, 91, 0.12);
}

.search-input {
  min-width: min(340px, 100%);
}

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

.upload-field {
  display: grid;
  gap: 10px;
}

.upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.product-image-preview {
  width: min(220px, 100%);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf2f4;
}

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

.device-picker {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfdfc;
}

.product-picker-field {
  display: grid;
  gap: 8px;
}

.product-picker-list {
  max-height: 220px;
}

.picker-row {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  color: var(--text);
  text-align: left;
}

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

.picker-row:hover,
.picker-row.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.profit-filter-grid {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(140px, 0.8fr) minmax(170px, 1fr) minmax(220px, 1.3fr) minmax(170px, 1fr);
  align-items: end;
  gap: 12px;
  margin: 12px 0;
}

.filter-box {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 180px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fafcfc;
}

.filter-box strong {
  font-size: 13px;
}

.multi-select {
  position: relative;
}

.multi-select-field {
  min-width: 0;
}

.multi-select summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.multi-select summary::-webkit-details-marker {
  display: none;
}

.multi-select summary::after {
  content: "⌄";
  color: var(--muted);
  font-size: 14px;
}

.multi-select summary span {
  color: var(--text);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.multi-select[open] summary {
  border-color: var(--primary);
  outline: 3px solid rgba(21, 111, 91, 0.12);
}

.multi-select-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(24, 32, 37, 0.16);
}

.compact-check {
  font-size: 13px;
}

.compact-empty {
  padding: 10px;
}

.profit-actions {
  margin-bottom: 12px;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.config-grid div,
.integration-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fbfa;
}

.config-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.config-grid strong {
  display: block;
  word-break: break-all;
}

.status-line {
  color: var(--text);
  margin-bottom: 6px;
}

.check-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--text);
}

.check-row input {
  width: auto;
  margin-top: 3px;
}

dialog {
  width: min(820px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

dialog::backdrop {
  background: rgba(17, 35, 31, 0.45);
}

.modal-card {
  padding: 0;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

#modalBody {
  padding: 16px;
  max-height: 70vh;
  overflow: auto;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.bind-phone-card {
  width: min(420px, calc(100vw - 32px));
}

.bind-phone-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.muted {
  color: var(--muted);
}

.money {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.qr-cell {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.qr-cell img {
  width: 86px;
  height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qr-modal {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: center;
}

.qr-modal img {
  width: 260px;
  height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qr-modal h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.qr-modal p {
  margin-top: 8px;
}

.public-link {
  word-break: break-all;
  margin-bottom: 14px;
}

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #11231f;
  padding: 20px;
}

.login-card {
  width: min(380px, 100%);
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--panel);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.login-brand {
  color: var(--text);
  margin-bottom: 6px;
}

.login-brand span {
  color: var(--muted);
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 8px;
}

.captcha-image-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  background: #f8fbfa;
}

.captcha-image-button img {
  display: block;
  width: 120px;
  height: 42px;
}

.catalog-page {
  min-height: 100vh;
  background: #eef3f1;
}

.catalog-page .primary-button,
.catalog-page .ghost-button {
  min-height: 40px;
}

.store-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.store-topbar,
.store-nav,
.category-nav,
.store-main {
  max-width: 1200px;
  margin: 0 auto;
}

.store-topbar {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 34px;
  padding: 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.store-topbar strong {
  color: var(--primary);
}

.store-topbar a {
  margin-left: auto;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.store-nav {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
}

.store-logo {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
}

.store-logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.store-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.store-search button,
.category-nav button,
.category-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.store-search button {
  min-height: 40px;
  padding: 0 14px;
}

.category-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 20px 14px;
}

.category-nav button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 12px;
  white-space: nowrap;
}

.category-nav button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.store-main {
  padding: 20px 20px 44px;
}

.store-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 16px;
  padding: 38px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(17, 35, 31, 0.95), rgba(17, 35, 31, 0.72)),
    url("https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1600&q=80") center / cover;
  color: #fff;
}

.store-hero h1 {
  max-width: 660px;
  margin: 8px 0 12px;
  font-size: 42px;
  line-height: 1.12;
}

.store-hero p {
  max-width: 620px;
  color: #c6d4cf;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-panel {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel span {
  color: #9fd4bf;
}

.hero-panel strong {
  font-size: 54px;
  line-height: 1;
}

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

.trust-strip div {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.trust-strip strong {
  font-size: 16px;
}

.trust-strip span {
  color: var(--muted);
}

.catalog-feature,
.catalog-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.catalog-feature {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 24px;
  margin-bottom: 16px;
}

.catalog-feature > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #edf2f4;
}

.catalog-feature h2 {
  font-size: 30px;
  margin-bottom: 16px;
}

.catalog-meta {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 6px;
}

.catalog-rates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 180px));
  gap: 12px;
  margin-bottom: 16px;
}

.catalog-rates div,
.catalog-price,
.catalog-detail,
.catalog-card-rates div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fbfa;
}

.catalog-rates span,
.catalog-price span,
.catalog-detail span,
.catalog-card-rates span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.catalog-rates strong,
.catalog-price strong,
.catalog-detail strong,
.catalog-card-rates strong {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.catalog-section {
  padding: 16px;
}

.catalog-section-head {
  display: grid;
  grid-template-columns: minmax(180px, max-content) minmax(220px, 1fr);
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.catalog-section-head select {
  justify-self: end;
  max-width: 100%;
}

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

.category-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.category-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  text-align: left;
}

.category-card strong {
  font-size: 18px;
}

.category-card span {
  color: var(--muted);
}

.catalog-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.catalog-card-media {
  position: relative;
  overflow: hidden;
  margin: -14px -14px 0;
  border-radius: 8px 8px 0 0;
  background: #edf2f4;
}

.catalog-card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

.catalog-card-media span {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.catalog-card h3 {
  font-size: 18px;
}

.catalog-card-rates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.catalog-card-actions {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.catalog-accessories {
  color: var(--text);
  line-height: 1.6;
}

.catalog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.catalog-tags span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
}

.catalog-empty {
  grid-column: 1 / -1;
  padding: 36px;
  color: var(--muted);
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.process-section div {
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfdfc;
}

.process-section span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.process-section strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}

.process-section p {
  color: var(--muted);
}

.catalog-order-body {
  display: grid;
  gap: 14px;
  padding: 16px;
  max-height: 72vh;
  overflow: auto;
}

.order-product-summary {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.order-product-summary h3 {
  margin-bottom: 10px;
}

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

.order-estimate span {
  padding: 12px;
  border-radius: 8px;
  background: #f8fbfa;
  color: var(--muted);
}

.order-estimate strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 18px;
}

@media (max-width: 880px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    height: auto;
    min-height: auto;
    padding: 12px;
  }

  .brand {
    margin-bottom: 10px;
  }

  nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-btn {
    flex: 0 0 auto;
    text-align: center;
    padding: 9px 10px;
    white-space: nowrap;
  }

  main {
    padding: 16px;
  }

  .topbar,
  .panel-head,
  .store-topbar,
  .store-nav,
  .store-hero,
  .catalog-section-head {
    display: grid;
  }

  .stats-grid,
  .grid-2,
  .form-grid,
  .config-grid,
  .qr-modal,
  .trust-strip,
  .catalog-feature,
  .catalog-rates,
  .catalog-grid,
  .category-card-grid,
  .process-section,
  .order-estimate {
    grid-template-columns: 1fr;
  }

  .store-topbar a {
    margin-left: 0;
  }

  .store-nav {
    grid-template-columns: 1fr;
  }

  .store-hero {
    padding: 24px;
  }

  .store-hero h1 {
    font-size: 32px;
  }

  .catalog-card-actions {
    grid-template-columns: 1fr;
  }

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

  .top-actions,
  .toolbar {
    justify-content: flex-start;
  }

  .qr-modal img {
    width: min(260px, 100%);
    height: auto;
  }

  .catalog-feature h2 {
    font-size: 24px;
  }
}

@media (max-width: 560px) {
  .profit-filter-grid {
    grid-template-columns: 1fr;
  }

  .primary-button,
  .ghost-button,
  .danger-button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

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

  .captcha-image-button,
  .captcha-image-button img {
    width: 100%;
  }

  .row-actions .primary-button,
  .row-actions .ghost-button,
  .row-actions .danger-button {
    width: auto;
  }
}
