:root {
  color-scheme: light;
  --bg: #eef2ed;
  --panel: #ffffff;
  --ink: #1f2927;
  --muted: #66736f;
  --line: #d8e0dc;
  --soft: #f6f8f5;
  --brand: #0f5c5a;
  --brand-2: #2f7d71;
  --deep: #1f3a5a;
  --accent: #bc523f;
  --gold: #c88a23;
  --warn: #b27a11;
  --ok: #247b47;
  --danger: #a13b35;
  --shadow: 0 14px 34px rgba(22, 34, 31, 0.09);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(15, 92, 90, 0.13), transparent 300px),
    linear-gradient(125deg, rgba(200, 138, 35, 0.16), transparent 340px),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button,
label {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top)) 18px calc(26px + env(safe-area-inset-bottom));
}

.topbar {
  display: grid;
  grid-template-columns: 58px 1fr auto auto auto;
  align-items: center;
  gap: 14px;
  padding: 4px 0 14px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.title-block p,
.eyebrow {
  margin: 0 0 3px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  font-size: 2.15rem;
}

h2 {
  font-size: 1.28rem;
}

h3 {
  font-size: 0.92rem;
  color: var(--muted);
  text-transform: uppercase;
}

.today-pill,
.state-pill {
  min-width: 54px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--brand);
  background: #dceee9;
  text-align: center;
  font-weight: 850;
  white-space: nowrap;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.tab-button {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 850;
}

.tab-button.active {
  color: #fff;
  background: var(--brand);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.home-grid {
  display: grid;
  gap: 12px;
}

.portal-panel {
  min-height: 360px;
}

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

.process-tile,
.order-tile {
  display: grid;
  align-content: space-between;
  min-width: 0;
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--soft);
  padding: 14px;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.process-tile:hover,
.order-tile:hover,
.process-tile:focus-visible,
.order-tile:focus-visible {
  border-color: rgba(15, 92, 90, 0.48);
  box-shadow: 0 12px 26px rgba(22, 34, 31, 0.12);
  transform: translateY(-1px);
}

.process-tile span,
.order-tile span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.process-tile strong,
.order-tile strong {
  margin-top: 14px;
  color: var(--brand);
  font-size: 1.28rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.process-tile small,
.order-tile small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.process-tile.primary-tile,
.order-tile.active-order {
  color: #fff;
  background: var(--brand);
}

.order-tile.active-order {
  background: var(--deep);
}

.process-tile.primary-tile span,
.process-tile.primary-tile strong,
.process-tile.primary-tile small,
.order-tile.active-order span,
.order-tile.active-order strong,
.order-tile.active-order small {
  color: #fff;
}

.orders-panel {
  min-height: 0;
}

.home-head {
  align-items: flex-start;
}

.seller-dashboard {
  display: grid;
  gap: 12px;
}

.cash-tile {
  min-height: 188px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 62%),
    var(--brand);
}

.home-orders {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.home-subhead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  min-height: 31px;
}

.home-subhead h3 {
  color: var(--ink);
  text-transform: none;
  font-size: 1rem;
}

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

.handtowel-page-panel {
  display: grid;
  gap: 12px;
}

.page-section-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.login-panel {
  width: min(100%, 520px);
  margin: 0 auto;
}

.login-form {
  display: grid;
  gap: 12px;
}

.order-help-panel {
  display: grid;
  gap: 12px;
}

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

.file-tile {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 11px;
  min-height: 76px;
  padding: 12px;
  border: 1px dashed #a8b3ad;
  border-radius: 8px;
  background: #fbfcf8;
  cursor: pointer;
}

.file-tile strong,
.file-tile small {
  display: block;
}

.file-tile small {
  margin-top: 4px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.file-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-weight: 900;
}

input[type="file"] {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.order-help-controls {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
}

select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #bbc7c2;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  padding: 0 12px;
}

select:disabled {
  color: #8a918e;
  background: #eef1ed;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.switch {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #34403c;
  font-weight: 800;
}

.switch input {
  width: 22px;
  height: 22px;
  accent-color: var(--brand);
}

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

.metric {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 5px;
  color: var(--brand);
  font-size: 1.7rem;
  line-height: 1;
}

.compact-section-head {
  margin-bottom: 0;
}

.actions {
  display: flex;
  gap: 8px;
}

.result-list {
  display: grid;
  gap: 9px;
}

.result-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: #fffdf9;
}

.result-card.no-order {
  border-left-color: #99aaa3;
  background: #fff;
}

.result-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.result-title strong {
  line-height: 1.25;
}

.order-qty {
  min-width: 68px;
  padding: 7px 8px;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  text-align: center;
  font-size: 1.15rem;
  font-weight: 900;
}

.no-order .order-qty {
  background: #77847f;
}

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

.detail {
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background: #f2f5f1;
}

.detail span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.detail strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.handtowel-order {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.order-detail {
  display: grid;
  align-content: start;
  gap: 12px;
}

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

.order-actions {
  display: grid;
  grid-template-columns: repeat(2, auto) minmax(220px, 1fr);
  gap: 10px;
  align-items: center;
}

.compact-actions {
  grid-template-columns: repeat(2, auto);
}

.link-button {
  text-decoration: none;
}

.compact-empty {
  padding: 18px 12px;
  text-align: left;
}

.inactive-order {
  display: grid;
  gap: 5px;
  border: 1px solid #cddbd6;
  border-radius: 8px;
  background: #f5f8f6;
}

.inactive-order strong {
  color: var(--brand);
  font-size: 1rem;
}

.inactive-order span {
  color: var(--muted);
  line-height: 1.35;
}

.handtowel-form {
  display: grid;
  gap: 12px;
}

.handtowel-meta {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr auto;
  gap: 10px;
  align-items: end;
}

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

.handtowel-summary .total-line {
  min-height: 54px;
}

.handtowel-pages {
  display: grid;
  gap: 12px;
}

.handtowel-page {
  display: grid;
  gap: 8px;
}

.handtowel-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #fff;
  background: #1f3a5a;
}

.handtowel-page-head h3 {
  color: #fff;
}

.handtowel-page-head span {
  font-size: 0.85rem;
  font-weight: 800;
}

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

.handtowel-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.handtowel-row {
  display: grid;
  grid-template-columns: 44px minmax(84px, 1fr) 42px 74px;
  align-items: center;
  min-height: 34px;
  border-bottom: 1px solid #e3e9e6;
}

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

.handtowel-row.header {
  min-height: 34px;
  color: #fff;
  background: var(--brand-2);
  font-weight: 900;
}

.handtowel-row:not(.header):nth-child(odd) {
  background: #f7faf8;
}

.handtowel-row span,
.handtowel-row strong {
  min-width: 0;
  padding: 0 8px;
}

.handtowel-row .number {
  text-align: right;
}

.handtowel-row .type {
  color: var(--muted);
  text-align: center;
}

.handtowel-row select {
  width: calc(100% - 8px);
  min-height: 28px;
  margin-right: 8px;
  border: 1px solid #aab7b2;
  border-radius: 6px;
  background: #fff;
  text-align: center;
}

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

.handtowel-notes textarea {
  width: 100%;
  min-height: 74px;
  resize: vertical;
  border: 1px solid #bbc7c2;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  padding: 10px 12px;
  font: inherit;
}

.handtowel-actions {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(2, auto);
  gap: 10px;
  align-items: center;
}

.manager-handtowel .handtowel-meta input,
.manager-handtowel .handtowel-notes textarea,
.manager-handtowel select {
  background: #fbfcfb;
}

.search-field {
  max-width: 520px;
  margin-bottom: 12px;
}

.bamboo-form {
  display: grid;
  gap: 12px;
}

.bamboo-meta {
  display: grid;
  grid-template-columns: 0.7fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.bamboo-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.bamboo-summary .total-line {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 6px;
  min-height: 54px;
}

.bamboo-summary .total-line strong {
  min-width: 0;
  font-size: 1.12rem;
  line-height: 1.16;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.bamboo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 8px;
}

.bamboo-list.manager-list {
  grid-template-columns: 1fr;
}

.bamboo-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 78px;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.bamboo-row:nth-child(odd) {
  background: #f7faf8;
}

.bamboo-number {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 8px;
  color: var(--brand);
  background: #dceee9;
  font-weight: 900;
}

.bamboo-name {
  min-width: 0;
}

.bamboo-name strong,
.bamboo-name small {
  display: block;
}

.bamboo-name strong {
  overflow-wrap: anywhere;
}

.bamboo-name small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.bamboo-row input {
  min-height: 40px;
  padding: 0 8px;
  text-align: center;
}

.bamboo-manager-head,
.bamboo-hh-panel {
  display: grid;
  gap: 10px;
  align-items: center;
}

.bamboo-manager-head {
  grid-template-columns: minmax(0, 1fr) auto;
}

.bamboo-manager-head strong,
.bamboo-manager-head span,
.bamboo-hh-panel strong,
.bamboo-hh-panel span {
  display: block;
}

.bamboo-manager-head span,
.bamboo-hh-panel span {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 750;
}

.bamboo-hh-panel {
  grid-template-columns: minmax(0, 1fr);
  padding: 12px;
  border: 1px solid #ead8ad;
  border-radius: 8px;
  background: #fff7e5;
}

.bamboo-manager-actions {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(150px, auto));
  gap: 10px;
  align-items: center;
}

.bamboo-manager-actions button {
  min-width: 0;
  white-space: normal;
}

.entry-layout,
.review-layout {
  display: grid;
  gap: 12px;
}

.panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.section-head,
.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.location-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(92px, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.location-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.location-toggle span {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 850;
}

.location-toggle input:checked + span {
  color: #fff;
  background: var(--accent);
}

.form-grid,
.form-stack,
.button-row {
  display: grid;
  gap: 10px;
}

.form-grid {
  grid-template-columns: minmax(160px, 0.7fr) minmax(180px, 1fr);
  margin-bottom: 16px;
}

.field span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

input[type="text"],
input[type="date"],
input[type="number"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid #bbc7c2;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  padding: 0 12px;
}

input:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(15, 92, 90, 0.16);
}

.money-sections {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 12px;
}

.money-section {
  min-width: 0;
}

.money-section h3 {
  margin-bottom: 8px;
}

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

.denomination-row {
  display: grid;
  grid-template-columns: minmax(58px, max-content) minmax(74px, 1fr);
  grid-template-areas:
    "denomination count"
    "total total";
  align-items: center;
  gap: 6px 8px;
  min-height: 74px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.denomination-row span {
  grid-area: denomination;
  font-weight: 900;
  white-space: nowrap;
}

.denomination-row input {
  grid-area: count;
  min-height: 40px;
  padding: 0 8px;
  text-align: center;
}

.denomination-row strong {
  grid-area: total;
  min-width: 0;
  padding-top: 3px;
  border-top: 1px solid #e3e9e6;
  color: var(--brand);
  text-align: right;
  font-size: 0.96rem;
  white-space: nowrap;
}

.totals-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.total-stack {
  display: grid;
  gap: 8px;
}

.total-stack.compact {
  padding-top: 4px;
}

.total-line,
.cash-drawer,
.review-summary > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--soft);
}

.total-line span,
.cash-drawer span,
.review-summary span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.total-line strong,
.cash-drawer strong,
.review-summary strong {
  color: var(--brand);
  font-size: 1.24rem;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.total-line.featured {
  min-height: 76px;
  background: #e4f3ef;
}

.total-line.featured strong {
  font-size: 2rem;
}

.cash-drawer {
  grid-template-columns: 1fr auto;
  background: #fff7e5;
}

.primary-button,
.secondary-button,
.icon-button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
}

.primary-button {
  width: 100%;
  color: #fff;
  background: var(--brand);
}

.secondary-button {
  display: grid;
  place-items: center;
  min-width: 112px;
  padding: 0 14px;
  color: var(--brand);
  background: #dceee9;
}

.top-back {
  min-width: 116px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  background: var(--brand);
}

.icon-button.danger {
  background: var(--danger);
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.closing-list {
  display: grid;
  gap: 8px;
}

.closing-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  text-align: left;
}

.closing-card.active {
  border-color: var(--brand);
  background: #eaf5f2;
}

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

.closing-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.closing-card em {
  color: var(--brand);
  font-style: normal;
  font-weight: 900;
}

.empty-state {
  padding: 34px 12px;
  color: var(--muted);
  text-align: center;
  font-weight: 750;
}

.comparison-grid {
  display: grid;
  gap: 8px;
}

.compare-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(110px, 0.8fr) minmax(96px, 0.7fr) minmax(110px, 0.7fr);
  align-items: center;
  gap: 8px;
  min-height: 62px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.compare-row span {
  color: var(--muted);
  font-weight: 850;
}

.compare-row strong,
.compare-row em {
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.compare-row em {
  padding: 9px 8px;
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-style: normal;
  font-weight: 900;
}

.compare-row em.positive {
  color: var(--ok);
}

.compare-row em.negative {
  color: var(--danger);
}

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

.button-row {
  grid-template-columns: 1.3fr repeat(3, auto);
  align-items: center;
}

.import-button {
  min-height: 46px;
}

#importJson {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.toast {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateY(88px);
  padding: 13px 14px;
  border-radius: 8px;
  color: #fff;
  background: #24302d;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 900px) {
  .entry-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .review-layout {
    grid-template-columns: 330px minmax(0, 1fr);
  }

  .home-grid {
    grid-template-columns: 1fr;
  }

  .seller-dashboard {
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.55fr);
    align-items: stretch;
  }

  .mode-tabs {
    width: 520px;
  }
}

@media (min-width: 1120px) {
  .seller-order-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .money-sections {
    grid-template-columns: 1fr;
  }

  .denomination-grid.bills {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding-inline: 12px;
  }

  .topbar {
    grid-template-columns: 48px 1fr;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .today-pill {
    display: none;
  }

  .top-back {
    grid-column: 1 / -1;
    width: 100%;
  }

  h1 {
    font-size: 1.6rem;
  }

  .section-head,
  .review-head {
    align-items: stretch;
    flex-direction: column;
  }

  .form-grid,
  .money-sections,
  .seller-dashboard,
  .denomination-grid,
  .denomination-grid.bills,
  .review-summary,
  .button-row,
  .tile-grid,
  .order-grid,
  .file-grid,
  .order-help-controls,
  .summary-grid,
  .detail-grid,
  .order-actions,
  .compact-actions,
  .handtowel-meta,
  .handtowel-summary,
  .handtowel-blocks,
  .handtowel-notes,
  .handtowel-actions,
  .bamboo-meta,
  .bamboo-summary,
  .bamboo-list,
  .bamboo-manager-head,
  .bamboo-manager-actions {
    grid-template-columns: 1fr;
  }

  .order-detail-head {
    align-items: stretch;
    flex-direction: column;
  }

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

  .compare-row strong,
  .compare-row em {
    text-align: left;
  }
}
