:root {
  font-family: Inter, "Microsoft YaHei", sans-serif;
  color: #17211e;
  background: #f2f5f3;
  line-height: 1.5;
  letter-spacing: 0;
  --green: #123d34;
  --green-2: #17634f;
  --mint: #e0efe9;
  --coral: #e76049;
  --ink-muted: #63706b;
  --line: #d7dfdb;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: #f2f5f3; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }

.scanner-header {
  min-height: 68px;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.scanner-brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 6px; background: #fff; color: var(--green); font-size: 20px; font-weight: 900; }
.scanner-brand span, .scanner-brand strong, .scanner-brand small { display: block; }
.scanner-brand strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scanner-brand small { color: #bcd4cb; font-size: 11px; margin-top: 1px; }
.operator { display: flex; align-items: center; gap: 10px; font-size: 12px; white-space: nowrap; }
.operator form { margin: 0; }
.operator button, .operator a { border: 1px solid rgba(255,255,255,.35); color: #fff; background: transparent; padding: 6px 9px; border-radius: 6px; text-decoration: none; }

.scanner-shell { width: min(760px, 100%); margin: 0 auto; padding: 28px 18px calc(42px + env(safe-area-inset-bottom)); }
.scanner-intro { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 22px; }
.scanner-intro h1 { margin: 2px 0 0; font-size: 29px; line-height: 1.2; }
.scanner-intro > p { max-width: 340px; margin: 0; color: var(--ink-muted); font-size: 13px; }
.eyebrow { margin: 0; color: var(--green-2); font-size: 11px; font-weight: 800; text-transform: uppercase; }

.store-field { display: grid; gap: 7px; margin-bottom: 18px; color: #46534e; font-size: 13px; font-weight: 700; }
.store-field select, .manual-form input, .redeem-controls input {
  width: 100%; border: 1px solid #cbd5d0; border-radius: 7px; background: #fff; color: #17211e; padding: 11px 12px;
}
.store-field select:focus, .manual-form input:focus, .redeem-controls input:focus { outline: 3px solid #cfe5dc; border-color: var(--green-2); }

.camera-section, .manual-section, .result-section, .today-section { border-top: 1px solid var(--line); padding: 22px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; }
.section-heading h2 { margin: 2px 0 0; font-size: 18px; }
.state-chip { border: 1px solid var(--line); color: var(--ink-muted); background: #fff; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 700; }
.state-chip.is-live { border-color: #8fc9b4; background: var(--mint); color: var(--green-2); }

.camera-viewport { position: relative; width: 100%; overflow: hidden; background: #14201c; aspect-ratio: 4 / 3; max-height: 500px; display: grid; place-items: center; }
.camera-viewport video { width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.camera-viewport.is-running video { opacity: 1; }
#camera-placeholder { position: absolute; width: 80%; text-align: center; color: #bac5c0; font-size: 13px; }
.scan-frame { position: absolute; width: min(62%, 290px); aspect-ratio: 1; }
.scan-frame i { position: absolute; width: 34px; height: 34px; border-color: #fff; border-style: solid; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.scan-frame i:nth-child(1) { top: 0; left: 0; border-width: 3px 0 0 3px; }
.scan-frame i:nth-child(2) { top: 0; right: 0; border-width: 3px 3px 0 0; }
.scan-frame i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 3px 3px; }
.scan-frame i:nth-child(4) { bottom: 0; right: 0; border-width: 0 3px 3px 0; }
.camera-actions { display: grid; grid-template-columns: 1fr; margin-top: 12px; }
.primary-action, .secondary-action, .manual-form button, .redeem-action { min-height: 44px; border: 0; border-radius: 7px; padding: 10px 15px; font-weight: 800; text-align: center; }
.primary-action, .redeem-action { color: #fff; background: var(--green-2); }
.secondary-action { color: var(--green); background: #e6ece9; }
.privacy-note { margin: 10px 0 0; color: var(--ink-muted); font-size: 11px; }

.manual-form { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.manual-form input { min-width: 0; text-transform: uppercase; font-family: Consolas, monospace; }
.manual-form button { color: #fff; background: #293832; }

.result-section { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 15px; align-items: start; }
.result-copy { grid-column: 1; grid-row: 1; }
.result-mark { grid-column: 2; grid-row: 1; justify-self: end; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #83908b; font-size: 24px; font-weight: 900; }
.result-copy h2 { margin: 3px 0 5px; font-size: 20px; }
.result-copy > p:not(.eyebrow) { color: var(--ink-muted); margin: 0; font-size: 13px; }
.is-valid .result-mark { background: var(--green-2); }
.is-success .result-mark { background: var(--green-2); }
.is-redeemed .result-mark { background: var(--coral); }
.is-error .result-mark { background: var(--coral); }
.is-loading .result-mark { background: #5b6b65; }
.result-copy dl { margin: 17px 0 0; border-top: 1px solid var(--line); }
.result-copy dl div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.result-copy dt { color: var(--ink-muted); }
.result-copy dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.redeem-controls { grid-column: 1 / -1; display: grid; gap: 11px; margin-top: 2px; }
.redeem-controls label { display: grid; gap: 6px; color: #46534e; font-size: 12px; font-weight: 700; }
.redeem-action { width: 100%; background: var(--coral); }
.confirmation-dialog {
  position: fixed; inset: 0; width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto;
  border: 0; border-radius: 8px; padding: 0; background: #fff; color: #17211e; box-shadow: 0 22px 70px rgba(18,61,52,.28);
}
.confirmation-dialog::backdrop { background: rgba(17,31,27,.58); }
.confirmation-dialog form { display: grid; gap: 18px; padding: 24px; }
.confirmation-dialog-heading { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: start; }
.confirmation-dialog-heading h2 { margin: 3px 0 0; font-size: 19px; line-height: 1.35; }
.confirmation-dialog-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #fbe5e1; color: #9b3525; font-size: 22px; font-weight: 900; }
.confirmation-dialog-message { margin: 0; color: #3e4b47; font-size: 13px; line-height: 1.7; }
.confirmation-dialog-details { display: grid; margin: 0; border-top: 1px solid var(--line); }
.confirmation-dialog-details > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.confirmation-dialog-details dt { color: var(--ink-muted); font-size: 12px; }
.confirmation-dialog-details dd { margin: 0; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.confirmation-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.confirmation-dialog-actions button { min-height: 42px; border: 0; border-radius: 7px; padding: 9px 12px; font-weight: 800; }
.confirmation-dialog-actions .secondary-action { border: 1px solid #cbd5d0; background: #fff; color: #34423d; }
.today-table-wrap { width: 100%; overflow-x: auto; border-top: 1px solid var(--line); }
.today-table { width: 100%; border-collapse: collapse; font-size: 12px; table-layout: fixed; }
.today-table th { color: #55625d; background: #e8eeeb; text-align: left; font-size: 11px; white-space: nowrap; }
.today-table th, .today-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.today-table th:first-child, .today-table td:first-child { width: 52%; }
.today-table th:nth-child(2), .today-table td:nth-child(2) { width: 22%; white-space: nowrap; }
.today-table th:nth-child(3), .today-table td:nth-child(3) { width: 26%; overflow-wrap: anywhere; }
.today-token { font-family: Consolas, monospace; overflow-wrap: anywhere; user-select: all; }
.today-empty { padding: 28px 10px !important; color: var(--ink-muted); text-align: center; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #e9efec; }
.login-shell { width: min(420px, 100%); border-top: 5px solid var(--green); background: #fff; padding: 32px; box-shadow: 0 18px 48px rgba(23,33,30,.12); }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 38px; }
.login-brand .brand-mark { color: #fff; background: var(--green); }
.login-brand strong, .login-brand small { display: block; }
.login-brand strong { font-size: 15px; }
.login-brand small { margin-top: 2px; color: var(--ink-muted); font-size: 11px; }
.login-copy h1 { margin: 4px 0 8px; font-size: 27px; line-height: 1.25; }
.login-copy > p:last-child, .error-shell > p { margin: 0; color: var(--ink-muted); font-size: 13px; }
.login-error { margin: 18px 0 0; padding: 10px 12px; border-left: 4px solid var(--coral); background: #fff0ed; color: #8c2f20; font-size: 13px; }
.login-form { display: grid; gap: 16px; margin-top: 24px; }
.login-form label { display: grid; gap: 7px; color: #46534e; font-size: 13px; font-weight: 700; }
.login-form input { width: 100%; border: 1px solid #cbd5d0; border-radius: 7px; padding: 11px 12px; color: #17211e; background: #fff; }
.login-form input:focus { outline: 3px solid #cfe5dc; border-color: var(--green-2); }
.login-form button, .back-link { min-height: 44px; border: 0; border-radius: 7px; padding: 11px 15px; background: var(--green-2); color: #fff; font-weight: 800; text-align: center; text-decoration: none; }
.error-shell h1 { margin: 5px 0; font-size: 48px; }
.back-link { display: grid; place-items: center; margin-top: 24px; }

.admin-page { background: #f5f7f6; }
.admin-shell { width: min(1180px, 100%); margin: 0 auto; padding: 28px 22px 48px; }
.admin-title { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.admin-title h1 { margin: 2px 0 0; font-size: 28px; line-height: 1.2; }
.admin-title > p { margin: 0; color: var(--ink-muted); font-size: 12px; }
.admin-messages { display: grid; gap: 8px; margin-bottom: 16px; }
.admin-message { margin: 0; padding: 10px 12px; border-left: 4px solid #7a8882; background: #eef2f0; color: #33413c; font-size: 13px; }
.admin-message.is-success { border-color: var(--green-2); background: #e5f2ed; color: #145240; }
.admin-message.is-error { border-color: var(--coral); background: #fff0ed; color: #8c2f20; }
.admin-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); }
.admin-tabs button { min-height: 42px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #53605b; padding: 8px 18px; font-weight: 800; }
.admin-tabs button.is-active { border-bottom-color: var(--green-2); color: var(--green); }
.admin-panel { padding-top: 24px; }
.panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 2px 0 0; font-size: 20px; }
.panel-heading > span { color: var(--ink-muted); font-size: 12px; }
.admin-form { display: grid; gap: 18px; padding: 22px 0; }
.admin-form label, .stats-filter label, .account-row label { display: grid; gap: 6px; color: #46534e; font-size: 12px; font-weight: 700; min-width: 0; }
.admin-form input, .admin-form select, .admin-form textarea, .stats-filter input, .stats-filter select, .account-row input, .account-row select {
  width: 100%; min-width: 0; border: 1px solid #cbd5d0; border-radius: 6px; background: #fff; color: #17211e; padding: 10px 11px;
}
.admin-form textarea { resize: vertical; min-height: 210px; font-family: Consolas, "Microsoft YaHei", monospace; line-height: 1.65; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus, .stats-filter input:focus, .stats-filter select:focus, .account-row input:focus, .account-row select:focus {
  outline: 3px solid #cfe5dc; border-color: var(--green-2);
}
.form-grid { display: grid; gap: 14px; align-items: end; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }
.form-grid-user { grid-template-columns: 1.1fr 1.1fr .8fr 1.2fr 1.2fr auto; }
.date-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.import-actions { display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.import-actions .primary-action { min-width: 150px; }
.upload-field { position: relative; max-width: 430px; }
.upload-field input { padding: 8px; }
.upload-field span { color: var(--ink-muted); font-size: 11px; font-weight: 500; overflow-wrap: anywhere; }
.security-note { margin: 0; padding: 11px 13px; border: 1px solid #c9ddd5; background: #edf6f2; color: #385047; font-size: 12px; }
.create-user-form { border-bottom: 1px solid var(--line); }
.create-store-form { border-bottom: 1px solid var(--line); }
.create-activity-form { border-bottom: 1px solid var(--line); }
.form-grid-store-create { grid-template-columns: 1fr 1.5fr auto; }
.form-grid-activity-create { grid-template-columns: 1fr 2fr auto; }
.account-list { display: grid; }
.account-row { display: grid; grid-template-columns: 1.1fr 1.2fr .75fr 1.25fr 1.15fr auto auto; gap: 10px; align-items: end; padding: 16px 0; border-bottom: 1px solid var(--line); }
.account-identity { align-self: center; min-width: 0; }
.account-identity strong, .account-identity span { display: block; overflow-wrap: anywhere; }
.account-identity strong { font-size: 13px; }
.account-identity span { margin-top: 3px; color: var(--ink-muted); font-size: 10px; }
.active-toggle { display: flex !important; align-items: center; gap: 7px !important; min-height: 41px; white-space: nowrap; }
.active-toggle input { width: 17px; height: 17px; margin: 0; accent-color: var(--green-2); }
.account-row .secondary-action { min-height: 41px; padding: 8px 14px; }
.store-list { display: grid; }
.store-row { display: grid; grid-template-columns: 1fr 1.5fr auto auto; gap: 12px; align-items: end; padding: 16px 0; border-bottom: 1px solid var(--line); }
.activity-list { display: grid; }
.activity-row { display: grid; grid-template-columns: 1fr 2fr auto auto; gap: 12px; align-items: end; padding: 16px 0; border-bottom: 1px solid var(--line); }
.store-row label, .activity-row label { display: grid; gap: 6px; color: #46534e; font-size: 12px; font-weight: 700; min-width: 0; }
.store-row input, .activity-row input { width: 100%; min-width: 0; border: 1px solid #cbd5d0; border-radius: 6px; background: #fff; color: #17211e; padding: 10px 11px; }
.store-row input:focus, .activity-row input:focus { outline: 3px solid #cfe5dc; border-color: var(--green-2); }
.relation-count { align-self: center; color: var(--ink-muted); font-size: 11px; white-space: nowrap; }
.row-actions { display: flex; gap: 7px; }
.row-actions button { min-height: 41px; border: 0; border-radius: 7px; padding: 8px 13px; font-weight: 800; }
.danger-action { color: #8c2f20; background: #fbe5e1; }
.empty-list { margin: 0; padding: 28px 0; color: var(--ink-muted); text-align: center; font-size: 13px; }
.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.summary-strip > div { padding: 18px 14px; border-right: 1px solid var(--line); }
.summary-strip > div:first-child { padding-left: 0; }
.summary-strip > div:last-child { border-right: 0; }
.summary-strip span, .summary-strip strong { display: block; }
.summary-strip span { color: var(--ink-muted); font-size: 11px; }
.summary-strip strong { margin-top: 3px; font-size: 24px; line-height: 1.2; }
.stats-filter { display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr auto; gap: 12px; align-items: end; padding: 18px 0; }
.stats-filter .secondary-action { min-height: 41px; padding: 8px 18px; }
.coupon-filter { display: grid; grid-template-columns: 1.4fr 1fr .8fr .8fr auto; gap: 12px; align-items: end; padding: 18px 0; }
.coupon-filter label { display: grid; gap: 6px; color: #46534e; font-size: 12px; font-weight: 700; min-width: 0; }
.coupon-filter input, .coupon-filter select { width: 100%; min-width: 0; border: 1px solid #cbd5d0; border-radius: 6px; background: #fff; color: #17211e; padding: 10px 11px; }
.coupon-filter input:focus, .coupon-filter select:focus { outline: 3px solid #cfe5dc; border-color: var(--green-2); }
.coupon-filter .secondary-action { min-height: 41px; padding: 8px 18px; }
.table-wrap { width: 100%; overflow-x: auto; border-top: 1px solid var(--line); }
.stats-table { width: 100%; min-width: 0; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.stats-table th { color: #55625d; background: #edf1ef; text-align: left; font-size: 11px; white-space: nowrap; }
.stats-table th, .stats-table td { padding: 11px clamp(6px, .7vw, 10px); border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.stats-table td small { display: block; margin-top: 2px; color: var(--ink-muted); }
.stats-table:not(.coupon-table):not(.audit-table) th:nth-child(1) { width: 6%; }
.stats-table:not(.coupon-table):not(.audit-table) th:nth-child(2) { width: 15%; }
.stats-table:not(.coupon-table):not(.audit-table) th:nth-child(3) { width: 16%; }
.stats-table:not(.coupon-table):not(.audit-table) th:nth-child(4) { width: 18%; }
.stats-table:not(.coupon-table):not(.audit-table) th:nth-child(5) { width: 14%; }
.stats-table:not(.coupon-table):not(.audit-table) th:nth-child(6) { width: 13%; }
.stats-table:not(.coupon-table):not(.audit-table) th:nth-child(7) { width: 18%; }
.coupon-table th:nth-child(1) { width: 5%; }
.coupon-table th:nth-child(2) { width: 21%; }
.coupon-table th:nth-child(3) { width: 10%; }
.coupon-table th:nth-child(4) { width: 8%; }
.coupon-table th:nth-child(5) { width: 8%; }
.coupon-table th:nth-child(6) { width: 18%; }
.coupon-table th:nth-child(7) { width: 16%; }
.coupon-table th:nth-child(8) { width: 8%; }
.coupon-table th:nth-child(9) { width: 6%; }
.coupon-table td strong { display: block; }
.status-label { display: inline-block; border-radius: 999px; padding: 3px 8px; background: #e8ecea; color: #4d5c56; font-size: 11px; font-weight: 800; white-space: nowrap; }
.status-label.is-active { background: #dff0e9; color: #145b46; }
.status-label.is-redeemed { background: #e5e9e7; color: #394641; }
.status-label.is-draft { background: #fff1d5; color: #775314; }
.status-label.is-void { background: #fbe5e1; color: #8c2f20; }
.table-action-form { margin: 0; }
.table-action-form button { min-height: 34px; border: 0; border-radius: 6px; padding: 6px 8px; font-weight: 800; }
.locked-text { color: var(--ink-muted); font-size: 11px; white-space: nowrap; }
.mono-cell { font-family: Consolas, monospace; }
.coupon-serial { display: block; font-size: 12px; }
.coupon-token { display: block; margin-top: 7px; color: #31423c; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; user-select: all; }
.coupon-token span { margin-right: 6px; color: var(--ink-muted); font-family: system-ui, sans-serif; user-select: none; }
.coupon-token em { color: var(--ink-muted); font-family: system-ui, sans-serif; font-style: normal; user-select: none; }
.empty-table { padding: 34px 10px !important; color: var(--ink-muted); text-align: center; }
.pagination-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; color: var(--ink-muted); font-size: 12px; }
.pagination-bar > div { display: flex; gap: 8px; }
.pagination-bar a { min-width: 66px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--green); padding: 7px 10px; text-align: center; text-decoration: none; font-weight: 700; }
.audit-table th:nth-child(1) { width: 17%; }
.audit-table th:nth-child(2) { width: 15%; }
.audit-table th:nth-child(3) { width: 56%; }
.audit-table th:nth-child(4) { width: 12%; }
.audit-table th:first-child, .audit-table td:first-child { white-space: nowrap; }

@media (max-width: 720px) {
  .coupon-table { min-width: 760px; }
}

@media (max-width: 650px) {
  .audit-table { min-width: 650px; }
}

@media (max-width: 620px) {
  .stats-table:not(.coupon-table):not(.audit-table) { min-width: 620px; }
}

@media (max-width: 560px) {
  .scanner-header { min-height: 62px; }
  .operator > span { display: none; }
  .scanner-shell { padding: 22px 14px calc(34px + env(safe-area-inset-bottom)); }
  .scanner-intro { display: block; }
  .scanner-intro h1 { font-size: 24px; }
  .scanner-intro > p { margin-top: 10px; }
  .camera-actions { grid-template-columns: 1fr; }
  .primary-action { grid-column: 1 / -1; }
  .result-section { grid-template-columns: minmax(0, 1fr) 40px; gap: 12px; }
  .result-mark { width: 40px; height: 40px; font-size: 20px; }
  .redeem-controls { grid-column: 1 / -1; }
  .confirmation-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .confirmation-dialog form { gap: 16px; padding: 20px 16px; }
  .confirmation-dialog-actions { grid-template-columns: 1fr; }
  .login-page { place-items: start center; padding: 0; background: #fff; }
  .login-shell { min-height: 100vh; padding: 26px 20px; box-shadow: none; }
  .admin-shell { padding: 22px 14px 36px; }
  .admin-title { display: block; }
  .admin-title > p { margin-top: 8px; }
  .admin-tabs { overflow-x: auto; }
  .admin-tabs button { flex: 1 0 auto; padding-inline: 14px; }
  .form-grid-2, .date-fields, .summary-strip, .stats-filter, .coupon-filter { grid-template-columns: 1fr; }
  .summary-strip > div { padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .summary-strip > div:last-child { border-bottom: 0; }
  .import-actions { display: grid; }
  .import-actions .primary-action, .upload-field { width: 100%; max-width: none; }
  .form-grid-user, .account-row, .form-grid-store-create, .store-row, .form-grid-activity-create, .activity-row { grid-template-columns: 1fr; }
  .account-row, .store-row, .activity-row { padding: 20px 0; }
  .row-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .pagination-bar { align-items: flex-start; flex-direction: column; }
}

@media (min-width: 561px) and (max-width: 980px) {
  .form-grid-user { grid-template-columns: repeat(2, 1fr); }
  .account-row { grid-template-columns: repeat(3, 1fr); }
  .account-identity { grid-column: 1 / -1; }
  .store-row { grid-template-columns: 1fr 1.5fr auto; }
  .store-row .row-actions { grid-column: 1 / -1; justify-content: end; }
  .activity-row { grid-template-columns: 1fr 2fr auto; }
  .activity-row .row-actions { grid-column: 1 / -1; justify-content: end; }
}
