/* ============================================================
   种豆得豆 · Design tokens
   Inspired by the hand-drawn bean-green logo with warm accents
   ============================================================ */
:root {
  color-scheme: light;
  /* Brand palette extracted from logo */
  --bean:        #9bbf5f;   /* primary - logo background green */
  --bean-deep:   #7a9d4a;   /* hover / emphasis */
  --bean-dark:   #506a2c;   /* text on paper, deep green */
  --bean-soft:   #e6efce;   /* tint backgrounds */
  --bean-mist:   #f3f8e7;   /* very light wash */

  --bean-dot:    #e89441;   /* warm orange - the bean dot in logo */
  --bean-dot-deep: #c8782a; /* hover for dot */
  --bean-dot-soft: #fde6cc; /* orange tint */

  --paper:       #fdf9e8;   /* card surface - warm cream */
  --cream:       #f7eed4;   /* deeper cream for grouping */
  --bg:          #f6f1de;   /* page background - warm linen */

  --ink:         #3d2e1f;   /* primary text - deep cocoa */
  --ink-soft:    #6b5a47;   /* secondary text */
  --muted:       #8d7a64;   /* hints */
  --line:        #e3d4a8;   /* borders */
  --line-strong: #c9b582;   /* emphasized borders */

  --shadow-soft: 0 8px 24px rgba(122, 157, 74, 0.10);
  --shadow-mid:  0 14px 38px rgba(80, 106, 44, 0.14);
  --shadow-pop:  0 22px 50px rgba(80, 106, 44, 0.18);

  --radius-sm:   10px;
  --radius:      16px;
  --radius-lg:   22px;
  --radius-xl:   32px;

  /* Typography: hand-drawn KaiTi-style for display, rounded sans for body */
  --font-display: "ZCOOL KuaiLe", "Ma Shan Zheng", "Long Cang", "Kaiti SC", "STKaiti", serif;
  --font-kaiti:   "Ma Shan Zheng", "ZCOOL KuaiLe", "Kaiti SC", "STKaiti", cursive;
  --font-body:    -apple-system, BlinkMacSystemFont, ui-rounded, "SF Pro Rounded",
                  "PingFang SC", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 18% 0%, rgba(155, 191, 95, 0.16), transparent 45%),
    radial-gradient(ellipse at 90% 12%, rgba(232, 148, 65, 0.10), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

/* ============================================================
   Top bar - the brand stage
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 28px;
  background: var(--bean);
  color: var(--paper);
  border-bottom: 4px solid var(--bean-deep);
  box-shadow: var(--shadow-soft);
}

.brand-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 320px;
  flex: 0 0 auto;
}

.brand-image {
  height: 64px;
  width: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(61, 46, 31, 0.22);
  flex: 0 0 auto;
  /* keep logo image aspect (~1140x540) by letting it scale naturally */
  max-width: 220px;
  object-fit: cover;
  object-position: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-text h1 {
  font-family: var(--font-kaiti);
  font-size: 30px;
  line-height: 1;
  margin: 0;
  color: var(--paper);
  letter-spacing: 3px;
  text-shadow: 0 2px 6px rgba(61, 46, 31, 0.25);
}

.brand-text p {
  margin: 0;
  color: rgba(253, 249, 232, 0.9);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: rgba(253, 249, 232, 0.92);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.topnav a:hover {
  background: rgba(253, 249, 232, 0.18);
  color: var(--paper);
}

.topnav a:first-child {
  background: var(--paper);
  color: var(--bean-dark);
  box-shadow: 0 4px 10px rgba(61, 46, 31, 0.10);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 16px;
  background: rgba(253, 249, 232, 0.18);
  border: 1.5px solid rgba(253, 249, 232, 0.4);
  border-radius: 999px;
  color: var(--paper);
  font-size: 12px;
  font-weight: 600;
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bean-dot);
  box-shadow: 0 0 0 3px rgba(232, 148, 65, 0.3);
}

/* ============================================================
   Tool shell - the workspace
   ============================================================ */
.tool-shell {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 420px;
  min-height: calc(100vh - 86px);
}

.rail {
  position: sticky;
  top: 86px;
  height: calc(100vh - 86px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 8px;
  background: transparent;
}

.rail-item {
  width: 68px;
  min-height: 64px;
  display: grid;
  place-items: center;
  gap: 4px;
  border-radius: 18px;
  color: var(--ink-soft);
  font-weight: 600;
  transition: all 0.15s ease;
}

.rail-item span {
  font-size: 20px;
  line-height: 1;
}

.rail-item small {
  font-size: 11px;
  letter-spacing: 0.5px;
}

.rail-item:hover {
  color: var(--bean-dark);
  background: var(--bean-mist);
}

.rail-item.active {
  color: var(--paper);
  background: var(--bean);
  box-shadow: 0 6px 16px rgba(155, 191, 95, 0.4);
}

.rail-item.active::before {
  /* orange dot accent on active state */
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--bean-dot);
  position: absolute;
  display: none; /* keep clean - the bg change is enough */
}

/* ============================================================
   Stage (canvas area) and cards
   ============================================================ */
.stage {
  position: relative;
  min-height: calc(100vh - 86px);
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 60px 32px 32px;
}

.stage-card {
  width: min(100%, 760px);
  margin: 0 auto;
  border: 2px solid var(--paper);
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow-mid);
  overflow: hidden;
  position: relative;
}

.stage-card::before {
  /* subtle organic accent dot in the top right */
  content: "";
  position: absolute;
  top: 24px;
  right: 28px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bean-dot);
  opacity: 0.7;
}

.upload-target {
  min-height: 440px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 56px 48px;
  text-align: center;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease;
  border-radius: var(--radius-xl);
}

.upload-target:hover {
  background: var(--bean-mist);
}

.upload-target.dragover {
  background: var(--bean-mist);
  border: 2.5px dashed var(--bean);
}

.upload-target input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-symbol {
  width: 116px;
  height: 116px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bean);
  color: var(--paper);
  font-size: 52px;
  box-shadow: 0 12px 28px rgba(155, 191, 95, 0.35);
  position: relative;
}

.upload-symbol::after {
  /* the orange bean dot, signature accent */
  content: "";
  position: absolute;
  right: 8px;
  bottom: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bean-dot);
  box-shadow: 0 0 0 5px var(--paper);
}

.upload-target strong {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.1;
  color: var(--bean-dark);
  letter-spacing: 2px;
}

.upload-target span:not(.upload-symbol) {
  max-width: 480px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.upload-target em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  background: var(--cream);
  border-radius: 999px;
}

/* ============================================================
   Generic panel & floating panel
   ============================================================ */
.panel,
.canvas-card,
.legend-panel {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.settings-stack {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 60px 20px 32px 0;
}

.floating-panel { overflow: hidden; }

.panel-head {
  height: 58px;
  display: grid;
  grid-template-columns: 24px 1fr 36px;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  background: var(--cream);
  border-bottom: 1.5px solid var(--line);
}

.panel-head h2 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  color: var(--bean-dark);
  margin: 0;
  letter-spacing: 1.5px;
}

.drag-dots {
  color: var(--bean);
  font-size: 18px;
  letter-spacing: 1px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 22px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.icon-btn:hover { background: var(--bean-mist); color: var(--bean-dark); }

.panel-body {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.source-preview-wrap canvas {
  width: 100%;
  height: auto;
  display: block;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--bean-mist);
}

.source-preview-wrap p,
.field-group p,
.hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.source-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mini-upload {
  flex: 0 0 auto;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1.5px solid var(--bean);
  border-radius: 999px;
  background: var(--bean-mist);
  color: var(--bean-dark);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mini-upload:hover {
  background: var(--bean);
  color: var(--paper);
}

.hidden { display: none !important; }

.field-group,
.range-field {
  display: grid;
  gap: 8px;
}

.label-row,
.range-field span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

label,
.field-group > label,
.range-field > span,
.grid-setting-row > span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

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

input[type="number"],
select {
  width: 100%;
  min-height: 42px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  padding: 0 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="number"]:focus,
select:focus {
  outline: none;
  border-color: var(--bean);
  box-shadow: 0 0 0 3px rgba(155, 191, 95, 0.2);
}

select { appearance: auto; }

input[type="range"] {
  width: 100%;
  accent-color: var(--bean);
}

input[type="color"] {
  width: 44px;
  height: 36px;
  padding: 3px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  cursor: pointer;
}

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

.preset-card {
  min-height: 58px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-card:hover {
  border-color: var(--bean);
  background: var(--bean-mist);
}

.preset-card strong,
.preset-card span {
  display: block;
}

.preset-card strong { font-size: 12px; font-weight: 600; }
.preset-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.preset-card.active,
.segmented button.active {
  border-color: var(--bean);
  background: var(--bean);
  color: var(--paper);
  box-shadow: 0 6px 16px rgba(155, 191, 95, 0.3);
}

.preset-card.active span { color: rgba(253, 249, 232, 0.85); }

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

.segmented.bead-size {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.segmented button {
  min-height: 42px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.segmented button:hover:not(.active):not(:disabled) {
  background: var(--bean-mist);
  border-color: var(--bean);
}

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

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

.size-controls label,
.crop-grid label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.grid-settings {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  padding: 12px 14px;
}

.grid-settings summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.grid-setting-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.grid-setting-row label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.grid-setting-row input[type="number"] {
  width: 60px;
  min-height: 36px;
  text-align: center;
}

.action-row,
.download-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-btn,
.ghost-btn {
  min-height: 48px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  padding: 0 22px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.primary-btn {
  background: var(--bean-dot);
  color: var(--paper);
  box-shadow: 0 8px 20px rgba(232, 148, 65, 0.3);
}

.primary-btn:hover:not(:disabled) {
  background: var(--bean-dot-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(232, 148, 65, 0.38);
}

.ghost-btn {
  background: var(--paper);
  border-color: var(--line-strong);
  color: var(--ink);
}

.ghost-btn:hover:not(:disabled) {
  background: var(--bean-mist);
  border-color: var(--bean);
  color: var(--bean-dark);
}

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

.hint { padding-top: 2px; }

/* ============================================================
   Result board & preview
   ============================================================ */
.result-board {
  width: min(100%, 1000px);
  margin: 0 auto;
  padding: 20px;
}

.result-header,
.legend-head,
.canvas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.result-header { margin-bottom: 16px; }

.eyebrow {
  display: inline-block;
  color: var(--paper);
  background: var(--bean-dot);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.result-header h2,
.legend-head h2 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.15;
  margin: 0;
  color: var(--bean-dark);
  letter-spacing: 1.5px;
}

.stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stats span {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bean-mist);
  color: var(--bean-dark);
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid var(--bean-soft);
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
}

.canvas-card {
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.canvas-toolbar {
  padding: 12px 16px;
  border-bottom: 1.5px solid var(--line);
  background: var(--cream);
  font-size: 13px;
  font-weight: 600;
  color: var(--bean-dark);
}

.canvas-toolbar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

#previewCanvas,
#chartCanvas,
#sourceCanvas {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper);
}

.chart-scroll {
  width: 100%;
  overflow: auto;
  background: var(--paper);
}

.chart-scroll #chartCanvas { min-width: 520px; }

/* ============================================================
   Legend / color list
   ============================================================ */
.legend-panel { padding: 16px; }

.legend-head {
  align-items: flex-start;
  margin-bottom: 14px;
}

.legend-table-wrap {
  max-height: 320px;
  overflow: auto;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}

.legend-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.legend-table th,
.legend-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.legend-table th {
  position: sticky;
  top: 0;
  background: var(--cream);
  color: var(--bean-dark);
  font-weight: 600;
  z-index: 1;
}

.swatch {
  width: 28px;
  height: 20px;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  vertical-align: middle;
}

/* ============================================================
   Footer
   ============================================================ */
.footer-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 28px 20px 116px;
  color: var(--muted);
  font-size: 12px;
}

.footer-note span:first-child {
  color: var(--bean-dark);
  font-weight: 600;
}

/* ============================================================
   Download preview modal (WeChat-friendly)
   ============================================================ */
.download-modal[hidden] { display: none; }

.download-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(61, 46, 31, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: downloadModalFade 0.18s ease;
}

@keyframes downloadModalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.download-modal-card {
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  animation: downloadModalPop 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.download-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: var(--bean);
  color: var(--paper);
}

.download-modal-head .eyebrow {
  background: var(--bean-dot);
  margin-bottom: 4px;
}

.download-modal-head h2 {
  font-family: var(--font-kaiti);
  font-size: 22px;
  margin: 0;
  letter-spacing: 1px;
  color: var(--paper);
}

.download-modal-head .icon-btn {
  background: rgba(253, 249, 232, 0.2);
  color: var(--paper);
  font-size: 22px;
  line-height: 1;
}

.download-modal-head .icon-btn:hover {
  background: rgba(253, 249, 232, 0.35);
}

.download-modal-body {
  display: grid;
  gap: 14px;
  padding: 20px;
  overflow: auto;
}

.download-modal-image-wrap {
  background: var(--bean-mist);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  -webkit-user-select: none;
  user-select: none;
}

.download-modal-image-wrap img {
  display: block;
  max-width: 100%;
  max-height: 60vh;
  height: auto;
  border-radius: 8px;
  -webkit-touch-callout: default;
}

.download-hint {
  margin: 0;
  padding: 12px 14px;
  background: var(--bean-soft);
  border-radius: var(--radius);
  color: var(--bean-dark);
  font-size: 13px;
  line-height: 1.6;
}

.download-hint strong { color: var(--bean-dot-deep); }

.download-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.download-modal-actions .primary-btn,
.download-modal-actions .ghost-btn {
  flex: 1 1 140px;
}

/* Width preset group with 6 options: wrap on narrow widths */
.width-presets {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 540px) {
  .width-presets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1180px) {
  .tool-shell {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .settings-stack {
    grid-column: 2;
    padding: 0 20px 28px;
  }
  .stage { padding-right: 20px; }
  .floating-panel { max-width: 820px; margin: 0 auto; }
}

@media (max-width: 820px) {
  .topbar {
    height: auto;
    min-height: 72px;
    align-items: flex-start;
    padding: 12px 16px;
  }
  .topnav, .status-pill { display: none; }
  .brand-text p { white-space: normal; }
  .brand-text h1 { font-size: 24px; letter-spacing: 2px; }
  .tool-shell { display: block; }
  .rail {
    position: sticky;
    top: 0;
    z-index: 3;
    height: auto;
    flex-direction: row;
    justify-content: space-around;
    padding: 8px;
    border-bottom: 1.5px solid var(--line);
    background: var(--bean-mist);
  }
  .rail-item { width: auto; min-width: 60px; min-height: 52px; }
  .stage, .settings-stack { min-height: 0; padding: 18px 12px; }
  .stage-card { border-radius: 22px; }
  .upload-target { min-height: 340px; padding: 32px 20px; }
  .upload-target strong { font-size: 30px; }
  .upload-symbol { width: 96px; height: 96px; font-size: 42px; }
  .preview-layout, .preset-grid, .size-controls, .crop-grid { grid-template-columns: 1fr; }
  .result-header, .legend-head { display: grid; }
  .download-row button, .action-row button { flex: 1 1 140px; }
  .footer-note { display: grid; padding: 10px 16px 18px; }
  .brand-image { height: 52px; max-width: 160px; }
  .brand-banner { min-width: 0; gap: 12px; }
}
