/* Musikberater CRM — Mobile Frontend */
/* Optimiert für iPhone · Touch-first · Brand #735fa6 */

/* ── CSS Custom Properties (overrideable via CSS Editor) ──────── */
#crm-mobile-app {
  --mob-bg:       #08060e;
  --mob-surf:     #110d1c;
  --mob-surf2:    #1c1730;
  --mob-surf3:    #261f3d;
  --mob-border:   #2e2650;
  --mob-accent:   #735fa6;
  --mob-acch:     #9d88c8;
  --mob-accent2:  #c4477a;
  --mob-text:     #ede9f8;
  --mob-muted:    #7a7090;
  --mob-success:  #52c987;
  --mob-warn:     #e8a93a;
  --mob-danger:   #c4477a;
  --mob-radius:   14px;
  --mob-nav-h:    68px;
  --mob-top-h:    56px;
  --mob-font:     -apple-system, 'SF Pro Display', 'Helvetica Neue', sans-serif;
}

/* ── Hard reset — override ANY theme styles bleeding in ────────── */
#crm-mobile-app,
#crm-mobile-app *,
#crm-mobile-app *::before,
#crm-mobile-app *::after {
  box-sizing: border-box !important;
  -webkit-tap-highlight-color: transparent;
}

/* Force ALL text white — defeats any theme color:black rule */
#crm-mobile-app { color: var(--mob-text) !important; }
#crm-mobile-app p,
#crm-mobile-app span:not(.mob-pill):not(.mob-badge),
#crm-mobile-app div,
#crm-mobile-app label,
#crm-mobile-app h1, #crm-mobile-app h2, #crm-mobile-app h3,
#crm-mobile-app h4, #crm-mobile-app h5,
#crm-mobile-app strong, #crm-mobile-app b,
#crm-mobile-app small, #crm-mobile-app li,
#crm-mobile-app td, #crm-mobile-app th,
#crm-mobile-app input, #crm-mobile-app textarea, #crm-mobile-app select,
#crm-mobile-app button { color: var(--mob-text) !important; font-family: var(--mob-font) !important; }

/* Anchor tags need their own color override */
#crm-mobile-app a { color: var(--mob-acch) !important; text-decoration: none !important; }
#crm-mobile-app a:hover { text-decoration: underline !important; }

/* Muted text elements */
#crm-mobile-app .mob-stat-lbl,
#crm-mobile-app .mob-section-title,
#crm-mobile-app .mob-item-meta,
#crm-mobile-app .mob-detail-key,
#crm-mobile-app .mob-avail-dot,
#crm-mobile-app .mob-form-title,
#crm-mobile-app .mob-detail-card-title,
#crm-mobile-app .mob-activity-meta,
#crm-mobile-app .mob-login-sub,
#crm-mobile-app .mob-login-label,
#crm-mobile-app .mob-artist-meta,
#crm-mobile-app .mob-nav-lbl,
#crm-mobile-app .mob-nav-btn,
#crm-mobile-app .mob-empty { color: var(--mob-muted) !important; }

/* Active nav */
#crm-mobile-app .mob-nav-btn.active { color: var(--mob-acch) !important; }

/* Price / accent values */
#crm-mobile-app .mob-stat-val,
#crm-mobile-app .mob-item-price,
#crm-mobile-app .mob-detail-val.price { color: var(--mob-acch) !important; }

#crm-mobile-app {
  font-family: var(--mob-font);
  background: var(--mob-bg);
  color: var(--mob-text);
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  margin: 0 !important;
  max-width: 100% !important;
  /* Alias the old variable names for backward compat */
  --bg:      var(--mob-bg);
  --surf:    var(--mob-surf);
  --surf2:   var(--mob-surf2);
  --surf3:   var(--mob-surf3);
  --border:  var(--mob-border);
  --accent:  var(--mob-accent);
  --acch:    var(--mob-acch);
  --accent2: var(--mob-accent2);
  --text:    var(--mob-text);
  --muted:   var(--mob-muted);
  --success: var(--mob-success);
  --warn:    var(--mob-warn);
  --danger:  var(--mob-danger);
  --radius:  var(--mob-radius);
  --nav-h:   var(--mob-nav-h);
  --top-h:   var(--mob-top-h);
  --font:    var(--mob-font);
}

.hidden { display: none !important; }

/* ══════════════════════════════════════════════════════════════
   LOGIN SCREEN
══════════════════════════════════════════════════════════════ */
#mob-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 20%, rgba(115,95,166,.25) 0%, transparent 65%),
              var(--bg);
}

.mob-login-wrap {
  width: 100%;
  max-width: 360px;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.mob-login-logo { text-align: center; }
.mob-logo-img { height: 36px; opacity: .9; margin-bottom: 10px; }
.mob-login-sub { font-size: 12px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; margin: 0; }

.mob-login-form { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.mob-login-label { font-size: 14px; color: var(--muted); margin: 0; }

/* PIN dots */
.mob-pin-display {
  display: flex;
  gap: 18px;
}
.mob-pin-display span {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  transition: background .15s, border-color .15s, transform .1s;
}
.mob-pin-display span.filled {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
}
.mob-pin-display span.shake {
  animation: pinShake .3s ease;
}

@keyframes pinShake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}

/* Numpad */
.mob-numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 280px;
}
.mob-num-btn {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--surf2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font);
  font-size: 22px;
  font-weight: 500;
  cursor: pointer;
  transition: background .12s, transform .1s;
  display: flex; align-items: center; justify-content: center;
  -webkit-user-select: none; user-select: none;
}
.mob-num-btn:active { background: var(--surf3); transform: scale(.93); }
.mob-num-empty { background: transparent; border-color: transparent; pointer-events: none; }
.mob-error { color: var(--danger); font-size: 13px; margin: 0; }

/* ══════════════════════════════════════════════════════════════
   APP SHELL
══════════════════════════════════════════════════════════════ */
#mob-app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;  /* dynamic viewport height for iOS */
  overflow: hidden;
}

.mob-screen { width: 100%; }

/* ── Top bar ──────────────────────────────────────────────────── */
.mob-topbar {
  height: var(--top-h);
  background: var(--surf);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  padding-top: env(safe-area-inset-top);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}
.mob-topbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: .4;
}

.mob-topbar-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.3px;
}
.mob-topbar-right { display: flex; gap: 8px; }
.mob-icon-btn {
  width: 36px; height: 36px;
  background: var(--surf2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s;
}
.mob-icon-btn:active { background: var(--surf3); transform: scale(.93); }

/* ── Content ──────────────────────────────────────────────────── */
.mob-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

/* ── Views ────────────────────────────────────────────────────── */
.mob-view { display: none; padding: 16px; }
.mob-view.active { display: block; }

/* ── Bottom nav ───────────────────────────────────────────────── */
.mob-nav {
  height: var(--nav-h);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surf);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding-top: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}
.mob-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  color: var(--muted);
  transition: color .15s;
  -webkit-user-select: none;
}
.mob-nav-btn.active { color: var(--acch); }
.mob-nav-btn:active { opacity: .7; }
.mob-nav-icon { font-size: 22px; line-height: 1; }
.mob-nav-lbl  { font-size: 10px; font-weight: 600; letter-spacing: .3px; }

/* FAB center button */
.mob-nav-center {
  position: relative;
  top: -14px;
}
.mob-nav-center .mob-nav-icon {
  width: 52px; height: 52px;
  background: var(--accent);
  border-radius: 50%;
  font-size: 28px;
  line-height: 52px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(115,95,166,.5);
  color: #fff;
  font-weight: 300;
}
.mob-nav-center.active .mob-nav-icon,
.mob-nav-center:active .mob-nav-icon { background: var(--acch); }

/* ══════════════════════════════════════════════════════════════
   STATS
══════════════════════════════════════════════════════════════ */
.mob-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.mob-stat-card {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color .2s;
}
.mob-stat-card.accent { border-color: rgba(115,95,166,.4); background: linear-gradient(135deg, var(--surf) 0%, rgba(115,95,166,.08) 100%); }
.mob-stat-card.highlight { border-color: rgba(115,95,166,.3); }
.mob-stat-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--acch);
  line-height: 1;
  margin-bottom: 4px;
}
.mob-stat-lbl { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }

/* ══════════════════════════════════════════════════════════════
   SECTION TITLES
══════════════════════════════════════════════════════════════ */
.mob-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 10px;
}

/* ══════════════════════════════════════════════════════════════
   LISTS
══════════════════════════════════════════════════════════════ */
.mob-list { display: flex; flex-direction: column; gap: 8px; }

.mob-list-item {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.mob-list-item:active { background: var(--surf2); transform: scale(.99); }
.mob-list-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity .15s;
}
.mob-list-item.confirmed::before  { background: var(--success); opacity: 1; }
.mob-list-item.inquiry::before    { background: var(--warn);    opacity: 1; }
.mob-list-item.offer_sent::before { background: var(--acch);    opacity: 1; }
.mob-list-item.cancelled::before  { background: var(--danger);  opacity: 1; }
.mob-list-item.completed::before  { background: #6fa3d8;        opacity: 1; }

.mob-item-main { flex: 1; min-width: 0; }
.mob-item-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mob-item-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mob-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.mob-item-price { font-size: 14px; font-weight: 700; color: var(--acch); }
.mob-item-chevron { color: var(--muted); font-size: 14px; }

/* ── Status pill ──────────────────────────────────────────────── */
.mob-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  white-space: nowrap;
}
.mob-pill-inquiry    { background: rgba(232,169,58,.15);  color: #e8a93a; }
.mob-pill-offer_sent { background: rgba(157,136,200,.15); color: var(--acch); }
.mob-pill-confirmed  { background: rgba(82,201,135,.15);  color: var(--success); }
.mob-pill-cancelled  { background: rgba(196,71,122,.15);  color: var(--danger); }
.mob-pill-completed  { background: rgba(111,163,216,.15); color: #6fa3d8; }
.mob-pill-invoiced   { background: rgba(115,95,166,.2);   color: #c4b8e8; }

/* ══════════════════════════════════════════════════════════════
   BOOKING DETAIL
══════════════════════════════════════════════════════════════ */
.mob-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 10px;
}
.mob-detail-number { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.mob-detail-name { font-size: 20px; font-weight: 700; }

.mob-detail-card {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}
.mob-detail-card-title {
  padding: 10px 14px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.mob-detail-rows { padding: 4px 0; }
.mob-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  gap: 12px;
}
.mob-detail-row:last-child { border-bottom: none; }
.mob-detail-key   { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.mob-detail-val   { font-size: 13px; font-weight: 500; text-align: right; word-break: break-word; }
.mob-detail-val.price { color: var(--acch); font-weight: 700; font-size: 15px; }

/* Action buttons row in detail */
.mob-detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.mob-detail-actions .mob-btn { justify-content: center; font-size: 13px; }
.mob-detail-actions .mob-btn-wide { grid-column: 1/-1; }

/* Activity */
.mob-activity { padding: 4px 14px 8px; }
.mob-activity-item { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.04); font-size: 12px; }
.mob-activity-item:last-child { border-bottom: none; }
.mob-activity-note { color: var(--text); margin-bottom: 2px; }
.mob-activity-meta { color: var(--muted); font-size: 11px; }

/* ══════════════════════════════════════════════════════════════
   FORM
══════════════════════════════════════════════════════════════ */
.mob-form { display: flex; flex-direction: column; gap: 0; }
.mob-form-section {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mob-form-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  margin-bottom: 4px;
}
.mob-input {
  width: 100%;
  background: var(--surf2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;    /* 16px prevents iOS zoom */
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
}
.mob-input:focus { border-color: var(--accent); }
.mob-input::placeholder { color: var(--muted); }
.mob-select { cursor: pointer; }
.mob-textarea { resize: none; min-height: 80px; }

.mob-radio-row {
  display: flex;
  gap: 16px;
}
.mob-radio-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
}
.mob-radio-opt input { accent-color: var(--accent); width: 16px; height: 16px; }

.mob-avail-hint { font-size: 12px; min-height: 16px; }
.mob-avail-ok  { color: var(--success); }
.mob-avail-no  { color: var(--danger); }

.mob-form-actions {
  display: flex;
  gap: 10px;
  padding-bottom: 8px;
}
.mob-form-actions .mob-btn { flex: 1; justify-content: center; }

/* Search bar */
.mob-search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.mob-search {
  flex: 1;
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 16px;
  padding: 10px 14px;
  outline: none;
  -webkit-appearance: none;
}
.mob-search:focus { border-color: var(--accent); }
.mob-select-sm {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  padding: 10px 10px;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
  min-width: 100px;
}

/* ══════════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════════ */
.mob-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 18px;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .15s;
  -webkit-user-select: none;
}
.mob-btn:active { transform: scale(.96); opacity: .85; }
.mob-btn-primary {
  background: var(--accent);
  color: #fff;
}
.mob-btn-primary:active { background: var(--acch); }
.mob-btn-ghost {
  background: var(--surf2);
  color: var(--text);
  border: 1px solid var(--border);
}
.mob-btn-danger { background: var(--danger); color: #fff; }
.mob-btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }

/* ══════════════════════════════════════════════════════════════
   BOTTOM SHEETS
══════════════════════════════════════════════════════════════ */
.mob-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  backdrop-filter: blur(4px);
}
.mob-sheet {
  width: 100%;
  background: var(--surf);
  border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--border);
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  animation: slideUp .25s ease;
  max-height: 85vh;
  overflow-y: auto;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.mob-sheet-handle {
  width: 40px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto 4px;
}
.mob-sheet-title {
  font-size: 16px;
  font-weight: 700;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}
.mob-sheet-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; }

.mob-sheet-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surf2);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: background .15s;
  -webkit-user-select: none;
}
.mob-sheet-option:active { background: var(--surf3); }
.mob-sheet-option.current { border-color: var(--accent); color: var(--acch); }
.mob-sheet-option-icon { font-size: 20px; width: 28px; text-align: center; }

/* ══════════════════════════════════════════════════════════════
   ARTIST CARD
══════════════════════════════════════════════════════════════ */
.mob-artist-card {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.mob-artist-photo {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surf2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.mob-artist-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.mob-artist-info { flex: 1; min-width: 0; }
.mob-artist-name { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.mob-artist-meta { font-size: 12px; color: var(--muted); }
.mob-avail-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mob-avail-dot.ok  { background: var(--success); }
.mob-avail-dot.no  { background: var(--danger); }
.mob-avail-dot.unk { background: var(--muted); }

/* ══════════════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════════════ */
.mob-toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%);
  background: var(--surf2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  z-index: 2000;
  white-space: nowrap;
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
  transition: opacity .2s, transform .2s;
}
.mob-toast.ok     { border-left: 3px solid var(--success); }
.mob-toast.error  { border-left: 3px solid var(--danger); }

/* ══════════════════════════════════════════════════════════════
   BACK BUTTON (in topbar)
══════════════════════════════════════════════════════════════ */
.mob-back-btn {
  background: none;
  border: none;
  color: var(--acch);
  font-size: 17px;
  padding: 4px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font);
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════════════════ */
.mob-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}
.mob-empty-icon { font-size: 44px; margin-bottom: 10px; }
.mob-empty-text { font-size: 14px; }

/* ══════════════════════════════════════════════════════════════
   WORDPRESS THEME OVERRIDES
   Force all element styles — prevent theme bleed-in
══════════════════════════════════════════════════════════════ */
.entry-content #crm-mobile-app,
.post-content  #crm-mobile-app,
article        #crm-mobile-app,
.page-content  #crm-mobile-app { background: var(--mob-bg) !important; }

/* Kill any theme margin/padding on the shortcode wrapper */
.entry-content > #crm-mobile-app p,
.post-content  > #crm-mobile-app p { margin: 0 !important; padding: 0 !important; }

/* Force input/button/select styles — themes often override these */
#crm-mobile-app input,
#crm-mobile-app textarea,
#crm-mobile-app select,
#crm-mobile-app button {
  font-family: var(--mob-font) !important;
  box-shadow: none !important;
  outline: none;
  -webkit-appearance: none;
}
#crm-mobile-app input[type=text],
#crm-mobile-app input[type=email],
#crm-mobile-app input[type=tel],
#crm-mobile-app input[type=number],
#crm-mobile-app input[type=date],
#crm-mobile-app input[type=time],
#crm-mobile-app input[type=search],
#crm-mobile-app input[type=password],
#crm-mobile-app textarea,
#crm-mobile-app select {
  background: var(--mob-surf2) !important;
  color: var(--mob-text) !important;
  border: 1px solid var(--mob-border) !important;
  border-radius: 10px !important;
}
#crm-mobile-app input::placeholder,
#crm-mobile-app textarea::placeholder { color: var(--mob-muted) !important; opacity: 1; }

/* Full bleed on mobile */
@media (max-width: 768px) {
  .entry-content > #crm-mobile-app,
  .post-content  > #crm-mobile-app,
  article        > #crm-mobile-app {
    margin-left:  calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    width: 100vw !important;
  }
}

/* ── Custom CSS injected by CSS Editor ─────────────────────────── */
/* (styles saved in CRM Settings → Mobile App → CSS Editor are    */
/*  injected via wp_footer after this file)                        */
