:root {
  /* Defaults = studio dark (premium sky); brand-theme.js overwrites per site */
  --bg: #080e18;
  --panel: #151c27;
  --panel2: #1c2433;
  --border: rgba(148, 163, 184, 0.16);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --sky: #38bdf8;
  --sky2: #0ea5e9;
  --sky3: #7dd3fc;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #fb7185;
  --radius: 16px;
  --font: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --display: "Outfit", "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 420px at 10% -10%, color-mix(in srgb, var(--sky, #38bdf8) 20%, transparent), transparent 55%),
    radial-gradient(700px 360px at 90% 0%, color-mix(in srgb, var(--sky, #38bdf8) 8%, transparent), transparent 50%),
    var(--bg);
  line-height: 1.5;
}
/* Light brand account/portal — no navy wash after theme tokens land */
body.theme-light.brand-portal,
body.theme-light[data-studio="portal"] {
  color: var(--text, #1f2937) !important;
  background:
    radial-gradient(900px 420px at 10% -10%, color-mix(in srgb, var(--sky, #9c6b5e) 14%, transparent), transparent 55%),
    var(--bg, #fdf4f0) !important;
}
body.theme-light.brand-portal .card,
body.theme-light[data-studio="portal"] .card {
  background: var(--panel, #ffffff) !important;
  color: var(--text, #1f2937) !important;
  border-color: color-mix(in srgb, var(--sky, #9c6b5e) 22%, transparent) !important;
}
body.theme-light.brand-portal .muted,
body.theme-light[data-studio="portal"] .muted {
  color: var(--muted, #6b7280) !important;
}
body.theme-light.brand-portal input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]):not([type="range"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]),
body.theme-light.brand-portal select,
body.theme-light.brand-portal textarea,
body.theme-light[data-studio="portal"] input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]):not([type="range"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]),
body.theme-light[data-studio="portal"] select,
body.theme-light[data-studio="portal"] textarea {
  background: #fff !important;
  color: var(--text, #1f2937) !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
}
a { color: var(--sky); }
.wrap { max-width: 920px; margin: 0 auto; padding: 24px 16px 64px; }
.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.mark {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 13px;
  color: #041018;
  background: linear-gradient(145deg, var(--sky3, #7dd3fc), var(--sky2, #0ea5e9));
}
.brand h1 { margin: 0; font-family: var(--display); font-size: 1.25rem; }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 0.88rem; }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.35);
  margin-bottom: 14px;
}
.card h2 { margin: 0 0 12px; font-family: var(--display); font-size: 1.1rem; }
.muted { color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .grid2 { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
/* Text fields only — checkboxes/radios get a solid black box if they inherit this fill */
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]):not([type="range"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]),
select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--border, rgba(148,163,184,0.22));
  background: var(--panel2, var(--surface, var(--panel, #0f172a)));
  color: var(--text);
  font: inherit;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]):not([type="range"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):focus,
select:focus, textarea:focus {
  outline: none; border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.2);
}
input[type="checkbox"],
input[type="radio"] {
  appearance: auto;
  -webkit-appearance: auto;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--sky, #38bdf8);
  cursor: pointer;
  vertical-align: middle;
}
textarea { min-height: 90px; resize: vertical; }
.field { margin-bottom: 12px; }

/* Intake — how did you hear about us */
.intake-referral {
  margin: 1rem 0 1.15rem;
  padding: 0.85rem 1rem 0.35rem;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.06);
}
.intake-referral legend {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0 0.35rem;
  color: var(--sky3, #7dd3fc);
}
.intake-referral .field { margin-bottom: 0.75rem; }
.req-star { color: var(--warn, #fbbf24); }

/* Intake estimate calculator */
/* Simplified intake form */
.intake-section-title {
  margin: 1.25rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.intake-section-title:first-child { margin-top: 0; }
.intake-more {
  margin: 0.85rem 0;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border, rgba(148, 163, 184, 0.35));
  background: color-mix(in srgb, var(--panel, #1e293b) 88%, transparent);
}
.intake-more > summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  user-select: none;
}
.intake-more > summary::-webkit-details-marker { display: none; }
.intake-more > summary::before {
  content: "▸ ";
  opacity: 0.7;
}
.intake-more[open] > summary::before { content: "▾ "; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
#panelIntake .btn[type="submit"] {
  font-size: 1.05rem;
  padding: 0.85rem 1.1rem;
}
/* Basic client intake: no calculator chrome */
.intake-calc--basic {
  border: none;
  padding: 0;
  margin: 0.5rem 0 0.25rem;
  background: transparent;
  box-shadow: none;
}
.intake-calc--basic .intake-section-title {
  margin-bottom: 0.5rem;
}
/* Apps row on basic intake — show under package when unlocked */
.intake-calc--basic #calcAppPrefFieldset {
  margin-top: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--sky, #38bdf8) 22%, transparent);
  background: color-mix(in srgb, var(--panel, #151c27) 90%, transparent);
}
.intake-calc--basic #calcAppPrefFieldset[hidden] {
  display: none !important;
}
.intake-calc--basic .app-pref-grid {
  margin-top: 0.5rem;
}
@media (max-width: 700px) {
  .intake-calc--basic .app-pref-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.intake-calc {
  margin: 8px 0 18px;
  padding: 14px 16px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: linear-gradient(160deg, rgba(14, 165, 233, 0.08), rgba(15, 23, 42, 0.6));
}
.intake-calc__head h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.05rem;
}
.intake-calc__head p { margin: 0 0 12px; }
.intake-calc__addons {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px 12px;
  margin: 0 0 12px;
  background: rgba(15, 23, 42, 0.55);
}
.intake-calc__addons legend {
  padding: 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sky3);
}
.calc-check {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  line-height: 1.35;
}
.calc-check input[type="checkbox"],
.calc-check input[type="radio"] {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--sky);
}
/* Portal / Booking preference — even card grid */
.app-pref-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.4rem;
}
@media (min-width: 720px) {
  .app-pref-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.app-pref-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.2rem;
  margin: 0;
  padding: 0.7rem 0.75rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel2);
  cursor: pointer;
  min-height: 4.75rem;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.app-pref-card:hover { border-color: rgba(56, 189, 248, 0.45); }
.app-pref-card:has(input:checked) {
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
  background: rgba(14, 165, 233, 0.1);
}
.app-pref-card input {
  margin: 0 0 0.2rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--sky);
}
.app-pref-card__title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.25;
}
.app-pref-card__sub {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.3;
}
.calc-qty {
  width: 64px !important;
  padding: 6px 8px !important;
  margin-left: 4px;
}
.calc-check--rush {
  margin: 4px 0 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
}
.intake-calc__summary {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}
@media (min-width: 700px) {
  .intake-calc__summary {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}
.intake-calc__lines {
  font-size: 0.88rem;
  color: var(--muted);
  min-height: 2rem;
}
.intake-calc__line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.12);
}
.intake-calc__line span:last-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.intake-calc__totals {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}
.intake-calc__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.92rem;
  margin: 6px 0;
}
.intake-calc__grand {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 1rem;
}
.intake-calc__grand strong {
  color: var(--sky3);
  font-size: 1.15rem;
}
.intake-calc__grand em { font-style: normal; color: var(--warn); font-weight: 700; font-size: 0.8rem; }
.small { font-size: 0.85rem; }
.req-star { color: var(--bad); }
.calc-error {
  color: var(--bad);
  font-size: 0.85rem;
  margin: 6px 0 0;
  font-weight: 600;
}
.calc-error.hidden { display: none; }
.intake-calc__step2 {
  position: relative;
  margin-top: 4px;
  transition: opacity 0.2s ease;
}
.intake-calc__step2.is-locked {
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}
.intake-calc__step2.is-locked .intake-calc__lock-msg {
  display: block;
}
.intake-calc__lock-msg {
  display: none;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(56, 189, 248, 0.4);
  background: rgba(15, 23, 42, 0.65);
  color: var(--sky3);
  font-size: 0.9rem;
  font-weight: 600;
}
.intake-calc__step-title {
  margin: 4px 0 12px;
  font-family: var(--display);
  font-size: 1rem;
  color: var(--sky3);
}
.intake-calc__email-link strong { color: var(--sky3); }
.intake-calc__actions .btn { flex: 1 1 auto; }

/* Admin calculator — in-person mode */
.aq-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.aq-head-row h2 { margin: 0 0 6px; }
.aq-inperson-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(14, 165, 233, 0.12);
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.aq-inperson-toggle input { width: auto; accent-color: var(--sky); margin: 0; }
.aq-inperson-panel {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}
.aq-inperson-tip {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--text);
}
.aq-due-today {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(14, 165, 233, 0.15));
  border: 1px solid rgba(251, 191, 36, 0.4);
  font-weight: 700;
}
.aq-due-today strong {
  font-size: 1.5rem;
  color: var(--sky3);
  font-family: var(--display);
}

/* Larger controls when sitting with a client */
#adminQuoteCalc.is-inperson select,
#adminQuoteCalc.is-inperson input[type="email"],
#adminQuoteCalc.is-inperson input[type="tel"],
#adminQuoteCalc.is-inperson input[type="text"],
#adminQuoteCalc.is-inperson input[type="number"] {
  padding: 14px 14px;
  font-size: 1.05rem;
}
#adminQuoteCalc.is-inperson .calc-check {
  font-size: 1.02rem;
  padding: 6px 0;
}
#adminQuoteCalc.is-inperson .intake-calc__grand strong {
  font-size: 1.45rem;
}
#adminQuoteCalc.is-inperson .intake-calc__totals {
  position: sticky;
  bottom: 8px;
  z-index: 5;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

/* Print sheet only for in-person quote */
@media print {
  body * { visibility: hidden !important; }
  #aqPrintSheet, #aqPrintSheet * { visibility: visible !important; }
  #aqPrintSheet {
    position: absolute !important;
    left: 0; top: 0; width: 100%;
    background: #fff !important;
    color: #0b1220 !important;
    padding: 0.6in !important;
  }
}

#aqPrintSheet {
  display: none;
}
body.is-printing-quote #aqPrintSheet {
  display: block;
}
body.is-printing-quote .wrap {
  display: none;
}
/* Universal portal buttons — same on every brand; colors from theme tokens only */
.btn,
a.btn,
button.btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  border-radius: 12px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  background: var(--sky, #0ea5e9);
  color: #0b1220;
  transition: filter 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.btn:hover:not(:disabled),
a.btn:hover {
  filter: brightness(1.05);
  text-decoration: none;
}
.btn.secondary,
a.btn.secondary,
button.btn.secondary {
  background: var(--panel2, var(--panel));
  color: var(--text);
  border-color: var(--border);
  filter: none;
}
.btn.danger,
button.btn.danger {
  background: #e11d48;
  color: #fff;
  border-color: transparent;
}
.btn.ghost,
a.btn.ghost,
button.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: color-mix(in srgb, var(--sky, #0ea5e9) 45%, var(--border));
  filter: none;
}
.btn.ghost:hover:not(:disabled),
a.btn.ghost:hover {
  background: color-mix(in srgb, var(--sky, #0ea5e9) 12%, transparent);
  border-color: var(--sky, #0ea5e9);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; filter: none; }
body.theme-light .btn:not(.secondary):not(.ghost):not(.danger) {
  color: #1a1408;
}
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.step {
  padding: 8px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700;
  background: var(--panel2); color: var(--muted); border: 1px solid var(--border);
}
.step.on { color: #041018; background: linear-gradient(135deg, var(--sky3, #7dd3fc), var(--sky2, #0ea5e9)); border-color: transparent; }
.step.done { color: var(--ok); border-color: rgba(52,211,153,0.35); }
.alert {
  padding: 10px 12px; border-radius: 12px; margin-bottom: 12px;
  background: rgba(56,189,248,0.1); border: 1px solid rgba(56,189,248,0.25);
  color: var(--text, #0f172a);
  font-weight: 600;
  line-height: 1.4;
}
.alert.err {
  background: rgba(251,113,133,0.16);
  border-color: rgba(244, 63, 94, 0.45);
  color: #9f1239;
}
.alert.ok {
  background: rgba(52,211,153,0.12);
  border-color: rgba(52,211,153,0.35);
  color: #065f46;
}
.alert.is-visible:not(.hidden) {
  display: block !important;
}
.hidden { display: none !important; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th, .table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.contract-wrap { position: relative; }
.contract-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; align-items: center;
}
.contract-toolbar .muted { flex: 1 1 auto; font-size: 0.8rem; min-width: 10rem; }
.contract-toolbar .btn { flex: 0 0 auto; white-space: nowrap; font-size: 0.85rem; padding: 8px 12px; }
.contract {
  background: #f8fafc; color: #0f172a; border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; max-height: min(70vh, 640px); overflow: auto; font-size: 0.95rem;
  -webkit-overflow-scrolling: touch; line-height: 1.55;
  /* Readable “paper” on phones */
  word-wrap: break-word; overflow-wrap: anywhere;
}
.contract h1, .contract h2, .contract h3 { font-family: var(--display); color: #0b1220; }
.contract .msa h2 { color: #0369a1; border-bottom-color: #cbd5e1; }
.contract .msa h3 { color: #0ea5e9; }
.contract .msa-meta, .contract .msa-notice, .contract .msa ul, .contract .msa ol,
.contract .msa li { color: #475569; }
.contract .msa-table th { background: #e0f2fe; color: #0c4a6e; }
.contract .msa-table th, .contract .msa-table td { border-color: #cbd5e1; color: #1e293b; }
@media (max-width: 640px) {
  .contract {
    padding: 14px 12px 20px; max-height: none; font-size: 0.95rem;
    border-radius: 10px;
  }
  .contract-toolbar {
    flex-direction: column; align-items: stretch;
  }
  .contract-toolbar .muted { min-width: 0; margin-bottom: 2px; }
  .contract-toolbar .btn { width: 100%; text-align: center; }
  .msa h1 { font-size: 1.2rem !important; line-height: 1.3; }
  .msa h2 { font-size: 1.02rem !important; margin-top: 1.15rem !important; }
  .msa h3 { font-size: 0.95rem !important; }
  .msa ul, .msa ol { margin-left: 1rem; padding-left: 0.25rem; }
  .msa-table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 0.82rem; }
  .msa-table thead { display: none; }
  .msa-table tr { display: block; margin-bottom: 0.65rem; border: 1px solid #cbd5e1; border-radius: 8px; overflow: hidden; background: #fff; }
  .msa-table td {
    display: block; border: 0 !important; border-bottom: 1px solid #e2e8f0 !important;
    padding: 0.5rem 0.7rem !important;
  }
  .msa-table td:last-child { border-bottom: 0 !important; font-weight: 600; }
  .msa-table td:first-child { background: #f1f5f9; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: #64748b; font-weight: 700; }
  .steps { gap: 6px; }
  .step { font-size: 0.72rem; padding: 6px 10px; }
  #panelContract .field input { font-size: 16px; } /* prevent iOS zoom on focus */
}
.pay-card {
  border: 1px solid rgba(56,189,248,0.2); border-radius: 14px; padding: 14px;
  background: var(--panel2); margin-bottom: 10px;
}
.pay-card h3 { margin: 0 0 6px; font-size: 1rem; }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  background: rgba(56,189,248,0.15); color: var(--sky3);
}
.badge.draft { background: rgba(148,163,184,0.15); color: var(--muted); }
.badge.sent { background: rgba(251,191,36,0.15); color: var(--warn); }
.badge.accepted { background: rgba(52,211,153,0.15); color: var(--ok); }
.badge.cancelled { background: rgba(251,113,133,0.15); color: var(--bad); }
.tabs {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px;
}
.tab {
  appearance: none; border: 1px solid var(--border); background: var(--panel2); color: var(--muted);
  font: inherit; font-weight: 700; font-size: 0.82rem; padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.tab:hover { border-color: rgba(56,189,248,0.35); color: var(--text); }
.tab.on {
  color: #041018; background: linear-gradient(135deg, #7dd3fc, #0ea5e9); border-color: transparent;
}
.wrap-admin { max-width: 1040px; }
.btn.tiny { padding: 6px 10px; font-size: 0.78rem; }
.table .row { gap: 6px; }
.foot { text-align: center; color: var(--muted); font-size: 0.8rem; margin-top: 28px; }
.social-row { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 4px; }
.btn-social {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 14px; border-radius: 12px; font: inherit; font-weight: 700;
  cursor: pointer; border: 1px solid var(--border); background: #0f172a; color: var(--text);
  text-decoration: none;
}
.btn-social:hover { border-color: rgba(56,189,248,0.4); background: #151c27; }
.btn-social:disabled, .btn-social.is-disabled {
  opacity: 0.45; cursor: not-allowed; pointer-events: none;
}
.btn-social .ico { width: 1.15rem; text-align: center; }
.or-line {
  display: flex; align-items: center; gap: 12px; margin: 14px 0 10px;
  color: var(--muted); font-size: 0.8rem; font-weight: 600;
}
.or-line::before, .or-line::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

/* Full MSA contract (Drive-aligned) */
.contract, .msa { font-size: 0.92rem; line-height: 1.55; color: var(--text); }
.msa h1 { font-family: var(--display); font-size: 1.35rem; margin: 0 0 0.75rem; letter-spacing: -0.02em; }
.msa h2 { font-size: 1.05rem; margin: 1.35rem 0 0.5rem; color: var(--sky3); border-bottom: 1px solid var(--border); padding-bottom: 0.25rem; }
.msa h3 { font-size: 0.95rem; margin: 1rem 0 0.4rem; color: var(--sky); }
.msa-kicker { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.msa-meta, .msa-notice { color: var(--muted); margin-bottom: 0.75rem; }
.msa-table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1rem; font-size: 0.85rem; }
.msa-table th, .msa-table td { border: 1px solid var(--border); padding: 0.45rem 0.55rem; text-align: left; vertical-align: top; }
.msa-table th { background: rgba(56,189,248,0.08); color: var(--sky3); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.msa ul, .msa ol { margin: 0.35rem 0 0.75rem 1.2rem; color: var(--muted); }
.msa li { margin: 0.25rem 0; }
.msa-end { margin-top: 1.5rem; font-size: 0.8rem; color: var(--muted); }
.admin-sub { font-size: 0.95rem; margin: 1rem 0 0.5rem; color: var(--sky3); }
.small { font-size: 0.78rem; }
select[multiple] { min-height: 5.5rem; }

/* ===== Owner admin navigation (short pages) ===== */
.wrap-admin {
  max-width: 1180px;
}
.admin-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 10px 0 12px;
  background: linear-gradient(180deg, rgba(11,18,32,0.98) 70%, rgba(11,18,32,0.88));
  backdrop-filter: blur(8px);
}
.admin-topbar__sub { margin: 2px 0 0; color: var(--muted); font-size: 0.85rem; }
.admin-topbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.admin-nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
}
.admin-nav-toggle__icon { font-size: 1.15rem; line-height: 1; }
.admin-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.admin-nav {
  position: sticky;
  top: 72px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 10px 14px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.28);
}
.admin-nav__title {
  margin: 0 8px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky3);
}
.admin-nav__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  margin: 0 0 4px;
}
.admin-nav__item:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.18);
}
.admin-nav__item.is-active {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.18), rgba(14, 165, 233, 0.1));
  border-color: rgba(56, 189, 248, 0.35);
  color: var(--sky3);
}
.admin-nav__link { color: var(--muted); font-weight: 500; }
.admin-nav__ico { width: 1.25rem; text-align: center; opacity: 0.9; }
.admin-nav__badge {
  margin-left: auto;
  min-width: 1.35rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--sky);
  color: #041018;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}
.admin-nav__divider {
  height: 1px;
  margin: 10px 8px;
  background: var(--border);
}
.admin-nav__hint {
  margin: 10px 8px 4px;
  line-height: 1.4;
}
.admin-main { min-width: 0; }
.admin-panel[hidden] { display: none !important; }
.admin-nav-backdrop {
  display: none;
}

/* Tips */
.tip-card {
  border-color: rgba(56, 189, 248, 0.28);
  background: linear-gradient(160deg, rgba(14, 165, 233, 0.1), rgba(21, 28, 39, 0.95));
}
.tip-card--sky { border-color: rgba(56, 189, 248, 0.4); }
.tip-card--warn {
  border-color: rgba(251, 191, 36, 0.4);
  background: linear-gradient(160deg, rgba(251, 191, 36, 0.12), rgba(21, 28, 39, 0.95));
}
.tip-card--ok {
  border-color: rgba(52, 211, 153, 0.35);
  background: linear-gradient(160deg, rgba(52, 211, 153, 0.1), rgba(21, 28, 39, 0.95));
}
.tip-steps {
  margin: 10px 0 0;
  padding-left: 1.2rem;
  line-height: 1.55;
}
.tip-steps li { margin: 0.45rem 0; }
.tip-list {
  margin: 8px 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.55;
}
.tip-list li { margin: 0.4rem 0; }
.tip-list strong { color: var(--text); }
.tip-actions { margin-top: 4px; }
.panel-tip,
.tip-inline {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(14, 165, 233, 0.1);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.45;
}
.tip-inline--warn {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.1);
}
.tip-inline--ok {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.1);
}
button.linkish {
  display: inline;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  color: var(--sky);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr !important;
    gap: 0;
  }
  .admin-nav-toggle { display: inline-flex !important; }
  .admin-top-link { display: none; }
  /* Drawer — works for legacy .admin-nav and Club Command .cc-rail.admin-nav */
  .admin-nav,
  body.cc-body .admin-nav.cc-rail {
    position: fixed !important;
    top: var(--studio-bar-h, 0px);
    left: 0;
    bottom: 0;
    width: min(300px, 88vw);
    max-width: 300px;
    z-index: 60;
    border-radius: 0;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: auto;
    margin: 0;
  }
  .admin-nav.is-open,
  body.admin-nav-open .admin-nav {
    transform: translateX(0) !important;
  }
  .admin-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    top: var(--studio-bar-h, 0px);
    z-index: 50;
    background: rgba(2, 8, 20, 0.62);
  }
  .admin-nav-backdrop[hidden] { display: none !important; }
  .admin-topbar {
    position: sticky;
    top: var(--studio-bar-h, 0px);
    max-width: 100%;
  }
  .admin-main,
  .wrap-admin,
  body[data-page="admin"] .wrap {
    max-width: 100%;
    min-width: 0;
  }
}

/* ===== Ops & tools (Server Control + booking ops inside admin) ===== */
.ops-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ops-frame-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.ops-frame-head h2 { margin: 0 0 4px; }
.ops-frame-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ops-frame-wrap {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #0a1220;
  min-height: 420px;
  height: min(62vh, 640px);
}
.ops-frame-wrap--short {
  min-height: 280px;
  height: min(42vh, 420px);
}
.ops-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0b1220;
}
@media (max-width: 700px) {
  .ops-frame-wrap {
    min-height: 360px;
    height: 55vh;
  }
  .ops-frame-wrap--short {
    min-height: 240px;
    height: 40vh;
  }
}

/* ===== Studio app switcher (main / hub / portal / admin) ===== */
:root {
  --studio-bar-h: 0px;
  --studio-bar-peek: 11px;
}
/* Layout only reserves a thin peek; full bar expands as overlay on hover */
body:has(#studioBar) {
  --studio-bar-h: var(--studio-bar-peek);
}

.studio-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #060a12;
  border-bottom: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  padding-top: env(safe-area-inset-top, 0px);
  /* Collapsed: only a thin strip visible; hover expands over the page */
  transform: translateY(calc(-100% + var(--studio-bar-peek)));
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  overflow: visible;
}
.studio-bar:hover,
.studio-bar:focus-within,
.studio-bar.is-pinned {
  transform: translateY(0);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
/* Grab cue when collapsed */
.studio-bar::after {
  content: "Studio · hover";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 100%);
  font: 700 0.62rem/1 "DM Sans", system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7dd3fc;
  background: #060a12;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  padding: 0.2rem 0.55rem 0.28rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.95;
  transition: opacity 0.15s ease;
}
.studio-bar:hover::after,
.studio-bar:focus-within::after,
.studio-bar.is-pinned::after {
  opacity: 0;
}
/* Full-bleed top strip on admin / studio desks */
.studio-bar--top {
  width: 100%;
}
body[data-page="admin"] .studio-bar--top .studio-bar__inner {
  max-width: none;
  padding-left: 1.15rem;
  padding-right: 1.15rem;
}
/* Highlight the escape hatch so you always see how to leave apps */
.studio-bar__link[href*="8083"],
.studio-bar__link[href="/"],
.studio-bar__link[href="https://www.the100club.win/"] {
  border-color: rgba(56, 189, 248, 0.2);
}
.studio-bar__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  min-height: 42px;
  box-sizing: border-box;
}
.studio-bar__brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sky3);
  white-space: nowrap;
}
.studio-bar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}
.studio-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.studio-bar__link {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted) !important;
  text-decoration: none !important;
  border: 1px solid transparent;
  background: transparent;
  white-space: nowrap;
  font: inherit;
  cursor: pointer;
}
button.studio-bar__btn {
  font-family: inherit;
  line-height: inherit;
}
.studio-bar__link:hover {
  color: var(--text) !important;
  border-color: rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.08);
}
.studio-bar__link.is-active {
  color: #041018 !important;
  background: linear-gradient(145deg, #7dd3fc, #0ea5e9);
  border-color: transparent;
}
/* Calendars — same as active chip */
.studio-bar__btn[data-studio-action="calendars"] {
  border-color: rgba(56, 189, 248, 0.35);
  color: #e0f2fe !important;
}
.studio-bar__btn[data-studio-action="calendars"]:hover {
  background: linear-gradient(145deg, #7dd3fc, #0ea5e9);
  color: #041018 !important;
  border-color: transparent;
}
/* Sign out — quieter, still clear */
.studio-bar__btn--signout {
  border-color: rgba(148, 163, 184, 0.28) !important;
  color: #e2e8f0 !important;
}
.studio-bar__btn--signout:hover {
  border-color: rgba(251, 113, 133, 0.45) !important;
  background: rgba(251, 113, 133, 0.12) !important;
  color: #fecdd3 !important;
}

/* When studio bar is present, sticky page menus sit BELOW it (not under it) */
body:has(#studioBar) .admin-topbar {
  top: var(--studio-bar-h);
  z-index: 90;
}
body:has(#studioBar) header.top {
  /* client portal / shop / users page headers */
  position: sticky;
  top: var(--studio-bar-h);
  z-index: 90;
  padding-top: 8px;
  padding-bottom: 8px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, rgba(11,18,32,0.98) 65%, rgba(11,18,32,0.9));
  backdrop-filter: blur(8px);
}

@media (max-width: 700px) {
  body:has(#studioBar) {
    --studio-bar-h: 14px;
    --studio-bar-peek: 14px;
  }
  .studio-bar::after {
    content: "Studio · tap";
    font-size: 0.58rem;
  }
  /* Touch: first tap focuses bar (focus-within expands); no permanent full height */
  .studio-bar__inner {
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    padding: 6px 8px 6px 10px;
    min-height: 40px;
  }
  /* Hide long brand on tiny screens so links aren't crushed */
  .studio-bar__brand {
    display: none;
  }
  .studio-bar__links {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding: 2px 2px 4px;
    /* fade hint that you can swipe */
    mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 18px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 18px), transparent 100%);
  }
  .studio-bar__links::-webkit-scrollbar { display: none; height: 0; }
  .studio-bar__link {
    flex: 0 0 auto;
    font-size: 0.78rem;
    padding: 8px 12px;
    min-height: 36px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.65);
  }
  .studio-bar__link.is-active {
    border-color: transparent;
  }

  /* Page header actions must wrap under logo, not sit under the studio bar */
  body:has(#studioBar) header.top {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  body:has(#studioBar) header.top .row {
    width: 100%;
  }
}

@media (max-width: 900px) {
  /*
   * Admin side drawer: start below studio bar + topbar so Menu is never covered.
   * Approx topbar ~56px on mobile.
   */
  body:has(#studioBar) .admin-nav {
    top: calc(var(--studio-bar-h) + 56px);
    height: calc(100% - var(--studio-bar-h) - 56px);
    z-index: 95;
  }
  body:has(#studioBar) .admin-nav-backdrop {
    top: calc(var(--studio-bar-h) + 56px);
    z-index: 94;
  }
  /* Without studio bar, keep drawer full-height from top */
  body:not(:has(#studioBar)) .admin-nav {
    top: 0;
    height: 100%;
  }

  .admin-topbar {
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
  }
  .admin-topbar__actions {
    flex-wrap: nowrap;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
  }
  /* Keep Menu + Sign out; hide extra top links on small screens (they're in drawer) */
  .admin-top-link {
    display: none !important;
  }
  .admin-nav-toggle {
    display: inline-flex !important;
    min-height: 42px;
    min-width: 42px;
    padding: 0.55rem 0.85rem;
  }
  .admin-topbar h1 {
    font-size: 0.98rem;
    line-height: 1.2;
  }
  .admin-topbar__sub {
    display: none;
  }
  #btnOwnerLogout {
    font-size: 0.78rem;
    padding: 0.55rem 0.7rem;
    white-space: nowrap;
  }
}

/* Domain check + reference uploads (intake) */
.cct-domain, .cct-refs {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel2);
}
.cct-domain h3, .cct-refs h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
}
.domain-check-row__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.domain-check-row__inner input {
  flex: 1 1 12rem;
  min-width: 0;
}
.domain-result {
  margin: 0.75rem 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.55);
  font-size: 0.92rem;
}
.domain-result.is-ok {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(16, 185, 129, 0.08);
}
.domain-result.is-bad {
  border-color: rgba(251, 113, 133, 0.4);
  background: rgba(251, 113, 133, 0.07);
}
.domain-result__name {
  font-weight: 700;
  font-size: 1.05rem;
  word-break: break-all;
}
.domain-result__price {
  color: var(--sky3);
  font-weight: 600;
}
.domain-suggestions {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.domain-suggestions li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.12);
}
.domain-suggestions button {
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
}
.ref-file-list {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}
.ref-file-list li { margin: 0.15rem 0; }

/* Contract / quote action polish */
.btn.tiny { font-size: 0.78rem; padding: 7px 12px; border-radius: 10px; font-weight: 700; }
.btn--primary, .btn.btn--primary {
  background: linear-gradient(135deg, #7dd3fc, #0ea5e9);
  color: #041018;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.28);
}
.btn--send, .btn.btn--send {
  background: linear-gradient(135deg, #6ee7b7, #10b981);
  color: #042f1a;
  border: 0;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
}
.btn--send:hover, .btn.btn--primary:hover { filter: brightness(1.05); }
.contract-actions, td.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.contract-actions .btn, .contract-actions a.btn {
  min-height: 2.1rem;
  white-space: nowrap;
}
.aq-actions .btn { min-height: 2.35rem; padding: 0.55rem 1rem; }
.aq-actions .btn--primary { flex: 1 1 auto; min-width: 8.5rem; }
@media (max-width: 640px) {
  .contract-actions { flex-direction: column; align-items: stretch; }
  .contract-actions .btn, .contract-actions a.btn { width: 100%; text-align: center; justify-content: center; }
}

/* Customer project progress */
.steps.hidden { display: none !important; }
.project-status-line {
  margin: -0.35rem 0 1rem;
  padding: 0 0.15rem;
  font-weight: 600;
}
.project-status-line.hidden { display: none !important; }
.project-head-card { margin-bottom: 0.75rem; }

/* Auth — WordPress-style login / register tabs */
.auth-tabs {
  display: flex;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0.25rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel2, #1c2433) 88%, transparent);
  border: 1px solid var(--border);
}
.auth-tab {
  flex: 1;
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
}
.auth-tab.is-active {
  background: var(--panel, #151c27);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
body.theme-light .auth-tabs {
  background: color-mix(in srgb, var(--surface, #fff) 70%, var(--bg, #f8f1f3));
}
body.theme-light .auth-tab.is-active {
  background: #fff;
  color: var(--heading, var(--text));
}
#authSetPasswordPane h3 {
  font-family: var(--display);
}
/* —— Client portal mobile polish —— */
@media (max-width: 700px) {
  .wrap {
    padding: 16px max(12px, env(safe-area-inset-left)) 48px max(12px, env(safe-area-inset-right));
  }
  .top {
    gap: 10px;
  }
  .brand h1 {
    font-size: 1.1rem;
  }
  .card {
    padding: 14px 14px;
  }
  .btn {
    min-height: 44px;
  }
  .row .btn {
    flex: 1 1 auto;
  }
  input, select, textarea {
    font-size: 16px !important;
  }
  .table, table.table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .admin-shell .table {
    font-size: 0.85rem;
  }
  #siteTrackTable th,
  #siteTrackTable td {
    white-space: nowrap;
  }
}

/* Clickable people emails (Studio + shared) */
.email-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.45rem;
  max-width: 100%;
}
.email-actions a.email-link {
  color: var(--sky, #38bdf8);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
  font-weight: 600;
}
.email-actions a.email-link:hover {
  filter: brightness(1.12);
}
.email-actions .email-copy {
  min-height: 26px;
  padding: 0.12rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--sky, #38bdf8) 35%, transparent);
  background: color-mix(in srgb, var(--sky, #38bdf8) 12%, transparent);
  color: inherit;
  cursor: pointer;
  line-height: 1.2;
}
.email-actions .email-copy:hover {
  background: color-mix(in srgb, var(--sky, #38bdf8) 22%, transparent);
}
.email-actions .email-copy.is-copied {
  border-color: color-mix(in srgb, #34d399 50%, transparent);
  background: color-mix(in srgb, #34d399 18%, transparent);
}
