:root {
  --ink: #193a2a;
  --muted: #657367;
  --green: #285a3b;
  --soft: #eef4e9;
  --paper: #fff;
  --line: #dee5db;
  --danger: #ad3f2e;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    "Noto Sans Malayalam", sans-serif;
  color: var(--ink);
  background: #f6f7f2;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  touch-action: manipulation;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #b99a37;
  outline-offset: 3px;
}
button {
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 46px;
  padding: 10px 15px;
  background: white;
  color: var(--ink);
  font-weight: 650;
}
button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.quiet {
  background: white;
}
.text-button {
  border: 0;
  background: transparent;
  padding: 5px 0;
  color: var(--green);
  min-height: 44px;
  text-align: left;
}
.danger {
  color: var(--danger);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 24px;
  letter-spacing: -0.6px;
  line-height: 1.3;
}
h2 {
  font-size: 18px;
  line-height: 1.4;
}
small,
.hint,
.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.hint {
  margin: 12px 0;
}
.app-header {
  max-width: 1120px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
}
.brand {
  display: flex;
  align-items: center;
  min-height: 44px; /* P2-17 tap target */
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-size: 22px;
  font-weight: 750;
}
.brand img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
}
.header-tools {
  display: flex;
  gap: 8px;
}
.header-tools button {
  font-size: 13px;
}
.main-nav {
  display: flex;
  gap: 6px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f6f7f2;
  padding: 8px max(20px, calc((100% - 1072px) / 2));
  position: sticky;
  top: 0;
  z-index: 5;
}
.main-nav button {
  border: 0;
  flex: 1;
  max-width: 200px;
  background: transparent;
}
.main-nav button.active {
  background: var(--green);
  color: white;
}
main {
  max-width: 1120px;
  margin: auto;
  padding: 20px 24px 36px;
}
.sale-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 63px;
  background: #f6f7f2;
  z-index: 4;
  padding: 12px 0 16px;
}
.estimate-button {
  min-width: 170px;
  box-shadow: 0 3px 12px #193a2a16;
}
.estimate-button span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-top: 3px;
}
.search-row {
  display: flex;
  gap: 10px;
  margin: 4px 0 20px;
}
.search-row input {
  flex: 1;
  min-width: 0;
}
.edit-toggle.on {
  background: var(--ink);
  color: #fff;
}
.edit-banner {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px dashed var(--ink);
  border-radius: 10px;
  font-size: 14px;
}
.product-grid.editing .product-tile {
  border-style: dashed;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.product-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  min-width: 0;
  padding: 15px;
  background: white;
  box-shadow: 0 2px 7px #193a2a05;
  min-height: 186px;
}
.product-tile.chosen {
  border-color: var(--green);
  background: #f0f5eb;
  box-shadow: inset 0 0 0 1px var(--green);
}
.product-tile.out {
  background: #f0f1ec;
  color: #6c756a;
}
.product-photo,
.photo-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.photo-placeholder {
  display: grid;
  place-items: center;
  font-size: 25px;
  color: #54734d;
  background: #ebf1e5;
}
.product-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.product-copy strong {
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.product-price {
  font-weight: 650;
  font-size: 15px;
}
.product-copy small {
  font-size: 13px;
}
.selected-quantity {
  font-size: 13px;
  color: var(--green);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.full-search {
  width: 100%;
  margin-bottom: 15px;
}
.inventory-list {
  display: grid;
  gap: 10px;
}
.inventory-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.inventory-card > div {
  flex: 1;
  min-width: 0;
}
.inventory-card h2 {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.inventory-card p {
  font-size: 14px;
  margin: 4px 0;
}
.inventory-card small {
  display: block;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  padding: 20px;
  margin-bottom: 18px;
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
.metrics article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.metrics strong {
  font-size: 29px;
  color: var(--green);
  overflow-wrap: anywhere;
}
.metrics span {
  font-size: 13px;
  color: var(--muted);
}
.metrics .loss strong {
  color: var(--danger);
}
.report-controls {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.segmented {
  display: flex;
  background: #e9eee3;
  padding: 4px;
  border-radius: 14px;
  gap: 3px;
}
.segmented button {
  background: transparent;
  border: 0;
  padding: 8px 17px;
}
.segmented button.selected {
  background: white;
  box-shadow: 0 1px 4px #193a2a20;
}
.date-label {
  font-size: 12px;
  margin: 0;
}
.date-label input {
  font-size: 13px;
}
.chart {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  min-height: 180px;
}
.chart-point {
  border: 0;
  padding: 0;
  flex: 1 0 36px;
  max-width: 90px;
  min-height: 170px;
  font-weight: 500;
  background: transparent;
}
.chart-track {
  height: 145px;
  position: relative;
  display: block;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(
    to bottom,
    transparent 49.5%,
    #adbfa3 49.5%,
    #adbfa3 50.5%,
    transparent 50.5%
  );
}
.chart-track i {
  position: absolute;
  left: 15%;
  width: 70%;
  background: var(--green);
  border-radius: 5px;
}
.chart-track .negative {
  background: var(--danger);
}
.chart-point small {
  font-size: 10px;
}
.history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 15px 0;
  font-weight: 500;
}
.history-row span {
  min-width: 0;
}
.history-row strong {
  font-size: 14px;
}
.history-row small {
  display: block;
  font-size: 12px;
}
.app-note {
  font-size: 11px;
  text-align: center;
  color: var(--muted);
  padding: 8px 15px 25px;
}
.empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 40px 15px;
  line-height: 1.8;
}
.empty p {
  color: var(--muted);
  margin: 10px 0 20px;
}
.saved-draft {
  margin-top: 15px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 16px;
}
label small {
  font-weight: 400;
}
input,
select,
textarea {
  border: 1px solid #cdd8c8;
  border-radius: 10px;
  padding: 12px;
  min-height: 46px;
  background: white;
  color: var(--ink);
  max-width: 100%;
  width: 100%;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #668b55;
  outline-offset: 1px;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.check {
  flex-direction: row;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 400;
}
.check input {
  width: 24px;
  height: 24px;
  min-height: 24px;
  margin-top: 2px;
  flex-shrink: 0;
}
.full {
  width: 100%;
}
details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin: 4px 0 16px;
}
summary {
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px; /* P2-17 tap target */
  padding: 8px 0;
  box-sizing: border-box;
  line-height: 1.6;
}
details[open] summary {
  margin-bottom: 15px;
}
.warning-box {
  padding: 12px;
  background: #fff5dc;
  border-radius: 10px;
  color: #795314;
  font-size: 13px;
  line-height: 1.65;
  margin: 12px 0;
}
.warning-inline {
  font-size: 13px;
  line-height: 1.6;
  color: #9c4728;
}
.warning-inline:not(:empty) {
  margin: 12px 0;
}
[hidden] {
  display: none !important;
}
dialog {
  padding: 0;
  border: 0;
  border-radius: 20px;
  width: min(560px, calc(100% - 24px));
  max-height: 90dvh;
  color: var(--ink);
  box-shadow: 0 20px 90px #10251d50;
  background: white;
}
dialog::backdrop {
  background: #10251d75;
  backdrop-filter: blur(3px);
}
.wide-sheet {
  width: min(650px, calc(100% - 24px));
}
.sheet-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.sheet-header h2 {
  font-size: 18px;
}
.close {
  font-size: 27px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
}
.sheet-body {
  padding: 20px;
}
.sheet-footer {
  position: sticky;
  bottom: 0;
  background: white;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.wide-sheet .sheet-footer button {
  flex: 1;
  padding: 12px 6px;
}
.measure-display {
  background: #182a22;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  margin: 22px 0 10px;
  color: #e6f0ac;
}
.digital {
  font:
    600 40px ui-monospace,
    SFMono-Regular,
    monospace;
  letter-spacing: 1px;
  background: transparent;
  border: 0;
  color: #e6f0ac;
  width: 100%;
  padding: 4px;
  appearance: textfield;
}
.digital::-webkit-inner-spin-button {
  appearance: none;
}
.measure-display strong {
  font-size: 15px;
}
.measure-amount {
  text-align: center;
  font-size: 27px;
  font-weight: 700;
  margin: 20px 0 0;
}
input[type="range"] {
  appearance: none;
  width: 100%;
  height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  outline-offset: 3px;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  background: #dce7d2;
  border-radius: 9px;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 32px;
  height: 32px;
  margin-top: -12px;
  background: var(--green);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 1px 6px #0003;
}
input[type="range"]::-moz-range-track {
  height: 8px;
  background: #dce7d2;
  border-radius: 9px;
}
input[type="range"]::-moz-range-thumb {
  width: 27px;
  height: 27px;
  background: var(--green);
  border: 3px solid white;
  border-radius: 50%;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.receipt-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.receipt-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.receipt-brand strong {
  font-size: 20px;
}
.receipt-brand p {
  font-size: 12px;
  margin-top: 5px;
}
.receipt-meta {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  overflow-wrap: anywhere;
  margin: 16px 0;
}
.estimate-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.estimate-line p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 5px;
}
.estimate-line > strong {
  white-space: nowrap;
}
.line-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.line-actions button {
  font-size: 12px;
  min-height: 44px; /* P2-17 */
}
.receipt-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 22px 0 12px;
}
.receipt-total strong {
  font-size: 25px;
}
.record-area {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 20px;
}
.record-area button {
  border-color: #839c77;
}
.record-area small {
  font-size: 12px;
}
.more-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.more-menu button {
  text-align: left;
  min-height: 52px;
}
.more-menu button .lang-english {
  display: block;
  font-size: 12px;
  font-weight: 400;
}
.more-menu button[aria-current="true"] {
  border-color: var(--green, currentColor);
}
.policy-copy {
  display: grid;
  gap: 18px;
  font-size: 14px;
  line-height: 1.85;
}
.template-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}
.template-card {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.template-card span {
  font-size: 22px;
}
.template-card.selected {
  border-color: var(--green);
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--green);
}
#notice {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 120px);
  opacity: 0;
  transition: 0.2s;
  background: #193a2a;
  color: white;
  border-radius: 12px;
  padding: 13px 18px;
  max-width: min(600px, calc(100% - 24px));
  width: max-content;
  font-size: 14px;
  box-shadow: 0 5px 20px #0003;
  pointer-events: none;
}
#notice.visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
#notice button {
  background: transparent;
  border: 0;
  color: #e9f4aa;
  margin-left: 15px;
  padding: 0;
  min-height: 30px;
}
@media (max-width: 760px) {
  .app-header {
    padding: 14px 16px;
    gap: 8px;
  }
  .brand {
    font-size: 18px;
  }
  .brand img {
    width: 36px;
    height: 36px;
  }
  .brand small {
    font-size: 9px;
    max-width: 150px;
  }
  .header-tools {
    gap: 5px;
  }
  .header-tools button {
    padding: 8px;
    font-size: 12px;
    min-height: 44px;
  }
  .main-nav {
    padding: 7px 14px;
  }
  .main-nav button {
    max-width: none;
    font-size: 14px;
  }
  .sale-toolbar {
    top: 61px;
  }
  .sale-toolbar h1 {
    font-size: 19px;
  }
  .sale-toolbar small {
    font-size: 11px;
  }
  .estimate-button {
    min-width: 134px;
    font-size: 14px;
    padding: 9px 10px;
  }
  .estimate-button span {
    font-size: 12px;
  }
  main {
    padding: 10px 15px 24px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .product-tile {
    min-height: 190px;
    padding: 13px;
  }
  .product-copy strong {
    font-size: 16px;
  }
  .product-copy small {
    font-size: 12px;
  }
  .product-price {
    font-size: 14px;
  }
  .metrics article {
    padding: 15px;
  }
  .metrics strong {
    font-size: 23px;
  }
  .metrics span {
    font-size: 12px;
  }
  .report-controls {
    align-items: stretch;
    flex-direction: column;
  }
  .segmented button {
    flex: 1;
  }
  .date-label {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }
  .date-label input {
    width: auto;
  }
  .section-heading h1 {
    font-size: 22px;
  }
  .inventory-card {
    gap: 10px;
    padding: 12px;
  }
  .inventory-card .product-photo,
  .inventory-card .photo-placeholder {
    width: 42px;
    height: 42px;
  }
  .inventory-card small {
    font-size: 12px;
  }
  .inventory-card .quiet {
    font-size: 12px;
    padding: 8px;
    min-width: 44px;
  }
  .panel {
    padding: 16px;
  }
  .section-heading small {
    font-size: 11px;
  }
  .sheet-header,
  .sheet-body {
    padding: 16px;
  }
  .sheet-footer {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }
  .history-row > strong {
    font-size: 13px;
  }
  .history-row small {
    font-size: 11px;
  }
  .digital {
    font-size: 36px;
  }
}
@media (max-width: 360px) {
  .brand small {
    display: none;
  }
  .header-tools button {
    font-size: 11px;
  }
  .sale-toolbar {
    align-items: stretch;
  }
  .sale-toolbar h1 {
    font-size: 17px;
  }
  .sale-toolbar small {
    display: none;
  }
  .estimate-button {
    min-width: 123px;
  }
  .field-pair {
    gap: 8px;
  }
  .product-copy strong {
    font-size: 15px;
  }
  .product-tile {
    padding: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
:root {
  color-scheme: light;
}
.app-header {
  flex-wrap: wrap;
}
.header-tools {
  margin-left: auto;
}
.main-nav button {
  min-width: 0;
  overflow-wrap: anywhere;
}
.metrics article small,
.metrics article span {
  overflow-wrap: anywhere;
}
.inventory-card > div {
  overflow-wrap: anywhere;
}
@media (max-width: 360px) {
  .main-nav button {
    font-size: 12px;
    padding: 9px 4px;
  }
  .app-header {
    row-gap: 8px;
  }
  .header-tools {
    margin-left: auto;
  }
}
.shop-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  margin: 3px 0 4px;
  padding: 10px 12px;
  border-style: dashed;
  background: #f0f4eb;
  min-width: 0;
}
.shop-identity > span {
  font-size: 12px;
  color: var(--green); /* P2-17: 4.5:1 on the dashed panel; --muted fell short at 12 px */
  flex-shrink: 0;
}
.shop-identity strong {
  font-size: 15px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.brand small {
  overflow-wrap: anywhere;
}
.receipt-shop-name {
  font-size: 23px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  margin: 18px 0 8px;
}
.estimate-line.aligned-line {
  display: block;
}
.receipt-item-name {
  display: block;
  font-size: 16px;
  overflow-wrap: anywhere;
  margin-bottom: 10px;
}
.receipt-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 10px;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.receipt-columns > span,
.receipt-columns > strong {
  text-align: right;
  min-width: 0;
}
.receipt-columns > span:first-child {
  text-align: left;
}
.receipt-columns small {
  display: block;
  font-size: 11px;
  line-height: 1.4;
}
.receipt-rate,
.receipt-amount {
  white-space: nowrap;
  font-size: 15px;
}
.receipt-column-labels {
  border-bottom: 1px solid var(--line);
  padding: 12px 0 8px;
  font-size: 12px;
  color: var(--muted);
}
.receipt-total {
  font-variant-numeric: tabular-nums;
}
.receipt-total > strong {
  font-size: 20px;
  text-align: right;
  white-space: nowrap;
}
.receipt-total > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.receipt-item-name + .receipt-columns {
  margin-bottom: 3px;
}
@media (max-width: 360px) {
  .receipt-rate,
  .receipt-amount {
    font-size: 13px;
  }
  .receipt-columns {
    gap: 7px;
  }
  .receipt-total > strong {
    font-size: 18px;
  }
  .shop-identity {
    gap: 8px;
  }
  .shop-identity strong {
    font-size: 14px;
  }
}
.print-size-label {
  padding: 12px;
  background: #f2f5ed;
  border-radius: 12px;
  font-size: 13px;
}
.print-size-label select {
  font-size: 14px;
}
.print-size-label small {
  font-size: 11px;
}

/* Keep consent actions separate and easy to tap on narrow screens. */
#updatedTermsForm {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
#updatedTermsForm .text-button {
  width: 100%;
  padding: 10px 0;
  line-height: 1.4;
}
#updatedTermsForm .primary {
  margin-top: 4px;
}

.slip-actions { display: flex; justify-content: flex-end; margin: 12px 0; }
.slip-actions button { min-height: 44px; }

.variant-list { display: grid; gap: 8px; margin-top: 14px; }
.variant-choice { display: flex; width: 100%; align-items: center; gap: 12px; text-align: left; padding: 10px; }
.variant-choice .product-photo, .variant-choice .photo-placeholder { width: 48px; height: 48px; }
.variant-choice span:nth-child(2) { flex: 1; min-width: 0; }
.variant-choice strong, .variant-choice small { display: block; overflow-wrap: anywhere; }
.variant-choice small { margin-top: 4px; color: var(--muted); }

.catalogue-section-title { grid-column: 1 / -1; margin: 10px 0 0; font-size: 15px; color: var(--muted); }

/* Quick price entry: one row per product, name left, price right. */
.quick-price-list {
  display: grid;
  gap: 2px;
  margin-bottom: 12px;
}
.quick-price-row {
  display: grid;
  grid-template-columns: 1fr 112px;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.quick-price-row span {
  overflow-wrap: anywhere;
}
.quick-price-row small {
  display: block;
  color: var(--muted);
}
.quick-price-row input {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.quick-price-row input[aria-invalid="true"] {
  border-color: var(--danger);
  outline: 2px solid var(--danger);
}
.check small {
  display: block;
  color: var(--muted);
}

.ios-install-tip { display: grid; gap: 8px; margin-bottom: 16px; padding: 12px; background: #f1f5ed; border-radius: 12px; }
.ios-install-tip img { display: block; max-width: 100%; height: auto; }
.ios-install-tip p { line-height: 1.45; font-size: 13px; }
.backup-reminder { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.backup-reminder .reminder-actions { display: flex; gap: 8px; }
.backup-reminder button { min-height: 44px; }
.slip-token { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 0; }
.slip-token small { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.slip-token strong { font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.storage-meter { margin-top: 6px; }
.storage-meter .meter { height: 8px; border-radius: 4px; background: #e4ebe4; overflow: hidden; margin: 4px 0 8px; }
.storage-meter .meter span { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.storage-meter.storage-full .meter span { background: #b4441f; }


/* Standalone daily selling-price boards. */
.price-board-tile{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin:0 0 16px;padding:16px;background:#fbf4e4;border:1px solid #c7c1a7;text-align:left;color:#173525}
.price-board-tile strong{font-size:18px}.price-board-tile span{font-size:13px;max-width:55%}
.price-board-controls{display:flex;gap:8px;margin:12px 0}.price-board-controls button{flex:1}
.price-board-choice{display:grid;grid-template-columns:24px minmax(0,1fr) minmax(90px,40%);align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line);min-height:52px;font-size:15px}
.price-board-choice input{width:22px;height:22px;margin:0}.price-board-choice span,.price-board-choice strong{overflow-wrap:anywhere}.price-board-choice strong{text-align:right;font-size:14px}
.price-board-preview{display:block;width:100%;height:auto;border:1px solid #c7c1a7;background:#fbf4e4}
.price-board-export{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%}.price-board-export button{min-height:46px;padding:9px 4px;font-size:14px;overflow-wrap:anywhere}
@media(max-width:400px){.price-board-tile{align-items:flex-start;flex-direction:column}.price-board-tile span{max-width:100%}}

/* P1-15: today-only price. */
.was-price{color:#6b7268;font-weight:400;margin-right:2px}.today-tag{font-style:normal;font-size:.8em;font-weight:700;color:#9a4b00}

/* Pay-by-UPI QR (upi.js): settings group and the QR under the slip total */
.upi-settings {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 12px 2px;
  margin: 10px 0;
}
.upi-settings legend {
  font-weight: 700;
  padding: 0 4px;
}
.pay-qr {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.pay-qr-code {
  flex: none;
  max-width: 45vw;
  height: auto;
}
.pay-qr figcaption strong {
  display: block;
  font-size: 1.35em;
  margin-top: 2px;
}
.pay-qr figcaption small {
  display: block;
  overflow-wrap: anywhere;
  opacity: 0.75;
}
.pay-qr-check {
  margin-top: 6px;
}
.upi-settings small {
  display: block;
  margin: 4px 0;
  opacity: 0.75;
}
/* Pre-launch review M2: shown by storage-guard.js when the browser blocks storage. */
.storage-blocked{max-width:34rem;margin:2rem auto;padding:1.25rem;line-height:1.5}
.storage-blocked h1{font-size:1.25rem;margin:0 0 .5rem}
.storage-blocked p{margin:0 0 1.25rem}
/* Demo address only (demo.js): switcher bar for the ready-made demo shops. In normal flow, not sticky, so it never
   covers the app's own sticky headers. */
.demo-bar{display:flex;flex-wrap:wrap;gap:.5rem .75rem;align-items:center;padding:.5rem .75rem;background:#1f3a2c;color:#fff;font-size:.875rem}
.demo-bar strong{letter-spacing:.08em}
.demo-bar .demo-note{opacity:.85}
.demo-bar .demo-shops{display:flex;flex-wrap:wrap;gap:.4rem}
.demo-bar button{min-height:44px;padding:.25rem .8rem;border:1px solid rgba(255,255,255,.55);border-radius:999px;background:transparent;color:#fff;font:inherit;cursor:pointer}
.demo-bar button.active{background:#fff;color:#1f3a2c;font-weight:700}
.demo-bar .demo-restart{margin-left:auto;border-style:dashed}
