/* One Day Only partner portal - round 2 look.
   Fits the One Day Only website (studied 14 Oct 2026): blue header band, Montserrat for headings,
   prices and buttons, Open Sans for text, rounded white cards on a light grey page, the price in
   large type with the "was" price struck through and the saving in a magenta badge, pill buttons,
   generous white space. Mobile first. */
:root {
  --blue: #0093d0; --blue-dark: #1565a8; --blue-ink: #0b5e94; --blue-soft: #e5f4fa;
  --ink: #2b2f33; --text: #444444; --muted: #747e86; --line: #dfe5eb; --bg: #f6f8fa; --card: #ffffff;
  --magenta: #e50e62; --green: #1f9d55; --green-soft: #e8f7ee; --red: #e30f13; --red-soft: #fdeceb;
  --amber: #c77700; --amber-soft: #fff4e0; --lime: #b8d72f;
  --head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body: "Open Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius: 16px; --radius-sm: 10px; --shadow: 0 2px 10px rgba(20, 40, 60, 0.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--body); color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .price, .btn, .tab, .count, .light-hero .word, .chip.date { font-family: var(--head); }
h1 { font-size: 24px; margin: 0 0 4px; color: var(--ink); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 20px; margin: 0; color: var(--ink); font-weight: 700; }
h3 { font-size: 15.5px; margin: 0; color: var(--ink); font-weight: 700; }
p { margin: 0 0 10px; }
a { color: var(--blue-ink); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 480px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.hidden { display: none !important; }
code { background: var(--blue-soft); padding: 1px 5px; border-radius: 5px; font-size: 13px; }
.sr { position: absolute; left: -9999px; }
.mt6 { margin-top: 6px; } .mt8 { margin-top: 8px; }
h4.sub-h { margin: 14px 0 4px; font-size: 14px; color: var(--ink); }

/* ---------- header, like the One Day Only band ---------- */
.topbar { background: linear-gradient(135deg, #0a9ad8 0%, #0e7cc0 55%, #1565a8 100%); color: #fff; box-shadow: 0 2px 12px rgba(0, 60, 110, 0.25); }
.topbar .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 8px; flex-wrap: wrap; }
.wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.wordmark .mark { font-family: var(--head); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.wordmark .mark b { color: #cfeefc; font-weight: 800; }
.wordmark .sub { font-size: 11.5px; opacity: 0.9; margin-top: 3px; }
.countdown { text-align: center; }
.countdown .k { display: block; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.9; }
.countdown .v { display: block; font-family: var(--head); font-weight: 700; font-size: 17px; letter-spacing: 0.02em; }
.user { font-size: 12.5px; display: flex; align-items: center; gap: 10px; }
.user .btn { margin: 0; }
.tabs { display: flex; gap: 6px; padding: 4px 16px 10px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; padding: 8px 13px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; font-size: 13px; font-weight: 600; white-space: nowrap; }
.tab:hover { background: rgba(255, 255, 255, 0.22); }
.tab.on { background: #fff; color: var(--blue-ink); border-color: #fff; }
.tab .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--magenta); color: #fff; font-size: 11px; line-height: 20px; text-align: center; }
.tab.on .count { background: var(--blue); }
.banner { background: var(--amber-soft); border-bottom: 1px solid #f3d9a4; color: #7a4a00; padding: 8px 16px; font-size: 13px; text-align: center; }
main.wrap { padding-top: 16px; padding-bottom: 48px; }
.screen { display: none; } .screen.on { display: block; }
.screen-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 12px; }
.screen-head p { margin: 2px 0 0; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 12px; box-shadow: var(--shadow); }
.cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .cards { grid-template-columns: 1fr 1fr; } }
#board-list.cards, #requests-list.cards { grid-template-columns: 1fr; }
@media (min-width: 960px) { #board-list.cards, #requests-list.cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .cards.three { grid-template-columns: 1fr 1fr 1fr; } }
.card.sample, .deal.sample { border-top: 4px solid #f3c56b; }

/* ---------- filter chips ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.filter { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); font-size: 12.5px; cursor: pointer; font-weight: 600; }
.filter.on { background: var(--blue-ink); color: #fff; border-color: var(--blue-ink); }

/* ---------- deal card (the One Day Only product card) ---------- */
.deal { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.deal .media { position: relative; aspect-ratio: 16 / 10; max-height: 210px; background: linear-gradient(180deg, #f2f6f9, #e6edf3); display: flex; align-items: center; justify-content: center; }
.deal .media img { width: 100%; height: 100%; object-fit: contain; }
.deal .media .ph { width: 72px; height: 72px; color: #9fb0bf; }
.deal .media .ph-note { position: absolute; bottom: 8px; left: 12px; font-size: 11px; color: #8a98a6; }
.badge { position: absolute; top: 12px; right: 12px; background: var(--magenta); color: #fff; font-family: var(--head); font-weight: 800; font-size: 15px; padding: 6px 10px; border-radius: 10px; letter-spacing: -0.01em; }
.badge.grey { background: #8a98a6; font-size: 11.5px; font-weight: 700; }
.badge.amber { background: var(--amber); }
.brandchip { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, 0.92); color: var(--blue-ink); font-family: var(--head); font-weight: 700; font-size: 12px; padding: 4px 9px; border-radius: 999px; }
.deal .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.deal .brand { font-family: var(--head); font-weight: 700; font-size: 13.5px; color: var(--ink); }
.deal .name { font-size: 14.5px; color: var(--text); line-height: 1.35; }
.deal .name .sku { color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price { font-size: 30px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; }
.price.unset { font-size: 17px; color: var(--muted); font-weight: 600; }
.was { color: var(--muted); font-size: 15px; text-decoration: line-through; }
.was .lbl { text-decoration: none; font-size: 11.5px; margin-left: 4px; }
.net { font-size: 13.5px; color: var(--text); }
.net b { font-family: var(--head); font-weight: 700; color: var(--blue-ink); font-size: 15px; }
.net.unset { color: var(--amber); font-weight: 600; }
.light { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius-sm); font-weight: 600; font-size: 13.5px; }
.light::before { content: ""; width: 12px; height: 12px; border-radius: 50%; flex: 0 0 12px; box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06); }
.light.green { background: var(--green-soft); color: #14703c; } .light.green::before { background: var(--green); }
.light.red { background: var(--red-soft); color: #9d1012; } .light.red::before { background: var(--red); }
.light.amber { background: var(--amber-soft); color: #7a4a00; } .light.amber::before { background: var(--amber); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-block; font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: #eef2f5; color: #4b5560; }
.chip.date { background: var(--blue-soft); color: var(--blue-ink); font-weight: 700; }
.chip.warn { background: var(--amber-soft); color: #7a4a00; }
.chip.sample { background: #fff2d6; color: #7a4a00; font-weight: 700; }
.chip.kind-shop { background: #e5f4fa; color: var(--blue-ink); }
.chip.kind-single_promotion { background: #fde7ef; color: #9c0a45; }
.chip.kind-lunchtime_deal { background: #fff1dc; color: #8a4b00; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.details { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 4px; }

/* ---------- figures with sources ---------- */
.figs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
@media (min-width: 700px) { .figs.wide { grid-template-columns: 1fr 1fr 1fr; } }
.fig .k { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.fig .v { font-family: var(--head); font-size: 17px; font-weight: 700; color: var(--ink); }
.fig .v.small-v { font-size: 14px; }
.fig .src { display: block; font-size: 11px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.kv { font-size: 13px; margin: 3px 0; }
.kv b { color: var(--ink); }
ul.reasons { margin: 8px 0 0 18px; padding: 0; font-size: 14px; }
ul.reasons li { margin: 4px 0; }
ul.info { margin: 6px 0 0 18px; padding: 0; font-size: 12.5px; color: #4b5560; }
details { margin-top: 8px; font-size: 12.5px; } summary { cursor: pointer; color: var(--blue-ink); font-weight: 600; }

/* ---------- forms and buttons ---------- */
label { display: block; font-size: 12.5px; color: #4b5560; margin: 12px 0 5px; font-weight: 600; }
label .hint { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid #c9d2db; border-radius: 12px; font-size: 15px; background: #fff; font-family: var(--body); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
input.big { font-family: var(--head); font-size: 24px; font-weight: 700; letter-spacing: 0.3em; text-align: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 20px; background: var(--blue); color: #fff; border: 0; border-radius: 999px; font-size: 13.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; margin-top: 12px; transition: transform 0.05s, background 0.15s; }
.btn:hover { background: var(--blue-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.ghost { background: #fff; color: var(--blue-ink); border: 1.5px solid var(--blue); }
.btn.ghost:hover { background: var(--blue-soft); }
.btn.go { background: var(--green); } .btn.go:hover { background: #197f45; }
.btn.danger { background: #fff; color: var(--red); border: 1.5px solid var(--red); } .btn.danger:hover { background: var(--red-soft); }
.btn.sm { padding: 8px 14px; font-size: 12px; margin-top: 0; }
.btn.wide { width: 100%; }
.btn.plain { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.6); text-transform: none; letter-spacing: 0; padding: 6px 12px; font-size: 12px; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.msg { font-size: 13.5px; margin: 10px 0 0; min-height: 1em; }
.msg.err { color: var(--red); font-weight: 600; }
.msg.ok { color: #14703c; font-weight: 600; }
.test-box { background: #fffbeb; border-color: #fde68a; }
.inline-confirm { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.note-box textarea { min-height: 70px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; }
.check-row input[type="checkbox"] { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); flex: 0 0 20px; }

/* ---------- check a date: form + result ---------- */
.check-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 860px) { .check-grid { grid-template-columns: 360px 1fr; align-items: start; } .check-grid .card.form { position: sticky; top: 12px; } }
.date-line { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.date-line b { color: var(--blue-ink); }
.light-hero { border-radius: var(--radius); padding: 18px 18px 14px; display: flex; align-items: center; gap: 14px; }
.light-hero .dot { width: 46px; height: 46px; border-radius: 50%; flex: 0 0 46px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; font-weight: 800; }
.light-hero .word { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.light-hero .sub { font-size: 13.5px; margin-top: 2px; }
.light-hero.green { background: var(--green-soft); color: #14703c; } .light-hero.green .dot { background: var(--green); }
.light-hero.red { background: var(--red-soft); color: #9d1012; } .light-hero.red .dot { background: var(--red); }
.summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
@media (min-width: 700px) { .summary { grid-template-columns: repeat(4, 1fr); } }
.tile { background: #f7f9fb; border-radius: var(--radius-sm); padding: 10px 12px; }
.tile .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.tile .v { font-family: var(--head); font-size: 20px; font-weight: 700; color: var(--ink); }
.tile .v.small-v { font-size: 15px; }
.tile .s { font-size: 11.5px; color: var(--muted); }
.tile.good .v { color: #14703c; } .tile.bad .v { color: #9d1012; }

/* ---------- the day: timeline of the price hold ---------- */
.timeline { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
@media (min-width: 700px) { .timeline { grid-template-columns: 1fr 1fr 1fr; } }
.step { background: #f7f9fb; border-radius: var(--radius-sm); padding: 10px 12px; border-left: 4px solid var(--blue); }
.step .t { font-family: var(--head); font-weight: 700; font-size: 13px; color: var(--blue-ink); }
.step .d { font-size: 12.5px; }
.step.day { border-left-color: var(--magenta); } .step.day .t { color: #9c0a45; }
.step.back { border-left-color: var(--green); } .step.back .t { color: #14703c; }

/* ---------- requests: status stepper ---------- */
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; color: #fff; font-weight: 700; font-family: var(--head); }
.pill.green { background: var(--green); } .pill.red { background: var(--red); } .pill.grey { background: var(--muted); } .pill.amber { background: var(--amber); } .pill.blue { background: var(--blue); }
.stepper { display: flex; gap: 0; margin: 10px 0 6px; overflow-x: auto; }
.stepper .s { flex: 1 1 0; min-width: 90px; text-align: center; font-size: 11px; color: var(--muted); position: relative; padding-top: 16px; }
.stepper .s::before { content: ""; position: absolute; top: 4px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #d3dbe3; }
.stepper .s::after { content: ""; position: absolute; top: 8px; left: 50%; right: -50%; height: 2px; background: #e3e9ef; }
.stepper .s:last-child::after { display: none; }
.stepper .s.done { color: var(--blue-ink); font-weight: 700; } .stepper .s.done::before { background: var(--blue); }
.stepper .s.now { color: #14703c; font-weight: 700; } .stepper .s.now::before { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.stepper .s.off { color: #b9c3cc; }
.req-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.req-date { font-family: var(--head); font-weight: 800; font-size: 18px; color: var(--ink); }

/* ---------- board ---------- */
.rec { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.rec.done { opacity: 0.85; }
.rec .top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.rec .top > div:first-child { flex: 1 1 260px; min-width: 0; }
.rec .when { text-align: right; }
.rec .when .d { font-family: var(--head); font-weight: 800; font-size: 16px; color: var(--ink); white-space: nowrap; }
.rec .when .togo { font-size: 11.5px; color: var(--muted); }
.rec .why { font-size: 13.5px; color: var(--text); }
.lines { display: flex; flex-direction: column; gap: 8px; }
.lineitem { display: grid; grid-template-columns: 24px 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: #f7f9fb; border-radius: var(--radius-sm); padding: 8px 10px; }
.lineitem.red { background: var(--red-soft); }
.lineitem .thumb { width: 44px; height: 44px; border-radius: 8px; background: #e6edf3; display: flex; align-items: center; justify-content: center; color: #9fb0bf; }
.lineitem .thumb svg { width: 26px; height: 26px; }
.lineitem .n { font-size: 13px; color: var(--ink); font-weight: 600; }
.lineitem .m { font-size: 12px; color: var(--muted); }
.lineitem .m.bad { color: #9d1012; font-weight: 600; }
.lineitem .p { text-align: right; }
.lineitem .p .pp { font-family: var(--head); font-weight: 700; font-size: 16px; color: var(--ink); }
.lineitem .p .sv { display: inline-block; background: var(--magenta); color: #fff; font-family: var(--head); font-weight: 800; font-size: 11px; padding: 2px 6px; border-radius: 6px; margin-left: 4px; }
.lineitem .p .nn { font-size: 11.5px; color: var(--muted); }
.lineitem input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--green); }
.guide { background: var(--blue-soft); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 12.5px; color: var(--blue-ink); margin-bottom: 12px; }

/* ---------- toast ---------- */
#toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 13.5px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); max-width: calc(100% - 32px); z-index: 50; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
#toast.show { opacity: 1; }
#toast.ok { background: #14703c; } #toast.err { background: #9d1012; }

/* ---------- sign-in page ---------- */
.login-band { background: linear-gradient(135deg, #0a9ad8 0%, #0e7cc0 55%, #1565a8 100%); color: #fff; padding: 28px 16px 60px; text-align: center; }
.login-band .mark { font-family: var(--head); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }
.login-band .mark b { color: #cfeefc; }
.login-band .sub { font-size: 13px; opacity: 0.92; margin-top: 4px; }
.login-card { margin: -40px auto 20px; }
.login-card h2 { font-size: 18px; margin-bottom: 4px; }
.code-help { font-size: 12.5px; color: var(--muted); }

/* ---------- sign-in, ISmore's flow (19 Oct 2026): set-up link, password meter, QR, backup codes ---------- */
.firstrun { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.firstrun .small { margin: 0; }
.pwrow { display: flex; gap: 8px; align-items: center; }
.pwrow input { flex: 1; }
.eye { border: 1px solid #c9d2da; background: #fff; border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 13px; cursor: pointer; color: #444; }
.meter { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; }
.meter .bars { display: flex; gap: 4px; }
.meter .bars span { display: block; width: 34px; height: 6px; border-radius: 3px; background: #e2e8ee; }
.meter.weak .bars span:nth-child(1) { background: #d33; }
.meter.medium .bars span:nth-child(-n+2) { background: #e59a16; }
.meter.strong .bars span { background: #1f9d55; }
.meter .lvl { font-size: 13px; font-weight: 600; color: #444; }
.meter.weak .lvl { color: #d33; } .meter.medium .lvl { color: #b36f00; } .meter.strong .lvl { color: #1f9d55; }
ul.rules { list-style: none; padding: 0; margin: 4px 0 8px; font-size: 13px; color: #747e86; }
ul.rules li { padding-left: 22px; position: relative; margin: 3px 0; }
ul.rules li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #c9d2da; }
ul.rules li.ok { color: #1f6b3a; }
ul.rules li.ok::before { border-color: #1f9d55; background: #1f9d55; }
ol.steps { padding-left: 22px; margin: 10px 0 0; }
ol.steps li { margin: 10px 0; }
#qr-box { margin: 10px 0; }
img.qr { display: block; width: 200px; height: 200px; border: 1px solid #e2e8ee; border-radius: 8px; background: #fff; padding: 6px; }
input.code6 { max-width: 170px; letter-spacing: 3px; font-size: 20px; }
ul.codes { list-style: none; padding: 0; margin: 10px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
ul.codes li code { display: block; padding: 8px 10px; background: #f6f8fa; border: 1px solid #e2e8ee; border-radius: 8px; font-size: 15px; letter-spacing: 1px; text-align: center; }
@media (max-width: 420px) { ul.codes { grid-template-columns: 1fr; } .meter .bars span { width: 26px; } }
