:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  --bg: #05070b;
  --card: rgba(9, 20, 32, 0.88);
  --card-solid: #0a1420;
  --card-soft: rgba(12, 28, 44, 0.72);
  --text: #e9fbff;
  --muted: #8ba9b7;
  --line: rgba(78, 218, 255, 0.2);
  --line-strong: rgba(83, 244, 255, 0.46);
  --blue: #39d9ff;
  --green: #32f29a;
  --yellow: #facc15;
  --red: #fb7185;
  --gray: #95a3b8;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.42);
  --glow-blue: 0 0 24px rgba(57, 217, 255, 0.24);
  --glow-green: 0 0 22px rgba(50, 242, 154, 0.22);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(57, 217, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 217, 255, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, #05070b 0%, #07111c 42%, #03110f 100%);
  background-size: 48px 48px, 48px 48px, auto;
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(57, 217, 255, 0.12), transparent 22%),
    linear-gradient(115deg, transparent 0 55%, rgba(50, 242, 154, 0.08) 56%, transparent 72%);
}

body.auth-checking .topbar,
body.auth-checking main,
body.auth-locked .topbar,
body.auth-locked main {
  display: none;
}

body.auth-ready .login-overlay {
  display: none;
}

a {
  color: var(--blue);
  font-weight: 800;
  text-decoration-color: rgba(57, 217, 255, 0.55);
  text-underline-offset: 3px;
}

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

h1 {
  margin-bottom: 8px;
  font-size: 30px;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(57, 217, 255, 0.18);
}

button {
  position: relative;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(57, 217, 255, 0.18);
  border-radius: 8px;
  background: rgba(22, 44, 66, 0.82);
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  padding: 11px 16px;
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease,
    opacity 140ms ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

button:hover:not(:disabled) {
  border-color: rgba(57, 217, 255, 0.56);
  box-shadow: var(--glow-blue);
  transform: translateY(-1px);
}

button:active:not(:disabled),
button.clicked:not(:disabled) {
  transform: translateY(1px) scale(0.98);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.34);
}

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

button.is-loading {
  opacity: 0.82;
  pointer-events: none;
}

button.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

button.primary {
  border-color: rgba(57, 217, 255, 0.72);
  background: linear-gradient(135deg, #0597c4, #1d6bff);
  color: #ffffff;
  box-shadow: 0 0 24px rgba(57, 217, 255, 0.22);
}

button.warning {
  border-color: rgba(250, 204, 21, 0.42);
  background: rgba(84, 62, 10, 0.72);
  color: #ffe88a;
}

button.ghost {
  border-color: rgba(149, 163, 184, 0.24);
  background: rgba(15, 29, 44, 0.8);
  color: #c4d4df;
}

button.danger,
button.ghost.danger {
  border-color: rgba(251, 113, 133, 0.38);
  color: #ff9ead;
}

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

.login-overlay {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(57, 217, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 217, 255, 0.06) 1px, transparent 1px),
    linear-gradient(145deg, #03070c 0%, #07131f 52%, #031410 100%);
  background-size: 42px 42px, 42px 42px, auto;
  overflow: hidden;
}

.login-card {
  width: min(460px, 100%);
  position: relative;
  overflow: hidden;
  background: rgba(8, 19, 31, 0.9);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow), var(--glow-blue);
}

.login-card::before,
.topbar::before,
.panel::before,
.stat::before,
.current-panel::before,
.progress-item::before,
.candidate-card::before,
.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(57, 217, 255, 0.72), transparent);
  pointer-events: none;
}

.login-card h1 {
  font-size: 28px;
}

.login-subtitle {
  color: var(--muted);
  line-height: 1.6;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 900;
}

.login-form input {
  width: 100%;
  border: 1px solid rgba(57, 217, 255, 0.2);
  border-radius: 8px;
  background: rgba(3, 10, 18, 0.78);
  color: var(--text);
  padding: 13px 14px;
  font-size: 16px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.login-form input::placeholder {
  color: #627987;
}

.login-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(57, 217, 255, 0.14);
}

.login-error {
  min-height: 22px;
  margin: 0;
  color: var(--red);
  font-weight: 900;
}

.login-ad {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    linear-gradient(rgba(57, 217, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 217, 255, 0.08) 1px, transparent 1px),
    rgba(2, 7, 12, 0.93);
  background-size: 36px 36px, 36px 36px, auto;
  color: #f2fdff;
  text-align: center;
  font-size: clamp(42px, 10vw, 132px);
  font-weight: 1000;
  letter-spacing: 0;
  text-shadow:
    0 0 12px rgba(57, 217, 255, 0.92),
    0 0 38px rgba(50, 242, 154, 0.34),
    0 12px 34px rgba(0, 0, 0, 0.84);
}

.login-ad.active {
  display: flex;
  animation: niubiAd 2.2s ease both;
}

@keyframes niubiAd {
  0% {
    opacity: 0;
    transform: scale(0.72) rotate(-2deg);
    filter: blur(6px);
  }
  18% {
    opacity: 1;
    transform: scale(1.08) rotate(0deg);
    filter: blur(0);
  }
  62% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.16);
  }
}

.topbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding: 24px clamp(16px, 4vw, 40px);
  background: rgba(6, 14, 24, 0.88);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 840px;
  line-height: 1.7;
}

main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px clamp(16px, 4vw, 40px) 44px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 560px;
}

.notice,
.stat,
.panel,
.current-panel,
.progress-item,
.product-card,
.candidate-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
}

.notice {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 16px;
  color: #d8fbff;
  background: rgba(8, 28, 42, 0.74);
  border: 1px solid rgba(57, 217, 255, 0.26);
}

.notice span {
  color: #98bfcc;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 10px;
}

.stat {
  min-height: 116px;
  padding: 15px;
}

.stat span,
.current-panel span,
.progress-item label {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.stat strong {
  font-size: 28px;
  color: var(--text);
  text-shadow: 0 0 16px rgba(57, 217, 255, 0.14);
}

.status-running,
.agent-idle {
  color: var(--blue) !important;
}

.status-paused {
  color: var(--yellow) !important;
}

.status-completed,
.agent-online,
.agent-collecting,
.agent-uploading {
  color: var(--green) !important;
}

.status-failed,
.agent-error {
  color: var(--red) !important;
}

.status-idle,
.agent-offline {
  color: var(--gray) !important;
}

.current-panel {
  display: grid;
  grid-template-columns: 180px minmax(260px, 1fr) minmax(260px, 1fr);
  gap: 14px;
  margin-top: 12px;
  padding: 14px;
}

.progress-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.progress-item {
  padding: 12px;
}

.progress {
  height: 10px;
  background: rgba(148, 163, 184, 0.16);
  border: 1px solid rgba(57, 217, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--green));
  box-shadow: var(--glow-blue);
  transition: width 200ms ease;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(760px, 1fr) 360px;
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}

.panel {
  padding: 16px;
}

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

.panel-title h2,
.section-title h2 {
  margin-bottom: 4px;
  font-size: 20px;
  color: #f1fdff;
}

.panel-title p,
.section-title p,
.empty,
.candidate-meta,
.notes {
  color: var(--muted);
}

.logs {
  height: 560px;
  overflow: auto;
  padding: 8px;
  background: rgba(2, 8, 16, 0.72);
  border: 1px solid rgba(57, 217, 255, 0.14);
  border-radius: 8px;
}

.logs::-webkit-scrollbar,
.candidates::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.logs::-webkit-scrollbar-thumb,
.candidates::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(57, 217, 255, 0.32);
}

.log-line {
  display: grid;
  grid-template-columns: 76px 58px 1fr;
  gap: 8px;
  align-items: start;
  padding: 9px 8px;
  border-bottom: 1px solid rgba(57, 217, 255, 0.1);
  color: #dff8ff;
  font-size: 13px;
  line-height: 1.5;
}

.log-line p {
  margin: 0;
  word-break: break-word;
}

.log-line strong {
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(57, 217, 255, 0.14);
  color: #8debff;
}

.log-time {
  color: #bad5df;
  font-variant-numeric: tabular-nums;
}

.log-line.success strong {
  background: rgba(50, 242, 154, 0.14);
  color: #85ffc5;
}

.log-line.warning strong {
  background: rgba(250, 204, 21, 0.14);
  color: #ffeb82;
}

.log-line.error strong {
  background: rgba(251, 113, 133, 0.16);
  color: #ff9ead;
}

.candidates,
.products {
  display: grid;
  gap: 12px;
}

.candidates {
  grid-template-columns: 1fr;
  gap: 14px;
  max-height: 780px;
  overflow: auto;
  padding-right: 4px;
}

.candidate-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
}

.candidate-card.blocked {
  border-color: rgba(251, 113, 133, 0.45);
  background: rgba(54, 13, 22, 0.66);
}

.candidate-image-wrap,
.cutout-wrap {
  display: grid;
  gap: 6px;
}

.candidate-image-wrap span,
.cutout-wrap span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.candidate-image-wrap img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(57, 217, 255, 0.16);
}

.candidate-head {
  display: flex;
  gap: 8px;
  align-items: start;
  margin-bottom: 6px;
}

.candidate-head h3 {
  flex: 1;
  margin-bottom: 0;
  min-width: 0;
  font-size: 16px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  color: #f0fbff;
}

.candidate-head span,
.badge,
.score {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 99px;
  padding: 5px 8px;
  background: rgba(57, 217, 255, 0.11);
  border: 1px solid rgba(57, 217, 255, 0.18);
  color: #9eeeff;
  font-weight: 900;
  font-size: 12px;
}

.candidate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 12px;
}

.candidate-meta span {
  border-radius: 999px;
  background: rgba(3, 12, 20, 0.62);
  border: 1px solid rgba(57, 217, 255, 0.12);
  padding: 4px 7px;
}

.candidate-reason {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.candidate-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.candidate-footer a {
  font-size: 13px;
}

.candidate-footer button {
  padding: 7px 9px;
  font-size: 12px;
}

.debug-box {
  margin: 10px 0 12px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(2, 12, 21, 0.58);
  border: 1px solid rgba(50, 242, 154, 0.18);
}

.debug-header {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.debug-header strong {
  color: #8fffd0;
  font-size: 13px;
}

.debug-header span,
.debug-label {
  color: var(--muted);
  font-size: 12px;
}

.debug-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) 170px minmax(320px, 1.6fr);
  gap: 12px;
  align-items: start;
}

.debug-grid b {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  color: #effcff;
}

.debug-grid p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.debug-grid img,
.cutout-placeholder {
  display: block;
  width: 150px;
  height: 150px;
  margin-top: 4px;
  border-radius: 8px;
  border: 1px solid rgba(57, 217, 255, 0.16);
  object-fit: contain;
  background: #08111d;
}

.cutout-placeholder,
.source-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.source-list {
  min-width: 0;
}

.source-list a {
  display: grid;
  grid-template-columns: 30px 62px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  max-width: 100%;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  margin-top: 4px;
  padding: 8px;
  border-radius: 6px;
  background: rgba(8, 29, 44, 0.78);
  border: 1px solid rgba(57, 217, 255, 0.16);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  text-decoration: none;
}

.source-rank {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(50, 242, 154, 0.16);
  color: #9fffd5;
  font-weight: 900;
}

.source-thumb {
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 6px;
  border: 1px solid rgba(57, 217, 255, 0.16);
  background: #08111d;
  object-fit: cover;
}

.source-thumb-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.source-body {
  min-width: 0;
}

.source-body b,
.source-body small,
.source-body em,
.source-score,
.source-reason {
  display: block;
}

.source-body b {
  color: #b3f5ff;
}

.source-body small {
  margin-top: 2px;
  color: #d7eef5;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.source-score {
  margin-top: 2px;
  color: #8fffd0;
  font-size: 12px;
  font-weight: 900;
}

.source-reason {
  margin-top: 2px;
  color: #ffdd80;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.source-body em {
  margin-top: 2px;
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
  word-break: break-all;
}

.product-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 16px;
  border-left: 6px solid var(--gray);
}

.product-card.recommend {
  border-left-color: var(--green);
}

.product-card.caution,
.product-card.manual_check {
  border-left-color: var(--yellow);
}

.product-card.reject {
  border-left-color: var(--red);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(57, 217, 255, 0.14);
}

.product-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.product-card.recommend .badge {
  background: rgba(50, 242, 154, 0.16);
  color: #99ffcf;
}

.product-card.caution .badge,
.product-card.manual_check .badge {
  background: rgba(250, 204, 21, 0.16);
  color: #ffea83;
}

.product-card.reject .badge {
  background: rgba(251, 113, 133, 0.16);
  color: #ffa5b2;
}

.product-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
  color: #f2fdff;
}

.rakuten-link {
  display: inline-block;
  margin-bottom: 12px;
}

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

.metrics span,
.offers a,
.offers span {
  background: rgba(3, 12, 20, 0.62);
  border: 1px solid rgba(57, 217, 255, 0.12);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 14px;
}

.offers,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.notes {
  margin: 12px 0 0;
}

.empty {
  padding: 28px;
  text-align: center;
  background: rgba(3, 12, 20, 0.5);
  border: 1px dashed rgba(57, 217, 255, 0.24);
  border-radius: 8px;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  padding: 12px 14px;
  border: 1px solid rgba(57, 217, 255, 0.24);
  border-radius: 8px;
  background: rgba(8, 19, 31, 0.94);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.5;
  animation: toastIn 160ms ease-out;
}

.toast.success {
  border-color: rgba(50, 242, 154, 0.36);
}

.toast.warning {
  border-color: rgba(250, 204, 21, 0.36);
}

.toast.error {
  border-color: rgba(251, 113, 133, 0.42);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(1, 6, 12, 0.78);
  backdrop-filter: blur(10px);
}

.modal-card {
  width: min(980px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
  padding: 22px;
  background: rgba(8, 19, 31, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow), var(--glow-blue);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.modal-head h2 {
  margin-bottom: 4px;
}

.modal-head p {
  margin-bottom: 0;
  color: var(--muted);
}

.user-create-form {
  display: grid;
  grid-template-columns: 1fr 1fr 150px auto;
  gap: 10px;
  margin-bottom: 14px;
}

.user-create-form input,
.user-create-form select,
.user-row input,
.user-row select {
  min-width: 0;
  border: 1px solid rgba(57, 217, 255, 0.18);
  border-radius: 8px;
  background: rgba(3, 10, 18, 0.78);
  color: var(--text);
  padding: 11px 12px;
  font-size: 14px;
  outline: none;
}

.user-create-form input::placeholder,
.user-row input::placeholder {
  color: #6d8291;
}

.users-list {
  display: grid;
  gap: 10px;
}

.user-row {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) 140px minmax(150px, 0.8fr) auto auto auto;
  gap: 8px;
  align-items: center;
  padding: 12px;
  background: rgba(3, 12, 20, 0.62);
  border: 1px solid rgba(57, 217, 255, 0.14);
  border-radius: 8px;
}

.user-row strong,
.user-row span,
.user-row small {
  display: block;
}

.user-row strong {
  color: #f2fdff;
  font-size: 16px;
}

.user-row span {
  margin-top: 3px;
  color: #9eeeff;
  font-size: 13px;
  font-weight: 800;
}

.user-row small {
  margin-top: 3px;
  color: var(--muted);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .dashboard,
  .progress-grid,
  .metrics,
  .debug-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workspace-grid,
  .current-panel {
    grid-template-columns: 1fr;
  }

  .logs,
  .candidates {
    max-height: none;
  }
}

@media (max-width: 700px) {
  .topbar,
  .product-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dashboard,
  .progress-grid,
  .metrics,
  .candidates,
  .debug-grid {
    grid-template-columns: 1fr;
  }

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

  .actions {
    justify-content: stretch;
  }

  .actions button {
    width: 100%;
  }

  .user-create-form,
  .user-row {
    grid-template-columns: 1fr;
  }
}
