*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:   #FF6B35;
  --maroon:   #800000;
  --maroon-light: #FFF0F0;
  --maroon-mid:   #FFD0D0;
  --gold:     #F7B731;
  --dark:     #1E1E2E;
  --mid:      #4A4A6A;
  --light:    #F7F7FB;
  --border:   #E2E2F0;
  --white:    #FFFFFF;
  --green:    #00B894;
  --red:      #E74C3C;
  --planner-bg: #EEF2FF;
  --planner-border: #C7D2FE;
  --radius:   14px;
  --shadow:   0 4px 24px rgba(30,30,46,0.08);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #F0F0F8; color: var(--dark); min-height: 100vh; }

/* ── HEADER ── */
header { background: var(--dark); padding: 0 24px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 16px rgba(0,0,0,0.2); }
.header-inner { max-width: 960px; margin: 0 auto; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { font-size: 26px; }
.logo-name { color: var(--white); font-weight: 800; font-size: 17px; line-height: 1.2; }
.logo-tagline { color: #8888AA; font-size: 11px; }
.header-badge { background: var(--maroon); color: white; font-size: 11px; font-weight: 700; padding: 5px 13px; border-radius: 20px; }

/* ── HERO ── */
.hero { background: linear-gradient(135deg, var(--dark) 0%, #2D1B4E 100%); padding: 48px 24px 44px; text-align: center; }
.hero h1 { color: white; font-size: clamp(24px, 4.5vw, 40px); font-weight: 800; line-height: 1.25; margin-bottom: 12px; }
.hero h1 span { color: var(--orange); }
.hero p { color: #AAAACC; font-size: 15px; max-width: 480px; margin: 0 auto; }

/* ── MAIN ── */
main { max-width: 960px; margin: 0 auto; padding: 32px 20px 80px; }

/* ── CARD ── */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; margin-bottom: 18px; border: 1px solid var(--border); }
.card-title { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.step-num { background: var(--orange); color: white; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.section-note { font-size: 11px; font-weight: 400; color: #888; margin-left: 4px; }
.optional { font-size: 12px; font-weight: 400; color: #888; }

/* ── PLANNER CARD ── */
.planner-card { background: #FFF8F8; border: 2px solid var(--maroon-mid); }
.planner-title { color: var(--maroon); }
.planner-step { background: var(--maroon) !important; }
.internal-badge { background: var(--maroon); color: white; font-size: 10px; font-weight: 600; padding: 3px 10px; border-radius: 12px; margin-left: 6px; }

/* ── FORM FIELDS ── */
.form-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
label { font-size: 12.5px; font-weight: 600; color: var(--mid); }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="date"],
select, textarea {
  border: 1.5px solid var(--border); border-radius: 8px; padding: 9px 13px;
  font-size: 14px; font-family: inherit; color: var(--dark); background: var(--white);
  transition: border-color 0.15s; outline: none; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,53,0.1); }
input.error, select.error { border-color: var(--red); }
.field-error { font-size: 11.5px; color: var(--red); display: none; }
.field-error.show { display: block; }
textarea { resize: vertical; min-height: 70px; }

/* ── EVENT GRID ── */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 9px; margin-bottom: 6px; }
.event-card { border: 2px solid var(--border); border-radius: 10px; padding: 12px 8px; text-align: center; cursor: pointer; transition: all 0.16s; user-select: none; }
.event-card:hover { border-color: var(--orange); background: #FFF0EB; }
.event-card.selected { border-color: var(--orange); background: #FFF0EB; box-shadow: 0 0 0 3px rgba(255,107,53,0.15); }
.ec-icon { font-size: 26px; margin-bottom: 5px; }
.ec-label { font-size: 11.5px; font-weight: 600; color: var(--mid); }
.event-card.selected .ec-label { color: var(--orange); }

/* ── VISION SECTION ── */
.vision-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.vision-block { display: flex; flex-direction: column; gap: 8px; }
.vision-block.full-col { grid-column: 1 / -1; }
.vision-label { font-size: 12.5px; font-weight: 600; color: var(--mid); }
.pill-group { display: flex; flex-wrap: wrap; gap: 7px; }
.v-pill { border: 1.5px solid var(--border); border-radius: 18px; padding: 5px 13px; font-size: 12px; font-weight: 500; cursor: pointer; color: var(--mid); transition: all 0.14s; user-select: none; }
.v-pill:hover { border-color: var(--orange); color: var(--orange); background: #FFF0EB; }
.v-pill.selected { border-color: var(--orange); background: var(--orange); color: white; }

/* ── QUICK ADD BAR ── */
.quick-add-bar { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.qa-label { font-size: 12px; font-weight: 700; color: var(--mid); padding-top: 6px; white-space: nowrap; }
.qa-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.qa-btn { background: var(--light); border: 1.5px solid var(--border); border-radius: 18px; padding: 5px 12px; font-size: 11.5px; font-weight: 600; cursor: pointer; color: var(--mid); transition: all 0.14s; white-space: nowrap; font-family: inherit; }
.qa-btn:hover { border-color: var(--orange); color: var(--orange); background: #FFF0EB; }

/* ── QUOTE TABLE ── */
.table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--border); margin-bottom: 12px; }
.quote-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 600px; }
.quote-table thead tr { background: var(--dark); }
.quote-table th { padding: 10px 10px; text-align: left; color: white; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.quote-table th.planner-th { background: #2D3660; color: #C7D2FE; }
.quote-table tbody tr:nth-child(even) { background: var(--light); }
.quote-table tbody tr:hover { background: #F0F0FA; }
.quote-table td { padding: 7px 8px; vertical-align: middle; border-bottom: 1px solid var(--border); }
.planner-col { background: var(--planner-bg) !important; }
.quote-table .tfoot-row td { background: var(--light); font-size: 13px; padding: 10px 8px; border-top: 2px solid var(--border); }
.quote-table .tfoot-row .planner-col { background: var(--planner-bg) !important; }
.empty-td { text-align: center; padding: 24px; color: #aaa; font-size: 13px; }

/* Line item inputs */
.li-input { border: 1px solid transparent; border-radius: 5px; padding: 5px 7px; font-size: 12.5px; font-family: inherit; width: 100%; background: transparent; color: var(--dark); }
.li-input:focus { border-color: var(--orange); background: white; outline: none; }
.li-select { border: 1px solid transparent; border-radius: 5px; padding: 4px 6px; font-size: 12px; font-family: inherit; background: transparent; color: var(--mid); width: 100%; }
.li-select:focus { border-color: var(--orange); background: white; outline: none; }

/* Margin badge */
.margin-badge { display: inline-block; padding: 3px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.margin-green  { background: #D1FAE5; color: #065F46; }
.margin-orange { background: #FEF3C7; color: #92400E; }
.margin-red    { background: #FEE2E2; color: #991B1B; }
.margin-none   { color: #aaa; font-size: 12px; }

/* Delete button */
.li-delete { background: none; border: none; cursor: pointer; color: #ccc; font-size: 16px; padding: 2px 4px; border-radius: 4px; transition: color 0.15s; line-height: 1; }
.li-delete:hover { color: var(--red); }
.link-btn { background: none; border: none; color: var(--orange); font-weight: 600; cursor: pointer; font-family: inherit; font-size: inherit; text-decoration: underline; }

/* Table actions row */
.table-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.btn-add-item { background: var(--light); border: 1.5px dashed var(--border); border-radius: 8px; padding: 8px 18px; font-size: 13px; font-weight: 600; color: var(--mid); cursor: pointer; font-family: inherit; transition: all 0.15s; }
.btn-add-item:hover { border-color: var(--orange); color: var(--orange); background: #FFF0EB; }
.margin-legend { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--mid); }
.ml-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.ml-green { background: #00B894; }
.ml-orange { background: #FDCB6E; }
.ml-red { background: var(--red); }

/* ── PAYMENT SCHEDULE ── */
.payment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.payment-card { background: var(--light); border: 1.5px solid var(--border); border-radius: 10px; padding: 16px; }
.payment-card.highlight { background: var(--maroon-light); border-color: var(--maroon-mid); }
.pc-label { font-size: 11px; font-weight: 700; color: var(--mid); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.pc-amount { font-size: 20px; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.pc-note { font-size: 11px; color: var(--mid); }
.payment-placeholder { color: #aaa; font-size: 13px; padding: 8px 0; }
.payment-warning { background: #FFF3F3; border: 1.5px solid #FFCDD2; border-radius: 8px; padding: 12px 16px; font-size: 12px; color: #7B2020; line-height: 1.7; }

/* ── SUBMIT AREA ── */
.submit-area { text-align: center; padding: 12px 0 6px; }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.btn-generate { background: var(--orange); color: white; border: none; border-radius: 50px; padding: 15px 36px; font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 9px; transition: all 0.2s; box-shadow: 0 6px 24px rgba(255,107,53,0.35); }
.btn-generate:hover { background: #E85D2A; transform: translateY(-2px); }
.btn-generate:disabled { background: #ccc; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-planner { background: var(--dark); color: white; border: none; border-radius: 50px; padding: 15px 32px; font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 9px; transition: all 0.2s; }
.btn-planner:hover { background: #2D2D44; transform: translateY(-2px); }
.btn-save-draft { background: #fff; color: var(--dark); border: 2px solid var(--border); border-radius: 50px; padding: 11px 28px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; }
.btn-save-draft:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-1px); }
.btn-my-quotes { background: #fff; color: var(--dark); border: 2px solid var(--border); border-radius: 50px; padding: 11px 28px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; }
.btn-my-quotes:hover { border-color: var(--maroon); color: var(--maroon); transform: translateY(-1px); }
.submit-note { font-size: 12px; color: #888; }


/* ── MY QUOTES MODAL ── */
.mq-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.mq-modal { background: #fff; border-radius: 18px; width: 100%; max-width: 560px; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,0.25); overflow: hidden; }
.mq-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.mq-header h3 { font-size: 17px; font-weight: 700; color: var(--dark); }
.mq-close { background: none; border: none; font-size: 18px; cursor: pointer; color: #888; padding: 4px 8px; border-radius: 8px; }
.mq-close:hover { background: var(--light); color: var(--dark); }
.mq-list { overflow-y: auto; padding: 12px; flex: 1; }
.mq-empty { text-align: center; color: #888; padding: 40px 20px; font-size: 14px; line-height: 1.7; }
.mq-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 10px; transition: border-color 0.2s; }
.mq-item:hover { border-color: var(--orange); }
.mq-info { flex: 1; min-width: 0; }
.mq-client { font-weight: 700; font-size: 15px; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mq-meta { font-size: 13px; color: var(--mid); margin: 3px 0; }
.mq-time { font-size: 11px; color: #aaa; }
.mq-actions { display: flex; gap: 8px; flex-shrink: 0; }
.mq-load-btn { background: var(--orange); color: #fff; border: none; border-radius: 20px; padding: 7px 16px; font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; }
.mq-load-btn:hover { background: #E85D2A; }
.mq-del-btn { background: none; border: 1px solid #eee; border-radius: 20px; padding: 7px 10px; font-size: 14px; cursor: pointer; color: #aaa; }
.mq-del-btn:hover { border-color: var(--red); color: var(--red); background: #fff5f5; }

/* ── FOOTER ── */
footer { background: var(--dark); padding: 20px 24px; text-align: center; }
.footer-brand { color: white; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.footer-links { color: #6666AA; font-size: 12px; }

/* ── AUTH OVERLAY ── */
.auth-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: linear-gradient(135deg, #1E1E2E 0%, #2D1B4E 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.auth-card {
  background: white; border-radius: 20px; width: 100%; max-width: 460px;
  padding: 36px 32px; box-shadow: 0 32px 80px rgba(0,0,0,0.4);
  animation: authSlideIn 0.35s ease;
}
@keyframes authSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-logo  { font-size: 44px; text-align: center; margin-bottom: 4px; }
.auth-brand { font-size: 18px; font-weight: 800; text-align: center; color: var(--dark); margin: 0 0 20px; }
.auth-tabs  { display: flex; gap: 0; margin-bottom: 22px; border: 2px solid var(--border); border-radius: 10px; overflow: hidden; }
.auth-tab   {
  flex: 1; padding: 10px; font-size: 14px; font-weight: 600; font-family: inherit;
  background: none; border: none; cursor: pointer; color: var(--mid);
  transition: all .2s;
}
.auth-tab.active { background: var(--orange); color: white; }
.auth-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-field { margin-bottom: 14px; }
.auth-field label { display: block; font-size: 12px; font-weight: 600; color: var(--mid); margin-bottom: 5px; }
.auth-field input {
  width: 100%; border: 2px solid var(--border); border-radius: 9px;
  padding: 10px 13px; font-size: 14px; font-family: inherit; color: var(--dark);
  outline: none; transition: border-color .15s; box-sizing: border-box;
}
.auth-field input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,53,.1); }
.auth-err { font-size: 12.5px; color: var(--red); min-height: 16px; margin: 2px 0 10px; font-weight: 500; }
.auth-btn {
  width: 100%; background: var(--orange); color: white; border: none; border-radius: 50px;
  padding: 13px; font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer;
  transition: all .2s; box-shadow: 0 6px 20px rgba(255,107,53,.35);
}
.auth-btn:hover    { background: #e85d2a; transform: translateY(-1px); }
.auth-btn:disabled { background: #ccc; box-shadow: none; cursor: not-allowed; transform: none; }
.auth-switch { font-size: 13px; color: var(--mid); text-align: center; margin-top: 14px; }
.auth-switch a { color: var(--orange); text-decoration: none; font-weight: 600; }
.logout-btn {
  background: none; border: 1.5px solid rgba(255,255,255,.3); color: white;
  border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: all .2s;
}
.logout-btn:hover { background: rgba(255,255,255,.1); border-color: white; }

/* ── TOAST ── */
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--dark); color: white; padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: all 0.3s; z-index: 9999; white-space: nowrap; }
.toast.error { background: var(--red); }
.toast.success { background: var(--green); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── BRANDING SETUP CARD ── */
.brand-card { border-top: 3px solid #7c3aed; }
.brand-step { background: linear-gradient(135deg, #7c3aed, #a855f7) !important; font-size: 14px !important; }

.brand-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.brand-logo-wrap { flex: 0 0 180px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.brand-logo-slot {
  width: 180px; height: 120px;
  border: 2px dashed #c4b5fd;
  border-radius: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: #1a1a2e;
  transition: border-color .2s, box-shadow .2s;
  position: relative;
}
.brand-logo-slot:hover { border-color: #7c3aed; box-shadow: 0 0 0 3px #ede9fe; }
.brand-logo-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; }
.brand-logo-hint { font-size: 12px; font-weight: 600; color: #a78bfa; text-align: center; }
.brand-logo-hint-sub { font-size: 10px; color: #7c6fad; text-align: center; }
.brand-logo-preview {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 12px 16px;
  display: block;
  background: #1a1a2e;
}
.brand-logo-remove {
  font-size: 11px; color: #e74c3c; background: none; border: 1px solid #e74c3c;
  border-radius: 6px; padding: 3px 10px; cursor: pointer; width: 100%;
}
.brand-logo-remove:hover { background: #fdf0f0; }

.brand-fields { flex: 1; }

/* ── COVER PHOTO SLOT ── */
.cp-wrap { margin-top: 16px; }
.cp-slot {
  width: 110px; height: 110px; border-radius: 50%;
  border: 2px dashed var(--orange); background: #fff8f5;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; overflow: hidden; position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cp-slot:hover { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,53,0.15); }
.cp-empty { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px; text-align: center; }
.cp-hint { font-size: 11px; font-weight: 600; color: var(--orange); }
.cp-hint-sub { font-size: 9.5px; color: #b07050; line-height: 1.3; }

.brand-theme-section { margin-top: 4px; }
.brand-themes-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; margin-bottom: 4px; }

.brand-theme-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: none; border: 2px solid var(--border); border-radius: 10px;
  padding: 7px 9px; cursor: pointer; transition: border-color .2s, box-shadow .2s;
  min-width: 68px;
}
.brand-theme-btn:hover { border-color: #7c3aed; }
.brand-theme-btn.active { border-color: #7c3aed; box-shadow: 0 0 0 3px #ede9fe; }
.btp-preview {
  width: 54px; height: 22px; border-radius: 6px; overflow: hidden;
  display: flex; border: 1px solid rgba(0,0,0,.08);
}
.btp-stripe { flex: 1; }
.btp-custom  { background: #667eea; }
.btp-custom2 { background: #f64f59; }
.btp-custom3 { background: #f7b731; }
.btp-label { font-size: 10px; color: var(--mid); font-weight: 600; white-space: nowrap; }

.brand-custom-colors {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  margin-top: 12px; padding: 14px 16px;
  background: var(--light); border-radius: 10px; border: 1px solid var(--border);
}
.brand-custom-field { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.brand-custom-label { font-size: 11px; font-weight: 600; color: var(--mid); text-align: center; }
.brand-color-input {
  width: 50px; height: 50px; border-radius: 50%; border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--border); cursor: pointer; padding: 0;
  -webkit-appearance: none; appearance: none; background: none;
}
.brand-color-input::-webkit-color-swatch-wrapper { padding: 0; border-radius: 50%; }
.brand-color-input::-webkit-color-swatch { border: none; border-radius: 50%; }

/* ── MOOD BOARD (multi-image) ── */
.mb-section-label { font-size: 12.5px; font-weight: 600; color: var(--mid); margin-bottom: 10px; }
.mb-images-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px; margin-bottom: 12px;
}
.mb-img-card {
  border: 1.5px solid var(--border); border-radius: 10px;
  overflow: hidden; background: var(--light);
  display: flex; flex-direction: column;
}
.mb-img-slot {
  position: relative; aspect-ratio: 4/3; cursor: pointer;
  overflow: hidden; background: var(--light);
  display: flex; align-items: center; justify-content: center;
}
.mb-img-slot:hover .mb-img-ph { background: #EEEEF4; }
.mb-img-ph {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; height: 100%; width: 100%;
}
.mb-img-ph .ph-icon { font-size: 26px; }
.mb-img-ph .ph-txt { font-size: 11.5px; color: var(--mid); }
.mb-img-preview { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-img-del {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0,0,0,0.6); color: white; border: none;
  border-radius: 50%; width: 22px; height: 22px; font-size: 11px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  line-height: 1; transition: background 0.15s;
}
.mb-img-del:hover { background: var(--red); }
.mb-img-label-input {
  border: none; border-top: 1px solid var(--border);
  padding: 7px 10px; font-size: 12px; font-family: inherit;
  color: var(--dark); background: white; outline: none; width: 100%;
}
.mb-img-label-input::placeholder { color: #bbb; }
.mb-img-label-input:focus { border-top-color: var(--orange); background: #FFFAF8; }

.mb-add-btn {
  background: var(--light); border: 1.5px dashed var(--border);
  border-radius: 8px; padding: 9px 18px; font-size: 13px; font-weight: 600;
  color: var(--mid); cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.mb-add-btn:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); background: #FFF0EB; }
.mb-add-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Colour palette */
.mb-palette-wrap { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.mb-colors-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; min-height: 44px; }
.mb-color-swatch { position: relative; }
.mb-color-input {
  width: 44px; height: 44px; border: 2px solid var(--border); border-radius: 50%;
  padding: 2px; cursor: pointer; background: none;
  -webkit-appearance: none; appearance: none;
}
.mb-color-input::-webkit-color-swatch-wrapper { padding: 0; border-radius: 50%; }
.mb-color-input::-webkit-color-swatch { border: none; border-radius: 50%; }
.mb-color-del {
  position: absolute; top: -4px; right: -4px;
  background: var(--mid); color: white; border: none; border-radius: 50%;
  width: 16px; height: 16px; font-size: 9px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.mb-color-del:hover { background: var(--red); }
.mb-add-color-btn {
  background: none; border: 1.5px dashed var(--border); border-radius: 20px;
  padding: 6px 14px; font-size: 12px; font-weight: 600; color: var(--mid);
  cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.mb-add-color-btn:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); }
.mb-add-color-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .card { padding: 18px 14px; }
  .event-grid { grid-template-columns: repeat(3, 1fr); }
  .header-badge { display: none; }
  .hero { padding: 32px 16px 28px; }
  main { padding: 18px 12px 80px; }
  .btn-row { flex-direction: column; align-items: center; }
  .btn-generate, .btn-planner { width: 100%; justify-content: center; }
  input, select, textarea { font-size: 16px; }
  .internal-badge { display: none; }
}

@supports (padding: env(safe-area-inset-bottom)) {
  footer { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  main { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  header { padding-top: env(safe-area-inset-top); }
}
