/* Customer dashboard. Shares the site's palette so it feels like the same
   company, but lighter and denser — this is a tool people use, not a page they
   read once. */

:root{
  --ink:#101013; --ink-2:#2b2b33; --ink-3:#6a6a78;
  --line:#e5e2dc; --bg:#faf8f4; --card:#fff;
  --accent:#ff6a13; --accent-ink:#fff;
  --good:#1c7c4a; --good-bg:#e8f5ee;
  --warn:#8a5a00; --warn-bg:#fdf3e0;
  --radius:14px; --radius-sm:10px;
  --shadow:0 1px 2px rgba(16,16,19,.06),0 6px 20px rgba(16,16,19,.05);
}
*{box-sizing:border-box}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font:15px/1.55 ui-sans-serif,system-ui,-apple-system,"Segoe UI",Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--ink)}
.wrap{max-width:1060px;margin:0 auto;padding:0 20px}

/* ---------- top bar ---------- */
.bar{background:var(--ink);color:#fff}
.bar__in{display:flex;align-items:center;gap:16px;height:60px}
.bar__brand{display:flex;align-items:center;gap:10px;font-weight:800;letter-spacing:-.02em;color:#fff;text-decoration:none}
.bar__mark{width:26px;height:26px;border-radius:7px;background:#fff;color:var(--ink);display:grid;place-items:center;font-weight:900;font-size:14px}
.bar__biz{margin-left:auto;font-size:13px;color:#b9b9c4}
.bar__out{color:#fff;font-size:13px;text-decoration:none;border:1px solid rgba(255,255,255,.28);padding:6px 12px;border-radius:999px}
.bar__out:hover{background:rgba(255,255,255,.1)}

/* The bar grew from two links to six. On a phone a fixed-height flex row just
   overflows sideways, so below 760px it wraps: brand and business name on the
   first line, the links underneath. */
@media (max-width:760px){
  /* ⚠️ top/bottom only — the shorthand would wipe the 20px side padding this
     element inherits from .wrap, and the whole bar ran to the screen edge. */
  .bar__in{flex-wrap:wrap;height:auto;padding-top:11px;padding-bottom:11px;gap:9px 8px}
  .bar__brand{font-size:.95rem}
  /* A long business name was being pushed past the wrap's padding and clipped by
     the screen edge. Let it shrink and ellipsis instead of overflowing. */
  .bar__biz{font-size:12px;min-width:0;flex:0 1 auto;overflow:hidden;
            text-overflow:ellipsis;white-space:nowrap}
  .bar__out{font-size:12.5px;padding:5px 11px}
  .bar__in > .bar__out:first-of-type{margin-left:0}
}

/* ---------- login ---------- */
.login{min-height:100dvh;display:grid;place-items:center;padding:24px}
.login__card{width:100%;max-width:380px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:28px}
.login__mark{width:40px;height:40px;border-radius:11px;background:var(--ink);color:#fff;display:grid;place-items:center;font-weight:900;margin-bottom:16px}
.login h1{font-size:20px;margin:0 0 4px;letter-spacing:-.02em}
.login p.sub{margin:0 0 20px;color:var(--ink-3);font-size:13.5px}

label{display:block;font-size:13px;font-weight:700;margin:0 0 6px}
input[type=email],input[type=password],input[type=url],input[type=text]{
  width:100%;padding:11px 13px;border:1px solid var(--line);border-radius:var(--radius-sm);
  font:inherit;background:#fff;color:var(--ink);
}
input:focus-visible{outline:3px solid rgba(255,106,19,.35);outline-offset:1px;border-color:var(--accent)}
.field{margin-bottom:14px}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:11px 18px;border:0;border-radius:999px;font:inherit;font-weight:700;
  background:var(--accent);color:var(--accent-ink);cursor:pointer;text-decoration:none;
}
.btn:hover{filter:brightness(1.06)}
.btn--full{width:100%}
.btn--ghost{background:transparent;color:var(--ink);border:1px solid var(--line)}
.btn--sm{padding:8px 14px;font-size:13.5px}

.note{padding:11px 13px;border-radius:var(--radius-sm);font-size:13.5px;margin-bottom:16px}
.note--bad{background:#fdecec;color:#8a1c1c}
.note--good{background:var(--good-bg);color:var(--good)}
.note--warn{background:var(--warn-bg);color:var(--warn)}

/* ---------- dashboard ---------- */
.head{padding:30px 0 6px}
.head h1{font-size:23px;margin:0 0 4px;letter-spacing:-.02em}
.head p{margin:0;color:var(--ink-3);font-size:14px}

.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:22px 0}
@media(min-width:760px){.stats{grid-template-columns:repeat(4,1fr)}}
.stat{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:15px 17px}
.stat b{display:block;font-size:25px;letter-spacing:-.03em;line-height:1.15}
.stat span{font-size:12.5px;color:var(--ink-3)}

/* ---------- taps by day ----------
   A plain CSS bar chart: 30 columns, one per day, no library. Quiet days keep a
   faint stub so the day is still visibly there rather than missing. */
.days{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:15px 17px 12px;margin-bottom:16px}
.days__head{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.days__head h2{font-size:14px;margin:0;letter-spacing:-.01em}
.days__head span{font-size:12.5px;color:var(--ink-3)}
.days__chart{display:flex;align-items:flex-end;gap:3px;height:84px}
.days__col{flex:1;height:100%;display:flex;align-items:flex-end;min-width:0}
.days__bar{display:block;width:100%;background:var(--accent);border-radius:3px 3px 0 0;min-height:2px}
.days__bar.is-zero{background:var(--line)}
.days__axis{display:flex;justify-content:space-between;font-size:11.5px;color:var(--ink-3);margin-top:7px}
.days__none{margin:0;font-size:13.5px;color:var(--ink-3)}
@media(max-width:520px){.days__chart{height:66px;gap:2px}}

.sec-title{display:flex;align-items:baseline;gap:10px;margin:26px 0 12px}
.sec-title h2{font-size:16px;margin:0;letter-spacing:-.01em}
.sec-title span{font-size:13px;color:var(--ink-3)}

.tags{display:grid;gap:12px}
.tag{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.tag__top{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;padding:14px 17px}
.tag__slot{font-weight:800;font-size:15px}
.tag__where{font-size:12.5px;color:var(--ink-3)}
.tag__code{font:12.5px ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--ink-3);background:#f2efe9;padding:3px 8px;border-radius:6px}
.tag__taps{margin-left:auto;text-align:right}
.tag__taps b{display:block;font-size:18px;line-height:1.1;letter-spacing:-.02em}
.tag__taps span{font-size:11.5px;color:var(--ink-3)}

.pill{font-size:11.5px;font-weight:700;padding:3px 9px;border-radius:999px}
.pill--live{background:var(--good-bg);color:var(--good)}
.pill--off{background:var(--warn-bg);color:var(--warn)}

.tag__body{border-top:1px solid var(--line);padding:14px 17px;background:#fcfbf8}
.tag__row{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.tag__row .field{flex:1 1 340px;margin:0}
.tag__hint{font-size:12.5px;color:var(--ink-3);margin:8px 0 0}
.tag__hint code{background:#f2efe9;padding:2px 6px;border-radius:5px;font-size:12px}

.empty{background:var(--card);border:1px dashed var(--line);border-radius:var(--radius);padding:26px;text-align:center;color:var(--ink-3)}
/* Plain panel — used by the sign-up list and the settings form. Matches .stat and
   .tag so the page keeps one card style rather than three near-identical ones. */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.card > div:last-child{border-bottom:0}
.foot{margin:34px 0 40px;font-size:12.5px;color:var(--ink-3)}


/* ---------- refine bar + product boxes ----------
   Small boxes, two per row on a phone, more as it gets wider. Detail is hidden in
   a native <details> so it works with JavaScript off; advanced mode just opens
   them all. */
.refine{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin:6px 0 4px}
.refine__tab{
  display:inline-block;font-size:13px;text-decoration:none;color:var(--ink-2);
  border:1px solid var(--line);background:var(--card);padding:6px 13px;border-radius:999px;
}
.refine__tab:hover{border-color:var(--ink-3)}
.refine__tab.is-on{background:var(--ink);color:#fff;border-color:var(--ink)}
.refine__adv{margin-left:auto;display:flex;align-items:center;gap:7px;font-size:13px;color:var(--ink-2)}
.refine__adv input{width:18px;height:18px;accent-color:var(--accent)}

.prods{display:grid;gap:12px;grid-template-columns:1fr}
@media(min-width:620px){.prods{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1000px){.prods{grid-template-columns:repeat(3,1fr)}}

.prod{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
      box-shadow:var(--shadow);overflow:hidden}
.prod__head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 14px 0}
.prod__name b{display:block;font-size:14.5px;line-height:1.25}
.prod__name span{display:block;font-size:12.5px;color:var(--ink-3)}
.prod__slot{margin-left:auto;font-size:11.5px;color:var(--ink-3);
            border:1px solid var(--line);border-radius:999px;padding:2px 9px}
.prod__asks{display:flex;flex-wrap:wrap;gap:6px 14px;padding:10px 14px 12px;font-size:13px}
.prod__asks label{display:flex;align-items:center;gap:7px;font-weight:400;margin:0;cursor:pointer}
.prod__asks input{width:18px;height:18px;accent-color:var(--accent)}
.prod__more{border-top:1px solid var(--line)}
.prod__more summary{cursor:pointer;font-size:13px;font-weight:650;padding:10px 14px;
                    list-style:none;color:var(--ink-2)}
.prod__more summary::-webkit-details-marker{display:none}
.prod__more summary::after{content:" ▾";color:var(--ink-3)}
.prod__more[open] summary::after{content:" ▴"}
.prod__body{padding:2px 14px 14px;border-top:1px solid var(--line)}
.prod__body .field{margin-bottom:11px}
.prod__code{display:block;font:12px ui-monospace,SFMono-Regular,Menlo,monospace;
            background:#f2efe9;padding:8px 10px;border-radius:8px;word-break:break-all;color:var(--ink-2)}
.prod__stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}
.prod__stats div{background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:8px 9px}
.prod__stats b{display:block;font-size:17px;letter-spacing:-.02em}
.prod__stats span{font-size:11px;color:var(--ink-3);line-height:1.3;display:block}
.prod__rename{border-top:1px solid var(--line);padding-top:12px;margin-top:4px}
