/* HerMpire Tools Hub: one stylesheet for the shell and every tool page.
   Light is the default; [data-theme="dark"] on <html> switches it. */

:root {
  --pink: #F452A0;
  --pink-600: #D93A87;
  --bg: #FBF7F5;
  --surface: #FFFFFF;
  --surface-2: #F5EFEC;
  --text: #181818;
  --muted: #6B6461;
  --line: #ECE4E0;
  --accent-soft: #FDE7F2;
  --accent-text: #C2236F;
  --shadow: 0 1px 2px rgba(24, 24, 24, .04), 0 6px 20px rgba(24, 24, 24, .05);
  --checker-a: #FFFFFF;
  --checker-b: #EEE8E5;
  --chart: #F452A0;
  /* Brand Kit accents (Brand/accent-colors.html): fills, and darker inks for text on light */
  --violet: #8352F4; --violet-ink: #6A3BDB;
  --aqua: #5CE1E6; --aqua-ink: #0E8C94;
  --cobalt: #4D8BFF; --cobalt-ink: #2563D9;
  --emerald: #3DDC84; --emerald-ink: #138A50;
  --amber: #FFA62B; --amber-ink: #A35F00;
  --gold: #FFD37A; --gold-ink: #8A6500;
  --lavender: #C9B6FF; --sunset: #FF9A6B;
  --radius: 14px;
  --sidebar: 248px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #121112;
  --surface: #1B1A1B;
  --surface-2: #242224;
  --text: #F4F1F2;
  --muted: #A59FA2;
  --line: #2E2B2D;
  --accent-soft: #3A1B2B;
  --accent-text: #FF8CC4;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --checker-a: #2A282A;
  --checker-b: #1F1D1F;
  --chart: #EC4A99;
  --violet-ink: #B79BFF; --aqua-ink: #6FE6EA; --cobalt-ink: #8FB4FF; --emerald-ink: #6EE7A6; --amber-ink: #FFC06B; --gold-ink: #FFD98A;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; }

button, input, select { font: inherit; color: inherit; }

/* ---------- shell ---------- */

.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar);
  flex: none;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 14px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.brand {
  display: block;
  padding: 2px 10px 18px;
  text-decoration: none;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  line-height: 1.1;
}

.brand .her { font-style: italic; color: var(--pink); }

.brand small {
  display: block;
  margin-top: 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-label {
  margin: 14px 10px 4px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
}

.nav-item svg { width: 18px; height: 18px; flex: none; }

.nav-item:hover { background: var(--surface-2); }

.nav-item.is-active { background: var(--accent-soft); color: var(--accent-text); font-weight: 500; }

.nav-item.is-locked { color: var(--muted); }

.nav-item .badge { margin-left: auto; }

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
}

.theme-toggle:hover { background: var(--surface-2); }

.theme-toggle svg { width: 18px; height: 18px; }

.main { flex: 1; min-width: 0; padding: 44px clamp(24px, 5vw, 72px) 64px; }

/* Center the page content in the space beside the sidebar. */
.main > * { max-width: 1520px; margin-left: auto; margin-right: auto; } /* every page as wide as the Workflow board (Dee, 10/6) */

.topbar { display: none; }

/* ---------- shared pieces ---------- */

svg.icon { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.eyebrow {
  margin: 0 0 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-text);
}

h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
}

h1 em { color: var(--pink); }

.lede { margin: 10px 0 0; max-width: 640px; color: var(--muted); }

.page-head { margin-bottom: 28px; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.badge.free { border-color: transparent; background: var(--accent-soft); color: var(--accent-text); }
.badge.badge-hidden { border-style: dashed; color: var(--muted); } /* admin-only marker on things members can't see */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--pink);
  color: #FFFFFF;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { background: var(--pink-600); }

.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn.ghost { background: var(--surface); border-color: var(--line); color: var(--text); }

.btn.ghost:hover { background: var(--surface-2); }

.btn.small { padding: 7px 12px; font-size: 13px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field label, .field .label { font-size: 13px; font-weight: 500; }

.field input[type="number"], .field select {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

input[type="range"] { width: 100%; accent-color: var(--pink); }

input[type="checkbox"] { accent-color: var(--pink); width: 16px; height: 16px; }

.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }

.hint { margin: 0; font-size: 12.5px; color: var(--muted); }

.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 38px 20px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.drop:hover, .drop.is-over { border-color: var(--pink); background: var(--accent-soft); }

.drop svg { width: 34px; height: 34px; color: var(--pink); }

.drop strong { font-weight: 500; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.hidden { display: none !important; }

/* ---------- tools page ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  font-size: 13px;
  cursor: pointer;
}

.chip:hover { border-color: var(--pink); }

.chip.is-on { background: var(--text); border-color: var(--text); color: var(--bg); }

.tool-section { margin-top: 34px; }

.tool-section h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.tool-section h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.tool-grid.free-cards { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.free-cards .tool-card-top { flex-wrap: wrap; }

.free-cards .tool-card { border-top: 4px solid var(--tone, var(--pink)); } /* colored band on top, like Creator Business (Dee, 10/7) */

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }

.tool-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  transition: transform .15s, border-color .15s;
}

.tool-thumb { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--line); }

.tool-thumb-soon { display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--violet) 14%, var(--surface))); }

.tool-thumb-soon .tool-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--surface); }

.tool-thumb-soon .tool-icon svg { width: 30px; height: 30px; }

.tool-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; }

a.tool-card:hover { transform: translateY(-2px); border-color: var(--pink); }

.tool-card.is-soon .tool-body { opacity: .6; }

/* Admin only: a card with its Live / Coming soon / Hidden switch underneath (statusPicker in hub.js) */
.tool-slot { display: flex; flex-direction: column; gap: 8px; }

.tool-slot > .tool-card { flex: 1; }

.status-pick button { padding: 5px 6px; font-size: 12px; white-space: nowrap; }

/* Colored so the pick reads at a glance in light and dark (Dee, 10/7) */
.status-pick button.is-on { color: #fff; font-weight: 600; }

.status-pick button[data-status="live"].is-on { background: #138A50; }

.status-pick button[data-status="soon"].is-on { background: #A35F00; }

.status-pick button[data-status="hidden"].is-on { background: #6B6B6B; }

.tool-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }

.tool-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-text);
}

.tool-icon svg { width: 21px; height: 21px; }

.tool-card h3 { margin: 0; font-size: 15.5px; font-weight: 600; }

.tool-card p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ---------- tool pages: two-column layout ---------- */

.tool-layout { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; }

.panel { display: flex; flex-direction: column; gap: 18px; padding: 20px; position: sticky; top: 20px; }

.panel h2 { margin: 0; font-size: 15px; font-weight: 600; }

.row { display: flex; gap: 8px; flex-wrap: wrap; }

.seg { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }

.seg button {
  flex: 1;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-size: 13px;
  cursor: pointer;
}

.seg button.is-on { background: var(--surface); box-shadow: var(--shadow); font-weight: 500; }

/* ---------- seamless checker ---------- */

.stage {
  position: relative;
  height: min(72vh, 760px);
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background-color: var(--surface-2);
  background-repeat: repeat;
}

.stage.is-full { position: fixed; inset: 0; z-index: 50; height: auto; border-radius: 0; border: 0; }

.stage-grid { position: absolute; inset: 0; pointer-events: none; }

.stage-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  color: var(--muted);
}

.stage-exit { position: fixed; top: 16px; right: 16px; z-index: 51; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.gallery button {
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 9px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.gallery button.is-on { border-color: var(--pink); }

.hex-row { display: flex; align-items: center; gap: 10px; }

.hex-swatch { flex: none; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; }

.hex-row input { flex: 1; min-width: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-family: "IBM Plex Mono", monospace; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }

.hex-row input.is-bad { border-color: #FF4D4D; outline-color: #FF4D4D; }




/* ---------- file lists (DPI, upscaler) ---------- */

.file-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

.file-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
}

.file-row img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  background: repeating-conic-gradient(var(--checker-a) 0 25%, var(--checker-b) 0 50%) 0 0 / 14px 14px;
}

.file-name { margin: 0; font-weight: 500; font-size: 14px; word-break: break-all; }

.file-meta { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }

.file-meta b { color: var(--text); font-weight: 500; }

.file-error { color: var(--accent-text); }

.list-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }

/* ---------- upscaler ---------- */

.compare {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: repeating-conic-gradient(var(--checker-a) 0 25%, var(--checker-b) 0 50%) 0 0 / 20px 20px;
  aspect-ratio: 4 / 3;
  cursor: ew-resize;
  user-select: none;
}

.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.compare .before { image-rendering: pixelated; }

.compare-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--pink); pointer-events: none; }

.compare-tag {
  position: absolute;
  top: 12px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(24, 24, 24, .7);
  color: #FFFFFF;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.compare-tag.left { left: 12px; }

.compare-tag.right { right: 12px; }

.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }

.progress span { display: block; height: 100%; width: 0; background: var(--pink); transition: width .2s; }

.status { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ---------- admin ---------- */

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }

.stat { padding: 18px; }

/* Admin's top four: an accent color across the top, like the Dashboard's project cards (Dee, 10/7) */
.stat-row .stat { border-top: 4px solid var(--tone, var(--pink)); transition: border-color .15s; }

.stat-row .stat:hover { border-color: var(--tone, var(--pink)); }

.stat-row .stat:nth-child(2) { --tone: var(--violet); }

.stat-row .stat:nth-child(3) { --tone: var(--aqua); }

.stat-row .stat:nth-child(4) { --tone: var(--amber); }

.stat-row .stat:nth-child(5) { --tone: var(--emerald, #1E9E5A); }

.stat .label { margin: 0; font-size: 13px; color: var(--muted); }

.stat .value { margin: 6px 0 0; font-family: "Playfair Display", Georgia, serif; font-size: 34px; line-height: 1; }

.stat .delta { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }

.admin-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 16px; align-items: start; }

.admin-card { padding: 20px; min-width: 0; }

.admin-card h2 { margin: 0; font-size: 15px; font-weight: 600; }

.admin-card .sub { margin: 2px 0 16px; font-size: 12.5px; color: var(--muted); }

.cols { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 180px; border-bottom: 1px solid var(--line); }

.cols .col { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; }

.cols .col span { display: block; width: 100%; background: linear-gradient(180deg, var(--violet), var(--chart)); border-radius: 4px 4px 0 0; }

.cols .col:hover span, .cols .col:focus span { filter: brightness(1.12); outline: 2px solid var(--text); outline-offset: 1px; }

.cols-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; color: var(--muted); }

.tip {
  position: fixed;
  z-index: 60;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 12.5px;
  pointer-events: none;
}

.tip b { display: block; font-size: 14px; }

.tip span { color: var(--muted); }

.bars { display: flex; flex-direction: column; gap: 12px; }

.bar-row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr 44px; gap: 10px; align-items: center; font-size: 13.5px; }

.bar-row .track { height: 12px; }

.bar-row .fill { display: block; height: 100%; background: linear-gradient(90deg, var(--chart), var(--violet)); border-radius: 0 4px 4px 0; }

.bar-row .num { text-align: right; font-weight: 500; }

.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

.data-table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }

.data-table td { padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }

.table-toggle { margin-top: 12px; font-size: 13px; }

.table-toggle summary { cursor: pointer; color: var(--muted); }

.table-wrap { overflow-x: auto; }

@media (max-width: 1000px) { .admin-grid { grid-template-columns: 1fr; } }

/* ---------- dashboard ---------- */

.welcome { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 34px 32px 30px; }

.welcome::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--pink), var(--violet), var(--cobalt), var(--aqua), var(--emerald), var(--gold), var(--sunset), var(--pink)); background-size: 200% 100%; animation: strip-flow 9s linear infinite; }

/* a soft light flash that sweeps across the strip every few seconds */
/* No white shine across the strip (Dee, 10/7): the colors flowing is enough. */

@keyframes strip-flow { to { background-position: -200% 0; } }


@media (prefers-reduced-motion: reduce) { .welcome::before { animation: none; } }

.welcome h1 { font-size: clamp(30px, 3.6vw, 40px); }

.welcome .lede { margin-top: 8px; }

.welcome .row { margin-top: 20px; }

.mini-stats { display: flex; gap: 36px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }

.mini-stats div { padding-left: 12px; border-left: 4px solid var(--tone, var(--pink)); }

.mini-stats .stat-gold { --tone: var(--gold); }
.mini-stats .stat-cobalt { --tone: var(--cobalt); }
.mini-stats .stat-emerald { --tone: var(--emerald); }

.mini-stats b { display: block; font-family: "Poppins", system-ui, sans-serif; font-size: 28px; font-weight: 600; line-height: 1.1; }

.mini-stats span { font-size: 12.5px; color: var(--muted); }

.dash-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; margin-top: 28px; align-items: start; }

.dash-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 14px; }

.dash-head h2 { margin: 0; font-size: 19px; font-weight: 600; }

.dash-head h2 small { margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--muted); }

.dash-head a { font-size: 13.5px; color: var(--accent-text); text-decoration: none; }

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

.project { display: flex; flex-direction: column; gap: 10px; padding: 16px; text-decoration: none; transition: border-color .15s; }

.project:hover { border-color: var(--pink); }

.project { border-top: 4px solid var(--stage, var(--pink)); }

.project .step { align-self: flex-start; padding: 3px 9px; border-radius: 6px; background: color-mix(in srgb, var(--stage, var(--pink)) 16%, transparent); color: var(--stage-ink, var(--accent-text)); font-size: 11.5px; font-weight: 500; }

.project .progress span { background: var(--stage, var(--pink)); }

.project h3 { margin: 0; font-size: 15px; font-weight: 600; }

.project .meter { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }

.project .meter .progress { flex: 1; height: 6px; }

.side-stack { display: flex; flex-direction: column; gap: 16px; }

.side-card { padding: 18px 20px; }

.side-card h2 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }

#goalBar { background: linear-gradient(90deg, var(--sunset), var(--pink)); }

.goal-num { margin: 0 0 12px; font-size: 14px; color: var(--muted); }

.goal-num b { font-family: "Poppins", system-ui, sans-serif; font-size: 28px; font-weight: 600; color: var(--text); margin-right: 6px; }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }

.cal-head b { font-size: 14.5px; font-weight: 600; }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; font-size: 12.5px; }

.cal .dow { padding: 4px 0; font-size: 11px; color: var(--muted); }

.cal .day { position: relative; padding: 7px 0; border-radius: 8px; }

.cal .day.today { background: var(--pink); color: #FFFFFF; font-weight: 600; }

.cal .day.event { background: color-mix(in srgb, var(--aqua) 22%, transparent); color: var(--aqua-ink); font-weight: 600; }

.cal a.day { color: inherit; text-decoration: none; }

.cal .day.mine { background: #EDE5FF; color: #5B2FD0; font-weight: 600; }

:root[data-theme="dark"] .cal .day.mine { background: #2A2145; color: #C4B0FF; }

.cal .day.event::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--aqua-ink); }

.events { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }

.events li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; font-size: 13.5px; }

.events li:not(.live) .date { background: #EDE5FF; color: #5B2FD0; }

:root[data-theme="dark"] .events li:not(.live) .date { background: #2A2145; color: #C4B0FF; }

.events .date { display: grid; place-items: center; height: 44px; border-radius: 10px; background: color-mix(in srgb, var(--aqua) 22%, transparent); color: var(--aqua-ink); font-size: 11px; font-weight: 600; line-height: 1.15; text-align: center; }

.events small { display: block; color: var(--muted); }

.buddy { display: flex; flex-direction: column; align-items: center; gap: 20px; }

.welcome .buddy { align-self: start; margin-top: -12px; }


.buddy #buddyChange, .buddy-show #buddyChange { position: relative; z-index: 1; }

.buddy-circle { display: grid; place-items: start center; width: 260px; height: 210px; padding: 0; border: 0; background: none; cursor: pointer; }

.buddy-circle { --bx: 0; --by: 0; perspective: 600px; }

.buddy-circle img { width: 260px; height: 210px; max-width: none; object-fit: contain; object-position: center top; filter: drop-shadow(0 8px 14px rgba(24, 24, 24, .12)); transform: translateX(calc(var(--bx) * 8px)) rotateY(calc(var(--bx) * 16deg)); transition: transform .35s cubic-bezier(.2, .8, .3, 1.15); will-change: transform; } /* moves sideways only, so it never drops onto Change buddy; never clipped (Dee 10/6: bunny was cut off) */

.buddy-circle:has(.buddy-empty) { border: 2px dashed var(--line); border-radius: 18px; }

.buddy-empty { font-size: 34px; color: var(--accent-text); }

.buddy-dialog { width: min(640px, calc(100vw - 32px)); }

.buddy-dialog .dlg-body { position: relative; }

.buddy-dialog h3 { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }

.buddy-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }

.buddy-option { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border: 2px solid transparent; border-radius: 14px; background: var(--surface-2); font-size: 12px; cursor: pointer; }

.buddy-option:hover { border-color: var(--lavender); }

.buddy-option.is-on { border-color: var(--pink); background: var(--accent-soft); }

.buddy-option img { width: 100%; aspect-ratio: 1; object-fit: contain; }

.buddy-option.is-missing img { visibility: hidden; }

/* ---------- weekly trends ---------- */

.trend-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 24px; margin-bottom: 18px; }

.trend-bar > .field:first-child { flex: 1 1 auto; min-width: 0; }

.trend-selects { display: flex; align-items: flex-end; gap: 14px; flex-wrap: nowrap; }

.trend-bar .field select { min-width: 150px; height: var(--chip-h); padding: 0 10px; font-size: 13.5px; }

.trend-bar .chip { height: var(--chip-h); }

.trend-bar { --chip-h: 38px; }

.trend-bar .chips { flex-wrap: nowrap; }

@media (max-width: 1100px) { .trend-bar .chips { flex-wrap: wrap; } }

.trend-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 auto 20px; padding: 14px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }

.trend-legend div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 14px; text-align: center; }

.trend-legend div + div { border-left: 1px solid var(--line); }

.trend-legend dt { font-size: 14px; font-weight: 600; }

.trend-legend dd { margin: 0; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.trend-legend .lg-fav dt { color: var(--accent-text); }
.trend-legend .lg-views dt { color: var(--cobalt-ink); }
.trend-legend .lg-comp dt { color: var(--emerald-ink); }

.board-note { margin: 28px auto 0; max-width: 760px; text-align: center; font-size: 12px; color: var(--muted); }

.trend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 16px; align-items: stretch; }

.trend-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }

.trend-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--surface-2); border-bottom: 1px solid var(--line); }

.trend-card .tbody { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }

.trend-card .badge, .dlg-body .badge { align-self: flex-start; }

.trend-card h3 { margin: 0; min-height: calc(2 * 1.35em); font-size: 14.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }

.trend-card .released { margin: 0; font-size: 12px; color: var(--muted); }

.fire { display: flex; align-items: center; gap: 6px; margin: 0; padding: 5px 10px; border-radius: 8px; background: color-mix(in srgb, var(--gold) 26%, transparent); color: var(--gold-ink); font-size: 12.5px; font-weight: 600; }

.fire.is-3 { background: color-mix(in srgb, var(--pink) 18%, transparent); color: var(--accent-text); }

.fire.is-2 { background: color-mix(in srgb, var(--sunset) 24%, transparent); color: #B4451A; }

:root[data-theme="dark"] .fire.is-2 { color: #FFB08C; }

.fire-icons { letter-spacing: -2px; }

.trend-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; }

.trend-nums div { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }

.trend-nums div + div { border-left: 1px solid var(--line); }

.trend-nums div:nth-child(1) b { color: var(--accent-text); }
.trend-nums div:nth-child(2) b { color: var(--cobalt-ink); }
.trend-nums div:nth-child(3) b { color: var(--emerald-ink); }

.trend-nums b { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.trend-nums span { max-width: 100%; padding: 0 4px; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.trend-card .btn { margin-top: auto; align-self: stretch; }

.trend-dialog { width: min(760px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.trend-dialog::backdrop { background: rgba(24, 24, 24, .45); }

.dlg { display: grid; grid-template-columns: 280px 1fr; }

.dlg img { width: 100%; height: 100%; object-fit: contain; background: var(--surface-2); }

.dlg-body { display: flex; flex-direction: column; gap: 14px; padding: 24px; }

.dlg-body h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: 26px; line-height: 1.15; }

.dlg-body h3 { margin: 4px 0 0; font-size: 13px; font-weight: 600; }

.dlg-body p { margin: 0; font-size: 14px; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tags span { padding: 4px 9px; border-radius: 99px; background: var(--surface-2); font-size: 12.5px; }

.dlg-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); font-size: 20px; line-height: 1; cursor: pointer; }

@media (max-width: 1000px) { .dash-grid { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
  .welcome { grid-template-columns: 1fr; padding: 22px; }
  .buddy { order: -1; flex-direction: row; justify-content: flex-start; gap: 16px; }
  .buddy-circle, .buddy-circle img { width: 130px; height: 110px; }
  .buddy-grid { grid-template-columns: repeat(3, 1fr); }
  .mini-stats { gap: 22px; }
  .dlg { grid-template-columns: 1fr; }
  .dlg img { height: 220px; }
}

/* ---------- workflow board ---------- */

.week-bar { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 16px 22px; }

.week-bar .eyebrow { margin: 0; }

.week-count { margin: 2px 0 0; font-size: 14px; color: var(--muted); }

.week-count b { font-family: "Playfair Display", Georgia, serif; font-size: 24px; font-weight: 500; color: var(--text); }

.week-goal { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }

.week-goal input { width: 64px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }

.board-tabs { display: flex; justify-content: center; gap: 4px; width: max-content; margin: 22px auto; padding: 4px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }

.board-tabs button { display: flex; align-items: center; gap: 6px; padding: 8px 18px; border: 0; border-radius: 99px; background: none; font-size: 14px; cursor: pointer; }

.board-tabs button.is-on { background: var(--pink); color: #FFFFFF; font-weight: 500; }

.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 11.5px; font-weight: 600; }

.board-tabs button.is-on .count { background: rgba(255, 255, 255, .25); color: #FFFFFF; }

.kanban { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: start; }

@media (max-width: 1180px) { .kanban { grid-template-columns: repeat(6, 190px); overflow-x: auto; padding-bottom: 8px; } }

.k-col { --stage: #F452A0; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, background .15s; }

.k-col.is-over { border-color: var(--stage); background: var(--accent-soft); }

.stage-ideas { --stage: var(--pink); --stage-ink: var(--accent-text); }
.stage-plan { --stage: var(--violet); --stage-ink: var(--violet-ink); }
.stage-create { --stage: var(--aqua); --stage-ink: var(--aqua-ink); }
.stage-prep { --stage: var(--amber); --stage-ink: var(--amber-ink); }
.stage-listing { --stage: var(--cobalt); --stage-ink: var(--cobalt-ink); }
.stage-listed { --stage: var(--emerald); --stage-ink: var(--emerald-ink); }

.k-head { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; }

.k-head b { display: block; font-size: 14.5px; font-weight: 600; }

.k-head small { display: block; font-size: 11.5px; color: var(--stage-ink, var(--stage)); font-weight: 500; }

.k-head .count { background: var(--stage-ink, var(--stage)); color: #FFFFFF; }

.k-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: color-mix(in srgb, var(--stage) 18%, transparent); color: var(--stage-ink, var(--stage)); }

.k-icon svg { width: 18px; height: 18px; }

.k-list { display: flex; flex-direction: column; gap: 10px; min-height: 60px; }

.k-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-left: 3px solid var(--stage); border-radius: 10px; background: var(--bg); cursor: grab; }

.k-card:hover, .k-card:focus { border-color: var(--stage); outline: none; }

.k-card.is-dragging { opacity: .45; }

.k-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }

.k-top h4 { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.35; }

.star { flex: none; padding: 0; border: 0; background: none; font-size: 17px; line-height: 1; color: var(--muted); cursor: pointer; }

.star.is-on { color: var(--pink); }

.k-card .meter { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }

.k-card .progress { flex: 1; height: 5px; }

.k-card .progress span { background: var(--stage); }

.k-date { margin: 0; font-size: 11.5px; color: var(--muted); }

.k-source { align-self: flex-start; padding: 2px 7px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-text); font-family: "IBM Plex Mono", monospace; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; }

.k-add { padding: 10px; border: 1.5px dashed color-mix(in srgb, var(--stage) 45%, transparent); border-radius: 10px; background: none; color: var(--stage-ink, var(--stage)); font-size: 13.5px; font-weight: 500; cursor: pointer; }

.k-add:hover { background: var(--accent-soft); }

.k-empty { margin: 0; padding: 14px 8px; font-size: 12.5px; color: var(--muted); text-align: center; }

.idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }

.idea-add { min-height: 140px; border-style: dashed; color: var(--accent-text); font-size: 14px; font-weight: 500; cursor: pointer; }

.idea-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; }

.idea-actions { display: flex; justify-content: space-between; margin-top: auto; padding-top: 8px; }

.linkish { padding: 0; border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: none; cursor: pointer; }

.linkish.strong { color: var(--accent-text); font-weight: 500; }

.collection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }

.collection-card { overflow: hidden; cursor: pointer; }

.collection-cover { display: grid; place-items: center; aspect-ratio: 1; background: linear-gradient(135deg, var(--accent-soft), var(--surface-2)); color: var(--accent-text); font-family: "Playfair Display", Georgia, serif; font-size: 56px; }

.board-cal { max-width: 980px; margin: 0 auto; }

.cal.big { gap: 6px; }

.cal.big .dow { font-size: 12px; }

.cal.big .day { display: flex; flex-direction: column; gap: 4px; min-height: 92px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; text-align: left; overflow: hidden; }

.cal.big .day.today { background: none; color: inherit; border-color: var(--pink); }

.cal.big .day.today .num { color: var(--pink); font-weight: 700; }

.cal.big .day.has-event { box-shadow: inset 0 0 0 2px var(--accent-soft); }

.cal.big .num { font-size: 12px; font-weight: 600; }

.cal-listed, .cal-due, .cal-plan, .cal-event, .cal-holiday { display: block; padding: 2px 6px; border-radius: 5px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cal-listed { background: var(--pink); color: #FFFFFF; }

.cal-holiday { background: color-mix(in srgb, var(--gold) 28%, transparent); color: var(--gold-ink); }

.cal .day.holiday { background: color-mix(in srgb, var(--gold) 26%, transparent); color: var(--gold-ink); font-weight: 600; }

.cal-due { background: #FFF1CC; color: #8A5A00; }

.cal-plan { background: #EDE5FF; color: #5B2FD0; }

:root[data-theme="dark"] .cal-due { background: #3A2E10; color: #F3C969; }

:root[data-theme="dark"] .cal-plan { background: #2A2145; color: #C4B0FF; }

.cal.big .day { cursor: pointer; }

.cal.big .day:hover { border-color: var(--pink); }

.cal-head-big { margin-bottom: 16px; }

.cal-nav { display: flex; align-items: center; gap: 6px; }

.cal-nav b { min-width: 150px; font-family: "Playfair Display", serif; font-size: 20px; font-weight: 600; text-align: center; }

.cal-arrow { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .15s, color .15s; }

.cal-arrow:hover { border-color: var(--pink); color: var(--pink); }

.cal-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.cal.big .day-add { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; }

.cal.big .day:hover .day-add, .cal.big .day:focus-within .day-add { opacity: 1; }

@media (hover: none) { .cal.big .day-add { opacity: 1; } }

.day-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }

.day-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 14px; }

.day-row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.day-row-text small { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }

.day-row-text b { font-weight: 600; white-space: normal; overflow-wrap: anywhere; }

.day-row .linkish { flex: none; color: inherit; font-weight: 600; }

.day-row.is-hidden { border: 1px dashed var(--line); color: var(--muted); }

.day-add-head { margin: 6px 0 0; font-size: 15px; font-weight: 600; }


.cal-event { background: color-mix(in srgb, var(--aqua) 22%, transparent); color: var(--aqua-ink); }

.card-dialog { width: min(520px, calc(100vw - 32px)); }

.card-dialog .dlg-body { position: relative; }

.field input[type="text"], .field input[type="url"], .field input[type="date"], .field textarea { padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; color: inherit; }

@media (max-width: 760px) {
  .week-bar { grid-template-columns: 1fr; gap: 10px; }
  .board-tabs { width: 100%; overflow-x: auto; justify-content: flex-start; }
  .kanban { grid-template-columns: repeat(6, 78vw); }
  .cal.big .day { min-height: 60px; }
  .cal-listed, .cal-due, .cal-plan, .cal-event, .cal-holiday { font-size: 9px; padding: 1px 3px; }
}

/* ---------- notification bars ---------- */

.notices { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }

.notices:empty { display: none; }

.notice { --tone: #F452A0; --tone-bg: #FDE7F2; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; border: 1px solid color-mix(in srgb, var(--tone) 30%, transparent); border-left: 4px solid var(--tone); border-radius: 12px; background: var(--tone-bg); font-size: 14px; }

.notice-tool { --tone: var(--violet); --tone-bg: #F1EBFF; }
.notice-live { --tone: var(--aqua-ink); --tone-bg: #E3F9FA; }
.notice-heads { --tone: var(--amber); --tone-bg: #FFF3E0; }

:root[data-theme="dark"] .notice { --tone-bg: #2E1724; }
:root[data-theme="dark"] .notice-tool { --tone-bg: #221A38; }
:root[data-theme="dark"] .notice-live { --tone-bg: #102A2C; }
:root[data-theme="dark"] .notice-heads { --tone-bg: #2E2410; }

.notice-icon { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--tone); color: #FFFFFF; }

.notice-icon svg { width: 16px; height: 16px; }

.notice-body { flex: 1; min-width: 0; }

.notice-body b { font-weight: 600; margin-right: 8px; }

.notice-body span { color: var(--muted); }

.notice-link { flex: none; padding: 6px 12px; border-radius: 8px; background: var(--tone); color: #FFFFFF; font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; }

.notice-close { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }

.notice-close:hover { background: rgba(0, 0, 0, .06); }

.notify { margin-top: 16px; }

.notify-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; }

.notify-summary::-webkit-details-marker { display: none; }

.notify-summary b { font-size: 15px; font-weight: 600; }

.notify-summary small { margin-left: 10px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }

.notify-open { padding: 8px 14px; border-radius: 10px; background: var(--pink); color: #FFFFFF; font-size: 13.5px; font-weight: 500; }

.notify-open::after { content: " +"; }

.notify[open] .notify-open { background: var(--surface-2); color: var(--text); }

.notify[open] .notify-open::after { content: " −"; }

.notify[open] .notify-summary { margin-bottom: 14px; }

.notify-form { display: flex; flex-direction: column; gap: 14px; }

.notify-form input[type="text"], .notify-form input[type="date"], .notify-form input[type="url"], .notify-form select { padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; color: inherit; }

#nCustom { margin-top: 8px; }

.notify-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.notify-live-title { margin: 22px 0 10px !important; }

.notify-live { display: flex; flex-direction: column; gap: 14px; }

.notify-item { display: flex; flex-direction: column; gap: 6px; }

.notify-item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

@media (max-width: 640px) {
  .notice { position: relative; flex-wrap: wrap; padding-right: 40px; }
  .notice-body { flex-basis: calc(100% - 44px); }
  .notice-link { margin-left: 40px; }
  .notice-close { position: absolute; top: 8px; right: 6px; }
  .notify-row { grid-template-columns: 1fr; }
}

/* ---------- AI Skills Hub ---------- */

.nav-lock { margin-left: auto; display: grid; place-items: center; }

.nav-lock svg { width: 15px; height: 15px; }

.nav-item.is-locked { opacity: .6; }

.nav-item.is-locked:hover { opacity: .85; }

/* ---------- Admin: Members (Dee, 10/7) ---------- */

.admin-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

.card-link { font-size: 13px; font-weight: 500; color: var(--accent-text); text-decoration: none; white-space: nowrap; }

.card-link:hover { text-decoration: underline; }

.back-link { display: inline-block; margin-bottom: 10px; font-size: 13.5px; color: var(--muted); text-decoration: none; }

.back-link:hover { color: var(--accent-text); }

/* Member directory: one card per member (Dee, 10/7: modular cards, not long rows) */
.member-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

.member-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-top: 4px solid var(--tone, var(--pink)); font: inherit; color: inherit; text-align: left; cursor: pointer; transition: transform .15s, border-color .15s; }

.member-card:hover { transform: translateY(-2px); border-color: var(--tone, var(--pink)); }

.level-card-builder { --tone: var(--aqua); }

.level-card-premium { --tone: var(--violet); }

.level-card-vip { --tone: var(--pink); }

.level-card-buyer { --tone: var(--amber); }

.member-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }

.member-initial { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--tone, var(--pink)) 22%, var(--surface)); font-family: "Playfair Display", Georgia, serif; font-size: 18px; }

.member-name { font-size: 15px; font-weight: 600; }

.member-email, .member-last { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.member-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 8px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.member-nums b { display: block; font-size: 16px; font-weight: 600; }

.member-nums small { font-size: 11.5px; color: var(--muted); }

/* Admin: Calendar and Admins sit under Latest logins; Notifications is a full-width bar at the bottom (Dee, 10/7) */
#notifyBox { border-top: 4px solid var(--tone, var(--pink)); } /* Calendar and Admins: no top border (Dee, 10/7) */

.admin-zone .notify { margin-top: 0; }

/* Edit layout (admin-layout.js; Dee, 10/7): zones are a full-width band top and bottom plus the two columns */
.admin-zone { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.admin-zone[data-zone="bottom"] { margin-top: 16px; }

.admin-zone[data-zone="top"] + .admin-grid { margin-top: 16px; }

body:not(.layout-editing) .admin-zone[data-zone="top"].is-empty, body:not(.layout-editing) .admin-zone[data-zone="bottom"].is-empty { display: none; }

body:not(.layout-editing) .admin-zone[data-zone="top"].is-empty + .admin-grid { margin-top: 0; }

.layout-btns { display: flex; gap: 6px; }

.layout-editing { user-select: none; -webkit-user-select: none; }

/* While editing, both columns run the full height, so the empty space under the shorter one takes a drop */
.layout-editing .admin-grid { align-items: stretch; }

.layout-editing .admin-zone { min-height: 90px; padding: 10px; border: 2px dashed color-mix(in srgb, var(--pink) 45%, transparent); border-radius: 18px; }

.layout-editing .admin-zone.is-empty::before { content: "Drop a card here"; margin: auto; font-size: 13px; color: var(--muted); }

.layout-editing .admin-zone[data-zone="top"].is-empty::before, .layout-editing .admin-zone[data-zone="bottom"].is-empty::before { content: "Drop a card here for full width"; }

.layout-editing [data-mod] { position: relative; cursor: grab; outline: 2px solid color-mix(in srgb, var(--violet) 55%, transparent); outline-offset: 2px; border-radius: 16px; }

.layout-editing [data-mod] * { pointer-events: none; }

.layout-editing [data-mod]::after { content: "⠿ " attr(data-name); position: absolute; top: -12px; left: 14px; z-index: 2; padding: 2px 10px; border-radius: 99px; background: var(--violet); color: #fff; font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }

.layout-editing .mod-ghost { opacity: .35; }

.layout-editing .mod-chosen { cursor: grabbing; }

.admin-col .notify-open { white-space: nowrap; }

#notifyBox { --tone: var(--pink); }

.member-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }

.member-tools input[type="search"], .member-tools select { padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; font-size: 13.5px; color: inherit; }

.member-tools input[type="search"] { flex: 1; min-width: 200px; }

.member-tools .seg button { padding: 6px 10px; font-size: 12.5px; white-space: nowrap; }

.member-row { cursor: pointer; }

.member-row:hover td, .member-row:focus td { background: var(--accent-soft); }

.member-row:focus { outline: none; }

.member-table td b { display: block; font-weight: 600; }

.member-table td small { color: var(--muted); font-size: 12px; }

.badge.level-builder { border-color: transparent; background: color-mix(in srgb, var(--aqua) 22%, transparent); color: var(--text); }

.badge.level-premium { border-color: transparent; background: color-mix(in srgb, var(--violet) 22%, transparent); color: var(--text); }

.badge.level-vip { border-color: transparent; background: color-mix(in srgb, var(--pink) 24%, transparent); color: var(--text); }

.badge.level-buyer { border-color: transparent; background: color-mix(in srgb, var(--amber) 24%, transparent); color: var(--text); }

.member-sub { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); }

.member-dialog { width: min(980px, calc(100vw - 32px)); }

.member-dialog .dlg-body { position: relative; }

.member-body { display: flex; flex-direction: column; gap: 18px; }

.member-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px !important; font-size: 13.5px; }

.member-stats .stat .value { font-size: 28px; }

.member-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 22px; }

.member-part { min-width: 0; }

.member-part .member-sub { margin-bottom: 12px; }

.member-part h3 { margin: 0 0 2px !important; font-size: 14px !important; }

.member-board { display: flex; flex-wrap: wrap; gap: 8px; }

.member-stage { padding: 6px 12px; border-radius: 10px; border-top: 3px solid var(--stage, var(--pink)); background: var(--surface-2); font-size: 13px; } /* colors from the board's .stage-* classes */

.member-stage b { font-size: 15px; }







@media (max-width: 760px) {
  .member-grid { grid-template-columns: minmax(0, 1fr); }
  .member-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-stats .stat .value { font-size: 22px; }
}

.admins-card { display: block; }

.admins-card[open] > *:not(summary) { margin-top: 12px; }

.admins-card .notify-open::after { content: none; }

.admins-card[open] .notify-open { font-size: 0; }

.admins-card[open] .notify-open::before { content: "Hide"; font-size: 13.5px; }

.admins-card .sub { margin: 0; }

.admin-add { display: flex; gap: 8px; max-width: 720px; flex-wrap: wrap; }

.admin-add select { padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; color: inherit; }

.admin-add input { flex: 1; min-width: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; color: inherit; }

.admin-list { display: flex; flex-direction: column; gap: 6px; max-width: 720px; }

.admin-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); }

.admin-who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }

.admin-who b { font-weight: 500; }

.admin-who small { color: var(--muted); font-size: 12px; }

.admin-role { padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, var(--violet) 16%, transparent); color: var(--violet-ink); font-size: 11.5px; font-weight: 600; }

.admin-role.viewer { background: var(--surface); border: 1px solid var(--line); color: var(--muted); }

.admin-role.owner { background: var(--accent-soft); color: var(--accent-text); }

.preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--violet) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--violet) 40%, transparent); font-size: 14px; }

/* Admin header: Preview as, Screen share and Layout as three drop-downs on one line, top right (Dee, 10/7) */
.admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.admin-modes { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }

.admin-mode { display: flex; align-items: center; gap: 6px; }

.admin-drop { position: relative; }

.admin-drop-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 13px; font-weight: 500; list-style: none; cursor: pointer; white-space: nowrap; }

.admin-drop-btn::-webkit-details-marker { display: none; }

.admin-drop-btn::after { content: "▾"; font-size: 11px; color: var(--muted); }

.admin-drop-btn:hover { background: var(--surface-2); }

/* Screen share button: pink while it's on, so it reads at a glance in light and dark */
.admin-drop-btn.is-on { border-color: var(--pink); background: var(--pink); color: #fff; }

.admin-drop-btn.is-on::after { color: #fff; }

.admin-drop-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; display: flex; flex-direction: column; min-width: 150px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }

.admin-drop-menu button { padding: 8px 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13px; color: inherit; text-align: left; cursor: pointer; }

.admin-drop-menu button:hover { background: var(--surface-2); }

.admin-drop-menu button.is-on { font-weight: 600; color: var(--accent-text); }

.admin-drop-menu button.is-on::after { content: " ✓"; }

.locked-panel { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 560px; margin: 20px auto; padding: 36px 28px; text-align: center; }

.locked-panel h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: 26px; }

.locked-panel p { margin: 0 0 8px; color: var(--muted); }

.locked-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); }

.locked-icon svg { width: 24px; height: 24px; }

.skills-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

.skills-search { min-width: 220px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font: inherit; color: inherit; }

.skills-count { margin: 14px 0 12px; }

.btn-disabled { background: var(--surface-2); color: var(--muted); cursor: default; }

.btn-disabled:hover { background: var(--surface-2); }

.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: stretch; }

.skill-card.biz-card { padding: 0; overflow: hidden; gap: 0; }

.biz-thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }

.biz-body { display: flex; flex-direction: column; gap: 8px; padding: 18px; flex: 1; }

.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; align-items: stretch; }

.skill-card { --tone: var(--pink); --tone-ink: var(--accent-text); display: flex; flex-direction: column; gap: 8px; padding: 18px; border-top: 4px solid var(--tone); }

.tone-violet { --tone: var(--violet); --tone-ink: var(--violet-ink); }
.tone-cobalt { --tone: var(--cobalt); --tone-ink: var(--cobalt-ink); }
.tone-aqua { --tone: var(--aqua); --tone-ink: var(--aqua-ink); }
.tone-emerald { --tone: var(--emerald); --tone-ink: var(--emerald-ink); }
.tone-amber { --tone: var(--amber); --tone-ink: var(--amber-ink); }
.tone-gold { --tone: var(--gold); --tone-ink: var(--gold-ink); }
.tone-sunset { --tone: #FF9A6B; --tone-ink: #B4451A; }
.tone-orchid { --tone: #E8A0FF; --tone-ink: #9036B0; }
.tone-lavender { --tone: #C9B6FF; --tone-ink: #6A3BDB; }
.tone-lime { --tone: #D4F56A; --tone-ink: #5C7A00; }
:root[data-theme="dark"] .tone-sunset { --tone-ink: #FFB08C; }
:root[data-theme="dark"] .tone-orchid { --tone-ink: #F0C2FF; }
:root[data-theme="dark"] .tone-lavender { --tone-ink: #C9B6FF; }
:root[data-theme="dark"] .tone-lime { --tone-ink: #D4F56A; }

.skill-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.skill-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--tone) 18%, transparent); color: var(--tone-ink); }

.skill-icon svg { width: 19px; height: 19px; }

.skill-card .badge { max-width: 65%; overflow: hidden; text-overflow: ellipsis; }

.skill-card h3 { margin: 4px 0 0; font-size: 16px; font-weight: 600; }

.skill-slug { margin: 0; font-family: "IBM Plex Mono", monospace; font-size: 11.5px; color: var(--accent-text); }

.skill-desc { margin: 0; font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.skill-works { margin: auto 0 0; font-size: 12px; color: var(--muted); }

.skill-card .btn { align-self: stretch; }

/* The card's button matches the color band across its top (Dee, 10/7). Light colors (aqua, green, yellow,
   gold) keep the same color and switch to dark text so the words stay readable. */
.skill-card .btn:not(.ghost) { background: var(--tone); color: var(--tone-btn-text, #FFFFFF); }
.skill-card .btn:not(.ghost):hover { background: var(--tone); filter: brightness(.93); }
.tone-aqua, .tone-emerald, .tone-amber, .tone-gold, .tone-sunset, .tone-orchid, .tone-lavender, .tone-lime { --tone-btn-text: #181818; }

.skill-card .btn svg { width: 16px; height: 16px; }

.skill-note { margin: 0; min-height: 0; font-size: 12px; color: var(--accent-text); }

.skill-note:empty { display: none; }

/* ---------- profile ---------- */

.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }

.profile-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-top: 4px solid var(--tone, var(--pink)); }

.profile-card h2 { margin: 0; font-size: 17px; font-weight: 600; }

.profile-card .sub { margin: 0; font-size: 13.5px; color: var(--muted); }

.profile-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.profile-head { display: flex; align-items: center; gap: 16px; }

.profile-head h2 { font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: 28px; }

.profile-head p { margin: 2px 0 0; }

.profile-buddy { width: 78px; height: 78px; object-fit: contain; }

.level-pill { align-self: flex-start; margin: 0; padding: 4px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); font-weight: 600; font-size: 13px; }

.level-pill.level-premium { background: color-mix(in srgb, var(--violet) 16%, transparent); color: var(--violet-ink); }

.level-pill.level-vip { background: color-mix(in srgb, var(--gold) 30%, transparent); color: var(--gold-ink); }

.buddy-show { display: flex; align-items: center; gap: 22px; }

.key-add { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 10px; align-items: end; }

.key-add .field { gap: 6px; }

.key-add input, .key-add .btn { height: 40px; box-sizing: border-box; }

.key-add input { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font: inherit; font-size: 13px; color: inherit; }

.key-add #kName, .key-add #kValue { font-family: "IBM Plex Mono", monospace; }

.key-add #kName:disabled { opacity: .7; }

.key-list { display: flex; flex-direction: column; gap: 8px; }

.key-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }

.key-name b { display: block; font-family: "IBM Plex Mono", monospace; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }

.key-name small { font-size: 11.5px; color: var(--muted); }

.key-default { margin-left: 8px; padding: 1px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); font-family: "Poppins", sans-serif; font-size: 10.5px; font-weight: 600; vertical-align: middle; }

.key-mask { font-size: 14px; letter-spacing: 1px; color: var(--muted); }

.key-acts { display: flex; gap: 14px; }

@media (max-width: 900px) { .key-add { grid-template-columns: 1fr; } }

@media (max-width: 640px) { .key-row { grid-template-columns: 1fr; gap: 6px; } }

.cal-prefs { display: flex; flex-direction: column; gap: 8px; }

.cal-pref { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .15s; }

.cal-pref:hover { border-color: var(--tone, var(--pink)); }

.cal-pref-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--tone, var(--pink)) 16%, transparent); font-size: 18px; }

.cal-pref.pref-us { --tone: var(--cobalt); }
.cal-pref.pref-seller { --tone: var(--amber); }
.cal-pref.pref-cn { --tone: #FF4D4D; }
.cal-pref.pref-community { --tone: var(--violet); }

.cal-pref-text b { display: block; font-size: 14px; font-weight: 600; }

.cal-pref-text small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.45; color: var(--muted); }

.switch { display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; flex: none; }

.switch-track { position: relative; width: 44px; height: 24px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); transition: background .18s, border-color .18s; }

.switch-thumb { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 5px; background: #FFFFFF; box-shadow: 0 1px 3px rgba(24, 12, 15, .25); transition: transform .18s; }

.switch[aria-checked="true"] .switch-track { background: var(--tone, var(--pink)); border-color: var(--tone, var(--pink)); }

.switch[aria-checked="true"] .switch-thumb { transform: translateX(20px); }

.switch-state { min-width: 26px; font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 600; color: var(--muted); text-align: left; }

.switch[aria-checked="true"] .switch-state { color: var(--text); }

.memory-add { display: flex; gap: 8px; }

.memory-add input { flex: 1; min-width: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; color: inherit; }

.memory-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }

.memory-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }

.memory-item small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }

.profile-card > .btn { align-self: flex-start; }

.profile-form { display: flex; flex-direction: column; gap: 14px; }

.profile-form input[type="text"] { padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; color: inherit; }

.hex-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; } }

/* ---------- small screens ---------- */

@media (max-width: 900px) {
  .tool-layout { grid-template-columns: 1fr; }
  .panel { position: static; }
}

@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform .2s;
    box-shadow: var(--shadow);
  }
  .shell.nav-open .sidebar { transform: none; }
  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
  }
  .topbar .brand { padding: 0; font-size: 19px; }
  .topbar button { padding: 6px; border: 0; background: none; cursor: pointer; }
  .topbar svg { width: 24px; height: 24px; }
  .main { padding: 24px 16px 48px; }
  .skills-search { width: 100%; }
  .trend-selects { width: 100%; }
  .trend-selects .field { flex: 1; min-width: 0; }
  .trend-selects { flex-wrap: wrap; }
  .plan-jump { flex: 1 0 100%; justify-content: center; }
  .trend-bar .field select { min-width: 0; width: 100%; }
  .trend-legend { grid-template-columns: 1fr; gap: 10px; }
  .trend-legend div + div { border-left: 0; border-top: 1px solid var(--line); padding-top: 10px; }
  .trend-legend div { min-width: 0; }
  .trend-legend dd { white-space: normal; }
  .file-row { grid-template-columns: 48px 1fr; }
  .file-row img { width: 48px; height: 48px; }
  .file-row .btn { grid-column: 1 / -1; }
}

/* Buddy turned off (Dee, 10/7) */
.buddy-show.is-off .buddy-circle { width: 180px; height: 110px; }

.buddy-none { display: grid; place-items: center; width: 100%; height: 100%; border: 2px dashed var(--line); border-radius: 14px; color: var(--muted); font-size: 14px; font-weight: 500; }

.buddy-option-none { justify-content: space-between; }

.buddy-none-icon { display: grid; place-items: center; height: 64px; color: var(--muted); font-size: 40px; line-height: 1; }

/* Weekly Trends: where searches are heading (Dee, 10/7) */
.searches { margin-top: 48px; }

.searches-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }

.searches-head h2 { margin: 0; font-family: "Playfair Display", serif; font-size: 30px; font-weight: 600; }

.searches-head h2 em { color: var(--pink); }

.search-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.search-col { padding: 18px; border: 1px solid var(--line); border-top: 4px solid var(--tone); border-radius: 14px; background: var(--surface); }

.search-col h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--tone-ink); }

.col-rising { --tone: var(--emerald); --tone-ink: var(--emerald-ink); }
.col-coming { --tone: var(--cobalt); --tone-ink: var(--cobalt-ink); }
.col-cooling { --tone: #FF6B6B; --tone-ink: #C93838; }
:root[data-theme="dark"] .col-cooling { --tone-ink: #FF8F8F; }

.search-col ol { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }

.search-row { display: grid; grid-template-columns: minmax(0, 1fr) 60px 62px; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }

.search-row:first-child { border-top: 0; }

.search-k { overflow-wrap: anywhere; }

.spark { width: 60px; height: 20px; }

.spark polyline { fill: none; stroke: var(--tone); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }

.search-g { font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 600; text-align: right; color: var(--tone-ink); }

.search-empty { padding: 8px 0; color: var(--muted); font-size: 13px; }

@media (max-width: 900px) { .search-cols { grid-template-columns: 1fr; } }

.plan-jump { display: inline-flex; align-items: center; gap: 6px; height: var(--chip-h, 38px); padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 13.5px; font-weight: 600; white-space: nowrap; text-decoration: none; transition: border-color .15s, color .15s; }

.plan-jump:hover { border-color: var(--pink); color: var(--pink); }

.plan-jump svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

html { scroll-behavior: smooth; }

.searches { scroll-margin-top: 24px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.search-find { width: 100%; max-width: 420px; margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; font-size: 14px; color: inherit; }

.search-find:focus { outline: none; border-color: var(--pink); }

.searches.is-finding #searchTopic { opacity: .4; }

.search-area { display: block; margin-top: 2px; font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

/* A tool moved in from its own product: the hub's sidebar, and the tool in a full-height frame with its own look (Dee, 10/7). */
.main.main-frame { padding: 0; }
.main.main-frame > * { max-width: none; }
.tool-frame { display: block; width: 100%; height: 100vh; height: 100dvh; border: 0; background: #FFFFFF; }
/* Phones: the top bar, then the tool filling exactly the rest of the screen, so there's only the tool's own scroll. */
@media (max-width: 760px) {
  .shell:has(.main-frame) { display: flex; flex-direction: column; height: 100dvh; min-height: 0; }
  .main.main-frame { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .tool-frame { flex: 1; height: auto; }
}

/* ---------- Roadmap: a chat with Deeva first, then the member's roadmap in the Planner look (Dee, 10/7) ---------- */

.rm-c-violet  { --c: var(--violet);  --c-ink: var(--violet-ink); }
.rm-c-aqua    { --c: var(--aqua);    --c-ink: var(--aqua-ink); }
.rm-c-cobalt  { --c: var(--cobalt);  --c-ink: var(--cobalt-ink); }
.rm-c-emerald { --c: var(--emerald); --c-ink: var(--emerald-ink); }

/* ---------- shared pieces ---------- */


.rm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.rm-score { text-align: right; flex: none; }
.rm-score b { display: block; font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: 44px; line-height: 1; color: var(--pink); }
.rm-score span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.rm-head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 14px; margin-top: 8px; }
.rm-reset { margin-top: 0; padding: 0; border: 0; background: none; font-size: 12.5px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.rm-reset:hover { color: var(--accent-text); }

.rm-deeva {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 11px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  color: #FFFFFF; font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: 22px;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--pink) 35%, transparent);
}
.rm-deeva.small { width: 30px; height: 30px; border-radius: 8px; font-size: 15px; box-shadow: none; }

.rm-status {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--surface-2); color: var(--muted);
}
.rm-status.is-here { background: var(--accent-soft); color: var(--accent-text); }
.rm-status.is-done { background: color-mix(in srgb, var(--emerald) 16%, transparent); color: var(--emerald-ink); }

.rm-phase { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-ink); }

.rm-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.rm-tool {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  font-size: 13.5px; font-weight: 500; text-decoration: none;
}
.rm-tool svg { width: 16px; height: 16px; color: var(--pink); }
.rm-tool:hover { border-color: var(--pink); background: var(--accent-soft); }
.rm-pending { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px dashed var(--line); border-radius: 10px; font-size: 13px; color: var(--muted); }
.rm-pending svg { width: 15px; height: 15px; color: var(--pink); }
body.rm-print .rm-pending { padding: 4px 9px; font-size: 12px; }
.rm-tool.is-soon:hover { border-color: var(--line); background: var(--surface); }
.rmC-tool.is-soon { color: var(--muted); }

/* Deeva's plan */
.rm-plan { padding: 24px 26px; margin-bottom: 30px; }
.rm-plan-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.rm-plan-top > div { flex: 1; }
.rm-plan-top .eyebrow { margin-bottom: 2px; }
.rm-plan h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: 26px; line-height: 1.15; }
.rm-plan .btn svg { width: 16px; height: 16px; }
.rm-decisions { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0 0 18px; }
.rm-decisions div { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.rm-decisions dt, .rm-mini { margin: 0 0 4px; font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rm-decisions dd { margin: 0; font-size: 13.5px; line-height: 1.45; }
.rm-plan-make { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; }
.rm-style { margin: 0 0 10px; font-size: 14px; }
.rm-swatches { display: flex; gap: 6px; margin-bottom: 4px; }
.rm-sw { width: 28px; height: 28px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); }
.rm-groups { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.rm-groups li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.rm-groups .rm-total { border-bottom: 0; font-weight: 600; }
.rm-pieces { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.rm-pieces img { width: 96px; height: 96px; object-fit: contain; flex: none; }

.rm-plan-empty { display: flex; gap: 16px; align-items: flex-start; }
.rm-plan-empty h2 { font-size: 22px; }
.rm-plan-empty p { margin: 6px 0 14px; color: var(--muted); max-width: 560px; }

.rm-paths { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.rm-path {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; cursor: pointer;
}
.rm-path svg { width: 26px; height: 26px; color: var(--pink); }
.rm-path b { font-weight: 500; font-size: 14.5px; }
.rm-path:hover { border-color: var(--pink); background: var(--accent-soft); }
.rm-path.is-soon { cursor: default; opacity: .6; }
.rm-path small { font-size: 12px; color: var(--muted); }
.rm-path.is-other { border-style: dashed; }
.rm-path.is-soon:hover { border-color: var(--line); background: var(--surface); }
.rm-path.is-soon svg { color: var(--muted); }

/* ---------- Deeva's chat: its own full page ---------- */

.rm-tabs { margin-bottom: 22px; }
.rm-tabs .icon { width: 14px; height: 14px; }
.rm-tabs { border-radius: 12px; }
.rm-tabs button { display: inline-flex; align-items: center; gap: 6px; border-radius: 9px; }
.rm-tabs button.is-locked { color: var(--muted); cursor: not-allowed; }
.rm-tabs button svg { width: 14px; height: 14px; }

.rm-chatpanel {
  display: flex; flex-direction: column;
  height: max(520px, calc(100vh - 175px));
  overflow: hidden;
}
.rm-chatpanel.hidden { display: none; }
.rm-chat-head .btn svg { width: 15px; height: 15px; }
.rm-c-pink  { --c: var(--pink);  --c-ink: var(--accent-text); }
.rm-c-amber { --c: var(--amber); --c-ink: var(--amber-ink); }
.rm-c-gold  { --c: var(--gold);  --c-ink: var(--gold-ink); }
.rm-choose { padding: 4px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font: inherit; font-size: 12.5px; cursor: pointer; }
.rm-choose:hover { border-color: var(--pink); background: var(--accent-soft); }
.rm-chosen { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 500; }
.rm-chosen svg { width: 13px; height: 13px; }
.rm-later { display: flex; margin-top: 4px; }
.rmC-box:disabled { opacity: .35; cursor: not-allowed; }

/* Profile → My roadmaps */
.roadmap-list { list-style: none; margin: 4px 0 16px; padding: 0; }
.roadmap-item { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.roadmap-item > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.roadmap-item b { font-weight: 500; }
.roadmap-item span:not(.badge) { font-size: 12.5px; color: var(--muted); }
.roadmap-empty { padding: 8px 0; font-size: 13.5px; color: var(--muted); }
/* On the chat, the page itself never scrolls: the typing box stays planted at the bottom and only the
   messages scroll, inside the chat (Dee, 10/7). body.rm-chat-mode is set while the chat is showing. */
body.rm-chat-mode { height: 100dvh; overflow: hidden; }
body.rm-chat-mode .shell { height: 100dvh; min-height: 0; }
body.rm-chat-mode .main { display: flex; flex-direction: column; height: 100dvh; min-height: 0; padding-bottom: 24px; overflow: hidden; }
body.rm-chat-mode .main > * { flex: none; }
body.rm-chat-mode .rm-chatpanel { flex: 1; min-height: 0; height: auto; width: 100%; }
@media (max-width: 760px) {
  body.rm-chat-mode .shell { display: flex; flex-direction: column; }
  body.rm-chat-mode .main { flex: 1; height: auto; padding-top: 14px; padding-bottom: 12px; }
}
.rm-chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.rm-avatar-wrap { position: relative; flex: none; }
.rm-online { position: absolute; right: 0; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--emerald); border: 2px solid var(--surface); }
.rm-chat-who { flex: 1; min-width: 0; }
.rm-chat-who b { display: block; font-size: 15.5px; }
.rm-chat-who small { display: block; font-size: 12px; color: var(--muted); }

/* the conversation: its own tinted area so it never blends into the typing box */
.rm-chat-log {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
  padding: 26px max(20px, calc((100% - 860px) / 2)); /* full width, messages in a readable column */
  background: color-mix(in srgb, var(--pink) 5%, var(--surface-2));
  scrollbar-width: none; /* scrolls, no bar showing (Dee, 10/7) */
}
.rm-chat-log::-webkit-scrollbar, .rm-pieces::-webkit-scrollbar { display: none; }
.rm-day { align-self: center; margin: 0 0 2px; padding: 3px 10px; border-radius: 6px; background: var(--surface); font-size: 11.5px; color: var(--muted); box-shadow: var(--shadow); }
.rm-bubble { display: flex; gap: 8px; align-items: flex-end; max-width: 78%; }
.rm-bubble > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rm-bubble p { margin: 0; padding: 12px 16px; font-size: 15px; line-height: 1.55; }
.rm-bubble.is-deeva p { border-radius: 10px; background: var(--surface); box-shadow: 0 1px 2px rgba(24, 24, 24, .08); }
.rm-bubble.is-me { align-self: flex-end; }
.rm-bubble.is-me > div { align-items: flex-end; }
.rm-bubble.is-me p { border-radius: 10px; background: var(--pink); color: #FFFFFF; }
.rm-time { padding: 0 6px; font-size: 11px; color: var(--muted); }
.rm-bubble .rm-deeva.small { width: 28px; height: 28px; font-size: 14px; margin-bottom: 20px; }
.rm-bubble.is-typing p { display: flex; gap: 4px; padding: 14px 16px; }
.rm-bubble.is-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: rm-dot 1s infinite; }
.rm-bubble.is-typing i:nth-child(2) { animation-delay: .15s; }
.rm-bubble.is-typing i:nth-child(3) { animation-delay: .3s; }
.rm-bubble.is-typing .rm-deeva.small { margin-bottom: 0; }
@keyframes rm-dot { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rm-bubble.is-typing i { animation: none; } }

.rm-asks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.rm-ask { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 14px; line-height: 1.4; text-align: left; cursor: pointer; }
.rm-ask svg { width: 20px; height: 20px; color: var(--pink); }
.rm-ask:hover { border-color: var(--pink); background: var(--accent-soft); }
.rm-choices { margin-left: 36px; display: flex; flex-direction: column; gap: 10px; }
.rm-choices .rm-path { background: var(--surface); }
.rm-choices .rm-mini { margin: 6px 0 0; }
.rm-soon-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rm-soon-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px dashed var(--line); border-radius: 8px; background: var(--surface); font-size: 12.5px; color: var(--muted); }
.rm-soon-chip svg { width: 14px; height: 14px; }
.rm-soon-chip { border-style: solid; font: inherit; font-size: 12.5px; color: var(--text); cursor: pointer; }
.rm-soon-chip svg { color: var(--pink); }
.rm-soon-chip:hover { border-color: var(--pink); background: var(--accent-soft); }
.rm-chat-action { margin-left: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }

.rm-web-tag { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; padding: 3px 9px; border-radius: 6px; background: color-mix(in srgb, var(--cobalt) 14%, var(--surface)); color: var(--cobalt-ink); font-size: 11.5px; font-weight: 500; }
.rm-web-tag svg { width: 13px; height: 13px; }
.rm-web-tag.is-live { animation: rm-dot 1.2s infinite; }
.rm-save { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; margin-left: 2px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 11.5px; color: var(--muted); cursor: pointer; }
.rm-save:hover { border-color: var(--pink); color: var(--accent-text); }
.rm-save svg { width: 13px; height: 13px; }
@media (prefers-reduced-motion: reduce) { .rm-web-tag.is-live { animation: none; } }

/* the bottom: suggestions, then the typing bar */
.rm-chat-foot { padding: 16px max(20px, calc((100% - 860px) / 2)) 16px; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 16px rgba(24, 24, 24, .04); }
.rm-composer { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.rm-composer:focus-within { border-color: var(--pink); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.rm-composer input { flex: 1; min-width: 0; padding: 8px 0; border: 0; background: none; font: inherit; font-size: 14px; color: inherit; outline: none; }
.rm-send { display: grid; place-items: center; width: 44px; height: 40px; flex: none; border: 0; border-radius: 9px; background: var(--pink); color: #FFFFFF; cursor: pointer; }
.rm-send:hover { background: var(--pink-600); }
.rm-send svg { width: 19px; height: 19px; stroke-width: 2.2; }
.rm-chat-note { margin: 8px 0 0; text-align: center; font-size: 11.5px; color: var(--muted); }

/* ---------- Look C: Planner ---------- */

.rmC-sheet { padding: 34px 38px 38px; background-image: linear-gradient(var(--surface), var(--surface)); }
.rmC-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-bottom: 18px; margin-bottom: 24px; border-bottom: 2px solid var(--text); }
.rmC-head h1 { font-style: italic; }
.rmC-progress { text-align: right; }
.rmC-progress b { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; }
.rmC-dots { display: inline-flex; gap: 5px; }
.rmC-dots i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--text); }
.rmC-dots i.is-on { background: var(--pink); border-color: var(--pink); }
.rmC-cols { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; }
.rmC-cols > * { min-width: 0; }
.rmC-h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: 22px; }
.rmC-h-note { margin-left: auto; font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rmC-lines { margin: 0 0 18px; }
.rmC-lines div { padding: 9px 0; border-bottom: 1px solid var(--line); }
.rmC-lines dt { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rmC-lines dd { margin: 2px 0 0; font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: 16.5px; line-height: 1.4; }
.rmC-make .rm-mini { margin-top: 14px; }
.rmC-plan .rm-plan-empty { box-shadow: none; }
.rmC-phase { margin-bottom: 18px; }
.rmC-phase h3 { margin: 0 0 6px; padding-left: 10px; border-left: 4px solid var(--c); font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--c-ink); }
.rmC-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.rmC-box { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 1.5px solid var(--text); border-radius: 6px; background: var(--surface); font-weight: 700; font-size: 14px; line-height: 1; cursor: pointer; }
.rmC-row.is-done .rmC-box { background: var(--pink); border-color: var(--pink); color: #FFFFFF; }
.rmC-row.is-done .rmC-what > b { text-decoration: line-through; text-decoration-color: var(--pink); color: var(--muted); }
.rmC-row.is-current { background: linear-gradient(90deg, var(--accent-soft), transparent); border-radius: 8px; padding-left: 6px; margin-left: -6px; }
.rmC-what { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.rmC-what > b { font-weight: 500; font-size: 14.5px; }
.rmC-tools { display: flex; flex-wrap: wrap; gap: 4px 14px; width: 100%; }
.rmC-tool { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--accent-text); text-decoration: none; }
.rmC-tool svg { width: 14px; height: 14px; }
.rmC-tool:hover { text-decoration: underline; }
.rmC-date { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--muted); padding-top: 3px; }

/* print: the roadmap in color on white paper; body.rm-print is set while printing */


/* White paper in color (Dee, 10/7: "it needs to look cute"). Always the light colors, even when the
   member's hub is in dark mode; anyone who wants black and white picks it in the print window. */
body.rm-print {
  --bg: #E9E4E1; --surface: #FFFFFF; --surface-2: #FBF7F5; --text: #181818; --muted: #6B6461; --line: #ECE4E0;
  --accent-soft: #FDE7F2; --accent-text: #C2236F; --shadow: none;
  --violet-ink: #6A3BDB; --aqua-ink: #0E8C94; --cobalt-ink: #2563D9; --emerald-ink: #138A50; --amber-ink: #A35F00; --gold-ink: #8A6500;
  color-scheme: light;
}
body.rm-print .rm-noprint, body.rm-print .rm-chatpanel { display: none !important; }
body.rm-print .rm-score b { font-size: 36px; }
body.rm-print .rm-pieces, body.rm-print .rm-decisions div, body.rm-print .rm-groups { break-inside: avoid; }
body.rm-print .rm-pieces { flex-wrap: wrap; overflow: visible; }
body.rm-print .rm-pieces img { width: 72px; height: 72px; }
body.rm-print .rm-decisions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.rm-print .rm, body.rm-print .rm * { min-width: 0; overflow-wrap: anywhere; }
body.rm-print .rm img { max-width: 100%; }
body.rm-print .rm-tool { padding: 4px 9px; font-size: 12px; }

/* C in print: it already is a sheet, so it just loses the card and color */
body.rm-print .rm { padding: 0; }
body.rm-print .rmC-sheet { border: 0; box-shadow: none; padding: 44px 48px; }
body.rm-print .rmC-cols { gap: 28px; }
body.rm-print .rmC-row.is-current { break-inside: avoid; }

@media print {
  @page { size: auto; margin: 12mm; }
  /* Printing the roadmap ignores the screen layout: no sidebar, no tabs, no page padding, nothing wider than the paper. */
  :root:has(body.rm-print), :root[data-theme="dark"]:has(body.rm-print) { color-scheme: light !important; background: #FFFFFF !important; }
  body.rm-print { width: auto !important; min-width: 0 !important; background: #FFFFFF !important; overflow: visible !important; }
  body.rm-print .sidebar, body.rm-print .topbar, body.rm-print .rm-tabs, body.rm-print .preview-bar, body.rm-print .notices { display: none !important; }
  body.rm-print .shell { display: block !important; min-height: 0 !important; }
  body.rm-print .main { padding: 0 !important; width: auto !important; }
  body.rm-print .main > * { max-width: none !important; margin: 0 !important; }
  body.rm-print .rm { width: auto !important; max-width: none !important; padding: 0 !important; box-shadow: none !important; }
  body.rm-print .rmC-sheet { padding: 0; }
  body.rm-print .rmC-cols { grid-template-columns: 1fr; }
  body.rm-print, body.rm-print * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- smaller screens ---------- */

@media (max-width: 900px) {
  .rm-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rm-choices, .rm-chat-action { margin-left: 0; }
  .rm-bubble { max-width: 92%; }
}

@media (max-width: 640px) {
  .rm-head, .rmC-head { flex-direction: column; align-items: flex-start; }
  .rm-score, .rmC-progress { text-align: left; }
  .rm-head-actions { justify-content: flex-start; }
  .rm-plan { padding: 18px; }
  .rm-plan-top { flex-wrap: wrap; }
  .rmC-sheet { padding: 22px 18px; }
}

/* ---------- sign in (login/) ---------- */

.login-page { min-height: 100vh; display: flex; }

.login-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }

.login-card { position: relative; overflow: hidden; width: 100%; max-width: 960px; display: grid; grid-template-columns: 1fr 1fr; }

/* the welcome card's flowing multicolor strip, across the top */
.login-card::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--pink), var(--violet), var(--cobalt), var(--aqua), var(--emerald), var(--gold), var(--sunset), var(--pink)); background-size: 200% 100%; animation: strip-flow 9s linear infinite; }

.login-art { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 52px 44px 40px; background: linear-gradient(160deg, var(--accent-soft), var(--surface-2)); }

.login-logo { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 40px; line-height: 1.05; }

.login-logo .her { font-style: italic; color: var(--pink); }

.login-logo small { display: block; margin-top: 10px; font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* three real tool cards, fanned, over what's inside */
.login-fan { position: relative; height: 200px; margin: 8px 0 18px; }
.login-fan img { position: absolute; width: 62%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(24, 24, 24, .14); background: var(--surface); }
.login-fan img:nth-child(1) { left: 0; top: 40px; transform: rotate(-7deg); }
.login-fan img:nth-child(2) { left: 38%; top: 46px; transform: rotate(6deg); }
.login-fan img:nth-child(3) { left: 18%; top: 0; z-index: 1; transform: rotate(-1deg); }

.login-inside { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.login-inside li { display: flex; gap: 14px; align-items: flex-start; padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.login-inside .icon { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 9px; background: var(--tone-soft); color: var(--tone); }
.login-inside span { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.login-inside b { display: block; color: var(--text); font-weight: 600; font-size: 14.5px; }
.login-inside .t-pink { --tone: var(--accent-text); --tone-soft: var(--accent-soft); }
.login-inside .t-violet { --tone: var(--violet-ink); --tone-soft: color-mix(in srgb, var(--violet) 14%, transparent); }
.login-inside .t-aqua { --tone: var(--aqua-ink); --tone-soft: color-mix(in srgb, var(--aqua) 18%, transparent); }
.login-inside .t-amber { --tone: var(--amber-ink); --tone-soft: color-mix(in srgb, var(--amber) 16%, transparent); }

.login-form { display: flex; flex-direction: column; justify-content: center; padding: 52px 48px 36px; }

.login-step { display: flex; flex-direction: column; gap: 16px; }

.login-step[hidden] { display: none; }

.login-step .lede { margin: -4px 0 6px; text-wrap: pretty; }

.login-step .field input { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 16px; }

.login-step .field input:focus { outline: 2px solid var(--pink); outline-offset: 1px; border-color: transparent; }

.login-step .field input.code { font-family: "IBM Plex Mono", monospace; font-size: 24px; letter-spacing: .4em; text-align: center; }

.login-step .btn { padding: 13px 18px; font-size: 15px; }

.login-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); font-size: 14px; }

.login-note { margin: 0; color: var(--emerald-ink); font-size: 14px; }

.login-hint { margin: 0; color: var(--muted); font-size: 13.5px; text-wrap: pretty; }

.login-hint .link { padding: 0; border: 0; background: none; color: var(--accent-text); font-size: inherit; text-decoration: underline; cursor: pointer; }

.login-join { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

.login-join a { color: var(--accent-text); font-weight: 500; }

@media (prefers-reduced-motion: reduce) { .login-card::before { animation: none; } }

@media (max-width: 780px) {
  .login-wrap { padding: 16px; align-items: flex-start; }
  .login-card { grid-template-columns: 1fr; }
  .login-art { padding: 32px 24px 22px; gap: 12px; }
  .login-logo { font-size: 32px; }
  .login-fan { height: 150px; }
  .login-form { padding: 30px 24px 26px; }
}

/* ---------- phone pass (Dee, 10/7: everything mobile ready) ---------- */
@media (max-width: 640px) {
  /* Weekly Trends: two compact cards a row, like Etsy's app, instead of one card filling the screen */
  .trend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .trend-card .tbody { gap: 6px; padding: 10px 10px 12px; }
  .trend-card .badge { font-size: 9.5px; padding: 2px 6px; }
  .trend-card h3 { font-size: 13px; }
  .trend-card .released { font-size: 11px; }
  .fire { gap: 4px; padding: 4px 7px; font-size: 11px; line-height: 1.3; }
  .fire-icons { flex: none; }
  .trend-nums { padding: 8px 0; }
  .trend-nums b { font-size: 13px; }
  .trend-nums span { padding: 0 2px; font-size: 10px; line-height: 1.2; white-space: normal; overflow: visible; }
  .trend-card .btn { padding: 7px 10px; font-size: 12.5px; }

  /* Number tiles (Admin, member pop-up): two a row */
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-row .stat:nth-child(5):last-child { grid-column: 1 / -1; }
  .stat { padding: 14px; }
  .stat .value { font-size: 28px; }
  .stat .delta { font-size: 11.5px; }

  /* Tables scroll inside their card instead of pushing the page sideways */
  .data-table { display: block; overflow-x: auto; }
  .admin-grid > *, .admin-grid .card { min-width: 0; }

  /* Dashboard notice bars and section heads take less room */
  .notices { gap: 8px; }
  .notice { gap: 8px 10px; padding: 10px 36px 10px 12px; font-size: 13px; }
  .notice-icon { width: 24px; height: 24px; }
  .dash-head { flex-wrap: wrap; gap: 4px 12px; }
  .dash-head h2 small { display: block; margin: 2px 0 0; }

  /* Admin boxes: the count drops under the title so the button fits */
  .admin-zone, .admin-zone > * { min-width: 0; }
  .notify-summary small { display: block; margin: 2px 0 0; }
  .notify-open { flex: none; white-space: nowrap; }

  /* Login: the sign-in form first, the "what's inside" panel under it */
  .login-form { order: -1; }
}

/* ---------- Admin reports (Dee, 10/7) ---------- */
.admin-link { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.admin-link::after, .admin-link::before { content: none !important; }
.report-form { display: grid; gap: 16px; padding: 22px; margin-bottom: 14px; }
.report-form > *, .report-form .field { min-width: 0; }
.report-form select { width: 100%; min-width: 0; text-overflow: ellipsis; }
.report-form input[type="date"] { width: 100%; min-width: 0; }
.report-presets button { white-space: nowrap; }
.report-form .field { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.report-form select, .report-form input[type="date"] { padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; font-size: 14px; color: var(--text); }
.report-presets { flex-wrap: wrap; width: max-content; max-width: 100%; }
.report-presets button { padding: 6px 12px; font-size: 13px; }
.report-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 12px; }
.report-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.report-out { padding: 20px; }
.report-out h2 { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
@media (max-width: 640px) {
  .report-form { padding: 16px; }
  .report-dates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .report-actions .btn { flex: 1; }
}
.report-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.report-head h2 { margin: 0; }
.report-head .btn { white-space: nowrap; }

/* ---------- Premium lock: the page shows through a dark, blurred layer (Dee, 10/7) ---------- */
.is-locked-page .main { position: relative; overflow: hidden; max-height: 100vh; }
.is-locked-page .main > [inert] { user-select: none; }
.locked-veil { position: absolute; inset: 0; z-index: 30; display: flex; align-items: flex-start; justify-content: center; padding: 18vh 16px 0;
  background: rgba(18, 17, 18, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.locked-veil .locked-panel { width: 100%; margin: 0; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.is-locked-page .preview-bar { position: relative; z-index: 31; }
@media (max-width: 900px) {
  .is-locked-page .main { max-height: calc(100vh - 57px); }
  .locked-veil { padding-top: 12vh; }
  .locked-veil .locked-panel { padding: 28px 20px; }
}

/* Buddy picker: a member's own photo shows round; the note when they haven't added one (Dee, 10/7) */
[data-buddy="photo"] img, .buddy-option img[src^="https://img.clerk"] { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.buddy-photo-note { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted); }

/* Profile: edit the name in place (Dee, 10/7) */
.name-edit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 4px; }
.name-edit .field { display: grid; gap: 5px; font-size: 13px; color: var(--muted); }
.name-edit input { padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; font-size: 14px; color: var(--text); min-width: 0; }
.name-edit-btns { grid-column: 1 / -1; display: flex; gap: 8px; }
@media (max-width: 640px) { .name-edit { grid-template-columns: 1fr; } }

/* Sidebar Sign out: easy to spot, set apart at the bottom (Dee, 10/7) */
.sign-out { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--pink) 45%, var(--line)); border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.sign-out:hover { background: var(--pink); color: #FFFFFF; border-color: var(--pink); }
.sign-out svg { width: 18px; height: 18px; }

/* ---------- Support page (Dee, 10/7) ---------- */
.support-contact { display: flex; align-items: center; gap: 14px; padding: 18px 20px; margin-bottom: 18px; text-decoration: none; color: inherit; border-left: 4px solid var(--pink); transition: transform .15s; }
.support-contact:hover { transform: translateY(-1px); }
.support-contact b { display: block; font-size: 15px; }
.support-contact small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.support-contact-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.support-contact-icon svg { width: 22px; height: 22px; }
.support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.support-card { padding: 20px 22px 12px; border-top: 4px solid var(--tone, var(--pink)); }
.support-card h2 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.support-card details { border-top: 1px solid var(--line); }
.support-card details:first-of-type { border-top: 0; }
.support-card summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; list-style: none; cursor: pointer; font-size: 14.5px; font-weight: 500; }
.support-card summary::-webkit-details-marker { display: none; }
.support-card summary::after { content: "+"; flex: none; color: var(--accent-text); font-size: 18px; line-height: 1; }
.support-card details[open] summary::after { content: "−"; }
.support-card details p, .support-card details ul { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.support-card details ul { padding-left: 18px; }
.support-card details li + li { margin-top: 6px; }
.support-card details b { color: var(--text); font-weight: 600; }
.support-card a { color: var(--accent-text); }
@media (max-width: 900px) { .support-grid { grid-template-columns: 1fr; } }
