/* Shared design system for the customer-facing pages (login, home, make-a-poster).
   The dashboard is a dark internal tool on Naive UI; these three are the product surface a shop
   owner sees, so they stay light and warm and share one set of tokens instead of three ad-hoc ones. */

:root {
  --paper:   #f7f6f3;
  --card:    #ffffff;
  --ink:     #17181c;
  --ink-2:   #5b6070;
  --ink-3:   #8c92a3;
  --line:    #e6e4df;
  --line-2:  #d5d2cb;
  --accent:  #1f5fe0;
  --accent-d:#1848ad;
  --accent-w:#fff4e3;
  --warm:    #d97316;
  --ok:      #16794a;
  --bad:     #b4231b;
  --radius:  14px;
  --shadow:  0 1px 2px rgba(20,22,30,.05), 0 8px 24px -12px rgba(20,22,30,.18);
  --shadow-l:0 2px 6px rgba(20,22,30,.06), 0 24px 48px -20px rgba(20,22,30,.24);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* A faint warm wash at the top keeps a page of white cards from reading as a blank form. */
body.tinted { background: linear-gradient(180deg, #fffdf8 0%, var(--paper) 340px); }

.wrap { max-width: 760px; margin: 0 auto; padding: 40px 20px 72px; }
.wrap.wide { max-width: 1040px; }

h1 { font-size: 30px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 6px; font-weight: 700; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3);
     margin: 34px 0 12px; font-weight: 600; }
h3 { font-size: 17px; margin: 0 0 4px; font-weight: 650; letter-spacing: -.01em; }
p  { margin: 0 0 14px; color: var(--ink-2); }
.lede { font-size: 16px; color: var(--ink-2); margin-bottom: 22px; max-width: 58ch; }
small, .small { font-size: 13px; color: var(--ink-3); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.card + .card { margin-top: 14px; }
.card.flush { padding: 0; overflow: hidden; }

.link-card { display: block; color: inherit; }
.link-card:hover { text-decoration: none; border-color: var(--line-2); box-shadow: var(--shadow-l);
                   transform: translateY(-1px); }
.link-card { transition: box-shadow .16s, transform .16s, border-color .16s; }

/* --- controls ------------------------------------------------------------ */
.btn {
  appearance: none; border: 1px solid transparent; border-radius: 10px;
  background: var(--accent); color: #fff;
  font: inherit; font-weight: 600; padding: 11px 20px; cursor: pointer;
  transition: background .14s, border-color .14s, color .14s;
}
.btn:hover:not(:disabled) { background: var(--accent-d); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.block { width: 100%; }
.btn.lg { padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover:not(:disabled) { background: #fbfaf8; border-color: var(--ink-3); }
.btn.quiet { background: transparent; color: var(--ink-2); border-color: transparent; padding: 10px 12px; }
.btn.quiet:hover:not(:disabled) { color: var(--ink); background: rgba(20,22,30,.04); }

.field { width: 100%; font: inherit; color: var(--ink); background: var(--card);
         border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 13px; }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,95,224,.13); }
textarea.field { resize: vertical; min-height: 92px; line-height: 1.55; }
.label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin: 0 0 7px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2);
  border-radius: 999px; padding: 7px 14px; font-size: 13.5px; cursor: pointer; user-select: none;
  transition: border-color .14s, color .14s, background .14s;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

.tag { display: inline-block; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase;
       font-weight: 650; color: var(--ink-3); border: 1px solid var(--line);
       border-radius: 999px; padding: 3px 9px; background: #fcfbf9; }
.tag.ok   { color: var(--ok);   border-color: #bfe3d0; background: #f2fbf6; }
.tag.bad  { color: var(--bad);  border-color: #f0cdc9; background: #fdf4f3; }
.tag.warm { color: var(--warm); border-color: #f3dcbd; background: var(--accent-w); }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--line); margin: 20px 0; border: 0; }

/* --- page furniture ------------------------------------------------------ */
.topbar { display: flex; align-items: center; gap: 14px; padding: 14px 20px;
          border-bottom: 1px solid var(--line); background: rgba(255,255,255,.82);
          backdrop-filter: saturate(160%) blur(8px); position: sticky; top: 0; z-index: 10; }
.topbar .brand { font-weight: 700; letter-spacing: -.01em; }
.topbar a { color: var(--ink-2); font-size: 14px; }
.topbar a:hover { color: var(--ink); text-decoration: none; }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
.dot.off { background: var(--ink-3); }

@media (max-width: 640px) {
  .wrap { padding: 24px 16px 56px; }
  h1 { font-size: 25px; }
}
