:root {
  color-scheme: light;
  --bg: #e9e3d6;
  --panel: #f4eee1;
  --panel-strong: #f8f4ea;
  --text: #5a4837;
  --muted: #90826f;
  --line: #d8cfbb;
  --accent: #95b84c;
  --accent-strong: #6f8e2e;
  --danger: #c95f64;
  --success: #6f8e2e;
  --danger-soft: #f6e7e8;
  --success-soft: #eef3df;
  --shadow: 0 18px 40px rgba(90, 72, 55, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 18%), var(--bg);
  color: var(--text);
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

.floating-actions {
  bottom: 24px;
  display: grid;
  gap: 12px;
  position: fixed;
  right: 24px;
  z-index: 900;
}

.floating-action-button {
  align-items: center;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.42), 0 10px 22px rgba(149, 184, 76, 0.2);
  color: #ffffff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  height: 56px;
  justify-content: center;
  text-decoration: none;
  width: 56px;
}

.floating-action-button:hover {
  background: var(--accent-strong);
}

.floating-action-button svg {
  display: block;
  fill: none;
  height: 28px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translate(0.8px, -0.5px);
  stroke-width: 2.1;
  width: 28px;
}

.floating-action-button .order-float-icon {
  height: 46px;
  stroke-width: 2.2;
  transform: translate(-0.5px, -2px);
  width: 46px;
}

.order-float {
  border: 0;
}

.toast-container {
  display: grid;
  gap: 12px;
  left: 50%;
  max-width: min(560px, calc(100% - 24px));
  position: fixed;
  top: 16px;
  transform: translateX(-50%);
  width: 100%;
  z-index: 1000;
}

.toast {
  align-items: center;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px 16px;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.success {
  border-color: rgba(149, 184, 76, 0.2);
  background: var(--success-soft);
  color: var(--success);
}

.toast.error {
  border-color: rgba(201, 95, 100, 0.18);
  background: var(--danger-soft);
  color: var(--danger);
}

.toast.is-hiding {
  opacity: 0;
  transform: translateY(-8px);
}

.toast-text {
  flex: 1;
  line-height: 1.5;
  word-break: break-word;
}

.toast-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toast-action-link {
  min-height: 34px;
  padding: 0 14px;
}

.toast-close {
  background: transparent;
  color: inherit;
  min-height: auto;
  padding: 0;
}

.toast-close:hover {
  background: transparent;
  opacity: 0.72;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px 22px;
  background: #f6f1e6;
  border: 1px solid rgba(144, 130, 111, 0.14);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 14px;
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.brand::before {
  content: "";
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(149, 184, 76, 0.2);
  flex: 0 0 auto;
}

.claim-page main {
  width: min(1120px, calc(100% - 32px));
  padding: 24px 0 44px;
}

.claim-page .topbar {
  margin-bottom: 24px;
  padding: 16px 18px;
}

.admin-page .topbar {
  margin-bottom: 24px;
  padding: 16px 18px;
}

.claim-page .brand {
  font-size: 24px;
  gap: 12px;
}

.admin-page .brand {
  font-size: 24px;
  gap: 12px;
}

.claim-page .brand::before {
  height: 42px;
  width: 42px;
  border-radius: 14px;
}

.admin-page .brand::before {
  height: 42px;
  width: 42px;
  border-radius: 14px;
}

.claim-title {
  display: grid;
  gap: 10px;
  margin: 0;
  font-size: 28px;
  line-height: 1.38;
  max-width: 760px;
}

.claim-title span {
  display: block;
}

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

.nav-link {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: 28px;
}

#claim-panel {
  display: grid;
  gap: 0;
  margin: 0 auto;
  max-width: 980px;
  padding: 34px;
}

.claim-page #claim-panel {
  max-width: none;
  padding: 28px;
}

.claim-page .claim-title {
  gap: 6px;
  font-size: 24px;
  line-height: 1.32;
  max-width: 680px;
}

.section-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.section-total {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.success-panel {
  border-color: rgba(21, 127, 59, 0.3);
  background: #effaf3;
  color: var(--success);
  margin-top: 22px;
}

.panel-note {
  line-height: 1.7;
  margin: 12px 0 0;
}

.grid {
  display: grid;
  gap: 18px;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8f4ea;
  color: var(--text);
  font: inherit;
  padding: 12px 14px;
  outline: none;
}

#claim-form {
  gap: 22px;
  margin-top: 28px;
}

.claim-page #claim-form {
  gap: 18px;
  margin-top: 20px;
}

#claim-form label {
  gap: 10px;
}

.claim-page #claim-form label {
  gap: 6px;
}

#claim-form input {
  min-height: 54px;
  padding: 0 16px;
}

.claim-page #claim-form input {
  min-height: 50px;
}

.claim-page .grid.two {
  gap: 16px;
}

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

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(149, 184, 76, 0.14);
}

button {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 44px;
  padding: 0 18px;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.42);
}

button.is-loading {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.button-content {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.button-spinner {
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  display: inline-block;
  height: 14px;
  width: 14px;
  animation: button-spin 0.7s linear infinite;
}

.button-link {
  align-items: center;
  background: var(--accent);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 700;
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.42);
}

.button-link:hover {
  background: var(--accent-strong);
}

.success-panel .button-link {
  background: var(--success);
}

.success-panel .button-link:hover {
  background: #11612d;
}

button:hover {
  background: var(--accent-strong);
}

button.secondary {
  background: #f1ebde;
  color: var(--text);
  box-shadow: none;
  border: 1px solid rgba(144, 130, 111, 0.18);
}

button.secondary:hover {
  background: #ece5d7;
}

button.button-emphasis {
  background: var(--success);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.42), 0 10px 20px rgba(149, 184, 76, 0.18);
  color: #ffffff;
}

button.button-emphasis:hover {
  background: #11612d;
}

button.button-muted {
  background: #ece5d7;
  color: var(--muted);
  box-shadow: none;
  border: 1px solid rgba(144, 130, 111, 0.18);
}

button.button-muted:hover {
  background: #e5ddcf;
}

button.danger {
  background: #b42318;
}

button.danger:hover {
  background: #8f1d14;
}

button.small {
  min-height: 34px;
  padding: 0 12px;
}

.mono {
  font-family: Consolas, "Courier New", monospace;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

#claim-panel .actions {
  align-items: stretch;
  gap: 14px;
  margin-top: 2px;
}

.claim-page #claim-panel .actions {
  gap: 10px;
  margin-top: 0;
}

#claim-panel .actions button,
#claim-panel .actions .button-link {
  min-height: 50px;
}

.claim-page #claim-panel .actions button,
.claim-page #claim-panel .actions .button-link {
  min-height: 46px;
}

#claim-submit-button {
  min-width: 180px;
}

#copy-button {
  min-width: 152px;
}

.claim-page #claim-submit-button {
  min-width: 164px;
}

.claim-page #copy-button {
  min-width: 138px;
}

.inline-setting {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-settings-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, auto));
}

.inline-setting-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.inline-setting input {
  min-width: 120px;
  width: 120px;
}

.inline-setting select {
  min-width: 132px;
  width: 132px;
}

.toggle-setting {
  gap: 12px;
}

.toggle-setting input {
  min-width: auto;
  width: auto;
  accent-color: var(--accent-strong);
  min-height: 18px;
}

.summary-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.log-table {
  display: grid;
  gap: 0;
}

.log-table .table-row {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 156px 84px 84px 116px minmax(180px, 1.1fr) minmax(260px, 1.9fr) 96px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(144, 130, 111, 0.16);
}

.log-table .table-head {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding-top: 0;
}

.log-table .table-row:last-child {
  border-bottom: 0;
}

.status-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  justify-content: center;
  min-width: 68px;
  padding: 4px 10px;
}

.status-badge.success {
  background: var(--success-soft);
  color: var(--success);
}

.status-badge.failed {
  background: var(--danger-soft);
  color: var(--danger);
}

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

.message {
  border: 1px solid var(--line);
  border-radius: 22px;
  margin-top: 24px;
  padding: 20px 22px;
  word-break: break-word;
  background: var(--panel-strong);
  line-height: 1.8;
}

.claim-page .message {
  margin-top: 18px;
  padding: 18px 20px;
}

.message.success {
  border-color: rgba(149, 184, 76, 0.2);
  background: var(--success-soft);
  color: var(--success);
}

.message.error {
  border-color: rgba(201, 95, 100, 0.18);
  background: var(--danger-soft);
  color: var(--danger);
}

.modal-backdrop {
  align-items: center;
  background: rgba(90, 72, 55, 0.22);
  inset: 0;
  display: flex;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 30;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  background: var(--panel-strong);
  border-radius: 30px;
  border: 1px solid rgba(144, 130, 111, 0.14);
  box-shadow: var(--shadow);
  max-width: 520px;
  padding: 24px;
  width: min(100%, 520px);
}

.modal-card h2 {
  color: var(--text);
  font-size: 24px;
  line-height: 1.6;
  margin: 0;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 22px;
}

.image-preview-modal {
  padding: 24px;
  z-index: 2000;
}

.image-preview-card {
  background: var(--panel-strong);
  border: 1px solid rgba(144, 130, 111, 0.14);
  border-radius: 30px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  grid-template-rows: auto minmax(0, 1fr);
  height: min(72vh, 760px);
  padding: 20px;
  width: min(100%, 1040px);
}

.order-preview-card {
  gap: 12px;
  height: auto;
  max-height: none;
  overflow: hidden;
  padding: 16px;
  width: min(100%, 400px);
  grid-template-rows: auto auto auto auto;
}

.order-preview-card .image-preview-head {
  width: 100%;
}

.order-preview-badges {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.order-preview-card .image-preview-body {
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  margin: 0 auto;
  min-height: auto;
  max-height: 260px;
  max-width: 260px;
  width: min(100%, 260px);
}

.order-preview-caption {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
  margin: 0;
  text-align: center;
  width: 100%;
}

.order-preview-caption > span {
  display: block;
}

.order-preview-badge {
  align-items: center;
  background: #ebe5d6;
  border: 1px solid rgba(144, 130, 111, 0.16);
  border-radius: 999px;
  box-shadow: none;
  color: var(--accent-strong);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0.08em;
  min-height: 32px;
  padding: 0 12px;
  width: 100%;
}

.order-preview-badge:hover {
  background: #e3ddce;
}

.order-preview-badge.is-active {
  background: var(--accent);
  border-color: transparent;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.42);
  color: #ffffff;
}

.image-preview-head {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.image-preview-head h2 {
  font-size: 22px;
  line-height: 1.4;
  margin: 0;
  min-width: 0;
}

.image-preview-actions {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.image-preview-icon-button {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--text);
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  height: 32px;
  justify-content: center;
  padding: 0;
  width: 32px;
}

.image-preview-icon-button:hover {
  background: transparent;
  color: var(--accent-strong);
}

.image-preview-icon-button svg {
  display: block;
  height: 26px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.2;
  fill: none;
  width: 26px;
}

.image-preview-tool {
  align-items: center;
  background: #f1ebde;
  border: 1px solid rgba(144, 130, 111, 0.18);
  border-radius: 12px;
  box-shadow: none;
  color: var(--text);
  display: inline-flex;
  font-size: 20px;
  height: 32px;
  justify-content: center;
  line-height: 1;
  min-width: 32px;
  padding: 0 10px;
}

.image-preview-tool:hover {
  background: #ece5d7;
}

.image-preview-tool-text {
  font-size: 13px;
  font-weight: 700;
  min-width: 48px;
}

.image-preview-close {
  align-items: center;
  border-radius: 0;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 32px;
  height: 32px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 32px;
}

.image-preview-close:hover {
  background: transparent;
  color: var(--accent-strong);
}

.image-preview-body {
  align-items: center;
  background: #f8f4ea;
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.image-preview-canvas {
  align-items: center;
  cursor: grab;
  display: flex;
  height: 100%;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  width: 100%;
}

.image-preview-canvas.is-dragging {
  cursor: grabbing;
}

.image-preview-body img {
  display: block;
  height: auto;
  max-height: none;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  transform-origin: center center;
  user-select: none;
  width: auto;
  will-change: transform;
}

.section-title {
  font-size: 18px;
  line-height: 1.35;
  margin: 0;
}

.tips-list {
  color: var(--text);
  line-height: 1.9;
  margin: 18px 0 0;
  padding-left: 22px;
}

.info-split {
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 24px;
  margin-top: 28px;
}

.claim-page .info-split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.image-panel {
  display: grid;
  gap: 20px;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.claim-page .image-panel,
.claim-page .tips-panel {
  padding: 22px;
}

.image-placeholder {
  display: grid;
  gap: 16px;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  min-width: 0;
}

.image-placeholder-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.image-placeholder-badge {
  align-items: center;
  background: #ebe5d6;
  border: 1px solid rgba(144, 130, 111, 0.16);
  border-radius: 999px;
  box-shadow: none;
  color: var(--accent-strong);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0.08em;
  min-height: 34px;
  padding: 0 14px;
  text-transform: uppercase;
  width: fit-content;
}

.image-placeholder-badge:hover {
  background: #e3ddce;
}

.image-placeholder-badge.is-active {
  background: var(--accent);
  border-color: transparent;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.42);
  color: #ffffff;
}

.image-placeholder-frame {
  background: #f8f4ea;
  border: 1px solid var(--line);
  border-radius: 24px;
  display: block;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.claim-page .image-placeholder-frame {
  padding: 0;
}

.image-placeholder-image {
  aspect-ratio: auto;
  background: #ebe5d6;
  cursor: zoom-in;
  display: block;
  inset: 0;
  height: 100%;
  position: absolute;
  width: 100%;
}

.tips-panel {
  display: grid;
  align-content: start;
}

.claim-page .tips-list {
  margin-top: 14px;
  line-height: 1.8;
}

.claim-page .tips-list li + li {
  margin-top: 8px;
}

.tips-list li + li {
  margin-top: 10px;
}

.card-code {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

#allocated-link-panel {
  margin-top: 18px;
}

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

.stat {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  background: var(--panel-strong);
}

.stat span {
  color: var(--muted);
  display: block;
  font-size: 13px;
}

.stat strong {
  display: block;
  font-size: 28px;
  margin-top: 6px;
}

.table {
  border: 1px solid var(--line);
  border-radius: 22px;
  margin-top: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--panel-strong);
  -webkit-overflow-scrolling: touch;
  scrollbar-color: transparent transparent;
  scrollbar-width: thin;
}

.table::-webkit-scrollbar {
  height: 8px;
}

.table::-webkit-scrollbar-track {
  background: transparent;
}

.table::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 180px;
  gap: 12px;
  padding: 16px 14px;
  min-width: 560px;
}

.cards-table .table-row {
  grid-template-columns: minmax(0, 1fr) 160px 88px;
  min-width: 0;
}

.cards-table .card-code-cell {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  overflow-wrap: normal;
  word-break: normal;
  scrollbar-width: thin;
}

.orders-table .table-row {
  grid-template-columns: 160px 100px minmax(0, 1fr) minmax(0, 1fr);
  min-width: 820px;
}

.invalid-orders-table .table-row {
  grid-template-columns: 160px 100px minmax(0, 1fr) minmax(0, 1fr) 120px;
  min-width: 940px;
}

.records-table .table-row {
  grid-template-columns: 100px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 170px;
  min-width: 980px;
}

.table-row + .table-row {
  border-top: 1px solid var(--line);
}

.table-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.table-row > span a {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.table-head {
  background: #f6f1e6;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.pager {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 16px;
}

.pager span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

@keyframes button-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 720px) {
  main {
    width: min(100% - 24px, 920px);
    padding: 18px 0;
  }

  .topbar,
  .grid.two,
  .stats,
  .unused-card-panels,
  .inline-settings-grid {
    grid-template-columns: 1fr;
  }

  .cards-table .table-row {
    grid-template-columns: minmax(0, 1fr) 132px 76px;
    min-width: 0;
    gap: 10px;
    padding: 14px 12px;
  }

  #claim-panel {
    padding: 26px 22px;
  }

  .claim-title {
    font-size: 22px;
    gap: 8px;
  }

  #claim-form {
    gap: 18px;
    margin-top: 22px;
  }

  #claim-panel .actions button,
  #claim-panel .actions .button-link {
    width: 100%;
  }

  .claim-page #claim-panel .actions {
    flex-wrap: nowrap;
  }

  .claim-page #claim-panel .actions button,
  .claim-page #claim-panel .actions .button-link {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
  }

  .image-placeholder-frame {
    min-height: auto;
    padding: 0;
  }

  .image-placeholder-badges {
    flex-direction: column;
  }

  .image-placeholder-badge {
    width: 100%;
  }

  .claim-page .image-panel {
    overflow: hidden;
  }

  .image-placeholder-image {
    max-width: 100%;
  }

  .claim-page main {
    width: min(100% - 24px, 920px);
    padding: 18px 0 34px;
  }

  .claim-page .topbar {
    margin-bottom: 24px;
    padding: 14px 16px;
  }

  .admin-page .topbar {
    margin-bottom: 24px;
    padding: 14px 16px;
  }

  .claim-page .brand {
    font-size: 22px;
  }

  .admin-page .brand {
    font-size: 22px;
  }

  .claim-page .brand::before {
    height: 38px;
    width: 38px;
  }

  .admin-page .brand::before {
    height: 38px;
    width: 38px;
  }

  .claim-page #claim-panel {
    padding: 22px 18px;
  }

  .claim-page .claim-title {
    font-size: 18px;
    gap: 6px;
  }

  .claim-page #claim-form {
    gap: 16px;
    margin-top: 18px;
  }

  .claim-page .image-panel,
  .claim-page .tips-panel {
    padding: 18px;
  }

  .claim-page .tips-list {
    font-size: 14px;
  }

  .modal-card {
    padding: 20px;
  }

  .modal-card h2 {
    font-size: 20px;
  }

  .image-preview-modal {
    padding: 16px;
  }

  .image-preview-card {
    gap: 14px;
    padding: 16px;
  }

  .image-preview-head {
    gap: 10px;
  }

  .image-preview-head h2 {
    font-size: 20px;
  }

  .image-preview-actions {
    gap: 6px;
  }

  .image-preview-tool {
    min-width: 30px;
    padding: 0 8px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 721px) and (max-width: 960px) {
  .claim-page .image-panel,
  .claim-page .tips-panel {
    padding: 20px;
  }
}
