/* My Profile Pilot — 3-Card Dashboard (shared by WP-Admin and myprofilepilot.com/app.html) */
.mpp-root {
	--mpp-brand: #2563eb;
	--mpp-brand-dark: #1d4ed8;
	--mpp-brand-soft: #eff6ff;
	--mpp-ink: #0f172a;
	--mpp-muted: #64748b;
	--mpp-line: #e2e8f0;
	--mpp-bg: #f8fafc;
	--mpp-card: #ffffff;
	--mpp-green: #16a34a;
	--mpp-amber: #d97706;
	--mpp-red: #dc2626;
	--mpp-radius: 14px;
	color: var(--mpp-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	max-width: 1280px;
}
@media (prefers-color-scheme: dark) {
	.mpp-root.mpp-auto-dark {
		--mpp-brand-soft: #172554;
		--mpp-ink: #e2e8f0;
		--mpp-muted: #94a3b8;
		--mpp-line: #334155;
		--mpp-bg: #0b1220;
		--mpp-card: #111a2e;
	}
}
.mpp-root *, .mpp-root *::before, .mpp-root *::after { box-sizing: border-box; }
.mpp-root h1, .mpp-root h2, .mpp-root h3 { color: var(--mpp-ink); margin: 0; line-height: 1.25; font-weight: 700; }
.mpp-root h2 { font-size: 18px; }
.mpp-root h3 { font-size: 15px; }
.mpp-root p { margin: .5em 0; }
.mpp-root code { background: var(--mpp-brand-soft); padding: 1px 5px; border-radius: 4px; font-size: 12px; word-break: break-all; }
.mpp-root input[type=text], .mpp-root input[type=url], .mpp-root input[type=tel], .mpp-root input[type=time], .mpp-root select, .mpp-root textarea {
	width: 100%; max-width: 100%; border: 1px solid var(--mpp-line); border-radius: 8px; padding: 7px 10px; font: inherit;
	background: var(--mpp-card); color: var(--mpp-ink); min-height: 36px; box-shadow: none;
}
.mpp-root input[type=time] { width: auto; }
.mpp-root textarea { resize: vertical; }
.mpp-root input:focus, .mpp-root select:focus, .mpp-root textarea:focus, .mpp-root button:focus-visible, .mpp-drop:focus-visible {
	outline: 2px solid var(--mpp-brand); outline-offset: 1px; border-color: var(--mpp-brand);
}
.mpp-root label { font-weight: 500; display: block; }
.mpp-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mpp-muted { color: var(--mpp-muted); font-weight: 400; }
.mpp-center { text-align: center; }

.mpp-loading { padding: 40px; text-align: center; color: var(--mpp-muted); }
.mpp-spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: mpp-spin .7s linear infinite; vertical-align: -2px; }
@keyframes mpp-spin { to { transform: rotate(360deg); } }

/* Header */
.mpp-header { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: linear-gradient(135deg, #1e3a8a, #2563eb 60%, #0ea5e9); color: #fff; border-radius: var(--mpp-radius); padding: 18px 22px; margin: 14px 0 16px; }
.mpp-header h1 { color: #fff; font-size: 22px; }
.mpp-header p { margin: 2px 0 0; color: #dbeafe; font-size: 13px; }
.mpp-brand { display: flex; align-items: center; gap: 12px; flex: 1 1 320px; }
.mpp-logo { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 24px; transform: rotate(-20deg); }
.mpp-header-right { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.mpp-toggle { display: inline-flex; background: rgba(15,23,42,.35); border-radius: 999px; padding: 4px; }
.mpp-toggle button { border: 0; background: transparent; color: #e0f2fe; padding: 8px 14px; border-radius: 999px; font: 600 13px/1 inherit; cursor: pointer; white-space: nowrap; }
.mpp-toggle button.is-on { background: #fff; color: var(--mpp-brand-dark); box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.mpp-status { font-size: 12.5px; color: #e0f2fe; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mpp-status .mpp-link { color: #fff; }
.mpp-dot { width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; display: inline-block; }
.mpp-dot-on { background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.3); }
.mpp-dot-demo { background: #fbbf24; }

/* Buttons */
.mpp-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--mpp-line); background: var(--mpp-card); color: var(--mpp-ink); border-radius: 9px; padding: 8px 14px; font: 600 13px/1.2 inherit; cursor: pointer; text-decoration: none; }
.mpp-btn:hover { border-color: var(--mpp-brand); color: var(--mpp-brand); }
.mpp-btn-primary { background: var(--mpp-brand); border-color: var(--mpp-brand); color: #fff; }
.mpp-btn-primary:hover { background: var(--mpp-brand-dark); color: #fff; }
.mpp-btn-google { background: #fff; color: #1f2937; border-color: #cbd5e1; padding: 10px 18px; font-size: 14px; }
.mpp-btn-google span { font-weight: 800; color: #4285f4; font-size: 16px; }
.mpp-link { background: none; border: 0; padding: 0; color: var(--mpp-brand); text-decoration: underline; cursor: pointer; font: inherit; }
.mpp-icon-btn { border: 0; background: transparent; color: var(--mpp-muted); cursor: pointer; font-size: 16px; padding: 4px 8px; border-radius: 6px; align-self: flex-start; }
.mpp-icon-btn:hover { background: #fee2e2; color: var(--mpp-red); }

/* Layout */
.mpp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.mpp-card-1 { grid-column: 1 / -1; }
@media (max-width: 960px) { .mpp-grid { grid-template-columns: 1fr; } }
.mpp-card { background: var(--mpp-card); border: 1px solid var(--mpp-line); border-radius: var(--mpp-radius); padding: 18px 20px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.mpp-card-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.mpp-card-head > div:not(.mpp-ring) { flex: 1; }
.mpp-step { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--mpp-brand-soft); color: var(--mpp-brand); font-weight: 800; display: grid; place-items: center; }
.mpp-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin: 10px 0; }
.mpp-row > label { flex: 0 1 auto; }
.mpp-grow { flex: 1 1 220px !important; }
.mpp-between { justify-content: space-between; align-items: center; }
.mpp-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 10px 0; }
.mpp-form-1 { grid-template-columns: 1fr; }
.mpp-pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.mpp-pill-ok { background: #dcfce7; color: #166534; }
.mpp-pill-warn { background: #fef3c7; color: #92400e; }
.mpp-badge { background: var(--mpp-brand-soft); color: var(--mpp-brand); font-weight: 700; font-size: 11px; padding: 2px 7px; border-radius: 6px; }
.mpp-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--mpp-line); border-radius: 999px; padding: 6px 12px; background: var(--mpp-card); color: var(--mpp-ink); font: 600 13px/1.2 inherit; cursor: pointer; margin: 2px; }
.mpp-chip.is-on { background: var(--mpp-brand-soft); border-color: var(--mpp-brand); color: var(--mpp-brand-dark); }
.mpp-chip input { margin: 0; }
.mpp-empty { text-align: center; color: var(--mpp-muted); padding: 10px; }

/* Mode picker */
.mpp-modes h2 { margin-bottom: 4px; }
.mpp-mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 14px; }
.mpp-mode { text-align: left; border: 2px solid var(--mpp-line); border-radius: 14px; padding: 18px; background: var(--mpp-card); color: var(--mpp-ink); cursor: pointer; display: flex; flex-direction: column; gap: 4px; font: inherit; transition: border-color .15s, transform .15s; }
.mpp-mode:hover { border-color: var(--mpp-brand); transform: translateY(-2px); }
.mpp-mode.is-on { border-color: var(--mpp-brand); background: var(--mpp-brand-soft); }
.mpp-mode-icon { font-size: 28px; }
.mpp-mode strong { font-size: 16px; }
.mpp-mode em { color: var(--mpp-brand); font-style: normal; font-weight: 600; }
.mpp-mode span:last-child { color: var(--mpp-muted); font-size: 13px; }
.mpp-modebar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; }

/* Health ring */
.mpp-ring { --p: 0; --c: var(--mpp-green); width: 74px; height: 74px; border-radius: 50%; flex: none; display: grid; place-items: center;
	background: radial-gradient(closest-side, var(--mpp-card) 76%, transparent 78% 100%), conic-gradient(var(--c) calc(var(--p) * 1%), var(--mpp-line) 0); transition: --p .6s; }
.mpp-ring span { font-size: 20px; font-weight: 800; color: var(--mpp-ink); }
.mpp-ring small { font-size: 11px; }
.mpp-ring-sm { width: 58px; height: 58px; background: radial-gradient(closest-side, #1e40af 74%, transparent 76% 100%), conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255,255,255,.25) 0); }
.mpp-ring-sm span { color: #fff; font-size: 16px; }
.mpp-progress-label { margin-top: -4px; }

/* Card 1: drip */
.mpp-drop { border: 2px dashed #93c5fd; background: var(--mpp-brand-soft); border-radius: 12px; padding: 26px; text-align: center; cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: background .15s, border-color .15s; }
.mpp-drop.is-over { background: #dbeafe; border-color: var(--mpp-brand); }
.mpp-drop strong { font-size: 15px; }
.mpp-drip-settings label { min-width: 150px; }
.mpp-queue { list-style: none; margin: 12px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.mpp-q { display: flex; gap: 10px; border: 1px solid var(--mpp-line); border-radius: 12px; padding: 8px; margin: 0; }
.mpp-q img { width: 104px; height: 78px; object-fit: cover; border-radius: 8px; flex: none; }
.mpp-q-body { flex: 1; min-width: 0; }
.mpp-q-meta { font-size: 12px; color: var(--mpp-muted); margin-bottom: 4px; }
.mpp-q textarea { font-size: 12.5px; min-height: 52px; }
.mpp-hist summary { cursor: pointer; color: var(--mpp-muted); font-weight: 600; }
.mpp-hist ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mpp-hist-item { display: flex; align-items: center; gap: 8px; border: 1px solid var(--mpp-line); border-radius: 10px; padding: 4px 10px 4px 4px; font-size: 12px; margin: 0; }
.mpp-hist-item img { width: 48px; height: 36px; object-fit: cover; border-radius: 6px; }

/* Card 2: fixer */
.mpp-fix { border: 1px solid var(--mpp-line); border-left: 4px solid var(--mpp-amber); border-radius: 12px; padding: 14px 16px; margin: 12px 0; transition: opacity .35s ease, transform .35s ease, max-height .35s ease; max-height: 2200px; overflow: hidden; }
.mpp-fix h3 { display: flex; align-items: center; gap: 8px; }
.mpp-warn { width: 20px; height: 20px; border-radius: 50%; background: #fef3c7; color: var(--mpp-amber); font-weight: 900; display: inline-grid; place-items: center; font-size: 12px; }
.mpp-leaving { opacity: 0; transform: translateX(30px) scale(.98); max-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; margin: 0 !important; border-width: 0 !important; }
.mpp-allgood { text-align: center; padding: 24px 10px; }
.mpp-allgood > span { font-size: 36px; }
.mpp-city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 10px; margin: 8px 0; }
.mpp-city { font-weight: 500 !important; font-size: 13px; }
.mpp-city small { color: var(--mpp-muted); display: block; margin-left: 22px; font-weight: 400; }
.mpp-holiday { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-bottom: 1px solid var(--mpp-line); }
.mpp-holiday > div:first-child { flex: 1 1 160px; display: flex; flex-direction: column; }
.mpp-seg { display: inline-flex; border: 1px solid var(--mpp-line); border-radius: 9px; overflow: hidden; flex-wrap: wrap; }
.mpp-seg label { padding: 6px 11px; cursor: pointer; font-size: 12.5px; font-weight: 600; border-right: 1px solid var(--mpp-line); margin: 0; }
.mpp-seg label:last-child { border-right: 0; }
.mpp-seg label.is-on { background: var(--mpp-brand); color: #fff; }
.mpp-seg input { position: absolute; opacity: 0; pointer-events: none; }
.mpp-custom-hours { display: flex; align-items: center; gap: 6px; }
.mpp-custom-hours[hidden], [data-ct-fields][hidden] { display: none; }
.mpp-check { display: inline-flex !important; align-items: center; gap: 6px; font-weight: 500 !important; margin-right: 10px; }
.mpp-hours-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; flex-wrap: wrap; }
.mpp-hours-row > span { width: 38px; font-weight: 700; }

/* Card 3: reviews */
.mpp-review { border: 1px solid var(--mpp-line); border-radius: 12px; padding: 14px; margin: 12px 0; transition: opacity .35s, transform .35s, max-height .35s; max-height: 900px; overflow: hidden; }
.mpp-review header { display: flex; gap: 10px; align-items: center; }
.mpp-review header div { display: flex; flex-direction: column; }
.mpp-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #60a5fa, #2563eb); color: #fff; display: grid; place-items: center; font-weight: 800; }
.mpp-stars { color: #f59e0b; letter-spacing: 1px; }
.mpp-stars i { color: var(--mpp-line); font-style: normal; }
.mpp-review blockquote { margin: 10px 0; padding: 8px 12px; border-left: 3px solid var(--mpp-line); color: var(--mpp-ink); background: var(--mpp-bg); border-radius: 0 8px 8px 0; }

/* Schema panel */
.mpp-schema { margin-top: 16px; }
.mpp-schema summary { cursor: pointer; }
.mpp-schema pre { background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: 14px; max-height: 360px; overflow: auto; font-size: 12px; }
.mpp-schema pre code { background: none; color: inherit; padding: 0; word-break: normal; }
.mpp-error { border-color: #fecaca; background: #fef2f2; }
.mpp-connect { max-width: 680px; }
.mpp-radio-row { display: flex !important; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--mpp-line); }

/* Toasts */
.mpp-toast { position: fixed; z-index: 100000; right: 22px; bottom: 22px; max-width: 380px; background: #0f172a; color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); font: 500 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; animation: mpp-in .25s ease; transition: opacity .4s, transform .4s; border-left: 4px solid #4ade80; }
.mpp-toast-err { border-left-color: #f87171; }
.mpp-toast-warn { border-left-color: #fbbf24; }
.mpp-toast-out { opacity: 0; transform: translateY(10px); }
@keyframes mpp-in { from { opacity: 0; transform: translateY(10px); } }

/* Public hours badge (shortcode + embed) */
.mpp-hours-badge { display: inline-block; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 16px; font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: inherit; }
.mpp-hours-badge table { border-collapse: collapse; }
.mpp-hours-badge td { padding: 2px 12px 2px 0; }
.mpp-hours-badge .mpp-open-now { font-weight: 700; color: #16a34a; }
.mpp-hours-badge .mpp-closed-now { font-weight: 700; color: #dc2626; }
.mpp-hours-badge .mpp-today td { font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
	.mpp-fix, .mpp-review, .mpp-mode, .mpp-toast { transition: none; animation: none; }
}
@media (max-width: 600px) {
	.mpp-header-right { align-items: stretch; width: 100%; }
	.mpp-toggle { flex-direction: column; border-radius: 14px; }
	.mpp-queue { grid-template-columns: 1fr; }
	.mpp-card { padding: 14px; }
}

/* Quick setup (Google Maps URL / Place ID / Business Profile ID) */
.mpp-quick { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0 2px; }
.mpp-quick label { flex: 1 1 280px; margin: 0; }
.mpp-hint { font-size: 12px; margin-top: 4px; }
.mpp-hint code { font-size: 11px; }
.mpp-or { margin-top: 18px !important; font-size: 14px !important; }
.mpp-identity { border: 1px dashed var(--mpp-line); border-radius: 10px; padding: 10px 14px; margin: 12px 0; }
.mpp-banner { display: flex; gap: 10px; align-items: flex-start; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; border-radius: 12px; padding: 12px 16px; margin: 0 0 14px; }
.mpp-banner .mpp-link { color: #92400e; font-weight: 600; }

/* Agency client switcher (app.html) */
.mpp-clientbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--mpp-card); border: 1px solid var(--mpp-line); border-radius: var(--mpp-radius); padding: 10px 16px; margin: -4px 0 16px; }
.mpp-clientbar label { font-weight: 700; margin: 0; }
.mpp-clientbar select { width: auto; min-width: 260px; max-width: 100%; flex: 0 1 360px; }
.mpp-danger { color: var(--mpp-red) !important; }
.mpp-addclient { margin-bottom: 16px; border-color: var(--mpp-brand); }
.mpp-addclient h3 { margin-top: 14px !important; }
.mpp-import { max-height: 320px; overflow: auto; border: 1px solid var(--mpp-line); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 600px) { .mpp-clientbar select { min-width: 0; flex-basis: 100%; } }

/* Suspension Risk & Guideline Scanner */
.mpp-riskpanel { border: 1px solid var(--mpp-line); border-radius: 12px; padding: 12px 14px; margin: 10px 0 14px; background: var(--mpp-bg); }
.mpp-riskpanel > summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; list-style: none; }
.mpp-riskpanel > summary::-webkit-details-marker { display: none; }
.mpp-pill-bad { background: #fee2e2; color: #991b1b; }
.mpp-risklist { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mpp-risk { display: flex; gap: 10px; background: var(--mpp-card); border: 1px solid var(--mpp-line); border-left-width: 4px; border-radius: 10px; padding: 10px 12px; margin: 0; }
.mpp-risk p { margin: 2px 0 0; }
.mpp-risk-high { border-left-color: var(--mpp-red); }
.mpp-risk-medium { border-left-color: var(--mpp-amber); }
.mpp-risk-low { border-left-color: #94a3b8; }
.mpp-sev { flex: none; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding: 2px 7px; border-radius: 6px; height: fit-content; background: #f1f5f9; color: #475569; }
.mpp-risk-high .mpp-sev { background: #fee2e2; color: #991b1b; }
.mpp-risk-medium .mpp-sev { background: #fef3c7; color: #92400e; }
.mpp-portals { margin-top: 16px; border-top: 1px solid var(--mpp-line); padding-top: 12px; }
.mpp-portals ul { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 10px; }
.mpp-portals li { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.mpp-portals a { color: var(--mpp-brand); font-weight: 700; }
.mpp-bad { color: var(--mpp-red); font-weight: 700; font-style: normal; }

/* Check If Removable */
.mpp-policy { margin-top: 10px; border: 1px solid var(--mpp-line); background: var(--mpp-bg); border-radius: 10px; padding: 10px 12px; }
.mpp-policy textarea { font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--mpp-card); }
.mpp-check-removable { font-weight: 600; }
.mpp-lowanswered { margin-top: 12px; }
.mpp-lowanswered summary { cursor: pointer; color: var(--mpp-muted); font-weight: 600; }
.mpp-review-compact { padding: 10px 12px; }

/* Vault & lock */
.mpp-clientbar-right { margin-left: auto; display: inline-flex; gap: 8px; flex-wrap: wrap; }
.mpp-btn-dark { background: #0f172a; border-color: #0f172a; color: #fff; }
.mpp-btn-dark:hover { background: #1e293b; color: #fff; }
.mpp-vault { margin-bottom: 16px; border-color: #0f172a; }
.mpp-lock { max-width: 460px; margin: 40px auto; text-align: center; }
.mpp-lock-icon { font-size: 44px; }
.mpp-lock-form { justify-content: center; }
@media (max-width: 600px) { .mpp-clientbar-right { margin-left: 0; } }
