:root { color-scheme: light; --ink: #1d2a24; --brand: #0e3b2c; --gold: #c9a13b; --bg: #f6f5f1; --card: #fff; --line: #e3e1d8; --bad: #a32020; --muted: #6b6f69; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
main { max-width: 1100px; margin: 0 auto; padding: 16px; padding-top: calc(16px + env(safe-area-inset-top, 0px)); padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
h1 { font-size: 1.6rem; margin: .4rem 0 .6rem; }
h2 { font-size: 1.2rem; margin: 1.2rem 0 .4rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 12px 0; }
.btn { display: inline-block; background: var(--brand); color: #fff; border: 1px solid var(--brand); border-radius: 10px; padding: 9px 14px; font: inherit; cursor: pointer; text-decoration: none; margin: 4px 4px 4px 0; }
.btn.ghost { background: #fff; color: var(--brand); }
.btn.danger { background: var(--bad); border-color: var(--bad); }
input, select, textarea { width: 100%; padding: 9px 10px; border: 1px solid #cfcdc4; border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
input[type="checkbox"] { width: auto; }
label { display: block; margin: 10px 0; font-size: .92rem; color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap { overflow-x: auto; }
.muted { color: var(--muted); }
.flash { padding: 10px 12px; border-radius: 8px; background: #e8f3ec; color: #124d30; margin: 10px 0; min-height: 0; }
.flash:empty { display: none; }
.flash.bad { background: #fbeaea; color: var(--bad); }
.nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.nav button { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; font: inherit; }
.nav button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 12px 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.stat b { display: block; font-size: 1.5rem; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #eef0ec; font-size: .8rem; margin-left: 4px; }
.product-row { border-bottom: 1px solid var(--line); padding: 10px 0; }
.product-row:last-child { border-bottom: 0; }
.link { font-size: .85rem; word-break: break-all; color: var(--muted); }
.reply { background: #eef6f1; border-radius: 8px; padding: 8px 10px; }
.product .price { font-size: 1.4rem; color: var(--brand); font-weight: 700; }
.crumb { color: var(--muted); font-size: .9rem; }
.choice { display: block; width: 100%; text-align: left; padding: 14px 16px; margin: 8px 0; min-height: 52px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 1.05rem; cursor: pointer; }
.choice:active, .choice.on { border-color: var(--brand); background: #eef6f1; }
.wizard select, .wizard input { font-size: 1.05rem; min-height: 48px; }
.progress { color: var(--muted); font-size: .9rem; margin: 4px 0; }
.linkish { background: none; border: 0; color: var(--brand); font: inherit; text-decoration: underline; cursor: pointer; padding: 6px 0; }
.hint { color: var(--muted); font-size: .9rem; margin: 6px 0 0; }
.product-photo { display: block; max-width: 100%; height: auto; border-radius: 12px; margin: 8px 0 14px; }
.serial { color: #5a6b66; margin: 0 0 6px; }
.on-request { font-size: 1.1em; font-weight: 600; }
.points { padding-left: 1.2em; margin: 10px 0; }
.points li { margin: 4px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
[hidden] { display: none !important; }
.quotes .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 16px; margin-bottom: 16px; }
.quotes label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.quotes input, .quotes textarea { font: inherit; padding: 8px; border: 1px solid #c9d3cf; border-radius: 8px; width: 100%; box-sizing: border-box; }
.quotes table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.quotes th, .quotes td { text-align: left; padding: 6px 4px; border-bottom: 1px solid #e3e3e3; vertical-align: top; }
.quotes fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.quotes fieldset:disabled input, .quotes fieldset:disabled textarea { background: #f3f3f1; }
.quotes .flash { min-height: 1.2em; }
.quotes .flash.bad { color: #9b1c1c; }

/* Pramsia brand, taken from the store app: deep green, gold, blue, leaf green, coral. */
:root { --deep: #0E3B2C; --sun: #D9A931; --pool: #0F6FB5; --leaf: #2FB67C; --coral: #F25C3B; --tile: #F7FAFC; --ink: #0B2238; --soft: #5A6E84; --line: #D5E2EE; }
body { font-family: 'Bricolage Grotesque', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--tile); }
.brand-bar { background: var(--deep); color: #fff; display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.brand-bar img { height: 44px; width: auto; }
.brand-bar .brand-name { font-weight: 700; letter-spacing: 0.02em; }
.brand-bar .brand-name span { color: var(--sun); }
.btn { background: var(--deep); color: #fff; border: 1px solid var(--deep); }
.btn.ghost { background: transparent; color: var(--deep); border: 1px solid var(--deep); }
.btn.danger { background: var(--coral); border-color: var(--coral); }
a { color: var(--pool); }
.points li::marker { color: var(--leaf); }


/* Product photos fit completely inside their frame, whatever the frame's size. */
.product-photo{display:block;width:100%;max-width:520px;height:auto;max-height:420px;object-fit:contain;background:#fff;border-radius:16px;padding:12px;box-sizing:border-box;margin:0 0 16px}
.photo-frame{width:120px;height:120px;object-fit:contain;background:#fff;border:1px solid #e6dfc9;border-radius:12px;padding:6px;box-sizing:border-box}
