:root {
  color-scheme: light;
  --bg: #f4f1ea;
  --panel: #fffaf1;
  --ink: #191714;
  --muted: #70695f;
  --line: #ded6c8;
  --accent: #d43f2f;
  --accent-dark: #a92f24;
  --teal: #147b77;
  --yellow: #f2c84b;
  --green: #3f7a45;
  --disabled: #b7afa3;
  --shadow: 0 18px 42px rgba(33, 27, 19, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(120deg, rgba(212, 63, 47, 0.08), transparent 36%),
    linear-gradient(240deg, rgba(20, 123, 119, 0.09), transparent 40%),
    var(--bg);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 20px;
}

.topbar,
.panel-heading,
.topbar-actions,
.manage-actions,
.form-actions,
.history-summary,
.history-meta {
  display: flex;
  align-items: center;
}

.topbar {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto 18px;
  max-width: 1440px;
  width: 100%;
}

.topbar > div:first-child {
  min-width: 0;
}

.topbar h1,
.panel-heading h2 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: clamp(28px, 5vw, 54px);
  line-height: 0.95;
}

.brand-heading {
  line-height: 1;
}

.brand-logo-img {
  display: block;
  height: auto;
  max-width: 100%;
  width: 172px;
}

.brand-logo-img-large {
  width: min(300px, 76vw);
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.topbar-copy {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  margin: 8px 0 0;
}

.topbar-actions,
.manage-actions,
.form-actions {
  gap: 8px;
}

.manage-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar-actions {
  align-items: center;
  display: grid;
  grid-template-columns: repeat(2, 44px);
  justify-content: flex-end;
  flex-shrink: 0;
}

.topbar-actions:has([hidden]) {
  grid-template-columns: 44px;
}

.workspace {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  grid-template-areas:
    "sales checkout"
    "history checkout"
    "manage checkout"
    "app-switch checkout"
    "feedback checkout";
  margin: 0 auto;
  max-width: 1440px;
  width: 100%;
}

.sales-panel,
.checkout-panel,
.manage-panel,
.history-panel,
.app-switch-panel,
.feedback-panel,
.info-panel {
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.sales-panel {
  grid-area: sales;
  min-height: 420px;
  padding: 18px;
}

.checkout-panel {
  align-self: start;
  grid-area: checkout;
  padding: 18px;
  position: sticky;
  top: 20px;
}

.manage-panel {
  grid-area: manage;
  padding: 18px;
}

.history-panel {
  grid-area: history;
  padding: 18px;
}

.app-switch-panel {
  grid-area: app-switch;
  padding: 18px;
}

.feedback-panel {
  grid-area: feedback;
  padding: 18px;
}

.panel-heading {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-heading.compact {
  margin-bottom: 8px;
}

.search-field {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 8px;
  min-width: min(360px, 45%);
  padding: 0 12px;
}

.search-field svg,
.icon-button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.search-field svg {
  color: var(--muted);
  height: 18px;
  width: 18px;
}

.search-field input {
  border: 0;
  min-height: 44px;
  outline: 0;
  width: 100%;
}

.icon-button {
  align-items: center;
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.icon-button:disabled {
  background: #d8d0c3;
  color: #867c6e;
  opacity: 0.72;
}

.icon-button svg {
  color: #fff;
  display: block;
  flex: 0 0 auto;
  height: 22px;
  stroke: #fff;
  width: 22px;
}

.icon-button:hover {
  background: #3a342b;
}

.product-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.product-button {
  background: #fff;
  border: 2px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 8px;
  min-height: 136px;
  overflow: hidden;
  padding: 14px 14px 14px 20px;
  position: relative;
  text-align: left;
  touch-action: manipulation;
  transition:
    border-color 120ms ease,
    transform 120ms ease;
}

.product-button::before,
.cart-item::before,
.inventory-item::before,
.history-item::before {
  background: var(--artist-color, var(--teal));
  border-radius: 8px 0 0 8px;
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
  top: 0;
  width: 8px;
}

.product-button:hover:not(:disabled),
.product-button:focus-visible {
  border-color: var(--teal);
  outline: 0;
}

.product-button:disabled {
  background: #eee8de;
  color: var(--disabled);
  opacity: 0.82;
}

.product-button.just-added {
  animation: tap-pop 180ms ease-out;
}

.product-button.has-icon {
  min-height: 188px;
}

.product-icon {
  align-items: center;
  background: #f7f1e7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  height: 78px;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

.product-icon img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.product-icon svg {
  fill: none;
  height: 54px;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  width: 54px;
}

.empty-icon {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.product-cart-badge {
  align-items: center;
  background: var(--accent);
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  min-width: 28px;
  padding: 0 7px;
  position: absolute;
  right: 8px;
  top: 8px;
}

.sold-out-label {
  align-items: center;
  background: rgba(25, 23, 20, 0.82);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  padding: 5px 9px;
  position: absolute;
  right: 8px;
  top: 8px;
}

.product-name {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.product-artist {
  background: var(--artist-color, var(--teal));
  border-radius: 999px;
  color: #fff;
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 4px 8px;
  width: fit-content;
}

.product-meta,
.stock-pill,
.cart-meta,
.status-line,
.empty-state span {
  color: var(--muted);
  font-size: 13px;
}

.price-line {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  min-width: 0;
}

.price-line strong {
  font-size: 20px;
}

.stock-pill {
  background: #efe8db;
  border-radius: 999px;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 4px 8px;
  white-space: normal;
}

.stock-pill.low {
  background: rgba(212, 63, 47, 0.18);
  border: 1px solid rgba(212, 63, 47, 0.35);
  color: var(--accent-dark);
  font-weight: 900;
}

.cart-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  min-height: 80px;
}

.cart-item,
.inventory-item,
.history-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px 10px 10px 18px;
  position: relative;
}

.cart-main,
.inventory-main,
.history-main {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.inventory-main {
  display: block;
}

.cart-title,
.inventory-title,
.history-title {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.quantity-controls {
  align-items: center;
  display: flex;
  gap: 6px;
}

.quantity-controls button,
.mini-button {
  background: #f7f1e7;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 10px;
}

.quantity-controls output {
  font-weight: 800;
  min-width: 26px;
  text-align: center;
}

.items-count {
  background: var(--yellow);
  border-radius: 999px;
  color: #2d2418;
  font-weight: 800;
  padding: 6px 10px;
}

.totals,
.payment-box {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
}

.payment-method-field {
  border: 0;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.payment-method-field legend,
.barcode-payment-options > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 4px;
}

.payment-method-switch {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-choice,
.barcode-provider {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  min-height: 44px;
  padding: 8px 10px;
}

.payment-choice.is-selected,
.barcode-provider.is-selected {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.barcode-payment-options {
  display: grid;
  gap: 6px;
}

.barcode-provider-list {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-pill {
  background: #f7f1e7;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 900;
  padding: 4px 8px;
}

.adjustment-row,
.payment-box label,
.total-row,
.change-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.adjustment-row input,
.payment-box input,
.product-form input,
.product-form select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 8px 10px;
  width: 100%;
}

.adjustment-row input,
.payment-box input {
  max-width: 160px;
  text-align: right;
}

.total-row strong {
  color: var(--accent);
  font-size: 36px;
}

.change-row strong {
  font-size: 24px;
}

.primary-button,
.secondary-button,
.ghost-button,
.text-button,
.primary-link,
.undo-button {
  border-radius: 8px;
  font-weight: 800;
  min-height: 44px;
  padding: 0 14px;
}

.primary-button {
  background: var(--accent);
  border: 0;
  color: #fff;
  margin-top: 14px;
  width: 100%;
}

.primary-button:hover:not(:disabled) {
  background: var(--accent-dark);
}

.primary-button:disabled {
  background: var(--disabled);
}

.secondary-button,
.ghost-button,
.text-button,
.undo-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  display: inline-flex;
  justify-content: center;
}

.undo-button {
  border-color: var(--accent);
  color: var(--accent-dark);
  margin-top: 8px;
  width: 100%;
}

.quick-cash {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.cash-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  min-height: 44px;
  padding: 0 12px;
}

.text-button,
.primary-link {
  text-decoration: none;
  white-space: nowrap;
}

.primary-link {
  align-items: center;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  justify-content: center;
  width: fit-content;
}

.ghost-button {
  background: transparent;
}

.file-button {
  position: relative;
}

.file-button input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.product-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.product-form.is-locked {
  opacity: 0.55;
}

.toggle-control {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
  min-height: 44px;
  padding: 0 12px;
  white-space: nowrap;
}

.toggle-control input {
  accent-color: var(--accent);
  height: 18px;
  width: 18px;
}

.icon-field {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0;
  padding: 12px;
}

.icon-field legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  padding: 0 6px;
}

.icon-preview {
  align-self: end;
  max-width: 140px;
}

.management-tools {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.sort-tools {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sort-tools select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  padding: 0 10px;
}

.artist-color-settings {
  display: grid;
  gap: 8px;
}

.artist-color-settings h3 {
  font-size: 14px;
  margin: 0;
}

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

.artist-color-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
  padding: 10px;
}

.artist-color-row > span {
  font-weight: 900;
  overflow-wrap: anywhere;
}

.palette-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.palette-button {
  background: var(--swatch);
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line);
  height: 34px;
  min-width: 34px;
  width: 34px;
}

.palette-button.selected {
  box-shadow: 0 0 0 3px var(--ink);
}

.product-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.product-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.form-actions {
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.form-actions .primary-button,
.form-actions .ghost-button {
  min-width: 112px;
}

.form-actions .primary-button {
  margin: 0;
  width: auto;
}

.inventory-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

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

.sales-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.stat-group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.stat-group h3 {
  font-size: 14px;
  margin: 0 0 8px;
}

.stat-list {
  display: grid;
  gap: 6px;
}

.stat-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.stat-row span {
  overflow-wrap: anywhere;
}

.stat-row strong {
  color: var(--accent);
  white-space: nowrap;
}

.stat-row em,
.stat-empty {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.history-summary {
  gap: 10px;
  margin-bottom: 12px;
}

.history-summary div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  flex: 1;
  gap: 4px;
  padding: 12px;
}

.history-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.history-summary strong {
  font-size: 24px;
}

.history-meta {
  color: var(--muted);
  flex-wrap: wrap;
  font-size: 12px;
  gap: 8px;
}

.info-panel {
  padding: 24px;
  scroll-margin-top: 20px;
}

.info-page {
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 1120px;
  width: 100%;
}

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

.info-block,
.note-box,
.support-card,
.roadmap-list div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.info-block strong,
.note-box strong,
.feedback-copy strong,
.support-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 10px;
}

.info-block p,
.note-box p,
.contact-copy p,
.support-card p,
.section-lead {
  color: var(--muted);
  line-height: 1.85;
  margin: 0;
}

.section-lead {
  margin-top: 8px;
  max-width: 720px;
}

.step-number {
  align-items: center;
  background: var(--yellow);
  border-radius: 999px;
  color: #2d2418;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  margin-bottom: 14px;
  width: 34px;
}

.hint-text {
  background: #f7f1e7;
  border-radius: 8px;
  color: var(--ink) !important;
  font-size: 14px;
  font-weight: 700;
  margin-top: 14px !important;
  padding: 10px 12px;
}

.note-box {
  margin-top: 14px;
}

.app-store-box {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 14px;
  padding: 18px;
}

.app-store-box strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.app-store-box p {
  color: var(--muted);
  line-height: 1.85;
  margin: 0;
}

.app-store-badge,
.google-play-badge {
  background: #050505;
  border-radius: 8px;
  color: #fff;
  display: grid;
  flex: 0 0 auto;
  min-width: 156px;
  padding: 9px 14px 10px;
  text-decoration: none;
}

.app-store-badge span,
.google-play-badge span {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
}

.app-store-badge strong,
.google-play-badge strong {
  font-size: 22px;
  line-height: 1.1;
  margin: 0;
}

.store-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.contact-copy {
  align-content: start;
  display: grid;
  gap: 14px;
}

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

.roadmap-list div {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 86px minmax(0, 1fr);
}

.roadmap-list span {
  background: #efe8db;
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
  text-align: center;
}

.roadmap-list strong {
  overflow-wrap: anywhere;
}

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

.feedback-copy {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.feedback-copy ul {
  color: var(--muted);
  display: grid;
  gap: 8px;
  line-height: 1.65;
  margin: 0;
  padding-left: 1.2em;
}

.feedback-link {
  grid-column: 1 / -1;
}

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

.switch-guide-card {
  align-content: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.switch-guide-card strong {
  display: block;
  font-size: 18px;
}

.switch-guide-card ul,
.switch-guide-card ol {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  padding-left: 1.2em;
}

.switch-guide-card li {
  margin-bottom: 6px;
}

.switch-guide-card p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
  margin: 0;
}

.switch-guide-card-action .store-badge-group {
  justify-self: start;
}

.pro-inline-note {
  background: #fff;
  border: 1px dashed rgba(212, 63, 47, 0.42);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  gap: 6px;
  line-height: 1.6;
  padding: 14px;
}

.pro-inline-note strong {
  color: var(--accent-dark);
}

.stat-group-locked .stat-empty {
  border-color: rgba(212, 63, 47, 0.28);
  color: var(--accent-dark);
  font-weight: 850;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: normal;
}

.support-card {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.policy-list {
  display: grid;
  gap: 14px;
}

.site-footer {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 12px;
  justify-content: space-between;
  margin: 18px auto 0;
  max-width: 1440px;
  width: 100%;
}

.info-shell .site-footer {
  max-width: 1120px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent-dark);
}

.inventory-item {
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
  touch-action: none;
}

.inventory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
  min-width: 0;
}

.inventory-item.is-sortable {
  border-color: var(--teal);
  cursor: grab;
}

.inventory-item.is-dragging {
  opacity: 0.65;
  transform: scale(0.99);
}

.dialog-layer {
  align-items: end;
  background: rgba(25, 23, 20, 0.46);
  display: grid;
  inset: 0;
  padding: 18px;
  position: fixed;
  z-index: 20;
}

.dialog-layer[hidden] {
  display: none;
}

.confirm-sheet {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  margin: 0 auto;
  max-width: 440px;
  padding: 22px;
  width: min(100%, 440px);
}

.confirm-sheet h2,
.confirm-sheet p {
  margin: 0;
}

.confirm-sheet p {
  color: var(--muted);
  line-height: 1.7;
}

.confirm-total {
  color: var(--accent);
  font-size: 38px;
  line-height: 1;
}

.dialog-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.dialog-actions .primary-button {
  margin: 0;
}

@keyframes tap-pop {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(0.96);
  }

  100% {
    transform: scale(1);
  }
}

.empty-state {
  align-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: grid;
  justify-items: center;
  min-height: 170px;
  padding: 20px;
  text-align: center;
}

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .workspace {
    grid-template-columns: 1fr;
    grid-template-areas:
      "checkout"
      "sales"
      "history"
      "manage"
      "app-switch"
      "feedback";
  }

  .checkout-panel {
    position: static;
  }

  .product-form {
    grid-template-columns: 1fr 1fr;
  }

  .info-grid,
  .contact-layout,
  .feedback-layout,
  .switch-guide-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

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

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

  .topbar-copy {
    display: none;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: repeat(2, 44px);
    width: 100%;
  }

  .topbar-actions:has([hidden]) {
    grid-template-columns: 44px;
  }

  .topbar-actions {
    justify-content: start;
  }

  .search-field,
  .manage-actions,
  .product-form,
  .inventory-item,
  .history-summary,
  .info-grid,
  .contact-layout,
  .feedback-layout,
  .switch-guide-grid,
  .support-card,
  .app-store-box {
    width: 100%;
  }

  .manage-actions,
  .sort-tools {
    justify-content: flex-start;
  }

  .search-field,
  .product-form {
    min-width: 0;
  }

  .product-form,
  .inventory-item {
    grid-template-columns: 1fr;
  }

  .product-form > label,
  .product-form input,
  .product-form select,
  .icon-field {
    max-width: none;
    width: 100%;
  }

  .form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .form-actions .primary-button,
  .form-actions .ghost-button {
    width: 100%;
  }

  .history-summary {
    flex-direction: column;
  }

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

  .product-button {
    min-height: 132px;
    padding: 12px;
  }

  .product-button.has-icon {
    min-height: 186px;
  }

  .artist-color-row,
  .dialog-actions {
    grid-template-columns: 1fr;
  }

  .icon-preview {
    max-width: 100%;
  }

  .total-row strong {
    font-size: 32px;
  }

  .adjustment-row input,
  .payment-box input {
    max-width: 118px;
  }

  .sales-stats {
    grid-template-columns: 1fr;
  }

  .info-grid,
  .contact-layout,
  .feedback-layout,
  .switch-guide-grid {
    grid-template-columns: 1fr;
  }

  .support-card {
    align-items: stretch;
    flex-direction: column;
  }

  .app-store-box {
    align-items: stretch;
    flex-direction: column;
  }

  .store-badge-group {
    display: grid;
    grid-template-columns: 1fr;
  }

  .store-badge-group .app-store-badge,
  .store-badge-group .google-play-badge {
    width: 100%;
  }

  .roadmap-list div {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .topbar h1 {
    font-size: 26px;
  }
}

/* Landing page */
.lp-shell {
  gap: 18px;
  overflow-x: clip;
  padding: 14px;
}

.lp-header,
.lp-hero,
.lp-section,
.lp-closing,
.lp-footer {
  margin-left: auto;
  margin-right: auto;
  max-width: 1240px;
  width: 100%;
}

.lp-header {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-height: 48px;
}

.lp-brand {
  color: var(--ink);
  display: inline-flex;
  flex: 0 0 auto;
  text-decoration: none;
}

.lp-nav {
  display: none;
  gap: 14px;
}

.lp-nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.lp-hero {
  align-items: stretch;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  padding: 22px 0 8px;
}

.lp-hero-copy {
  align-content: center;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.lp-hero-copy > * {
  min-width: 0;
  max-width: 100%;
}

.lp-hero h1 {
  font-size: clamp(31px, 5.8vw, 52px);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
  max-width: 680px;
  overflow-wrap: anywhere;
}

.lp-lead,
.lp-section-copy {
  color: var(--muted);
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 750;
  line-height: 1.75;
  margin: 0;
  max-width: 720px;
  overflow-wrap: anywhere;
}

.lp-note,
.lp-note-box {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
  margin: 0;
  overflow-wrap: anywhere;
}

.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lp-browser-link,
.lp-mail-link {
  min-width: 168px;
}

.lp-store-badge {
  box-shadow: 0 12px 28px rgba(25, 23, 20, 0.16);
  min-height: 52px;
  transition:
    box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lp-store-badge:hover,
.lp-store-badge:focus-visible {
  box-shadow: 0 16px 34px rgba(25, 23, 20, 0.22);
  transform: translateY(-2px);
}

.lp-store-badge:active,
.lp-browser-link:active,
.lp-mail-link:active {
  transform: scale(0.97);
}

.lp-hero-media {
  align-self: center;
  background: rgba(255, 250, 241, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 0;
  overflow: hidden;
  width: 100%;
}

.lp-hero-media img {
  aspect-ratio: 16 / 11;
  background: #efe8db;
  display: block;
  height: auto;
  object-fit: cover;
  object-position: left top;
  width: 100%;
}

.lp-hero-media figcaption {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.6;
  padding: 12px 14px 14px;
}

.lp-section,
.lp-closing {
  padding: 42px 0;
}

.lp-section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.lp-section h2,
.lp-closing h2 {
  font-size: clamp(28px, 7vw, 48px);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

.lp-card-grid,
.lp-feature-grid,
.lp-small-grid,
.lp-pricing-grid,
.lp-steps,
.lp-privacy-list,
.lp-faq-list {
  display: grid;
  gap: 14px;
}

.lp-card,
.lp-feature,
.lp-mini-card,
.lp-price-card,
.lp-step,
.lp-faq,
.lp-note-box {
  background: rgba(255, 250, 241, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(33, 27, 19, 0.08);
}

.lp-card,
.lp-feature,
.lp-price-card,
.lp-step {
  padding: 18px;
}

.lp-card,
.lp-feature,
.lp-mini-card,
.lp-price-card {
  transition:
    box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lp-card:hover,
.lp-feature:hover,
.lp-mini-card:hover,
.lp-price-card:hover {
  box-shadow: 0 16px 34px rgba(33, 27, 19, 0.13);
  transform: translateY(-3px);
}

.lp-card h3,
.lp-price-card h3,
.lp-step h3 {
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 10px;
}

.lp-card p,
.lp-feature p,
.lp-step p,
.lp-faq p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

.lp-feature {
  background: #fff;
  display: grid;
  gap: 10px;
  min-height: 168px;
}

.lp-feature strong {
  color: var(--accent-dark);
  font-size: 19px;
}

.lp-mini-card {
  background: #fff;
  font-weight: 850;
  line-height: 1.7;
  padding: 16px;
}

.lp-price-card {
  background: #fff;
}

.lp-price-card-pro {
  border-color: rgba(212, 63, 47, 0.38);
}

.lp-plan {
  background: #efe8db;
  border-radius: 999px;
  color: var(--accent-dark);
  display: inline-flex;
  font-size: 13px;
  font-weight: 950;
  margin-bottom: 14px;
  padding: 7px 10px;
}

.lp-price-card ul {
  color: var(--muted);
  display: grid;
  gap: 9px;
  line-height: 1.6;
  margin: 0;
  padding-left: 1.2em;
}

.lp-price-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.lp-price-summary > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 20px;
}

.lp-price-summary .lp-plan {
  justify-self: start;
  margin-bottom: 2px;
}

.lp-price-summary-pro {
  border-color: rgba(212, 63, 47, 0.42) !important;
}

.lp-price-amount {
  color: var(--accent-dark);
  font-size: 34px;
  line-height: 1;
}

.lp-price-summary p,
.lp-price-footnote {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.lp-compare {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
}

.lp-compare table {
  border-collapse: collapse;
  min-width: 560px;
  width: 100%;
}

.lp-compare th,
.lp-compare td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}

.lp-compare thead th {
  background: #efe8db;
  color: var(--accent-dark);
  font-size: 14px;
  text-align: center;
}

.lp-compare thead th:first-child,
.lp-compare tbody th {
  text-align: left;
}

.lp-compare thead th:first-child {
  width: 64%;
}

.lp-compare tbody th {
  font-size: 15px;
  line-height: 1.5;
}

.lp-compare tbody td {
  text-align: center;
}

.lp-compare tbody tr:last-child th,
.lp-compare tbody tr:last-child td {
  border-bottom: 0;
}

.lp-pro-row {
  background: rgba(212, 63, 47, 0.035);
}

.lp-check {
  color: #147b77;
  font-size: 21px;
  font-weight: 950;
}

.lp-not-included {
  color: #aaa197;
}

.lp-price-footnote {
  font-size: 14px;
  margin-top: 14px;
}

.lp-step {
  display: grid;
  gap: 12px;
}

.lp-step img {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(20, 123, 119, 0.14), rgba(212, 63, 47, 0.1)),
    #efe8db;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  height: auto;
  object-fit: cover;
  object-position: left top;
  width: 100%;
}

.lp-step .step-number {
  margin-bottom: 0;
}

.lp-note-box {
  margin-top: 14px;
  padding: 14px 16px;
}

.lp-privacy-section {
  background: rgba(20, 123, 119, 0.08);
  border: 1px solid rgba(20, 123, 119, 0.18);
  border-radius: 8px;
  padding: 24px;
}

.lp-privacy-list p {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.7;
  margin: 0;
  padding: 14px;
}

.lp-roadmap {
  margin-bottom: 14px;
}

.lp-feedback-link {
  margin-top: 4px;
}

.lp-faq {
  background: #fff;
  overflow: hidden;
}

.lp-faq summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-weight: 900;
  justify-content: space-between;
  list-style: none;
  min-height: 58px;
  padding: 0 16px;
}

.lp-faq summary::-webkit-details-marker {
  display: none;
}

.lp-faq summary::after {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  height: 8px;
  margin-left: 12px;
  transform: rotate(45deg);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
  width: 8px;
}

.lp-faq[open] summary::after {
  transform: rotate(225deg);
}

.lp-faq > div {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lp-faq[open] > div {
  grid-template-rows: 1fr;
}

.lp-faq > div > p {
  border-top: 1px solid var(--line);
  min-height: 0;
  overflow: hidden;
  padding: 14px 16px 16px;
}

.lp-closing {
  background:
    linear-gradient(135deg, rgba(212, 63, 47, 0.12), rgba(20, 123, 119, 0.13)),
    rgba(255, 250, 241, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  padding: 24px;
}

.lp-motion-ready .lp-reveal,
.lp-motion-ready .lp-card,
.lp-motion-ready .lp-feature,
.lp-motion-ready .lp-mini-card,
.lp-motion-ready .lp-step,
.lp-motion-ready .lp-price-card {
  opacity: 0;
  transform: translateY(12px);
}

.lp-motion-ready .lp-reveal.is-visible,
.lp-motion-ready .lp-card.is-visible,
.lp-motion-ready .lp-feature.is-visible,
.lp-motion-ready .lp-mini-card.is-visible,
.lp-motion-ready .lp-step.is-visible,
.lp-motion-ready .lp-price-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1) var(--lp-delay, 0ms),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1) var(--lp-delay, 0ms);
}

.lp-motion-ready .lp-hero-item {
  animation: lp-hero-in 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lp-motion-ready .lp-hero-item:nth-child(2) {
  animation-delay: 100ms;
}

.lp-motion-ready .lp-hero-item:nth-child(3) {
  animation-delay: 200ms;
}

.lp-motion-ready .lp-hero-item:nth-child(4) {
  animation-delay: 300ms;
}

.lp-motion-ready .lp-hero-item:nth-child(5) {
  animation-delay: 400ms;
}

@keyframes lp-hero-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 720px) {
  .lp-shell {
    padding: 20px;
  }

  .lp-nav {
    display: flex;
  }

  .lp-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.92fr);
    min-height: min(680px, calc(100svh - 160px));
    padding-bottom: 30px;
  }

  .lp-three,
  .lp-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lp-feature-grid,
  .lp-small-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-pricing-grid,
  .lp-privacy-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-price-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-privacy-list .primary-link {
    align-self: stretch;
    width: 100%;
  }
}

@media (min-width: 1040px) {
  .lp-section,
  .lp-closing {
    padding-bottom: 58px;
    padding-top: 58px;
  }

  .lp-feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lp-hero {
    gap: 18px;
    grid-template-columns: minmax(0, 0.92fr) minmax(500px, 0.98fr);
  }

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

@media (max-width: 430px) {
  .lp-compare table {
    min-width: 0;
  }

  .lp-compare th,
  .lp-compare td {
    padding: 11px 8px;
  }

  .lp-compare thead th:first-child {
    width: 58%;
  }

  .lp-compare tbody th {
    font-size: 13px;
  }

  .lp-compare thead th {
    font-size: 12px;
  }

  .lp-hero h1 {
    font-size: clamp(29px, 9vw, 34px);
  }

  .lp-lead,
  .lp-note {
    word-break: break-all;
  }

  .lp-hero-actions {
    display: grid;
  }

  .lp-store-badge,
  .lp-browser-link,
  .lp-mail-link {
    width: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  .lp-motion-ready .lp-reveal,
  .lp-motion-ready .lp-card,
  .lp-motion-ready .lp-feature,
  .lp-motion-ready .lp-mini-card,
  .lp-motion-ready .lp-step,
  .lp-motion-ready .lp-price-card,
  .lp-motion-ready .lp-hero-item {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .lp-store-badge,
  .lp-card,
  .lp-feature,
  .lp-mini-card,
  .lp-price-card,
  .lp-faq > div,
  .lp-faq summary::after {
    animation: none !important;
    transition: none !important;
  }
}
