:root {
  --brand: #3ef0b0;
  --brand-deep: #3fb6ff;
  --violet: #9b7bff;
  --pink: #9b7bff;
  --lime: #3ef0b0;
  --night: #04070a;
  --on-brand: #03140e;
  --on-grad: #03140e;
  --on-bad: #1a0509;
  --hero-ink: #ffffff;
  --grad-text: linear-gradient(90deg, #3ef0b0, #3fb6ff 55%, #9b7bff);
  --topbar: rgba(6,9,13,.82);
  --dock: rgba(8,12,17,.94);
  --dock-on: rgba(255,255,255,.1);
  --quiet-hover: rgba(255,255,255,.06);
  --stripe-a: #0a1016;
  --stripe-b: #0d141b;
  --stage: radial-gradient(120% 120% at 30% 0%, #13202a, #080d12);
  --placeholder: #56636f;
  --scroll: #26323e;
  --eye-bg: rgba(12,18,24,.9);
  --auth-bg:
    radial-gradient(560px 420px at 78% 46%, rgba(62,240,176,.20), transparent 62%),
    radial-gradient(700px 520px at 100% 100%, rgba(155,123,255,.26), transparent 60%),
    radial-gradient(620px 460px at 0% 0%, rgba(63,182,255,.14), transparent 60%),
    linear-gradient(160deg, #08121a 0%, #05080c 60%, #04070a 100%);
  --grad: linear-gradient(120deg, #3ef0b0 0%, #3fb6ff 58%, #9b7bff 100%);
  --grad-dark:
    radial-gradient(120% 160% at 0% 0%, rgba(62,240,176,.24), transparent 52%),
    radial-gradient(120% 160% at 100% 100%, rgba(155,123,255,.30), transparent 55%),
    linear-gradient(135deg, #0a1a1d 0%, #0b1224 100%);
  --ink: #eef5f7;
  --ink-2: #b3c0cb;
  --ink-3: #7c8a97;
  --paper: #06090d;
  --card: #0c1218;
  --raise: #141c25;
  --hover: #18222c;
  --sunk: #04070a;
  --track: #1d2833;
  --line: #19222c;
  --line-2: #26323e;
  --ok: #3ddc97;
  --ok-bg: rgba(61,220,151,.12);
  --warn: #ffc061;
  --warn-bg: rgba(255,192,97,.12);
  --bad: #ff6b81;
  --bad-bg: rgba(255,107,129,.12);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 2px 10px -2px rgba(0,0,0,.35);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 36px -14px rgba(0,0,0,.7);
  --radius: 18px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Outfit", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body.suite {
  margin: 0; font: 14px/1.5 var(--sans); color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons & fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.lg { height: 52px; padding: 0 22px; font-size: 15px; border-radius: 14px; }
.btn.full { width: 100%; }
.btn.primary { background: var(--brand) var(--grad); color: var(--on-grad); box-shadow: 0 12px 26px -12px rgba(62,240,176,.55) }
.btn.primary:hover:not(:disabled) { filter: brightness(1.08) saturate(1.05); box-shadow: 0 14px 30px -12px rgba(63,182,255,.6) }
.btn.ghost { background: var(--raise); border-color: var(--line-2); color: var(--ink-2) }
.btn.ghost:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.btn.quiet { background: transparent; color: var(--ink-2); }
.btn.quiet:hover { background: var(--quiet-hover) }
.btn.danger { background: var(--raise); border-color: rgba(255,107,129,.35); color: var(--bad) }
.btn.danger:hover { background: var(--bad); color: var(--on-bad); border-color: var(--bad) }
.btn.dark { background: var(--raise); color: var(--ink); border-color: var(--line-2) }
.btn.dark:hover { background: var(--hover) }

.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field small { color: var(--ink-3); font-weight: 400; }
.input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px;
  background: var(--raise); border: 1px solid var(--line-2); outline: none; color: var(--ink); caret-color: var(--brand);
  color-scheme: dark; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(62,240,176,.12); }
select.input { appearance: none; padding-right: 36px; background: var(--raise) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a807a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.form-error { min-height: 20px; margin: 4px 0 12px; color: var(--bad); font-size: 13px; font-weight: 500; }

/* ---------- brand ---------- */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand-name { font: 300 21px/1 var(--display); color: var(--ink); letter-spacing: .24em; margin-right: -.05em; white-space: nowrap }
.brand-sub { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 4px; letter-spacing: 0; }

/* ---------- boot ---------- */
.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--paper); z-index: 100; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(62,240,176,.15); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); }
.auth-art { position: relative; overflow: hidden; padding: 48px 56px; color: var(--ink-2);
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--auth-bg);
  border-right: 1px solid var(--line) }
.auth-art .brand-name { color: var(--hero-ink) }
.auth-art .brand-sub { color: var(--ink-3) }
.auth-art h1 { font: 300 clamp(40px, 5vw, 66px)/1.02 var(--display); letter-spacing: -.02em; margin: 0 0 22px; color: var(--hero-ink); max-width: 12ch }
.auth-art h1 em { display: block; font-style: normal; font-weight: 600; padding-bottom: .08em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent }
.auth-art p { max-width: 440px; margin: 0; font-size: 15.5px; color: var(--ink-2) }
.auth-feats { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.auth-feats div { font-size: 13px; color: var(--ink-3) }
.auth-feats b { display: block; font: 600 20px/1.1 var(--display); color: var(--brand); margin-bottom: 4px }
/* background: Invite's ticket, large and tilted */
.auth-art > * { position: relative; z-index: 1; }
.auth-foot { font-size: 12px; color: var(--ink-3); position: relative }
.auth-side { display: grid; place-items: center; padding: 40px 28px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h2 { font: 700 30px/1.1 var(--display); margin: 0 0 8px; letter-spacing: -.01em; }
.auth-card > p { margin: 0 0 28px; color: var(--ink-3); }
.auth-card .step-label { display: flex; align-items: center; gap: 10px; margin: 26px 0 14px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.auth-card .step-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-card .note { font-size: 12.5px; color: var(--ink-3); background: var(--raise); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.auth-card .note b { color: var(--ink-2); }
.auth-alt { margin-top: 18px; font-size: 13px; color: var(--ink-3); text-align: center; }
.auth-alt a { color: var(--brand); font-weight: 600; text-decoration: none; }

/* ---------- top bar ---------- */
.ci-top { position: sticky; top: 0; z-index: 20; height: 68px; padding: 0 28px;
  display: flex; align-items: center; gap: 24px;
  background: var(--topbar); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line) }
.nav { display: flex; gap: 4px; padding: 4px; background: var(--sunk); border-radius: 12px; }
.nav a { display: inline-flex; align-items: center; gap: 7px; }
.nav a .ico { width: 16px; height: 16px; }
.nav a { padding: 7px 14px; border-radius: 9px; text-decoration: none; font-weight: 600; font-size: 13px; color: var(--ink-3); }
.nav a:hover { color: var(--ink); }
.nav a.on { background: var(--raise); color: var(--brand); box-shadow: var(--shadow-sm); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.live {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--ok-bg); color: var(--ok); font-size: 12px; font-weight: 600;
}
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 rgba(61,220,151,.5); animation: pulse 1.8s infinite; }
.live.off { background: var(--sunk); color: var(--ink-3); }
.live.off::before { animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,151,.45); } 70% { box-shadow: 0 0 0 8px rgba(23,128,79,0); } 100% { box-shadow: 0 0 0 0 rgba(23,128,79,0); } }

/* ---------- dashboard ---------- */
.dash { max-width: 1240px; margin: 0 auto; padding: 32px 28px 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; display: block; }
.page-head h1 { font: 700 clamp(28px, 3.4vw, 40px)/1.05 var(--display); margin: 0; letter-spacing: -.02em; }
.page-head .meta { margin-top: 8px; color: var(--ink-3); font-size: 14px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; font-size: 13px; font-weight: 600; color: var(--ink-3); text-decoration: none; cursor: pointer; background: none; border: 0; padding: 0; }
.back:hover { color: var(--brand); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 0; }
.card-head h2 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.005em; }
.card-head .sub { font-size: 12.5px; color: var(--ink-3); }
.card-body { padding: 18px 22px 22px; }

/* events grid */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.event-card {
  position: relative; padding: 22px; cursor: pointer; text-align: left; border: 1px solid var(--line);
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s; overflow: hidden;
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.event-card h3 { font: 700 19px/1.2 var(--display); margin: 0 0 4px; padding-right: 70px; }
.event-card .date { font-size: 13px; color: var(--ink-3); }
.event-card .ring-sm { position: absolute; right: 20px; top: 20px; }
.event-card .foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 26px; padding-top: 16px; border-top: 1px dashed var(--line-2); font-size: 13px; color: var(--ink-3); }
.event-card .foot b { font: 700 22px/1 var(--display); color: var(--ink); margin-right: 4px; }
.empty-block { padding: 64px 24px; text-align: center; color: var(--ink-3); }
.empty-block h3 { font: 700 22px/1.2 var(--display); color: var(--ink); margin: 14px 0 6px; }
.empty-block p { max-width: 420px; margin: 0 auto 20px; }
.empty-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin: 0 auto; background: var(--raise); border: 1px solid var(--line); color: var(--brand); }
.empty-ico .ico { width: 28px; height: 28px; }

/* rings */
.ring { display: block; }
.ring .track { stroke: var(--track); }
.ring .val { stroke: var(--brand); stroke-linecap: round; transition: stroke-dashoffset .8s cubic-bezier(.2,.8,.2,1); }
.ring text { font-family: var(--display); font-weight: 700; fill: var(--ink); }

/* KPIs */
.kpis { display: grid; grid-template-columns: 1.35fr repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.kpi { padding: 20px 22px; display: flex; flex-direction: column; justify-content: space-between; min-height: 132px; }
.kpi .label { font-size: 12.5px; font-weight: 600; color: var(--ink-3); display: flex; align-items: center; gap: 7px; }
.kpi .label .ico { width: 15px; height: 15px; color: var(--brand); }
.kpi .value { font: 700 36px/1 var(--display); letter-spacing: -.02em; margin-top: 14px; }
.kpi .value small { font: 500 15px var(--sans); color: var(--ink-3); letter-spacing: 0; margin-left: 4px; }
.kpi .hint { margin-top: 8px; font-size: 12.5px; color: var(--ink-3); }
.kpi-hero { flex-direction: row; align-items: center; gap: 22px; background: var(--grad-dark); border: 1px solid rgba(62,240,176,.22); color: var(--hero-ink) }
.kpi-hero .label { color: var(--ink-2) }
.kpi-hero .label .ico { color: var(--lime); }
.kpi-hero .value { color: var(--hero-ink); font-size: 44px; }
.kpi-hero .hint { color: var(--ink-2) }
.kpi-hero .ring .track { stroke: var(--track) }
.kpi-hero .ring .val { stroke: var(--lime); }
.kpi-hero .ring text { fill: var(--hero-ink); }

.charts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-bottom: 18px; }
.chart-wrap { position: relative; }
.chart-wrap svg { display: block; width: 100%; overflow: visible; }
.chart-wrap .grid line { stroke: var(--track); }
.chart-wrap .axis text { fill: var(--ink-3); font-size: 11px; font-family: var(--sans); }
.chart-wrap .bar { fill: var(--brand); transition: opacity .15s; }
.chart-wrap .bar.dim { opacity: .35; }
.chart-wrap .peak-label { fill: var(--ink); font-size: 11.5px; font-weight: 700; font-family: var(--sans); }
.chart-wrap .hit { fill: transparent; cursor: default; }
.tooltip { position: absolute; pointer-events: none; z-index: 5; transform: translate(-50%, calc(-100% - 10px));
  background: var(--hover); color: var(--ink); border: 1px solid var(--line-2); padding: 8px 11px; border-radius: 10px; font-size: 12px; white-space: nowrap;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.6) }
.tooltip b { display: block; font-size: 13px; }
.chart-empty { height: 220px; display: grid; place-items: center; text-align: center; color: var(--ink-3); font-size: 13px; background: repeating-linear-gradient(135deg, var(--stripe-a) 0 10px, var(--stripe-b) 10px 20px); border-radius: 12px }

.co-list { display: flex; flex-direction: column; gap: 12px; }
.co-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; }
.co-row .name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-row .val { font-size: 12.5px; color: var(--ink-2); }
.co-row .val b { color: var(--ink); }
.co-row .track { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.co-row .fill { display: block; height: 100%; border-radius: 999px; background: var(--brand); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.linkish { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; font-size: 13px; cursor: pointer; margin-top: 14px; }

/* guests */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.search { position: relative; flex: 1; min-width: 220px; }
.search .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search .input { padding-left: 40px; height: 40px; }
.seg { display: inline-flex; background: var(--sunk); padding: 3px; border-radius: 11px; }
.seg button { border: 0; background: transparent; height: 34px; padding: 0 13px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--ink-3); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg button.on { background: var(--raise); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg .count { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--track); color: var(--ink-2); }
.seg button.on .count { background: rgba(62,240,176,.1); color: var(--brand); }


.group { border-bottom: 1px solid var(--line); }
.group:last-child { border-bottom: 0; }
.group-head {
  position: sticky; top: 68px; z-index: 2; display: flex; align-items: center; gap: 14px;
  padding: 12px 22px; background: var(--sunk); border-bottom: 1px solid var(--line);
}
.group-head h3 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.group-head .mini { flex: 0 0 120px; height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; margin-left: auto; }
.group-head .mini i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.group-head .gcount { font-size: 12px; color: var(--ink-3); min-width: 64px; text-align: right; }
.guest { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 22px; border-bottom: 1px solid var(--line); transition: background .12s; }
.guest:last-child { border-bottom: 0; }
.guest:hover { background: var(--hover); }
.avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--raise); color: var(--ink-2); }
.guest.in .avatar { background: var(--ok-bg); color: var(--ok); }
.guest .gname { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guest .gsub { font-size: 12px; color: var(--ink-3); }
.guest .gmail-addr { color: var(--ink-2); overflow-wrap: anywhere; }
.me-chip { display: inline-flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--raise); max-width: 260px; }
.me-av { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--on-grad); font-size: 11.5px; font-weight: 700 }
.me-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.me-txt b { font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-txt small { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .me-txt { display: none; } .me-chip { padding: 3px; } }
.mail-st { font-weight: 600; white-space: nowrap; }
.mail-pending { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 0 22px 14px; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); border: 1px solid rgba(255,192,97,.32); font-size: 13.5px; color: var(--ink-2); }
.mail-st.ok { color: var(--ok); }
.mail-st.open { color: #3fb6ff; }
/* event an organizer asked for, waiting for the admin */
.pending-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 18px; padding: 14px 16px; border-radius: 16px;
  background: var(--warn-bg); border: 1px solid rgba(255,192,97,.32); }
.pending-ico { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--on-brand); }
.pending-txt { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: var(--ink-2); }
.pending-txt b { font-size: 15px; color: var(--ink); }
.pending-approve { display: flex; align-items: flex-end; gap: 10px; }
.pending-approve label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.pending-approve .input { width: 110px; }
.tag.wait { background: var(--lime); color: var(--on-brand); }
.event-card.is-pending { border-color: rgba(255,192,97,.32); }
.mail-st.err { color: var(--brand); cursor: help; }
.status { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status .ico { width: 14px; height: 14px; stroke-width: 2.4; }
.status.in { background: var(--ok-bg); color: var(--ok); }
.status.out { background: var(--raise); color: var(--ink-3); }
.guest .btn.sm { min-width: 118px; }
.list-empty { padding: 48px 22px; text-align: center; color: var(--ink-3); }

/* modal */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.45); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; animation: fade .15s ease; }
.dialog { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line-2); border-radius: 20px; padding: 26px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.8); animation: pop .2s cubic-bezier(.2,.9,.3,1.2) }
.dialog h3 { font: 700 21px/1.2 var(--display); margin: 0 0 8px; }
.dialog p { margin: 0 0 22px; color: var(--ink-2); }
.dialog .row { display: flex; gap: 10px; justify-content: flex-end; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 80;
  background: var(--hover); color: var(--ink); border: 1px solid var(--line-2); padding: 12px 18px; border-radius: 12px; font-size: 13px; font-weight: 500;
  box-shadow: 0 14px 30px rgba(0,0,0,.5); max-width: 90vw }

@media (max-width: 1080px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi-hero { grid-column: span 2; }
  .charts { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: 32px 26px 40px; min-height: 0; }
  .auth-art h1 { font-size: 40px; }
  .auth-feats, .auth-foot { display: none; }
  .ci-top { padding: 0 16px; gap: 12px; }
  .ci-top .brand-sub { display: none; }
  .dash { padding: 22px 16px 60px; }
  .guest { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .guest .status { display: none; }
  .group-head .mini { display: none; }
}
/* ---------- event tabs & cards ---------- */
.etabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 22px; background: var(--sunk); border-radius: 14px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.etabs::-webkit-scrollbar { display: none; }
.etabs button {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 11px;
  background: transparent; color: var(--ink-3); font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap;
  transition: background .18s, color .18s, box-shadow .18s;
}
.etabs button .ico { width: 17px; height: 17px; }
.etabs button:hover { color: var(--ink); }
.etabs button.on { background: var(--raise); color: var(--brand); box-shadow: var(--shadow-sm); }
.tabpanel { animation: tabin .22s ease; }
@keyframes tabin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; align-items: start; }
.card.pad { padding: 26px; }
.card-kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.card-title { font: 700 22px/1.15 var(--display); margin: 0 0 8px; letter-spacing: -.01em; }
.card-text { margin: 0 0 20px; color: var(--ink-2); max-width: 46ch; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.link-row { display: flex; gap: 8px; }
.link-row .input { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-2); background: var(--sunk); text-overflow: ellipsis; }
.link-row .btn { height: 46px; }
.field .linkish { margin-top: 8px; font-size: 12.5px; }
.steps { list-style: none; margin: 24px 0 0; padding: 18px 0 0; border-top: 1px dashed var(--line-2); display: grid; gap: 12px; }
.steps li { font-size: 13px; color: var(--ink-2); display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.steps b { color: var(--ink); font-weight: 700; }
.steps em { font-style: normal; font-weight: 600; color: var(--ink); }
.door-qr { text-align: center; }
.door-qr canvas { width: 220px; height: 220px; max-width: 100%; margin: 6px auto 16px; display: block; border-radius: 18px; border: 1px solid var(--line); padding: 10px; background: var(--raise); image-rendering: pixelated; }
.door-qr .card-text { margin: 0 auto; }
.inv-result { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 26px; align-items: center; }
.inv-result img { width: 100%; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); display: block; }
.note { font-size: 12.5px; color: var(--ink-3); background: var(--raise); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.note b { color: var(--ink-2); }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.danger-zone b { display: block; font-size: 14px; }
.danger-zone span { font-size: 12.5px; color: var(--ink-3); }

.seg-full { display: flex; margin-bottom: 18px; }
.seg-full button { flex: 1; justify-content: center; height: 38px; }
.input.area { height: auto; padding: 12px 14px; line-height: 1.55; resize: vertical; min-height: 120px; }
.input.code { font: 12px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; min-height: 0; margin-top: 8px; background: var(--sunk); white-space: pre; }
.field-help { display: block; margin-top: 7px; font-size: 12px; color: var(--ink-3); }
.field-help b { color: var(--ink-2); }
.backup-note { display: flex; align-items: center; justify-content: center; text-align: center; gap: 8px; margin: 14px 0 0; font-size: 12.5px; color: var(--ok); font-weight: 600; }
.backup-note .ico { width: 17px; height: 17px; }
.inv-list { margin-top: 22px; border-top: 1px solid var(--line); max-height: 340px; overflow-y: auto; }
.inv-item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.inv-item:last-child { border-bottom: 0; }
.inv-item .gname { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-item .gsub { font-size: 12px; color: var(--ink-3); }
.inv-item .btn .ico { width: 15px; height: 15px; }
.setup-steps { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 10px; font-size: 13px; color: var(--ink-2); }
.setup-steps a { color: var(--brand); font-weight: 600; }
.setup-steps b { color: var(--ink); }
.note.ok { background: var(--ok-bg); border-color: rgba(61,220,151,.32); color: var(--ok); }
.note.ok b { color: var(--ok); }
.dialog.wide { max-height: calc(100vh - 40px); overflow-y: auto; }
.btn.is-on { border-color: rgba(61,220,151,.32); color: var(--ok); background: var(--ok-bg); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; padding-right: 70px; min-height: 22px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase }
.tag.soft { background: var(--sunk); color: var(--ink-2); text-transform: none; letter-spacing: 0; font-weight: 600; }
.event-card .foot { align-items: center; }
.event-card .quick { display: inline-flex; gap: 6px; }
.event-card .quick .btn { height: 32px; padding: 0 10px; font-size: 12px; }
.event-card .quick .ico { width: 14px; height: 14px; }
.dialog.wide { max-width: 520px; }
.dialog .row { margin-top: 6px; }
.toolbar .btn.sm { height: 40px; }

.meta-item { display: inline-flex; align-items: center; gap: 7px; }
.meta-item .ico { width: 16px; height: 16px; color: var(--ink-3); }
.gbtn .ico { width: 16px; height: 16px; stroke-width: 2.2; }

/* ================= MOBILE ================= */
@media (max-width: 720px) {

  .ci-top { height: 60px; padding: 0 16px; gap: 10px; background: var(--card); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .ci-top .brand img { width: 34px; height: 34px; }
  .top-right { gap: 6px; }
  .live { height: 30px; padding: 0 11px; font-size: 11.5px; }
  #logoutBtn { width: 38px; height: 38px; padding: 0; border-radius: 12px; background: var(--raise); }
  #logoutBtn .lbl { display: none; }

  .nav {
    position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 6px;
    background: var(--dock); backdrop-filter: saturate(1.3) blur(16px);
    border-radius: 22px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.55), 0 0 0 1px var(--line) inset;
  }
  .nav a {
    flex-direction: column; justify-content: center; gap: 4px; padding: 8px 0 7px; border-radius: 16px;
    font-size: 11px; font-weight: 600; color: var(--ink-3); letter-spacing: .01em;
  }
  .nav a .ico { width: 21px; height: 21px; }
  .nav a:hover { color: var(--ink); }
  .nav a.on { background: var(--dock-on); color: var(--brand); box-shadow: none; }

  .toast { bottom: calc(100px + env(safe-area-inset-bottom)); }

  .dash { padding: 20px 16px calc(110px + env(safe-area-inset-bottom)); }
  .back { margin-bottom: 12px; }
  .kicker { font-size: 10.5px; margin-bottom: 6px; }
  .page-head { margin-bottom: 18px; gap: 16px; }
  .page-head > div:first-child { width: 100%; }
  .page-head h1 { font-size: 27px; line-height: 1.12; }
  .page-head .meta { flex-direction: column; align-items: flex-start; gap: 5px; margin-top: 10px; font-size: 13px; }

  .actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr 46px; gap: 8px; }
  #eventsView .actions { grid-template-columns: 1fr; }
  .actions .btn { height: 46px; padding: 0 10px; font-size: 13.5px; border-radius: 13px; }
  #deleteBtn { padding: 0; }

  .events-grid { gap: 12px; }
  .event-card { padding: 18px; }
  .event-card h3 { font-size: 17px; padding-right: 64px; }
  .event-card .foot { margin-top: 18px; padding-top: 14px; flex-direction: column; gap: 4px; }

  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
  .kpi { padding: 14px 16px; min-height: 0; border-radius: 16px; }
  .kpi .label { font-size: 11.5px; gap: 6px; }
  .kpi .value { font-size: 27px; margin-top: 10px; }
  .kpi .hint { font-size: 11.5px; margin-top: 4px; line-height: 1.35; }
  .kpi-hero { grid-column: span 2; padding: 18px; gap: 18px; }
  .kpi-hero .ring { width: 84px; height: 84px; }
  .kpi-hero .value { font-size: 38px; margin-top: 8px; }

  .charts { gap: 12px; margin-bottom: 12px; }
  .card { border-radius: 16px; }
  .card-head { padding: 16px 16px 0; flex-direction: column; align-items: flex-start; gap: 2px; }
  .card-head h2 { font-size: 14.5px; }
  .card-head .sub { font-size: 11.5px; }
  .card-body { padding: 14px 16px 16px; }
  .co-list { gap: 11px; }
  .co-row .name { font-size: 12.5px; }
  .co-row .val { font-size: 12px; }

  .toolbar { padding: 14px; gap: 10px; }
  .search { flex: 1 1 100%; min-width: 0; }
  .search .input { height: 44px; font-size: 16px; }
  .seg { width: 100%; }
  .seg button { flex: 1; justify-content: center; padding: 0 6px; font-size: 12.5px; height: 36px; gap: 5px; }
  .seg .count { padding: 1px 6px; font-size: 10.5px; }

  .group-head { top: 60px; padding: 10px 16px; }
  .group-head h3 { font-size: 12.5px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .group-head .gcount { margin-left: auto; min-width: 0; font-size: 11.5px; white-space: nowrap; }

  .guest { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; padding: 11px 16px; }
  .avatar { width: 36px; height: 36px; border-radius: 11px; font-size: 12px; }
  .guest .gname { font-size: 14px; }
  .guest .gsub { font-size: 11.5px; }
  .gbtn { width: 40px; min-width: 0 !important; height: 40px; padding: 0; border-radius: 12px; }
  .gbtn .lbl { display: none; }
  .gbtn .ico { width: 18px; height: 18px; }
  .guest .btn.ghost.gbtn { border-color: rgba(61,220,151,.32); color: var(--ok); background: var(--ok-bg); }
  .guest .btn.quiet.gbtn { color: var(--ink-3); background: var(--raise); }

  .list-empty { padding: 36px 16px; }

  .etabs { display: flex; margin-bottom: 16px; }
  .etabs button { flex: 1; justify-content: center; padding: 0 10px; font-size: 12.5px; gap: 6px; }
  .etabs button .ico { width: 16px; height: 16px; }
  .two-col { grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
  .card.pad { padding: 20px 18px; }
  .card-title { font-size: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 1fr; gap: 2px; }
  .inv-result { grid-template-columns: 1fr; gap: 16px; }
  .danger-zone { flex-direction: column; align-items: stretch; }
  .toolbar .btn.sm { width: 100%; }
  .tags { padding-right: 64px; }
  .event-card .foot { flex-direction: row; align-items: center; justify-content: space-between; }
  .event-card .quick .btn span { display: none; }
  .event-card .quick .btn { width: 36px; padding: 0; }
  .link-row { flex-wrap: nowrap; }
  .inv-item .btn { width: 38px; padding: 0; }
  .inv-item .btn .lbl { display: none; }
  #eventsView .actions { grid-template-columns: 1fr 1fr; }
  .input { font-size: 16px; }

  /* client link: the event tabs become the app's bottom bar */
  .client-mode .etabs {
    position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); margin: 0;
    padding: 6px; gap: 4px; background: var(--dock); border-radius: 22px;
    box-shadow: 0 18px 40px -12px rgba(0,0,0,.55), 0 0 0 1px var(--line) inset; overflow: visible;
  }
  .client-mode .etabs button { flex-direction: column; height: auto; padding: 8px 0 7px; gap: 4px; font-size: 11px; color: var(--ink-3); border-radius: 16px; }
  .client-mode .etabs button .ico { width: 21px; height: 21px; }
  .client-mode .etabs button.on { background: var(--dock-on); color: var(--brand); box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- guest & event row actions ---------- */
.gactions { display: inline-flex; align-items: center; gap: 6px; }
.gdel { width: 34px; min-width: 0 !important; height: 34px; padding: 0; color: var(--ink-3); }
.gdel:hover { background: var(--bad-bg); color: var(--bad); }
.gdel .ico { width: 16px; height: 16px; }
.btn.icon-only { width: 32px; padding: 0 !important; }
@media (max-width: 720px) {
  .gdel { width: 40px; height: 40px; border-radius: 12px; background: var(--raise); }
  .event-card .quick .btn.icon-only { width: 36px; }
}

/* ---------- type: tight sans for headings and figures ---------- */
h1, h2, h3, .kpi .value, .count, .result-name, .card-title, .event-card h3, .t-name, .t-event { letter-spacing: -.004em; }
.kicker, .card-kicker, .result-title, .t-kicker, .t-label { font-weight: 600; }

.note.warn { background: var(--warn-bg); border-color: rgba(255,192,97,.32); color: var(--warn); }
.note.warn b { color: var(--brand-deep); }

/* quick design */
.design-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 24px; align-items: center; margin-bottom: 16px; }
.design-card:has(.design-thumb[hidden]) { grid-template-columns: minmax(0, 1fr); }
.design-thumb img { width: 132px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: block; background: var(--raise); }
.design-body .card-text { margin-bottom: 16px; }
.dialog.design-dialog { max-width: 880px; }
.design-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.design-preview { position: sticky; top: 0; text-align: center; }
.design-preview canvas { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); display: block; background: var(--raise); }
.design-preview span { display: block; margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.design-dialog .seg-full { margin-bottom: 0; }
.sw { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.14); flex: none; }
.sw-claro { background: linear-gradient(135deg, #f9f8fc 50%, #3ef0b0 50%); }
.sw-bordo { background: linear-gradient(135deg, #3d1299 50%, var(--lime) 50%); }
.sw-blanco { background: linear-gradient(135deg, #fff 50%, var(--on-brand) 50%); }
.check-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--raise); cursor: pointer; }
.check-row input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.check-row span { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.check-row b { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 2px; }
@media (max-width: 720px) {
  .design-card { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: start; }
  .design-thumb img { width: 84px; }
  .design-card .actions { grid-template-columns: 1fr; }
  .design-grid { grid-template-columns: 1fr; gap: 16px; }
  .design-preview { position: static; max-width: 260px; margin: 0 auto; order: -1; }
}
.btn.is-warn { border-color: rgba(255,192,97,.32); color: var(--warn); background: var(--warn-bg); }

/* package quota */
.quota { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--raise); }
.quota-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 8px; }
.quota-top b { color: var(--ok); font-weight: 600; white-space: nowrap; }
.quota-bar { display: block; height: 6px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.quota-bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .3s; }
.quota.full .quota-top b { color: var(--bad); }
#invFileBtn { margin-top: 8px; font-size: 12.5px; }

/* ---------- accounts ---------- */
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.label-row label { margin: 0 !important; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.label-row .linkish { margin: 0; font-size: 12.5px; }
.gbox { margin-top: 14px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12px; margin-bottom: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gbtn-slot { display: flex; justify-content: center; min-height: 44px; }
.auth-hint { margin: 16px 0 0; font-size: 12.5px; color: var(--ink-3); text-align: center; line-height: 1.5; }
.auth-hint b { color: var(--ink-2); }
.back-login { margin-top: 10px; }
a.back { text-decoration: none; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--brand); color: var(--on-brand); font-size: 11px; font-weight: 700; display: inline-grid; place-items: center }

.user-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.user-row:last-child { border-bottom: 0; }
.user-row.pending { background: var(--warn-bg); }
.user-row.inactive .user-main { opacity: .55; }
.user-main .gname { font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.user-main .gsub { font-size: 12.5px; color: var(--ink-3); }
.user-main .gsub.ev { color: var(--ink-2); margin-top: 2px; }
.user-actions { display: inline-flex; gap: 6px; align-items: center; }
.role-chip { height: 20px; padding: 0 8px; border-radius: 99px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; display: inline-grid; place-items: center; background: var(--sunk); color: var(--ink-2); }
.role-chip.r-admin { background: var(--grad); color: var(--on-grad) }
.role-chip.r-client { background: rgba(62,240,176,.1); color: var(--brand); }
.role-chip.r-door { background: rgba(63,182,255,.12); color: #3fb6ff; }
.role-chip.r-pending { background: var(--lime); color: var(--night); }
.flag { height: 20px; padding: 0 8px; border-radius: 99px; font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; background: var(--raise); color: var(--ink-3); }
.flag.warn { background: var(--warn-bg); color: var(--warn); }
.flag.off { background: var(--bad-bg); color: var(--bad); }

.role-pick { display: grid; gap: 8px; }
.role-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--raise); cursor: pointer; }
.role-opt input { margin: 3px 0 0; accent-color: var(--brand); width: 16px; height: 16px; flex: none; }
.role-opt span { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.role-opt b { display: block; font-size: 13.5px; color: var(--ink); }
.role-opt:has(input:checked) { border-color: var(--brand); background: rgba(62,240,176,.1); box-shadow: 0 0 0 3px rgba(62,240,176,.08); }
.ev-checks { display: grid; gap: 6px; max-height: 210px; overflow-y: auto; padding: 2px; }
.ev-check { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--raise); cursor: pointer; font-size: 13px; font-weight: 600; }
.ev-check input { accent-color: var(--brand); width: 16px; height: 16px; flex: none; }
.ev-check small { display: block; font-weight: 400; color: var(--ink-3); font-size: 11.5px; }
.ev-check:has(input:checked) { border-color: var(--brand); }
.people { display: grid; gap: 8px; }
.person { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.person .avatar { width: 32px; height: 32px; border-radius: 10px; font-size: 12px; }
.person small { display: block; color: var(--ink-3); font-size: 11.5px; }
.access-people { margin-bottom: 18px; }
@media (max-width: 720px) {
  .user-row { grid-template-columns: 38px minmax(0, 1fr); padding: 14px; }
  .user-actions { grid-column: 1 / -1; justify-content: flex-end; }
  #usersView .page-head .actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
}

/* ---------- legal pages ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 48px 20px 80px; }
.legal .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 40px; }
.legal .brand img { width: 34px; height: 34px; }
.legal .brand-name { font-size: 21px; }
.legal h1 { font: 700 clamp(32px, 6vw, 44px)/1.05 var(--display); letter-spacing: -.03em; margin: 8px 0 8px; }
.legal-date { color: var(--ink-3); font-size: 13px; margin: 0 0 32px; }
.legal h2 { font: 700 19px/1.25 var(--display); margin: 32px 0 8px; letter-spacing: -.01em; }
.legal p, .legal li { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--brand); font-weight: 600; }
.legal-links { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.auth-legal { margin: 22px 0 0; text-align: center; font-size: 12px; color: var(--ink-3); }
.auth-legal a { color: var(--ink-3); }
.gbox.top { margin: 0 0 6px; }
.gbox.top .or { margin: 18px 0 16px; }
.auth-switch { margin: 18px 0 0; text-align: center; font-size: 13.5px; color: var(--ink-3); }
.auth-switch .linkish { margin: 0; font-size: 13.5px; }
.auth-card .role-pick { gap: 8px; }

/* ---------- guests by company ---------- */
.co-box { border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 12px; background: var(--raise); }
.co-box .field:last-of-type { margin-bottom: 12px; }
.co-groups { display: grid; gap: 8px; margin: 12px 0 4px; }
.co-groups:empty { display: none; }
.co-group { border-radius: 12px; background: var(--sunk); border: 1px solid transparent; transition: border-color .2s, background-color .2s; }
.co-group.open { background: var(--raise); border-color: var(--brand); box-shadow: 0 0 0 3px rgba(62,240,176,.12); }
.co-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 12px; }
.co-head:hover { background: rgba(62,240,176,.06); }
.co-head:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.co-name { flex: 1 1 auto; min-width: 0; }
.co-name b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-name span { font-size: 12px; color: var(--ink-3); }
.co-chev { flex: none; color: var(--ink-3); transition: transform .2s; }
.co-group.open .co-chev { transform: rotate(180deg); color: var(--brand); }
.co-body { padding: 2px 14px 14px; display: grid; gap: 4px; animation: coIn .2s ease-out; }
.co-acts { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@keyframes coIn { from { opacity: 0; transform: translateY(-4px); } }
.co-x { width: 28px; height: 28px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-3); font-size: 20px; line-height: 1; cursor: pointer; }
.co-x:hover { background: rgba(62,240,176,.1); color: var(--brand); }
#invMany { margin-bottom: 14px; }

/* ---------- invitations tab: creating them is the main thing, design and files on the side ---------- */
.inv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; margin-bottom: 16px; }
.inv-create { border: 2px solid var(--brand); box-shadow: 0 18px 40px -24px rgba(62,240,176,.45); padding: 28px 30px 30px; }
.card-title.big { font-size: 30px; margin-bottom: 10px; }
.inv-create #invBtn { min-height: 56px; font-size: 17px; }
.inv-side { display: grid; gap: 16px; }
.side-card { padding: 18px 18px 20px; }
.side-card .card-kicker { color: var(--ink-3); }
.side-title { font: 700 16px/1.25 var(--display); margin: 0 0 6px; }
.side-text { font-size: 13px; line-height: 1.5; color: var(--ink-3); margin: 0 0 14px; }
.side-design { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; margin-bottom: 12px; }
.side-design .design-thumb img { width: 64px; border-radius: 8px; }
.side-design:has(.design-thumb[hidden]) { grid-template-columns: minmax(0, 1fr); } /* no design yet: the text takes the whole width */
/* design card: a large preview of the invitation on top, one action under it */
.design-side { padding: 0; overflow: hidden; }
.design-preview { position: relative; display: block; width: 100%; padding: 18px 16px; border: 0; cursor: zoom-in;
  background: linear-gradient(160deg, var(--raise), var(--sunk)); }
/* the whole invitation, whatever its proportions (own images are not 4:5) */
.design-preview img { display: block; width: auto; max-width: 100%; max-height: 280px; margin: 0 auto; object-fit: contain;
  border-radius: 10px; box-shadow: 0 14px 30px -18px rgba(0,0,0,.55); background: var(--raise); transition: transform .2s; }
.design-preview:hover img { transform: translateY(-3px); }
.design-badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: var(--raise); color: var(--ink-2); box-shadow: var(--shadow-sm); }
.design-badge:empty { display: none; }
.design-info { padding: 16px 18px 18px; }
.design-info .btn.full { margin-top: 2px; }
.design-edit { display: block; margin: 10px auto 0; font-size: 12.5px; }
.side-design .side-text { margin: 0; }
.side-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 900px) {
  .inv-layout { grid-template-columns: 1fr; }
  .inv-create { padding: 22px 18px 24px; }
  .card-title.big { font-size: 24px; }
}

/* ---------- files tab ---------- */
.files-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 22px 10px; }
.files-bar .search { flex: 1 1 240px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 15px; flex: 1 1 100%; }
.crumbs b, .crumbs .crumb { display: inline-flex; align-items: center; gap: 8px; }
.crumbs .crumb { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); font-weight: 600; cursor: pointer; }
.crumbs .sep { color: var(--ink-3); }
.crumbs .ico { width: 18px; height: 18px; }
.files-meta { padding: 0 22px 14px; font-size: 12.5px; color: var(--ink-3); }
/* keeping notice: small print at the bottom of the files card */
.files-note { margin: 0 22px; padding: 12px 0 16px; border-top: 1px solid var(--line); font-size: 11.5px; line-height: 1.5; color: var(--ink-3); text-align: center; }
.files-note b { font-weight: 600; color: var(--ink-3); }
#filesBody { padding: 0 22px 22px; }
#filesBody .empty-block { box-shadow: none; }
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.folder { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; gap: 4px 12px; align-items: center; text-align: left;
  padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--raise); cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s, transform .1s; }
.folder:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.folder-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--warn-bg); color: var(--warn); }
.folder-ico .ico { width: 24px; height: 24px; }
.folder-txt { display: flex; flex-direction: column; min-width: 0; }
.folder-txt b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folder-txt small { font-size: 12px; color: var(--ink-3); }
.folder-prev { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.folder-prev img { width: 100%; aspect-ratio: 3 / 5; object-fit: cover; object-position: top; border-radius: 6px; border: 1px solid var(--line); background: var(--sunk); }
.file-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sel-all { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.sel-all input { width: 16px; height: 16px; accent-color: var(--brand); }
.file-hint { font-size: 12px; color: var(--ink-3); }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
.file { display: flex; flex-direction: column; gap: 6px; cursor: pointer; user-select: none; border-radius: 12px; padding: 4px; transition: background .15s; }
.file:hover { background: var(--sunk); }
.file-thumb { position: relative; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--sunk); transition: border-color .15s, box-shadow .15s; }
.file-thumb img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: contain; }
/* the selection tick */
.file-check { position: absolute; top: 6px; left: 6px; width: 20px; height: 20px; border-radius: 6px; border: 2px solid rgba(255,255,255,.85); background: rgba(0,0,0,.25); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.file.on .file-thumb { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(62,240,176,.15); }
.file.on .file-check { background: var(--brand); border-color: var(--brand); }
.file.on .file-check::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--on-brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.file-info { display: flex; flex-direction: column; min-width: 0; padding: 0 2px; }
/* after creating: review, then send */
.send-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 4px 22px 14px; padding: 14px 16px; border-radius: 14px; background: var(--warn-bg); border: 1px solid rgba(255,192,97,.32); }
.send-txt { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--ink-2); }
.send-txt b { font-size: 15px; color: var(--ink); }
/* actions on the selected files, floating at the bottom */
.sel-bar { background: var(--hover); color: var(--ink); border: 1px solid var(--line-2); box-shadow: 0 16px 36px -14px rgba(0,0,0,.7);
  width: fit-content; max-width: calc(100% - 44px); margin: 0 auto 16px; padding: 8px 8px 8px 16px; gap: 6px }
.sel-bar b { flex: 1 1 auto; font-size: 14px; }
.sel-bar .btn.ghost, .sel-bar .btn.quiet { background: var(--raise); color: var(--ink); border-color: var(--line-2) }
.sel-bar[hidden] { display: none; }
.file-info b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-info small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* full-size viewer */
.viewer { position: fixed; inset: 0; z-index: 200; background: rgba(8,12,17,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; grid-template-rows: auto minmax(0, 1fr); padding: 14px 16px 20px; }
.viewer[hidden] { display: none; }
.viewer-top { display: flex; align-items: center; gap: 10px; color: #fff; margin-bottom: 12px; }
.viewer-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.viewer-info b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-info span { font-size: 12.5px; color: rgba(255,255,255,.7); }
.viewer-top .btn { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.2); }
.viewer img { max-width: 100%; max-height: 100%; margin: 0 auto; object-fit: contain; border-radius: 10px; align-self: center; }
.viewer-nav { position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.viewer-nav:hover { background: rgba(255,255,255,.26); }
.viewer-nav.prev { left: 16px; } .viewer-nav.next { right: 16px; }
.viewer-nav[hidden] { display: none; }
body.viewer-open { overflow: hidden; }

/* ---------- progress window while creating invitations (same as the generator's) ---------- */
.gm-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; }
.gm-scrim[hidden] { display: none; }
.gm-card { width: 100%; max-width: 460px; background: var(--card); border-radius: 22px; padding: 28px 28px 24px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.55); }
.gm-kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.gm-card h3 { margin: 0 0 18px; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.gm-steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.gm-steps li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--ink-3); }
.gm-steps li[hidden] { display: none; }
.gm-steps li i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); margin-top: 1px; position: relative; }
.gm-steps li b { display: block; font-size: 14px; font-weight: 600; }
.gm-steps li span { display: block; font-size: 12.5px; margin-top: 1px; }
.gm-steps li.on { color: var(--ink); }
.gm-steps li.on i { border-color: var(--brand); border-right-color: transparent; animation: gmspin .8s linear infinite; }
.gm-steps li.ok { color: var(--ink); }
.gm-steps li.ok i { background: var(--ok); border-color: var(--ok); }
.gm-steps li.ok i::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--on-brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.gm-steps li.warn i { background: var(--warn); border-color: var(--warn); }
.gm-steps li.warn span { color: var(--warn); }
@keyframes gmspin { to { transform: rotate(360deg); } }
.gm-bar { height: 10px; border-radius: 99px; background: var(--track); overflow: hidden; }
.gm-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--lime)); transition: width .35s ease; }
.gm-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.gm-meta .gm-now { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-meta b { color: var(--ink); font-size: 13px; }
.gm-eta { margin: 14px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.gm-warn { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-3); }
.gm-end { text-align: center; }
.gm-ok { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); display: grid; place-items: center; margin: 4px auto 14px; }
.gm-ok svg { width: 32px; height: 32px; fill: none; stroke: var(--ok); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.gm-ok.err { background: var(--warn-bg); }
.gm-ok.err svg { stroke: var(--warn); }
.gm-end h3 { margin-bottom: 12px; }
.gm-lines { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); text-align: center; }
.gm-actions { display: grid; gap: 8px; }
.gm-actions .btn { text-decoration: none; }


/* review right after creating, in the invitations tab */
.review { border: 2px solid var(--ok, var(--ok)); }
.review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.review-head .card-title { margin-bottom: 4px; }
.review-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.review-grid .file { cursor: zoom-in; }
.review-foot { margin: 14px 0 0; font-size: 12px; color: var(--ink-3); text-align: center; }

/* ---------- creating invitations in steps: 1 load · 2 review · 3 send ---------- */
.wiz { list-style: none; display: flex; gap: 6px; margin: 0 0 22px; padding: 0; }
.wiz li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--raise); color: var(--ink-3); font-size: 13.5px; font-weight: 600; }
.wiz li b { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--raise); color: var(--ink-3); font-size: 13px; }
.wiz li.on { background: var(--brand); color: var(--on-brand) }
.wiz li.on b { background: var(--on-brand); color: var(--brand) }
.wiz li.done { background: var(--ok-bg); color: var(--ok); }
.wiz li.done b { background: var(--ok); color: var(--on-brand) }
@media (max-width: 640px) { .wiz li span { display: none; } .wiz li { justify-content: center; } }
.load-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.load-actions .btn { min-height: 54px; }
.load-actions #invBtn { font-size: 16.5px; }
.load-actions #invAddCo[hidden] + #invBtn, .load-actions:has(#invAddCo[hidden]) { grid-template-columns: 1fr; }
@media (max-width: 640px) { .load-actions { grid-template-columns: 1fr; } }
.co-groups-head { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
#invGroups:not(:empty) { margin-bottom: 14px; }

/* step 2: review */
.rv-head { margin-bottom: 14px; }
.rv-head .card-text b { color: var(--ink); }
.rv-body { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 18px; align-items: start; }
.rv-stage { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; align-items: center; gap: 10px;
  padding: 20px 10px 16px; border-radius: 16px; background: linear-gradient(160deg, var(--raise), var(--sunk)); }
.rv-card { display: grid; place-items: center; min-height: 300px; }
.rv-card img { display: block; max-width: 100%; max-height: 520px; border-radius: 12px; box-shadow: 0 18px 40px -20px rgba(0,0,0,.55); background: var(--raise); }
.rv-nav { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--raise); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); }
.rv-nav:hover { border-color: var(--brand); color: var(--brand); }
.rv-nav[hidden] { visibility: hidden; display: grid; }
.rv-who { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.rv-who b { font-size: 17px; }
.rv-who span { font-size: 13px; color: var(--ink-2); }
.rv-who small { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.rv-list { max-height: 640px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--raise); padding: 6px; }
.rv-co { margin-bottom: 6px; }
.rv-co > b { display: flex; justify-content: space-between; padding: 8px 8px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.rv-co button { display: flex; width: 100%; justify-content: space-between; gap: 6px; text-align: left; padding: 7px 8px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; }
.rv-co button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-co button em { flex: none; font-style: normal; font-size: 11px; color: var(--ink-3); }
.rv-co button:hover { background: var(--sunk); }
.rv-co button.on { background: var(--brand); color: var(--on-brand) }
.rv-co button.on em { color: rgba(3,20,14,.7) }
.rv-note { margin: 12px 0 0; font-size: 12px; color: var(--ink-3); text-align: center; }
.rv-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 16px; }
.rv-actions .btn { min-height: 54px; }
.rv-actions #rvSend { font-size: 16.5px; }
@media (max-width: 900px) { .rv-body { grid-template-columns: 1fr; } .rv-list { max-height: 260px; } .rv-actions { grid-template-columns: 1fr; } }

/* ---------- file explorer: selection, eye, list view, light selection bar ---------- */
.files-view { flex: none; }
.files-view button { padding: 7px 10px; }
.files-view .ico { width: 17px; height: 17px; }
.file-hint .ico { width: 14px; height: 14px; vertical-align: -2px; }
.file-thumb { position: relative; }
.file-check { opacity: 0; transition: opacity .12s; }
.file:hover .file-check, .selecting .file-check, .file.on .file-check { opacity: 1; }
.file-eye { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 8px; border: 0; display: grid; place-items: center;
  background: var(--eye-bg); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.2); cursor: zoom-in; opacity: 0; transition: opacity .12s; }
.file-eye .ico { width: 16px; height: 16px; }
.file:hover .file-eye { opacity: 1; }
.file.on { background: rgba(62,240,176,.1); }
@media (hover: none) { .file-check, .file-eye { opacity: 1; } }
/* list view */
.file-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--raise); }
.frow { display: grid; grid-template-columns: 22px 40px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .9fr) 70px 76px; gap: 12px; align-items: center;
  padding: 7px 12px; border-top: 1px solid var(--line); cursor: pointer; font-size: 13px; }
.frow:first-child { border-top: 0; }
.frow.head { cursor: default; background: var(--sunk); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.frow:not(.head):hover { background: var(--sunk); }
.frow.on { background: rgba(62,240,176,.1); }
.frow img { width: 40px; height: 50px; object-fit: contain; border-radius: 5px; border: 1px solid var(--line); background: var(--sunk); }
.frow b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frow .muted { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frow .file-check { position: static; opacity: 1; width: 18px; height: 18px; border: 2px solid var(--line-2); background: var(--raise); box-shadow: none; position: relative; }
.frow.on .file-check { background: var(--brand); border-color: var(--brand); }
.frow.on .file-check::after { content: ""; position: absolute; left: 4px; top: 0; width: 5px; height: 10px; border: solid var(--on-brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.frow-acts { display: flex; gap: 4px; justify-content: flex-end; }
@media (max-width: 760px) { .frow { grid-template-columns: 22px 40px minmax(0, 1fr) 76px; } .frow > :nth-child(4), .frow > :nth-child(5), .frow > :nth-child(6) { display: none; } }
/* selection bar: light, centered, does not cover the thumbnails */
.sel-bar { background: var(--raise); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 16px 36px -14px rgba(0,0,0,.35);
  width: fit-content; max-width: calc(100% - 44px); margin: 0 auto 16px; padding: 8px 8px 8px 16px; gap: 6px; }
.sel-bar b { flex: none; margin-right: 8px; font-size: 13.5px; }
.sel-bar .btn.ghost, .sel-bar .btn.quiet { background: var(--raise); color: var(--ink); border-color: var(--line); }
.sel-bar #selDownload { background: var(--brand); border-color: var(--brand); color: var(--on-brand) }

/* ---------- tab Mesas: the table of each company, and the reminder with it */
.tables-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; margin-bottom: 16px; }
.tables-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 18px 0 10px; }
.tables-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); margin: 4px 0 12px; }
.tables-meta b { color: var(--ink); }
.tables-meta .warn b { color: var(--warn); }
.tco { display: grid; grid-template-columns: 34px minmax(0, 1fr) 150px; gap: 10px; align-items: center; padding: 10px 6px; border-top: 1px solid var(--line); }
.tco-toggle { width: 30px; height: 30px; border-radius: 9px; border: 0; background: transparent; color: var(--ink-3); display: grid; place-items: center; cursor: pointer; }
.tco-toggle:hover { background: var(--paper); }
.tco-toggle .ico { transition: transform .15s; }
.tco.open .tco-toggle .ico { transform: rotate(90deg); }
.tco-name { cursor: pointer; min-width: 0; }
.tco-name b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tco-name small { color: var(--ink-3); font-size: 12px; }
.tinput { display: flex; align-items: center; gap: 8px; justify-self: end; }
.tinput span { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.tinput .input { width: 92px; height: 38px; text-align: center; font-weight: 700; font-size: 15px; }
.tinput.sm .input { width: 80px; height: 34px; font-size: 14px; }
.tinput .input:placeholder-shown { font-weight: 500; }
.tco-people { padding: 2px 6px 12px 50px; }
.tperson { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px dashed var(--line); }
.tperson .avatar { width: 30px; height: 30px; font-size: 11px; }
.tp-name { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.remind-card { position: sticky; top: 84px; }
.remind-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; margin: 16px 0 14px; }
.remind-stats div { background: var(--paper); border-radius: 12px; padding: 12px; }
.remind-stats b { display: block; font-size: 22px; line-height: 1.1; }
.remind-stats span { font-size: 12px; color: var(--ink-3); }
.remind-stats .err b { color: var(--brand); }
.remind-card .note { margin-bottom: 12px; }
.remind-card .btn.full + .btn.full { margin-top: 8px; }
.remind-prog { margin: 0 0 12px; font-size: 12.5px; color: var(--ink-2); }
.remind-prog .pbar { height: 8px; border-radius: 99px; background: var(--paper); overflow: hidden; margin-bottom: 6px; }
.remind-prog .pbar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--brand), #9b7bff); transition: width .4s; }
.guest .gsub .gtable { color: var(--brand-deep); font-weight: 700; }
@media (max-width: 900px) {
  .tables-layout { grid-template-columns: 1fr; }
  .remind-card { position: static; }
  .tco { grid-template-columns: 30px minmax(0, 1fr) 120px; }
  .tinput span { display: none; }
  .tco-people { padding-left: 12px; }
}
.remind-card .tables-off { display: block; margin: 14px auto 0; font-size: 12.5px; color: var(--ink-3); }

/* confirmation before sending the invitations */
.dialog.sc { width: 100%; max-width: 560px; max-height: calc(100dvh - 40px); overflow-x: hidden; overflow-y: auto; padding: 0; }
.sc-head { position: relative; padding: 26px 28px 24px; color: var(--hero-ink); background: var(--grad-dark); border-bottom: 1px solid var(--line) }
.sc-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad) }
.sc-kicker { font-size: 11.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--brand) }
.sc-head h3 { margin: 8px 0 2px; font-size: 24px; line-height: 1.15; color: var(--hero-ink); padding-right: 150px; }
.sc-date { font-size: 13.5px; color: var(--ink-2) }
.sc-big { position: absolute; right: 26px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 10px; }
.sc-big b { font-size: 46px; line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.sc-big span { font-size: 12.5px; line-height: 1.3; color: var(--ink-2) }
.sc-body { padding: 22px 28px 6px; }
.sc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sc-dest { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: var(--ok-bg); }
.sc-dest i { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--raise); color: var(--ok); box-shadow: 0 4px 10px -6px rgba(0,0,0,.5) }
.sc-dest b { display: block; font-size: 22px; line-height: 1.05; color: var(--ok); }
.sc-dest span { font-size: 12.5px; color: var(--ok); }
.sc-dest.muted { background: var(--warn-bg); } .sc-dest.muted i { color: var(--warn); } .sc-dest.muted b { color: var(--warn); } .sc-dest.muted span { color: var(--warn); }
.sc-dest.off { background: var(--paper); } .sc-dest.off i { color: var(--ink-3); } .sc-dest.off b { color: var(--ink-3); } .sc-dest.off span { color: var(--ink-3); }
.sc-mail { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.sc-mail-row { display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 10px 14px; font-size: 13px; align-items: baseline; }
.sc-mail-row + .sc-mail-row { border-top: 1px solid var(--line); }
.sc-mail-row span { color: var(--ink-3); font-size: 12px; }
.sc-mail-row b { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-cos { margin-top: 16px; }
.sc-bar { display: flex; gap: 3px; height: 10px; border-radius: 99px; overflow: hidden; }
.sc-bar i { min-width: 6px; }
.sc-cos ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.sc-cos li { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.sc-cos li i { flex: none; width: 9px; height: 9px; border-radius: 3px; }
.sc-cos li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.sc-cos li b { font-variant-numeric: tabular-nums; }
.sc-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 28px 24px; }
@media (max-width: 560px) {
  .sc-head h3 { padding-right: 0; }
  .sc-big { position: static; transform: none; margin-top: 14px; }
  .sc-split, .sc-cos ul { grid-template-columns: 1fr; }
  .sc-foot { flex-direction: column-reverse; }
  .sc-foot .btn { width: 100%; justify-content: center; }
}
#newInvText.no-room { padding: 14px 16px; border-radius: 14px; background: var(--warn-bg); color: var(--warn); }
#newInvText.no-room b { color: var(--warn); }

/* quota: what is being loaded shows on the bar before it is created */
.quota-bar { position: relative; }
.quota-bar .quota-load { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 0 99px 99px 0;
  background: repeating-linear-gradient(135deg, #9b7bff 0 6px, #c9b8ff 6px 12px); }
.quota.over .quota-bar .quota-load { background: repeating-linear-gradient(135deg, #3ef0b0 0 6px, #9b7bff 6px 12px); }
.quota small { color: var(--ink-3); font-weight: 500; }
.sc-cos ul { max-height: 230px; overflow-y: auto; }

/* a guest whose email was just opened lights up for a moment */
@keyframes just-opened { 0% { background: rgba(62,240,176,.2); } 100% { background: transparent; } }
.guest.just-opened { animation: just-opened 2.4s ease-out; }

/* reminder confirmation: what goes out, and the email as the guest sees it */
.dialog.sc.rc { max-width: 860px; }
.rc-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; padding: 22px 28px 6px; align-items: start; }
.rc-side { display: flex; flex-direction: column; gap: 10px; }
.rc-side .sc-mail { margin-top: 4px; }
.rc-note { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); }
.rc-phone { justify-self: center; width: 286px; padding: 10px; border-radius: 40px; background: #000; border: 1px solid var(--line-2); box-shadow: 0 24px 50px -24px rgba(0,0,0,.8) }
.rc-screen { position: relative; height: 520px; border-radius: 30px; overflow: hidden; background: var(--raise); }
.rc-screen iframe { position: absolute; left: 0; top: 0; width: 600px; height: 1040px; border: 0; transform: scale(.4433); transform-origin: 0 0; }
.rc-loading { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: var(--ink-3); background: var(--raise); }
.rc-loading[hidden] { display: none; }
@media (max-width: 760px) {
  .rc-body { grid-template-columns: 1fr; }
}

.tables-regen { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--ok-bg); color: var(--ok); font-size: 13px; font-weight: 600; }

/* ---------- brands: the organizer's colors and logo ---------- */
.tag .tag-dot { width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; box-shadow: 0 0 0 1.5px rgba(0,0,0,.4); }
.color-row { display: flex; gap: 8px; }
.color-row .swatch { flex: none; width: 46px; height: 46px; padding: 3px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--raise); cursor: pointer; }
.color-row .swatch::-webkit-color-swatch-wrapper { padding: 0; }
.color-row .swatch::-webkit-color-swatch { border: 0; border-radius: 9px; }
.color-row .swatch::-moz-color-swatch { border: 0; border-radius: 9px; }
.color-row .hex { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-transform: lowercase; }
.design-form > .linkish { margin: -4px 0 6px; font-size: 13px; }
.logo-pick { display: flex; align-items: center; gap: 14px; }
.logo-box { flex: none; width: 150px; height: 74px; display: grid; place-items: center; padding: 10px; border-radius: 14px; border: 1px dashed var(--line-2);
  background: repeating-conic-gradient(#dfe4e9 0 25%, #f4f6f8 0 50%) 0 0 / 14px 14px; }
.logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-box small { color: var(--ink-3); font-size: 12px; }
.logo-acts { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.logo-acts label.btn { margin: 0; }
.logo-colors { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--ink-3); }
.logo-colors .pick { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; padding: 0; }
.logo-colors .pick:hover { transform: scale(1.12); }
.brand-flag { display: inline-flex; gap: 3px; align-items: center; color: var(--ink-2); background: var(--raise); }
.brand-flag i { width: 9px; height: 9px; border-radius: 50%; }
.brand-flag i:last-of-type { margin-right: 4px; }
.avatar.logo { background: var(--raise); border: 1px solid var(--line); padding: 4px; }
.avatar.logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-note { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; padding: 14px 16px; border-radius: 14px; background: rgba(62,240,176,.1); border: 1px solid rgba(62,240,176,.24); font-size: 13px; color: var(--ink-2); }
.brand-note b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.brand-note .btn { flex: none; }

/* ---------- INVITEuy: the «uy» of the wordmark, in aurora ---------- */
.brand-name .uy { font-weight: 600; font-size: .8em; letter-spacing: -.01em; margin-left: .02em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.input::placeholder { color: var(--placeholder); }
::selection { background: rgba(62,240,176,.3); }
body.suite { scrollbar-color: var(--scroll) transparent; }
/* invitation previews stay on a soft dark stage */
.design-preview, .rv-stage { background: var(--stage) !important; }

/* ---------- light theme (the toggle at the top right; dark is the default) ---------- */
:root[data-theme="light"] {
  color-scheme: light;
  --brand: #0a8a68;
  --brand-deep: #1f7fd1;
  --violet: #7b5cf0;
  --pink: #7b5cf0;
  --lime: #0a8a68;
  --on-brand: #ffffff;
  --on-bad: #ffffff;
  --hero-ink: #0d1419;
  --grad-text: linear-gradient(90deg, #0fbf8c, #1f8fe0 55%, #7b5cf0);
  --grad-dark:
    radial-gradient(120% 160% at 0% 0%, rgba(62,240,176,.22), transparent 55%),
    radial-gradient(120% 160% at 100% 100%, rgba(155,123,255,.22), transparent 58%),
    linear-gradient(135deg, #f2fbf8 0%, #f3f2ff 100%);
  --ink: #0d1419;
  --ink-2: #44515c;
  --ink-3: #75828d;
  --paper: #f4f6f8;
  --card: #ffffff;
  --raise: #ffffff;
  --hover: #f1f5f7;
  --sunk: #e8edf1;
  --track: #e0e7ec;
  --line: #e3e8ec;
  --line-2: #d2dae0;
  --ok: #13814f;
  --ok-bg: #e3f5ec;
  --warn: #a86400;
  --warn-bg: #fff3dc;
  --bad: #c62436;
  --bad-bg: #fde8ea;
  --shadow-sm: 0 1px 2px rgba(13,20,25,.06), 0 2px 8px -2px rgba(13,20,25,.06);
  --shadow: 0 1px 2px rgba(13,20,25,.05), 0 12px 32px -14px rgba(13,20,25,.2);
  --topbar: rgba(255,255,255,.86);
  --dock: rgba(255,255,255,.96);
  --dock-on: rgba(10,138,104,.1);
  --quiet-hover: rgba(13,20,25,.05);
  --stripe-a: #f1f4f7;
  --stripe-b: #e8edf1;
  --stage: radial-gradient(120% 120% at 30% 0%, #eef3f6, #dde5ea);
  --placeholder: #9aa5ae;
  --scroll: #c9d2d9;
  --eye-bg: rgba(255,255,255,.92);
  --auth-bg:
    radial-gradient(560px 420px at 78% 46%, rgba(62,240,176,.22), transparent 62%),
    radial-gradient(700px 520px at 100% 100%, rgba(155,123,255,.22), transparent 60%),
    radial-gradient(620px 460px at 0% 0%, rgba(63,182,255,.16), transparent 60%),
    linear-gradient(160deg, #f6fbfa 0%, #f3f6f9 60%, #f1f1fb 100%);
}
:root[data-theme="light"] .input { color-scheme: light; }
:root[data-theme="light"] .dialog { box-shadow: 0 30px 70px -20px rgba(13,20,25,.35); }
:root[data-theme="light"] .toast, :root[data-theme="light"] .tooltip { background: #0d1419; color: #fff; border-color: #0d1419; }
:root[data-theme="light"] .rc-phone { background: #0d1419; }

/* ---------- the light/dark toggle: always at the top right, over the top bar ---------- */
.theme-tgl {
  position: fixed; top: 14px; right: 20px; z-index: 95; width: 40px; height: 40px; padding: 0; border-radius: 12px;
  display: grid; place-items: center; cursor: pointer; color: var(--ink-2);
  background: var(--raise); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
  transition: color .15s, border-color .15s, transform .1s;
}
.theme-tgl:hover { color: var(--brand); border-color: var(--brand); }
.theme-tgl:active { transform: scale(.94); }
.theme-tgl .ico { width: 19px; height: 19px; }
.ci-top { padding-right: 80px; }
@media (max-width: 720px) {
  .theme-tgl { top: 11px; right: 14px; width: 38px; height: 38px; }
  .ci-top { padding-right: 62px; }
  /* the wordmark stays on the phone's top bar (there is no symbol to fall back on) */
  .ci-top .brand-text { display: inline; }
  .ci-top .brand-name { font-size: 16px; letter-spacing: .18em; }
  /* guest rows: icon-only buttons, so the row fits the phone */
  .guest .gactions .btn.sm { min-width: 0; width: 40px; padding: 0; }
}

/* ---------- «Envíos» ---------- */
.badge.meter { min-width: 0; padding: 0 8px; background: var(--ok-bg); color: var(--ok); font-variant-numeric: tabular-nums; }
.badge.meter.near { background: var(--warn-bg); color: var(--warn); }
.badge.meter.full { background: var(--bad-bg); color: var(--bad); }
.sends-hero.near .ring .val { stroke: var(--warn); }
.sends-hero.full .ring .val { stroke: var(--bad); }
.chart-wrap .bar.err { fill: var(--bad); }
.chart-wrap .limit-line { stroke: var(--warn); stroke-width: 1.5; stroke-dasharray: 5 4; }
.chart-wrap .limit-label { fill: var(--warn); font-size: 11px; font-weight: 600; font-family: var(--sans); }
.split-sep { margin: 10px 0 2px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.co-row .name a { color: inherit; text-decoration: none; }
.co-row .name a:hover { color: var(--brand); }
.send-row { display: grid; grid-template-columns: 96px minmax(0, 1.2fr) minmax(0, 1.6fr) minmax(0, 1fr) 92px; gap: 14px; align-items: center; padding: 11px 22px; border-top: 1px solid var(--line); font-size: 13px; }
.send-row.head { border-top: 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: var(--sunk); }
.send-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.send-row .to small { display: block; font-size: 11.5px; color: var(--ink-3); }
.send-row .subj { color: var(--ink-2); }
.send-row .ev a { color: var(--ink-2); text-decoration: none; }
.send-row .ev a:hover { color: var(--brand); }
.send-row.bad { background: var(--bad-bg); }
.status.bad { background: var(--bad-bg); color: var(--bad); cursor: help; }
.sends-more { display: block; margin: 0 auto 18px; }
.range { width: 100%; accent-color: var(--brand); }
@media (max-width: 760px) {
  .send-row { grid-template-columns: 70px minmax(0, 1fr) 76px; padding: 10px 14px; }
  .send-row .subj, .send-row .ev { display: none; }
}

/* ---------- «Mi marca» ---------- */
.dialog.brand-dialog { max-width: 980px; padding: 0; }
.brand-dialog .bd-head { padding: 24px 28px 4px; }
.brand-dialog .bd-head p { margin: 4px 0 0; }
.brand-dialog .design-grid { padding: 14px 28px 4px; grid-template-columns: minmax(0, 1fr) 330px; }
.bd-step { padding: 16px 0 18px; border-top: 1px solid var(--line); }
.bd-step:first-child { border-top: 0; padding-top: 4px; }
.bd-step h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 600 15px/1.2 var(--display); }
.bd-step h4 b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--brand); color: var(--on-brand); }
.bd-step h4 small { font: 400 12.5px var(--sans); color: var(--ink-3); }
.bd-drop { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 120px; padding: 16px; border-radius: 16px; border: 1.5px dashed var(--line-2); cursor: pointer;
  background: repeating-conic-gradient(rgba(127,127,127,.06) 0 25%, transparent 0 50%) 0 0 / 16px 16px; transition: border-color .2s, background-color .2s; text-align: center; }
.bd-drop:hover, .bd-drop.over { border-color: var(--brand); background-color: rgba(62,240,176,.06); }
.bd-drop.has { justify-content: center; }
.bd-logo { display: grid; place-items: center; max-width: 100%; border-radius: 12px; }
.bd-drop.has .bd-logo { padding: 14px 22px; box-shadow: var(--shadow-sm); }
.bd-logo img { display: block; max-width: 260px; max-height: 80px; object-fit: contain; }
.bd-drop-txt { display: grid; gap: 4px; }
.bd-drop-txt b { font-size: 15px; }
.bd-drop-txt span { font-size: 12.5px; color: var(--ink-3); }
.bd-logo-acts { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.bd-logo-acts .linkish { margin: 0; }
.bd-combos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bd-combo { display: grid; gap: 6px; padding: 6px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--raise); cursor: pointer; text-align: left; transition: border-color .15s, transform .15s; }
.bd-combo:hover { transform: translateY(-2px); border-color: var(--line-2); }
.bd-combo.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(62,240,176,.14); }
.bd-combo small { padding: 0 4px 2px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.bd-mini { position: relative; display: grid; place-items: center; height: 54px; border-radius: 9px; background: var(--p); overflow: hidden; }
.bd-mini img { max-width: 70%; max-height: 26px; object-fit: contain; }
.bd-mini i { width: 46%; height: 6px; border-radius: 3px; background: rgba(255,255,255,.45); mix-blend-mode: difference; }
.bd-mini em { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--a); }
.bd-warn { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: 13px; }
.bd-warn .linkish { margin: 0 0 0 4px; font-size: 13px; }
.bd-custom { margin-top: 12px; }
.bd-custom summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); list-style: none; }
.bd-custom summary::before { content: "+ "; color: var(--brand); }
.bd-custom[open] summary::before { content: "− "; }
.bd-custom .form-grid { margin-top: 12px; }
.bd-preview { position: sticky; top: 0; display: grid; gap: 12px; align-content: start; }
.bd-preview .design-preview { padding: 16px; border-radius: 16px; }
.bd-mail { border-radius: 16px; padding: 14px; background: var(--stage); }
.bd-inbox { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #fff; color: #15121f; box-shadow: 0 8px 20px -12px rgba(0,0,0,.4); margin-bottom: 10px; }
.bd-inbox i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font: 700 12px/1 var(--sans); font-style: normal; }
.bd-inbox div { min-width: 0; line-height: 1.3; }
.bd-inbox b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-inbox span { display: block; font-size: 12px; color: #6b6b76; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-inbox em { font-style: normal; font-size: 11px; color: #9b9ba5; }
.bd-mailcard { border-radius: 14px; overflow: hidden; background: #fff; color: #15121f; }
.bd-mailbody { padding: 16px; font-size: 12.5px; line-height: 1.5; color: #45454d; }
.bd-mailbody p { margin: 0 0 10px; }
.bd-hi { font-size: 14px; color: #15121f; }
.bd-mailbody img { display: block; width: 62%; margin: 0 auto 12px; border-radius: 8px; box-shadow: 0 8px 20px -10px rgba(0,0,0,.4); }
.bd-btn { display: block; padding: 10px; border-radius: 10px; color: #fff; text-align: center; font-weight: 700; font-size: 12px; }
.bd-fine { margin: 10px 0 0 !important; font-size: 11.5px; color: #85858f; }
.bd-fine:empty { display: none; }
.bd-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 28px 22px; border-top: 1px solid var(--line); }
.bd-foot .form-error { flex: 1 1 auto; margin: 0; min-height: 0; }
.bd-foot .row { margin: 0 0 0 auto; }
.bd-apply { display: flex; gap: 10px; align-items: center; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.bd-apply input { width: 18px; height: 18px; accent-color: var(--brand); }
.bd-apply small { font-weight: 400; color: var(--ink-3); }
@media (max-width: 760px) {
  .brand-dialog .design-grid { grid-template-columns: 1fr; padding: 10px 18px 4px; }
  .brand-dialog .bd-head, .bd-foot { padding-left: 18px; padding-right: 18px; }
  .bd-preview { position: static; order: -1; }
  .bd-preview .design-preview canvas { max-width: 220px; margin: 0 auto; }
  .bd-combos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* «Envío de emails»: test and disconnect on a line of their own, close and save below */
.dialog .mail-row { flex-wrap: wrap; align-items: center; }
.mail-row-l { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; width: 100%; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.linkish.danger-link { margin: 0; color: var(--bad); }
@media (max-width: 560px) { .mail-row-l > .btn { flex: 1 1 100%; } .mail-row-l { justify-content: center; } .dialog .mail-row > .btn { flex: 1 1 0; } }
