/* Yoloco — Manager web platform. Clean light SaaS UI. Vanilla CSS, no build step. */
:root {
  /* brand */
  --brand: #4D2FFF;
  --brand-700: #3B1FD6;
  --brand-600: #4D2FFF;
  --brand-300: #A99BFF;
  --brand-100: #E6E0FF;
  --brand-50: #F1EDFF;
  --brand-grad: linear-gradient(135deg, #6A52FF 0%, #4D2FFF 100%);

  /* neutrals */
  --ink: #0C0E14;
  --ink-2: #353A45;
  --muted: #6A7180;
  --muted-2: #98A0AE;
  --line: #ECEDF2;
  --line-2: #E1E3EB;
  --surface: #F4F5F8;
  --surface-2: #EEF0F4;
  --bg: #FAFBFC;
  --card: #FFFFFF;

  /* status */
  --ok: #15A05B;
  --ok-bg: #E7F6EE;
  --warn: #C77A00;
  --warn-bg: #FBF0DC;
  --err: #DC2B2B;
  --err-bg: #FCE9E9;
  --info: var(--brand);
  --info-bg: var(--brand-50);

  /* radii */
  --r-sm: 9px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 26px;
  --r-pill: 999px;

  /* shadows */
  --sh-xs: 0 1px 2px rgba(14,18,28,.05);
  --sh-sm: 0 1px 3px rgba(14,18,28,.06), 0 1px 2px rgba(14,18,28,.04);
  --sh: 0 6px 18px rgba(14,18,28,.06), 0 2px 6px rgba(14,18,28,.04);
  --sh-lg: 0 16px 40px rgba(14,18,28,.12), 0 4px 12px rgba(14,18,28,.06);
  --sh-pop: 0 12px 34px rgba(14,18,28,.16), 0 2px 8px rgba(14,18,28,.08);
  --ring: 0 0 0 4px rgba(77,47,255,.16);

  --maxw: 1120px;
  --header-h: 60px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-size: 15px; line-height: 1.5;
}
.tt { font-family: "Inter Tight", "Inter", sans-serif; letter-spacing: -.018em; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--brand-100); }

/* icons */
.ic { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; fill: none; vertical-align: -.16em; }
.ic--fill { fill: currentColor; stroke: none; }

/* scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; border: 3px solid var(--bg); }

/* ===================== app shell ===================== */
.app { min-height: 100vh; display: flex; flex-direction: column; }

.appbar {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; padding: 0 18px;
}
.appbar__logo { display: inline-flex; align-items: center; gap: 9px; font-family: "Inter Tight";
  font-weight: 700; font-size: 16px; letter-spacing: 0; }
.appbar__logo .glyph { width: 26px; height: 26px; border-radius: 8px; display: block; box-shadow: var(--sh-sm); }
.appbar__logo b { color: var(--brand); }
.appbar__div { width: 1px; height: 24px; background: var(--line-2); margin: 0 4px; }
.appbar__spacer { flex: 1; }

/* brand switcher trigger */
.wsbtn { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line-2);
  background: #fff; border-radius: var(--r); padding: 6px 10px 6px 7px; cursor: pointer;
  font-weight: 600; font-size: 13.5px; color: var(--ink); transition: border-color .15s, box-shadow .15s; max-width: 230px; }
.wsbtn:hover { border-color: var(--brand-300); }
.wsbtn .chev { color: var(--muted-2); margin-left: 1px; }
.wsbtn__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* manager menu trigger */
.userbtn { display: inline-flex; align-items: center; gap: 9px; border: 1px solid transparent;
  background: transparent; border-radius: var(--r); padding: 5px 8px 5px 5px; cursor: pointer; transition: background .15s; }
.userbtn:hover { background: var(--surface); }
.userbtn__email { font-size: 13px; color: var(--ink-2); font-weight: 500; max-width: 170px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.userbtn .chev { color: var(--muted-2); }

/* avatar */
.avatar { width: 30px; height: 30px; border-radius: 9px; display: grid; place-content: center;
  background: var(--brand-grad); color: #fff; font-weight: 700; font-size: 12px; flex: none; box-shadow: var(--sh-xs); }

/* tabs */
.tabs { position: sticky; top: var(--header-h); z-index: 30; background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.tabs__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; display: flex; gap: 2px; overflow-x: auto; }
.tabs__inner::-webkit-scrollbar { display: none; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 13px 13px 14px;
  font-size: 14px; font-weight: 550; color: var(--muted); background: none; border: none; cursor: pointer;
  white-space: nowrap; transition: color .15s, background .15s, transform .1s; }
.tab .ic { width: 17px; height: 17px; }
.tab:hover { color: var(--ink-2); }
.tab.is-active { color: var(--brand); }
.tab.is-active::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px;
  background: var(--brand); border-radius: 2px 2px 0 0; }
.tab__icwrap { position: relative; display: inline-flex; }
.tab__dot { display: none; }
.tab__badge { font-size: 11px; font-weight: 700; background: var(--surface-2); color: var(--muted);
  border-radius: 999px; padding: 1px 7px; min-width: 18px; text-align: center; }
.tab.is-active .tab__badge { background: var(--brand-50); color: var(--brand); }

/* page */
.main { flex: 1; }
.page { max-width: var(--maxw); margin: 0 auto; padding: 26px 20px 80px; }
.screen { display: flex; flex-direction: column; gap: 18px; animation: up .28s cubic-bezier(.2,.7,.2,1) both; }
@keyframes up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* page header */
.phead { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.phead__main { flex: 1; min-width: 200px; }
.phead__title { font-family: "Inter Tight"; font-weight: 700; font-size: 25px; letter-spacing: -.02em; }
.phead__sub { color: var(--muted); font-size: 14px; margin-top: 3px; }
.back { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; color: var(--muted);
  font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 0; margin-bottom: 2px; transition: color .15s; }
.back:hover { color: var(--brand); }

/* ===================== cards ===================== */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; box-shadow: var(--sh-sm); }
.card--lg { padding: 26px; }
.card--flat { box-shadow: none; }
.card-grid { display: grid; gap: 16px; }
.grid-1 { grid-template-columns: minmax(0, 1fr); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.section-title { font-family: "Inter Tight"; font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.section-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.55; }
.hint { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.hint b { color: var(--ink-2); }
.value { font-weight: 650; font-size: 15px; }
.label { color: var(--muted); font-size: 13px; }
.row { display: flex; align-items: center; gap: 12px; }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; }
.divider { height: 1px; background: var(--line); margin: 2px 0; }

/* ===================== buttons ===================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; border-radius: var(--r); padding: 10px 16px; font-size: 14px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: transform .06s, background .15s, border-color .15s, box-shadow .15s, color .15s;
  white-space: nowrap; }
.btn .ic { width: 17px; height: 17px; }
.btn:active { transform: scale(.975); }
.btn:disabled { opacity: .55; cursor: default; pointer-events: none; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(77,47,255,.4), 0 6px 16px rgba(77,47,255,.22); }
.btn--primary:hover { background: var(--brand-700); }
.btn--ghost { background: var(--surface); color: var(--ink-2); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--outline { background: #fff; color: var(--ink-2); border-color: var(--line-2); }
.btn--outline:hover { border-color: var(--brand-300); color: var(--brand); }
.btn--danger { background: #fff; color: var(--err); border-color: var(--line-2); }
.btn--danger:hover { background: var(--err-bg); border-color: var(--err-bg); }
.btn--sm { padding: 7px 12px; font-size: 13px; border-radius: var(--r-sm); }
.btn--sm .ic { width: 15px; height: 15px; }
.btn--lg { padding: 13px 22px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--icon { padding: 8px; border-radius: var(--r-sm); }
.btn--icon .ic { width: 17px; height: 17px; }

/* ===================== forms ===================== */
.field { margin-top: 16px; display: flex; flex-direction: column; gap: 7px; }
.field:first-child { margin-top: 0; }
.field > label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, .textarea, select.input {
  width: 100%; border: 1.5px solid var(--line-2); background: #fff; border-radius: var(--r);
  padding: 11px 13px; font-size: 14.5px; font-family: inherit; color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s; }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .textarea:focus, select.input:focus { border-color: var(--brand); box-shadow: var(--ring); }
.textarea { min-height: 84px; resize: vertical; line-height: 1.55; }
.field-row { display: flex; gap: 12px; }
.field-row > * { flex: 1; margin-top: 0; }
.input-icon { position: relative; }
.input-icon .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-2); width: 17px; height: 17px; }
.input-icon .input { padding-left: 38px; }
.input-icon--paste .input { padding-right: 128px; }
.paste-btn {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 11px; border: 0; border-radius: 10px;
  background: linear-gradient(135deg, rgba(77,47,255,.12), rgba(0,81,255,.09));
  color: var(--brand); font-family: inherit; font-size: 12.5px; font-weight: 700;
  cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s, color .15s;
}
.paste-btn .ic {
  position: static; transform: none; width: 15px; height: 15px; color: currentColor;
}
.paste-btn:hover { background: var(--brand-grad); color: #fff; box-shadow: 0 10px 24px -14px rgba(77,47,255,.9); }
.paste-btn:active { transform: translateY(-50%) scale(.97); }
.paste-btn:focus-visible { outline: none; box-shadow: var(--ring); }

/* ===================== slot generator (calendar + time + capacity) ===================== */
.slotgen { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 14px; }
.slotgen__cal { flex: 1 1 260px; max-width: 320px; }
.slotgen__cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.slotgen__month { font-family: "Inter Tight"; font-weight: 700; font-size: 14px; text-transform: capitalize; }
.slotgen__nav { width: 28px; height: 28px; border: none; cursor: pointer; border-radius: var(--r-sm); background: var(--surface); color: var(--ink-2);
  display: grid; place-items: center; }
.slotgen__nav:hover { background: var(--brand-50); color: var(--brand); }
.slotgen__nav .ic { width: 15px; height: 15px; }
.slotgen__weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
.slotgen__weekdays span { text-align: center; font-size: 11px; font-weight: 650; color: var(--muted); }
.slotgen__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.slotgen__day {
  aspect-ratio: 1; border: none; cursor: pointer; border-radius: var(--r-sm); background: transparent; color: var(--ink); font-size: 13px;
  font-family: inherit; font-weight: 550; display: grid; place-items: center; transition: background .12s, color .12s, transform .08s; }
.slotgen__day:hover { background: var(--surface); }
.slotgen__day:active { transform: scale(.92); }
.slotgen__day--empty { visibility: hidden; pointer-events: none; }
.slotgen__day.is-today { box-shadow: inset 0 0 0 1.5px var(--brand-300); }
.slotgen__day.is-selected { background: var(--brand); color: #fff; }
.slotgen__day.is-selected.is-today { box-shadow: inset 0 0 0 1.5px #fff; }

.slotgen__opts { flex: 1 1 220px; display: flex; flex-direction: column; gap: 12px; }
.slotgen__opts .field { margin-top: 0; }
.slotgen__meta { display: grid; grid-template-columns: max-content minmax(220px, 1fr); gap: 12px; align-items: end; }
.slotgen__capacity { min-width: 120px; }
.slotgen__label { min-width: 0; }
.slotgen__list { margin-top: 10px; }
.slotgen__chips { gap: 7px; }
.slotgen__more { position: relative; cursor: default; color: var(--brand); background: var(--brand-50); border: 1px solid var(--brand-100); }
.slotgen__tip {
  position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 20; display: none;
  width: min(460px, 72vw); max-height: 240px; overflow: auto; padding: 10px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; box-shadow: var(--sh-pop);
}
.slotgen__more:hover .slotgen__tip,
.slotgen__more:focus .slotgen__tip { display: flex; flex-direction: column; gap: 7px; }
.slotgen__tip span { display: flex; align-items: center; gap: 7px; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.slotgen__tip .ic { width: 14px; height: 14px; color: var(--muted); flex: none; }

.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button {
  width: 32px; height: 32px; border: none; cursor: pointer; border-radius: var(--r-sm); background: var(--surface); color: var(--ink);
  font-family: inherit; font-size: 17px; font-weight: 650; display: grid; place-items: center; }
.stepper button:hover { background: var(--brand-50); color: var(--brand); }

@media (max-width: 720px) {
  .slotgen__meta { grid-template-columns: 1fr; }
}
.stepper span { min-width: 24px; text-align: center; font-weight: 700; font-family: "Inter Tight"; }

/* checklist */
.check { display: flex; align-items: center; gap: 11px; padding: 9px 11px; font-size: 14px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--r); transition: border-color .15s, background .15s; margin-top: 8px; }
.check:hover { border-color: var(--brand-300); }
.check input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.check.is-on { border-color: var(--brand); background: var(--brand-50); }
.check.is-disabled { opacity: .65; cursor: default; }

/* Product picker in campaign form: card tap target, not a visible checkbox. */
.product-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; margin-top: 12px; }
.product-pick {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 11px 12px;
  border: 1.5px solid var(--line-2); border-radius: var(--r); background: linear-gradient(180deg, #fff, #fbfbff);
  cursor: pointer; transition: border-color .16s, background .16s, box-shadow .16s, transform .12s;
}
.product-pick:hover { border-color: var(--brand-300); transform: translateY(-1px); box-shadow: 0 14px 28px -24px rgba(77,47,255,.9); }
.product-pick.is-on { border-color: var(--brand); background: var(--brand-50); box-shadow: var(--ring); }
.product-pick input { position: absolute; opacity: 0; pointer-events: none; }
.product-pick__mark {
  width: 44px; height: 44px; border-radius: 13px; flex: none; overflow: hidden;
  display: grid; place-items: center; background: var(--surface); color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(77,47,255,.08);
}
.product-pick__mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-pick__mark .ic { width: 19px; height: 19px; opacity: .58; grid-area: 1 / 1; }
.product-pick__mark b { grid-area: 1 / 1; font-family: "Inter Tight"; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.product-pick__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.product-pick__body b { font-size: 14px; line-height: 1.25; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-pick__body small { font-size: 12px; line-height: 1.35; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-pick__check {
  width: 24px; height: 24px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: #fff; color: transparent; border: 1px solid var(--line-2); transition: background .16s, color .16s, border-color .16s;
}
.product-pick__check .ic { width: 15px; height: 15px; }
.product-pick.is-on .product-pick__check { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ===================== badges / pills ===================== */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650;
  padding: 4px 10px; border-radius: var(--r-pill); background: var(--surface); color: var(--muted); white-space: nowrap; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge .ic { width: 13px; height: 13px; }
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--info { background: var(--info-bg); color: var(--brand); }
.badge--mut { background: var(--surface-2); color: var(--muted); }
.badge--err { background: var(--err-bg); color: var(--err); }

.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); color: var(--ink-2);
  border-radius: var(--r-sm); padding: 5px 10px; font-size: 12.5px; font-weight: 550; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }

/* ===================== brand mark ===================== */
.mark { width: 46px; height: 46px; border-radius: 13px; display: grid; place-content: center;
  background: var(--brand-grad); color: #fff; font-weight: 700; font-size: 18px; flex: none; box-shadow: var(--sh-xs);
  overflow: hidden; }
.mark img { width: 100%; height: 100%; object-fit: cover; }
.mark--xs { width: 26px; height: 26px; border-radius: 8px; font-size: 11px; }
.mark--sm { width: 36px; height: 36px; border-radius: 10px; font-size: 14px; }
.mark--lg { width: 64px; height: 64px; border-radius: 18px; font-size: 26px; }
.mark--xl { width: 76px; height: 76px; border-radius: 20px; font-size: 30px; }

/* ===================== overview hero + stats ===================== */
.hero { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 26px; background: linear-gradient(135deg, #fff 0%, #FBFAFF 100%); box-shadow: var(--sh-sm); }
.hero::before { content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(77,47,255,.14), transparent 62%); pointer-events: none; }
.hero__row { display: flex; align-items: center; gap: 18px; position: relative; }
.hero__main { flex: 1; min-width: 0; }
.hero__title { font-family: "Inter Tight"; font-weight: 700; font-size: 27px; letter-spacing: -.02em; }
.hero__sub { color: var(--muted); font-size: 14px; margin-top: 4px; }

.stat { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--line);
  border-radius: var(--r-lg); background: var(--card); box-shadow: var(--sh-sm); cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .1s; text-align: left; }
.stat:hover { border-color: var(--brand-300); box-shadow: var(--sh); transform: translateY(-2px); }
.stat__ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-content: center;
  background: var(--brand-50); color: var(--brand); }
.stat__ic .ic { width: 20px; height: 20px; }
.stat__num { font-family: "Inter Tight"; font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: -.02em; }
.stat__label { color: var(--muted); font-size: 13px; }
.stat__foot { display: flex; align-items: center; gap: 6px; color: var(--muted-2); font-size: 12px; margin-top: -4px; }

/* ===================== list rows ===================== */
.lrow { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-top: 1px solid var(--line); }
.lrow:first-of-type { border-top: none; }
.lrow__main { flex: 1; min-width: 0; }
.lrow--tap { cursor: pointer; border-radius: var(--r); margin: 0 -10px; padding: 13px 10px; }
.lrow--tap:hover { background: var(--surface); }
.lrow--tap.lrow:first-of-type { border-top: none; }

/* item card (campaign / generic clickable) */
.icard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px;
  box-shadow: var(--sh-sm); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .1s; }
.icard:hover { border-color: var(--brand-300); box-shadow: var(--sh); transform: translateY(-2px); }

/* ===================== text-approval queue ===================== */
.review-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 14px; }
.review-nav__btn {
  width: 34px; height: 34px; border: none; cursor: pointer; border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); display: grid; place-items: center; }
.review-nav__btn .ic { width: 16px; height: 16px; }
.review-nav__btn:hover:not(:disabled) { background: var(--brand-50); color: var(--brand); }
.review-nav__btn:disabled { opacity: .35; cursor: default; }
.review-nav__count { font-size: 13px; font-weight: 650; color: var(--muted); min-width: 64px; text-align: center; }

.review-card { animation: up .22s cubic-bezier(.2,.7,.2,1) both; }
.review-card__head { display: flex; align-items: center; gap: 12px; }
.review-card__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.review-card__who b { font-size: 15px; font-weight: 650; }
.review-card__who span { font-size: 12.5px; color: var(--muted); }
.review-card__campaign { margin-top: 12px; font-family: "Inter Tight"; font-weight: 700; font-size: 17px; }
.review-card__text {
  margin-top: 14px; padding: 14px 16px; background: var(--surface); border-radius: var(--r);
  font-size: 14.5px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; overflow-wrap: break-word;
  max-height: 40vh; overflow-y: auto; }

/* Campaign list: structured but aligned with the rest of the app. */
.campaign-card {
  padding: 18px; background: var(--card);
}
.campaign-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.campaign-card__title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.campaign-card__icon {
  width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center;
  color: var(--brand); background: var(--brand-50);
}
.campaign-card__icon .ic { width: 19px; height: 19px; }
.campaign-card__period { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; color: var(--muted); font-size: 13px; font-weight: 600; }
.campaign-card__period .ic { width: 15px; height: 15px; color: var(--brand); }
.campaign-card__status {
  flex: none; display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r-pill);
  padding: 6px 10px; font-size: 12px; font-weight: 700;
}
.campaign-card__body { display: grid; grid-template-columns: minmax(220px, .8fr) 1fr; gap: 12px; margin-top: 16px; }
.campaign-card__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.campaign-metric {
  min-width: 0; padding: 10px 11px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface);
}
.campaign-metric span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11.5px; font-weight: 650; }
.campaign-metric span .ic { width: 13px; height: 13px; color: var(--brand); }
.campaign-metric b { display: block; margin-top: 5px; font-family: "Inter Tight"; font-size: 21px; line-height: 1; color: var(--ink); }
.campaign-metric--accent { background: var(--brand-50); border-color: var(--brand-100); }
.campaign-card__details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.campaign-detail {
  display: flex; align-items: center; gap: 9px; min-width: 0; padding: 10px 0;
  border-top: 1px solid var(--line);
}
.campaign-detail > .ic { width: 16px; height: 16px; color: var(--muted); flex: none; }
.campaign-detail span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.campaign-detail em { color: var(--muted); font-size: 11px; font-style: normal; font-weight: 650; }
.campaign-detail b { color: var(--ink-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 860px) {
  .campaign-card__body { grid-template-columns: 1fr; }
  .campaign-card__details { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .campaign-card__top { flex-direction: column; }
  .campaign-card__metrics { grid-template-columns: 1fr; }
}

/* product card */
.pcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); transition: border-color .15s, box-shadow .15s, transform .1s; }
.pcard:hover { border-color: var(--brand-300); box-shadow: var(--sh); transform: translateY(-2px); }
.pcard__media { aspect-ratio: 16/10; background: var(--surface); position: relative; display: grid; place-items: center; }
.pcard__media > img { width: min(54%, 190px); height: min(54%, 190px); object-fit: contain; display: block; }
.pcard__media .ph { color: var(--muted-2); }
.pcard__media .ph .ic { width: 30px; height: 30px; }
.pcard__gallery { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 5px; }
.pcard__gallery .gth { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; border: 2px solid #fff; box-shadow: var(--sh-xs); }
.pcard__gallery .more { width: 30px; height: 30px; border-radius: 7px; background: rgba(12,14,20,.72); color: #fff;
  display: grid; place-content: center; font-size: 11px; font-weight: 700; border: 2px solid #fff; }
.pcard__body { padding: 15px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard__name { font-weight: 650; font-size: 15px; }
.pcard__desc { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding-top: 6px; }

/* ===================== image uploader (dropzone) ===================== */
.uploader { display: flex; flex-direction: column; gap: 12px; }
.dropzone { display: flex; align-items: center; gap: 13px; border: 1.5px dashed var(--line-2);
  border-radius: var(--r); padding: 16px; cursor: pointer; background: var(--surface);
  transition: border-color .15s, background .15s; color: var(--muted); }
.dropzone:hover, .dropzone.is-drag { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }
.dropzone__ic { width: 42px; height: 42px; border-radius: 11px; background: #fff; display: grid; place-content: center;
  color: var(--brand); box-shadow: var(--sh-xs); flex: none; }
.dropzone__ic .ic { width: 21px; height: 21px; }
.dropzone__txt { display: flex; flex-direction: column; gap: 2px; }
.dropzone__txt b { color: var(--ink-2); font-size: 13.5px; font-weight: 650; }
.dropzone__txt span { font-size: 12px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb { position: relative; width: 84px; height: 84px; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--sh-xs); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb--lg { width: 110px; height: 92px; }
.thumb__rm { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 7px; border: none;
  background: rgba(12,14,20,.66); color: #fff; cursor: pointer; display: grid; place-content: center; }
.thumb__rm .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.thumb__rm:hover { background: var(--err); }
.thumb.is-loading { display: grid; place-content: center; }

/* ===================== brand avatar settings ===================== */
/* compact identity: avatar sits inline next to the brand name */
.brand-id { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.brand-id__meta { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.brand-id__name { font-family: "Inter Tight"; font-weight: 700; font-size: 19px; letter-spacing: -.01em;
  color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-id__hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.brand-id__ic { width: 14px; height: 14px; color: var(--brand); flex: none; }
.brand-avatar-editor { display: flex; align-items: center; gap: 14px; }
.brand-avatar-editor--compact { gap: 0; }
.brand-avatar-editor--compact .brand-avatar { width: 58px; height: 58px; border-radius: 16px; }
.brand-avatar {
  position: relative; width: 64px; height: 64px; border: 0; border-radius: 18px; padding: 0;
  overflow: hidden; display: grid; place-content: center; flex: none; cursor: pointer;
  background: var(--brand-grad); color: #fff; box-shadow: 0 18px 42px -24px rgba(77,47,255,.95);
}
.brand-avatar:focus-visible { outline: none; box-shadow: var(--ring), 0 18px 42px -24px rgba(77,47,255,.95); }
.brand-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-avatar__letters {
  width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: #fff;
  text-align: center; font-family: "Inter Tight"; font-size: 20px; font-weight: 800;
  text-transform: uppercase;
}
.brand-avatar__letters::selection { background: rgba(255,255,255,.28); }
.brand-avatar__veil {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: rgba(22,25,28,.52); color: #fff; opacity: 0; transition: opacity .18s;
}
.brand-avatar:hover .brand-avatar__veil { opacity: 1; }
.brand-avatar__veil .ic { width: 18px; height: 18px; }
.brand-avatar__veil b { font-size: 10px; font-weight: 750; }
.brand-avatar__edit {
  position: absolute; right: 5px; bottom: 5px; width: 24px; height: 24px; border-radius: 9px;
  display: grid; place-content: center; background: rgba(255,255,255,.92); color: var(--brand);
  box-shadow: var(--sh-xs);
}
.brand-avatar__edit .ic { width: 14px; height: 14px; }
.brand-avatar__loading {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  background: linear-gradient(135deg, rgba(77,47,255,.94), rgba(0,81,255,.82)); color: #fff;
}
.brand-avatar__loading i {
  width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255,255,255,.26);
  border-top-color: #fff; animation: spin .75s linear infinite;
}
.brand-avatar__loading b { font-size: 10px; font-weight: 800; }
.brand-avatar-editor__copy { display: flex; flex-direction: column; gap: 3px; }
.brand-avatar-editor__copy b { font-size: 13px; color: var(--ink-2); }
.brand-avatar-editor__copy span { font-size: 12px; color: var(--muted); }

/* ===================== promo template builder ===================== */
.promo-builder { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
/* compact inline token chips — insert a token at the cursor */
.promo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.promo-chip {
  display: inline-flex; align-items: center; gap: 7px; min-width: 0; cursor: pointer; font-family: inherit;
  border: 1px solid var(--line-2); border-radius: var(--r-pill); background: #fff; padding: 7px 13px 7px 10px;
  transition: border-color .15s, box-shadow .15s, transform .12s, background .15s;
}
.promo-chip__ic { width: 13px; height: 13px; color: var(--brand); flex: none; }
.promo-chip span { color: var(--brand); font-family: "Inter Tight"; font-size: 13px; font-weight: 800; }
.promo-chip em { color: var(--muted); font-size: 12px; font-style: normal; }
.promo-chip:hover {
  border-color: var(--brand-300); background: var(--brand-50);
  box-shadow: 0 12px 24px -20px rgba(77,47,255,.9); transform: translateY(-1px);
}
.promo-chip:active { transform: translateY(0); }
.promo-builder__input { position: relative; }
.promo-builder__input .input {
  padding-right: 94px; font-family: "Inter Tight"; font-weight: 650; letter-spacing: 0;
  background: linear-gradient(180deg, #fff, #fbfbff);
}
.promo-reset {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%); height: 32px; border: 0;
  border-radius: 10px; padding: 0 11px; background: var(--surface-2); color: var(--muted);
  font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
}
.promo-reset:hover { background: var(--brand-50); color: var(--brand); }
/* coupon-style preview: the real code a blogger receives */
.promo-coupon {
  display: flex; align-items: stretch; border-radius: 14px; overflow: hidden;
  background: var(--ink); color: #fff; box-shadow: 0 18px 40px -28px rgba(12,14,20,.9);
}
.promo-coupon__main { flex: 1; min-width: 0; padding: 11px 16px; display: flex; flex-direction: column; gap: 5px; }
.promo-coupon__cap { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.6); }
.promo-coupon__eye { width: 14px; height: 14px; color: rgba(255,255,255,.6); flex: none; }
.promo-coupon__code { min-width: 0; overflow-wrap: anywhere; font-family: "Inter Tight"; font-size: 20px; font-weight: 800; letter-spacing: .01em; }
.promo-coupon__stub {
  flex: none; width: 54px; display: grid; place-content: center; color: #fff;
  border-left: 2px dashed rgba(255,255,255,.26); background: rgba(255,255,255,.05);
}
.promo-coupon__ticket { width: 22px; height: 22px; opacity: .85; }

/* ===================== KPI — generated views goal ===================== */
.kpi { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--brand-100);
  border-radius: var(--r-lg); background: linear-gradient(180deg, var(--brand-50) 0%, #fff 62%); }
.kpi--empty { background: var(--surface); border-color: var(--line); }
.kpi__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kpi__tag { display: inline-flex; align-items: center; gap: 6px; font-family: "Inter Tight"; font-weight: 800;
  font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--brand); }
.kpi__tagic { width: 15px; height: 15px; }
.kpi__metric { font-size: 12.5px; color: var(--muted); }
.kpi__win { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--brand);
  background: #fff; border: 1px solid var(--brand-100); padding: 3px 9px; border-radius: var(--r-pill); }
.kpi__body { display: flex; align-items: center; gap: 22px; margin-top: 13px; }
.kpi__num { flex: none; display: flex; flex-direction: column; gap: 3px; }
.kpi__num b { font-family: "Inter Tight"; font-weight: 800; font-size: 30px; line-height: 1;
  letter-spacing: -.02em; color: var(--ink); }
.kpi__num span { font-size: 11px; color: var(--muted); }
.kpi__gauge { flex: 1; min-width: 130px; }
.kpi__track { position: relative; height: 10px; border-radius: var(--r-pill); background: var(--brand-grad);
  box-shadow: inset 0 0 0 1px rgba(77,47,255,.18), 0 8px 18px -10px rgba(77,47,255,.7); }
.kpi__dot { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--brand);
  box-shadow: 0 2px 6px rgba(14,18,28,.25); }
.kpi__legend { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.kpi__legend b { color: var(--ink-2); font-weight: 700; }
.kpi__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; margin-top: 13px; }
.kpi__basis { display: flex; flex-wrap: wrap; gap: 6px; }
.kpi__chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line-2); padding: 4px 9px; border-radius: var(--r-pill); }
.kpi__chipic { width: 13px; height: 13px; color: var(--brand); flex: none; }
.kpi__emptybody { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; margin-top: 9px; font-size: 12.5px; color: var(--muted); }

/* ===================== structured brief (ТЗ) editor ===================== */
.brief { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.brief-kpi { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-size: 13px; font-weight: 650; color: var(--brand); background: var(--brand-50);
  border: 1px solid var(--brand-100); border-radius: var(--r-pill); padding: 6px 12px; }
.brief-kpi .ic { width: 14px; height: 14px; }
/* segmented control */
.seg { display: flex; flex-wrap: wrap; gap: 7px; }
.seg__btn { border: 1px solid var(--line-2); background: #fff; color: var(--ink-2);
  border-radius: var(--r-pill); padding: 7px 13px; font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: border-color .15s, background .15s, color .15s, box-shadow .15s; }
.seg__btn:hover { border-color: var(--brand-300); }
.seg__btn.is-on { background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 12px 24px -18px rgba(77,47,255,.95); }
.seg--multi .seg__btn.is-on { background: var(--brand-50); border-color: var(--brand-300); color: var(--brand); box-shadow: none; }
/* editable chip list */
.chiplist { display: flex; flex-direction: column; gap: 8px; }
.chiplist__items { display: flex; flex-wrap: wrap; gap: 7px; }
.chip--rm { background: var(--brand-50); color: var(--ink-2); border: 1px solid var(--brand-100);
  padding-right: 6px; }
.chip__x { display: inline-flex; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; }
.chip__x:hover { color: var(--err); }
.chip__x .ic { width: 13px; height: 13px; }
.chiplist__add { display: flex; gap: 8px; }
.chiplist__add .input { flex: 1; }

/* ===================== channel invite picker ===================== */
.chpick__controls { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.chpick__search-row { display: flex; }
.chpick__filter-row { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.chpick__search { position: relative; flex: 1; min-width: 0; }
.chpick__search .input { padding-left: 34px; }
.chpick__searchic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted-2); pointer-events: none; }
.chpick-range {
  flex: 1 1 220px; min-width: 200px; padding: 10px 12px 8px; border: 1px solid var(--line-2);
  border-radius: var(--r); background: linear-gradient(180deg, #fff, #fbfbff);
}
.chpick-range__head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.chpick-range__head b { font-family: "Inter Tight"; font-size: 14px; color: var(--brand); }
.chpick-range__input { width: 100%; height: 18px; margin: 0; accent-color: var(--brand); cursor: pointer; }
.chpick-range__input:focus-visible { outline: none; filter: drop-shadow(0 0 0.35rem rgba(77,47,255,.35)); }
.chpick-range__input::-webkit-slider-runnable-track {
  height: 6px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--brand), #8d78ff);
}
.chpick-range__input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%;
  background: #fff; border: 5px solid var(--brand); box-shadow: 0 4px 12px rgba(77,47,255,.28);
}
.chpick-range__input::-moz-range-track {
  height: 6px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--brand), #8d78ff);
}
.chpick-range__input::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 5px solid var(--brand);
  box-shadow: 0 4px 12px rgba(77,47,255,.28);
}
.chpick-range__ticks { display: flex; justify-content: space-between; gap: 4px; margin-top: 3px;
  font-size: 10.5px; color: var(--muted-2); }
.chpick-sort {
  flex: 1 1 270px; min-width: 240px; padding: 10px; border: 1px solid var(--line-2);
  border-radius: var(--r); background: linear-gradient(180deg, #fff, #fbfbff);
}
.chpick-sort__head { color: var(--muted); font-size: 12px; font-weight: 650; margin: 0 2px 8px; }
.chpick-sort__opts { display: flex; flex-wrap: wrap; gap: 7px; }
.chpick-sort__btn {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2);
  border-radius: var(--r-pill); background: #fff; color: var(--ink-2); padding: 7px 10px;
  font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
  transition: background .16s, border-color .16s, color .16s, box-shadow .16s, transform .12s;
}
.chpick-sort__btn .ic { width: 14px; height: 14px; color: var(--muted); }
.chpick-sort__btn:hover { border-color: var(--brand-300); color: var(--brand); transform: translateY(-1px); }
.chpick-sort__btn:hover .ic { color: var(--brand); }
.chpick-sort__btn.is-on {
  border-color: transparent; background: var(--brand-grad); color: #fff;
  box-shadow: 0 14px 26px -18px rgba(77,47,255,.95);
}
.chpick-sort__btn.is-on .ic { color: #fff; }

@media (max-width: 720px) {
  .chpick__filter-row { flex-direction: column; }
}
.chpick__count { font-size: 12px; color: var(--muted); margin: 10px 2px 4px; }
.chpick__list { display: flex; flex-direction: column; gap: 8px; }
.chpick__row {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 11px 12px;
  border: 1.5px solid var(--line-2); border-radius: var(--r); cursor: pointer;
  background: linear-gradient(180deg, #fff, #fbfbff);
  transition: border-color .16s, background .16s, box-shadow .16s, transform .12s;
}
.chpick__row:hover { border-color: var(--brand-300); transform: translateY(-1px); box-shadow: 0 16px 30px -26px rgba(77,47,255,.95); }
.chpick__row.is-on { border-color: var(--brand); background: var(--brand-50); box-shadow: var(--ring), 0 18px 34px -28px rgba(77,47,255,.95); }
.chpick__row.is-on::before {
  content: ""; position: absolute; inset: -1.5px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(90deg, rgba(77,47,255,.28), rgba(141,120,255,.08));
  opacity: .55; animation: chpickPulse .26s ease-out both;
}
@keyframes chpickPulse { from { transform: scale(.985); opacity: 0; } to { transform: scale(1); opacity: .55; } }
.chpick__row.is-disabled { cursor: default; opacity: .6; }
.chpick__av { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; flex: none;
  background: var(--surface); position: relative; z-index: 1; }
.chpick__av--mono { display: grid; place-content: center; background: var(--brand-grad); color: #fff;
  font-family: "Inter Tight"; font-weight: 700; font-size: 15px; }
.chpick__body { flex: 1; min-width: 0; position: relative; z-index: 1; }
.chpick__name { font-weight: 650; font-size: 14px; color: var(--ink); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.chpick__uname { font-weight: 500; color: var(--muted); }
.chpick__sub { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 3px;
  font-size: 12.5px; color: var(--muted); }
.chpick__mic { width: 13px; height: 13px; margin-right: 3px; vertical-align: -2px; color: var(--muted-2); }
.chpick__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); display: inline-block; }
.chpick__nostat { color: var(--muted-2); font-style: italic; }
.chpick__row input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.chpick__invite {
  position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 10px 7px 7px; border-radius: var(--r-pill); color: var(--muted);
  background: #fff; border: 1px solid var(--line-2); font-size: 12px; font-weight: 750;
  transition: background .16s, border-color .16s, color .16s, transform .16s;
}
.chpick__invite i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: transparent; font-style: normal; transition: background .16s, color .16s, transform .16s; }
.chpick__invite .ic { width: 14px; height: 14px; }
.chpick__row:hover .chpick__invite { color: var(--brand); border-color: var(--brand-100); }
.chpick__row.is-on .chpick__invite { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateX(-1px); }
.chpick__row.is-on .chpick__invite i { background: #fff; color: var(--brand); transform: scale(1.04); }
.chpick__row.is-on .chpick__invite b { font-size: 0; }
.chpick__row.is-on .chpick__invite b::after { content: "Приглашается"; font-size: 12px; }

/* ===================== analytics ===================== */
.an-hero { display: flex; align-items: baseline; gap: 14px; }
.an-hero__num { font-family: "Inter Tight"; font-weight: 700; font-size: 38px; letter-spacing: -.02em; line-height: 1; }
.an-hero__label { color: var(--muted); font-size: 13px; }
.an-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 16px; }
.an-m { background: var(--surface); border-radius: var(--r); padding: 13px 14px; }
.an-m__val { font-family: "Inter Tight"; font-weight: 700; font-size: 21px; letter-spacing: -.01em; }
.an-m__label { color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.bar { height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--brand-grad); }

/* ===================== copy-link ===================== */
.copy-link { display: flex; gap: 8px; align-items: center; }
.copy-link .input { flex: 1; font-size: 13px; color: var(--ink-2); background: var(--surface); border-color: var(--line); }

/* ===================== AI: DNA match + creative (ТЗ) viewer ===================== */
.badge--ai { background: var(--brand-50); color: var(--brand); }
.prewrap { white-space: pre-wrap; overflow-wrap: break-word; font-size: 13.5px; line-height: 1.6;
  color: var(--ink-2); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px 16px; max-height: 55vh; overflow-y: auto; }

/* ===================== menus (popover) ===================== */
.menu { position: fixed; z-index: 60; min-width: 220px; max-width: 320px; background: #fff;
  border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--sh-pop); padding: 6px;
  animation: pop .14s ease both; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.menu__head { padding: 9px 11px 10px; }
.menu__head .value { font-size: 13.5px; }
.menu__head .label { font-size: 12px; }
.menu__sep { height: 1px; background: var(--line); margin: 5px 6px; }
.menu__item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: none;
  background: none; border-radius: var(--r-sm); padding: 9px 11px; font-size: 13.5px; font-weight: 550; color: var(--ink-2);
  cursor: pointer; font-family: inherit; transition: background .12s; }
.menu__item:hover { background: var(--surface); }
.menu__item .ic { width: 17px; height: 17px; color: var(--muted); flex: none; }
.menu__item.is-active { color: var(--brand); }
.menu__item.is-active .ic { color: var(--brand); }
.menu__item.is-danger { color: var(--err); }
.menu__item.is-danger .ic { color: var(--err); }
.menu__item .check-ic { margin-left: auto; color: var(--brand); }
.menu__item .mark { margin-right: 1px; }
.menu__add { color: var(--brand); }
.menu__add .ic { color: var(--brand); }

/* ===================== modal ===================== */
.modal-back { position: fixed; inset: 0; z-index: 70; background: rgba(12,14,20,.42);
  backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; animation: fade .15s ease both; }
.modal { width: 100%; max-width: 440px; background: #fff; border-radius: var(--r-xl); box-shadow: var(--sh-lg);
  overflow: hidden; animation: up .2s cubic-bezier(.2,.7,.2,1) both; }
.modal__head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 4px; }
.modal__title { font-family: "Inter Tight"; font-weight: 700; font-size: 17px; flex: 1; }
.modal__body { padding: 8px 20px 18px; }
.modal__foot { display: flex; gap: 10px; padding: 14px 20px; background: var(--surface); border-top: 1px solid var(--line); }
.modal__foot .btn { flex: 1; }

/* ===================== skeletons ===================== */
.sk { background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: var(--r); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-line { height: 12px; }
.sk-card { height: 120px; border-radius: var(--r-lg); }

/* ===================== empty states ===================== */
.empty { text-align: center; padding: 44px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty__ic { width: 60px; height: 60px; border-radius: 18px; background: var(--brand-50); color: var(--brand);
  display: grid; place-content: center; margin-bottom: 8px; }
.empty__ic .ic { width: 28px; height: 28px; }
.empty__title { font-family: "Inter Tight"; font-weight: 700; font-size: 18px; }
.empty__text { color: var(--muted); font-size: 14px; max-width: 420px; line-height: 1.55; }

/* ===================== toast ===================== */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(10px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r); font-size: 14px; font-weight: 550;
  z-index: 90; max-width: 90%; box-shadow: var(--sh-lg); display: inline-flex; align-items: center; gap: 9px;
  opacity: 0; transition: opacity .2s, transform .2s; }
.toast .ic { width: 18px; height: 18px; color: #6FE3A6; }
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: #C0392B; }
.toast.error .ic { color: #fff; }

/* ===================== boot + spinner ===================== */
.boot { min-height: 90vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); }
.boot__label { font-size: 14px; }
.spinner { width: 30px; height: 30px; border: 3px solid var(--surface-2); border-top-color: var(--brand);
  border-radius: 50%; animation: spin .75s linear infinite; }
.spinner--sm { width: 18px; height: 18px; border-width: 2.5px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================== auth ===================== */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(77,47,255,.08), transparent 60%), var(--bg); }
.auth { width: 100%; max-width: 408px; animation: up .3s ease both; }
.auth__brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: "Inter Tight";
  font-weight: 700; font-size: 22px; margin-bottom: 6px; }
.auth__brand .glyph { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-grad); color: #fff;
  display: grid; place-content: center; box-shadow: var(--sh-sm); }
.auth__brand .glyph .ic { width: 20px; height: 20px; stroke-width: 2.4; }
.auth__brand b { color: var(--brand); }
.auth__sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.auth__switch { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.auth__switch button { background: none; border: none; color: var(--brand); font-weight: 650; cursor: pointer; font-family: inherit; font-size: 13.5px; }
.invite-banner { display: flex; align-items: center; gap: 13px; padding: 15px; border: 1px solid var(--brand-100);
  background: var(--brand-50); border-radius: var(--r-lg); margin-bottom: 14px; }

/* ===================== responsive ===================== */
@media (max-width: 640px) {
  .page { padding: 20px 14px calc(88px + env(safe-area-inset-bottom)); }
  .userbtn__email { display: none; }
  .appbar { padding: 0 12px; }
  .phead__title { font-size: 22px; }
  .hero__title { font-size: 23px; }
  .modal__foot { flex-direction: column-reverse; }

  /* Bottom tab bar on mobile — no more scrolling to find a tab; every
     section is one tap away, app-style. */
  .tabs {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 45;
    border-top: 1px solid var(--line); border-bottom: none;
    box-shadow: 0 -10px 30px rgba(14,18,28,.08);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabs__inner { max-width: none; padding: 5px 4px; gap: 0; overflow-x: visible; }
  .tab {
    flex: 1 1 0; min-width: 0; flex-direction: column; gap: 3px;
    padding: 7px 2px 8px; border-radius: 14px;
  }
  .tab .ic { width: 22px; height: 22px; }
  .tab:active { transform: scale(.92); }
  .tab.is-active {
    background: var(--brand-50);
    animation: tabPop .3s cubic-bezier(.34,1.56,.64,1) both;
  }
  .tab.is-active::after { display: none; }
  .tab__label { font-size: 0; max-width: 100%; }
  .tab__label::before {
    content: attr(data-short); display: block; max-width: 100%;
    font-size: 10.5px; font-weight: 650; line-height: 1.15;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .tab__badge { display: none; }
  .tab__dot {
    display: block; position: absolute; top: -2px; right: -3px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--brand); box-shadow: 0 0 0 2px #fff;
  }
}

@keyframes tabPop {
  0% { transform: scale(.85); }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
