/* Coloring Book Studio: the shared look. Every page links this file.
   Colors: indigo ink, a violet accent, and one color per product type. */
:root {
  --ink: #16133A; --muted: #5F5A7A; --line: #E6E1FA; --line-soft: #F1EEFC;
  --side: #F5F3FF; --tint: #EFEBFF; --tint-2: #F7F5FF; --white: #FFFFFF;
  --accent: #6D4AFF; --accent-hover: #5B38F0; --accent-dark: #4B2FD6;
  --book: #6D4AFF; --book-bg: #EFEBFF; --book-ink: #4B2FD6;
  --sticker: #E8457C; --sticker-bg: #FFE8F0; --sticker-ink: #B0204F;
  --wall: #0E9F8E; --wall-bg: #DDF6F2; --wall-ink: #086E62;
  --photo: #F2A900; --photo-bg: #FFF4D6; --photo-ink: #7A5500;
  --name: #2F7BF6; --name-bg: #E3EEFF; --name-ink: #1B56B8;
  --learn: #5E9E12; --learn-bg: #EAF6D9; --learn-ink: #3D6B07;
  --design: #B832D9; --design-bg: #F7E6FC; --design-ink: #84189E;
  --good: #17663D; --good-bg: #DDF6E8; --bad: #B4233C; --bad-bg: #FFE6EA; --warn-bg: #FFF4D6; --warn-ink: #6B4A00;
  --radius: 16px; --shadow: 0 2px 12px rgba(22, 19, 58, .07);
  --font: "Plus Jakarta Sans", system-ui, "Segoe UI", Arial, sans-serif;
  /* old names, so older page styles pick up the new colors */
  --desk: #F7F5FF; --sheet: #FFFFFF; --sun: #6D4AFF; --tomato: #B4233C; --soft: #5F5A7A;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--white); font: 500 15px/1.55 var(--font); }
h1, h2, h3 { font-family: var(--font); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, white); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); font: 700 14px/1.2 var(--font); text-decoration: none;
  letter-spacing: 0; cursor: pointer; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--tint-2); border-color: #D9D1FB; }
.btn.primary, .btn.main, .btn.go { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn.primary:hover, .btn.main:hover, .btn.go:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.plain { background: var(--white); color: var(--ink); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: var(--white); }
.btn.small { min-height: 36px; padding: 7px 14px; font-size: 13px; }
.btn.quiet { border-color: transparent; background: transparent; }
.btn.quiet:hover { background: var(--tint); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 40px; height: 40px; flex: none; display: inline-grid; place-items: center; border-radius: 12px;
  border: 0; background: transparent; color: var(--ink); }
.icon-btn:hover { background: var(--tint); }

/* Product tags and dots */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--book-bg); color: var(--book-ink); }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--book); }
.tag.sticker { background: var(--sticker-bg); color: var(--sticker-ink); } .tag.sticker::before { background: var(--sticker); }
.tag.wall { background: var(--wall-bg); color: var(--wall-ink); } .tag.wall::before { background: var(--wall); }
.tag.photo { background: var(--photo-bg); color: var(--photo-ink); } .tag.photo::before { background: var(--photo); }
.tag.name { background: var(--name-bg); color: var(--name-ink); } .tag.name::before { background: var(--name); }
.tag.learn { background: var(--learn-bg); color: var(--learn-ink); } .tag.learn::before { background: var(--learn); }
.tag.design { background: var(--design-bg); color: var(--design-ink); } .tag.design::before { background: var(--design); }
.tag.good { background: var(--good-bg); color: var(--good); } .tag.good::before { background: var(--good); }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px;
  letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.brand img { width: 26px; height: 26px; }

/* Messages */
.toast {
  position: fixed; z-index: 50; top: 16px; left: 50%; transform: translateX(-50%);
  max-width: min(560px, calc(100% - 32px)); padding: 12px 16px; border-radius: 14px;
  background: var(--bad); color: var(--white); font-weight: 700; box-shadow: 0 8px 30px rgba(22, 19, 58, .18);
}
.toast.ok { background: var(--good); }
.error { color: var(--bad); font-weight: 700; }
.ok { color: var(--good); font-weight: 700; }

/* ---------- Simple pages: sign-in, welcome, my data, admin, privacy, terms ---------- */
body.page { min-height: 100vh; background: var(--tint-2); padding: 20px 16px 48px; }
body.page .topline { max-width: 1180px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: space-between; }
body.page .sheet {
  background: var(--white); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  padding: 32px 30px; margin: 0 auto; text-align: left;
}
body.page .sheet p, body.page .sheet li { color: var(--ink); }
body.page .sheet .muted, body.page .sheet p.muted { color: var(--muted) !important; }
body.page h1 { font-size: 30px; margin: 0 0 12px; }
body.page h2 { font-size: 19px; margin: 26px 0 8px; }
body.page p, body.page li { margin: 0 0 12px; }
body.page label.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; }
body.page label.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent); }
body.page input[type="text"], body.page input:not([type]), body.page select, body.page .field {
  font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white);
}
body.page .tabs a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 700; background: var(--white); }
body.page .tabs a[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--white); }
body.page table th { background: var(--tint-2); font-weight: 700; }
body.page table th, body.page table td { border-bottom: 1px solid var(--line-soft); }
body.page .warn { background: var(--warn-bg); border: 1px solid #F3DC9A; border-radius: 14px; color: var(--warn-ink); }
body.page td .btn { min-height: 34px; padding: 5px 12px; font-size: 13px; }
body.page.center { display: grid; place-items: center; }
body.page.center .sheet { max-width: 460px; text-align: center; }
.hero-logo { width: 56px; height: 56px; margin: 0 auto 16px; display: block; }
/* On the simple pages a plain .btn is the main action */
body.page .btn:not(.plain):not(.danger):not(.quiet):not(.small) { background: var(--accent); border-color: var(--accent); color: var(--white); }
body.page .btn:not(.plain):not(.danger):not(.quiet):not(.small):hover { background: var(--accent-hover); }
body.page .sheet a:not(.btn) { color: var(--accent-dark); }
body.page .topline .brand { color: var(--ink); }
body.page .sheet .tabs a { color: var(--ink); text-decoration: none; }
body.page .sheet .tabs a[aria-selected="true"] { color: var(--white); }
