/* Ivywild dashboard. Lexend, black/white + Ivywild purple (#8E7BFF, ink #6D28D9). */
:root {
	--iw-purple: #8E7BFF;
	--iw-ink: #6D28D9;
	--iw-ink-dark: #4C1D95;
	--iw-tint: #F1EEFF;
	--iw-text: #111113;
	--iw-muted: #5B5B63;
	--iw-faint: #71717A;
	--iw-line: #E4E4E7;
	--iw-line-2: #D4D4D8;
	--iw-bg: #F6F6F7;
	--iw-card: #FFFFFF;
	--iw-side: #0E0E10;
	--iw-green: #15803D;
	--iw-green-bg: #E8F7EE;
	--iw-amber: #B45309;
	--iw-amber-bg: #FEF3C7;
	--iw-red: #B91C1C;
	--iw-red-bg: #FDECEC;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body.iwp-body { font-family: Lexend, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--iw-text); background: var(--iw-bg); font-size: 15px; line-height: 1.45; }
a { color: var(--iw-ink); }
a:hover { color: var(--iw-ink-dark); }
button { font-family: inherit; }
h1, h2, h3 { margin: 0; }
.iwp-loading { padding: 40px; color: var(--iw-muted); }

/* ---------- form fields */
.fld { width: 100%; padding: 11px 14px; border: 1px solid var(--iw-line-2); border-radius: 10px; font-family: inherit; font-size: 15px; color: var(--iw-text); background: #FFFFFF; }
.fld:focus { outline: 2px solid var(--iw-purple); outline-offset: 1px; border-color: var(--iw-purple); }
textarea.fld { resize: vertical; line-height: 1.5; }
.fld--sm { padding: 8px 10px; font-size: 14px; }
/* The label line and its "optional" note share one row, so fields side by side line up whether or not they
   have a note (Nick, 20 Nov 2026). Everything else in a label (the input, a hint below it) takes a full row. */
.iwp-label { display: flex; flex-flow: row wrap; align-items: baseline; gap: 6px; font-size: 14px; font-weight: 500; min-width: 0; }
.iwp-label > :not(small) { flex: 1 1 100%; min-width: 0; }
.iwp-label small, .iwp-hint { font-size: 12px; font-weight: 400; color: var(--iw-muted); }
.iwp-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.iwp-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .iwp-grid2, .iwp-grid3 { grid-template-columns: 1fr; } }

/* ---------- buttons */
.iwp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--iw-line-2); background: #FFFFFF; color: var(--iw-text); font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
.iwp-btn:hover { border-color: var(--iw-faint); color: var(--iw-text); }
.iwp-btn--primary { background: var(--iw-purple); border-color: var(--iw-purple); color: #FFFFFF; font-weight: 600; }
.iwp-btn--primary:hover { background: var(--iw-ink); border-color: var(--iw-ink); color: #FFFFFF; }
.iwp-btn--dark { background: var(--iw-text); border-color: var(--iw-text); color: #FFFFFF; }
.iwp-btn--dark:hover, .iwp-btn--dark:focus-visible { background: #3F3F46; border-color: #3F3F46; color: #FFFFFF; }
.iwp-btn--danger:hover { color: var(--iw-red); text-decoration: underline; }
.iwp-btn--link:hover { color: var(--iw-ink); text-decoration: underline; }
.iwp-btn--danger { border: none; background: none; color: var(--iw-red); padding: 8px 4px; }
.iwp-btn--link { border: none; background: none; color: var(--iw-ink); padding: 4px 0; }
.iwp-btn--sm { padding: 7px 14px; font-size: 13px; }
.iwp-btn[disabled] { opacity: 0.55; cursor: default; }
.iwp-chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--iw-line-2); background: #FFFFFF; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--iw-text); }
.iwp-chip[aria-pressed="true"], .iwp-chip.is-on { background: var(--iw-purple); border-color: var(--iw-purple); color: #FFFFFF; }
.iwp-chip .n { opacity: 0.7; margin-left: 4px; }
.iwp-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- switch */
.iwp-switch { width: 42px; height: 26px; flex: none; border-radius: 999px; border: none; padding: 3px; cursor: pointer; display: flex; background: var(--iw-line-2); justify-content: flex-start; }
.iwp-switch[aria-checked="true"] { background: var(--iw-purple); justify-content: flex-end; }
.iwp-switch span { width: 20px; height: 20px; border-radius: 999px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.iwp-switch-row { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; }

/* ---------- badges + notes */
.iwp-badge { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; white-space: nowrap; background: #EDEDF0; color: #3F3F46; }
.iwp-badge--green { background: var(--iw-green-bg); color: var(--iw-green); }
.iwp-badge--purple { background: var(--iw-tint); color: var(--iw-ink); }
.iwp-badge--amber { background: var(--iw-amber-bg); color: var(--iw-amber); }
.iwp-badge--red { background: var(--iw-red-bg); color: var(--iw-red); }
.iwp-note { margin: 0; font-size: 13px; line-height: 1.5; border-radius: 10px; padding: 10px 12px; background: #F6F6F7; color: #3F3F46; }
.iwp-note--purple { background: var(--iw-tint); color: #3B1A7A; }
.iwp-note--green { background: var(--iw-green-bg); color: #14532D; }
.iwp-note--amber { background: var(--iw-amber-bg); color: #78350F; }
.iwp-note--err { background: var(--iw-red-bg); color: var(--iw-red); }

/* ---------- layout */
.iwp-app { display: flex; flex-wrap: wrap; min-height: 100vh; align-items: stretch; }
.iwp-side { flex: 1 1 240px; max-width: 280px; background: var(--iw-side); color: #F4F4F5; padding: 20px 14px; display: flex; flex-direction: column; gap: 2px; }
.iwp-brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 20px; }
.iwp-brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--iw-purple); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex: none; }
.iwp-brand-name { font-weight: 600; font-size: 15px; }
.iwp-brand-sub { font-size: 12px; color: #A1A1AA; }
.iwp-nav { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #D4D4D8; text-decoration: none; font-size: 14px; }
.iwp-nav:hover { background: #1F1F24; color: #FFFFFF; }
.iwp-nav.is-on { background: var(--iw-purple); color: #FFFFFF; }
.iwp-nav svg { flex: none; }
.iwp-nav .iwp-count { margin-left: auto; background: var(--iw-purple); color: #FFFFFF; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 8px; }
.iwp-nav.is-on .iwp-count { background: #FFFFFF; color: var(--iw-ink); }
.iwp-side-label { padding: 16px 12px 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--iw-faint); }
/* The folding group headings (assets/app/main.js group()): a plain row that opens and shuts its items. */
.iwp-search { position: relative; margin: 4px 0 10px; }
.iwp-search-in { width: 100%; box-sizing: border-box; background: #1F1F24; border: 1px solid #3F3F46; color: #F4F4F5; border-radius: 10px; padding: 9px 64px 9px 12px; font: inherit; font-size: 14px; }
.iwp-search-in::placeholder { color: #A1A1AA; }
.iwp-search-in:focus { outline: 2px solid var(--iw-purple); outline-offset: 1px; border-color: transparent; }
.iwp-search-kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 600 11px/1 inherit; color: #A1A1AA; border: 1px solid #3F3F46; border-radius: 6px; padding: 3px 6px; pointer-events: none; }
.iwp-search-list { position: absolute; left: 0; top: calc(100% + 6px); width: max(100%, 340px); max-height: 60vh; overflow-y: auto; z-index: 60; background: #FFFFFF; color: var(--iw-ink, #111113); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.25); padding: 6px; }
.iwp-search-group { padding: 10px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #71717A; }
.iwp-search-row { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: inherit; }
.iwp-search-row.is-on { background: #F1EEFF; }
.iwp-search-t { font-size: 14px; font-weight: 500; }
.iwp-search-s { font-size: 12px; color: #71717A; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iwp-search-none { margin: 0; padding: 10px; font-size: 13px; color: #71717A; }
@media (max-width: 820px) { .iwp-side:not(.is-open) .iwp-search { display: none; } .iwp-search-list { width: 100%; } .iwp-search-kbd { display: none; } }
.iwp-side-fold { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; width: 100%; cursor: pointer; padding: 16px 12px 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--iw-faint); border-radius: 8px; }
.iwp-side-fold:hover { color: #F4F4F5; }
.iwp-side-fold:focus-visible { outline: 2px solid var(--iw-purple); outline-offset: 2px; }
.iwp-side-fold > span:first-child { flex: 1; }
.iwp-side-fold .iwp-count { margin-left: 0; text-transform: none; letter-spacing: 0; }
.iwp-fold-chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin-right: 4px; }
.iwp-side-fold[aria-expanded="true"] .iwp-fold-chev { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .iwp-fold-chev { transition: none; } }
.iwp-side-rule { height: 1px; background: #27272A; margin: 14px 8px; }
.iwp-main { flex: 999 1 560px; min-width: 0; padding: 32px 40px 56px; }
.iwp-page { max-width: 1560px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 820px) {
	/* One column with the desktop's groups (Nick, 23 Nov 2026: "stacked instead of inline and group the items as on desktop"). */
	.iwp-side { max-width: none; flex-basis: 100%; flex-direction: column; flex-wrap: nowrap; padding: 12px; }
	.iwp-brand { flex-basis: auto; padding-bottom: 8px; }
	.iwp-side.is-open .iwp-nav { width: 100%; }
	.iwp-side.is-open .iwp-side-label { padding: 14px 12px 4px; }
	.iwp-side.is-open .iwp-side-rule { margin: 10px 8px; }
	.iwp-main { padding: 20px 16px 48px; }
}

.iwp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.iwp-head h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.01em; }
.iwp-head p { margin: 4px 0 0; color: var(--iw-muted); }
.iwp-crumb { font-size: 13px; color: var(--iw-muted); margin-bottom: 4px; }
.iwp-crumb a { text-decoration: none; }
.iwp-card { background: var(--iw-card); border: 1px solid var(--iw-line); border-radius: 18px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.iwp-card h2 { font-size: 17px; font-weight: 600; }
.iwp-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.iwp-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; align-items: start; }
.iwp-split { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr); gap: 16px; align-items: start; }
@media (max-width: 980px) { .iwp-split, .iwp-cols { grid-template-columns: 1fr; } }
.iwp-empty { padding: 28px; text-align: center; color: var(--iw-muted); }
.iwp-muted { color: var(--iw-muted); }
.iwp-small { font-size: 13px; }

/* ---------- table */
.iwp-table-wrap { position: relative; background: #FFFFFF; border: 1px solid var(--iw-line); border-radius: 16px; overflow-x: auto; }
.iwp-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 14px; }
.iwp-table th { text-align: left; color: var(--iw-muted); font-size: 13px; font-weight: 500; padding: 12px 10px; border-bottom: 1px solid var(--iw-line); }
.iwp-table td { padding: 12px 10px; border-bottom: 1px solid #F0F0F2; vertical-align: middle; }
.iwp-table tr:last-child td { border-bottom: none; }
.iwp-table th:first-child, .iwp-table td:first-child { padding-left: 18px; }
.iwp-table th:last-child, .iwp-table td:last-child { padding-right: 18px; text-align: right; }
.iwp-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: repeating-linear-gradient(45deg, #E4E4E7 0 8px, #EDEDF0 8px 16px); flex: none; }
.iwp-row-title { display: flex; align-items: center; gap: 12px; }
.iwp-row-title b { font-weight: 600; }

/* ---------- modal */
.iwp-overlay { position: fixed; inset: 0; background: rgba(17,17,19,0.5); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; overflow-x: hidden; z-index: 50; }
.iwp-modal { width: 100%; max-width: 680px; min-width: 0; overflow-x: hidden; background: #FFFFFF; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.25); }
.iwp-modal--wide { max-width: 860px; }
.iwp-modal-head { display: flex; align-items: center; gap: 12px; }
.iwp-modal-head h2 { flex: 1; font-size: 20px; font-weight: 600; }
.iwp-x { width: 36px; height: 36px; border-radius: 999px; border: none; background: #F6F6F7; font-size: 20px; line-height: 1; cursor: pointer; flex: none; }
.iwp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.iwp-actions .grow { flex: 1; }
.iwp-guard { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--iw-amber-bg); color: #78350F; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.iwp-guard span { flex: 1; min-width: 180px; }

/* ---------- steps (post editor) */
.iwp-step { border: 1px solid var(--iw-line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.iwp-step-h { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.iwp-step-n { width: 26px; height: 26px; border-radius: 999px; background: var(--iw-purple); color: #FFFFFF; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.iwp-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.iwp-option { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--iw-line-2); background: #FFFFFF; color: var(--iw-text); text-align: left; cursor: pointer; min-width: 0; }
.iwp-option b { font-size: 14px; font-weight: 600; }
.iwp-option small { font-size: 12px; opacity: 0.8; }
.iwp-option[aria-checked="true"] { background: var(--iw-purple); border-color: var(--iw-purple); color: #FFFFFF; }
.iwp-option[disabled] { opacity: 0.5; cursor: default; }
.iwp-days { display: flex; flex-wrap: wrap; gap: 6px; }
.iwp-day { width: 40px; height: 36px; border-radius: 999px; border: 1px solid var(--iw-line-2); background: #FFFFFF; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--iw-faint); }
.iwp-day[aria-pressed="true"] { background: var(--iw-text); border-color: var(--iw-text); color: #FFFFFF; }
.iwp-msgcard { border: 1px solid var(--iw-line); border-radius: 14px; padding: 16px 18px; background: #FAFAFB; display: flex; flex-direction: column; gap: 6px; }
.iwp-msgcard .src { font-size: 12px; font-weight: 600; color: var(--iw-ink); }
.iwp-msgcard .hl { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.iwp-msgcard .dt { font-size: 14px; color: #3F3F46; overflow-wrap: anywhere; white-space: pre-line; }
.iwp-msgcard .fp { font-size: 12px; color: var(--iw-muted); }
.iwp-photo { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1.5px dashed #C4C4CC; border-radius: 14px; background: #FAFAFB; cursor: pointer; text-align: left; }
.iwp-photo img, .iwp-photo .ph { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex: none; background: repeating-linear-gradient(45deg, #E4E4E7 0 8px, #EDEDF0 8px 16px); }
.iwp-spot { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--iw-line); border-radius: 12px; cursor: pointer; background: #FFFFFF; text-align: left; width: 100%; }
.iwp-spot[aria-checked="true"] { border-color: var(--iw-purple); background: var(--iw-tint); }
.iwp-spot .box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--iw-line-2); flex: none; display: flex; align-items: center; justify-content: center; color: #FFFFFF; font-size: 13px; margin-top: 1px; }
.iwp-spot .iwp-spot-warn { display: block; color: #B45309; margin-top: 4px; }
.iwp-spot[aria-checked="true"] .box { background: var(--iw-purple); border-color: var(--iw-purple); }
.iwp-spot b { display: block; font-size: 14px; font-weight: 600; }
.iwp-spot small { display: block; font-size: 12px; color: var(--iw-muted); }

/* ---------- hours editor */
.iwp-hours-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid #F0F0F2; }
.iwp-hours-row:last-child { border-bottom: none; }
.iwp-hours-day { font-weight: 600; font-size: 14px; padding-top: 8px; }
.iwp-shifts { display: flex; flex-direction: column; gap: 8px; }
.iwp-shift { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.iwp-shift .fld { width: 130px; }
@media (max-width: 640px) { .iwp-hours-row { grid-template-columns: 1fr; } }

/* ---------- inbox */
.iwp-list { display: flex; flex-direction: column; }
.iwp-msg { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; cursor: pointer; border: none; background: none; text-align: left; width: 100%; }
.iwp-msg:hover { background: #F6F6F7; }
.iwp-msg.is-on { background: var(--iw-tint); }
.iwp-msg .top { display: flex; align-items: center; gap: 8px; }
.iwp-msg .who { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iwp-msg .when { font-size: 12px; color: var(--iw-muted); }
.iwp-msg .snip { font-size: 13px; color: var(--iw-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iwp-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--iw-purple); flex: none; }
.iwp-fields { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 14px; font-size: 14px; }
.iwp-fields dt { color: var(--iw-muted); }
.iwp-fields dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }

/* ---------- tools */
.iwp-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.iwp-tool { background: #FFFFFF; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--iw-line); }
.iwp-tool.is-on { border-color: #C9C0F5; }
.iwp-tool-top { display: flex; align-items: center; gap: 12px; }
.iwp-tool-ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #FFFFFF; background: var(--iw-text); }
.iwp-tool h3 { font-size: 16px; font-weight: 600; flex: 1; }
.iwp-tool p { margin: 0; font-size: 14px; color: #3F3F46; }
.iwp-tool > .iwp-actions { margin-top: auto; padding-top: 4px; }
.iwp-tool-group { display: flex; flex-direction: column; gap: 12px; }
.iwp-tool-group + .iwp-tool-group { margin-top: 12px; }
.iwp-tool-group-h { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--iw-faint, #71717A); }

/* ---------- stats */
.iwp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.iwp-stat { background: #FFFFFF; border: 1px solid var(--iw-line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.iwp-stat b { font-size: 24px; font-weight: 600; }
.iwp-stat span { font-size: 13px; color: var(--iw-muted); }
.iwp-attn { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #FAFAFB; border: 1px solid var(--iw-line); text-decoration: none; color: var(--iw-text); }
.iwp-attn:hover { border-color: var(--iw-purple); color: var(--iw-text); }
.iwp-attn i { width: 10px; height: 10px; border-radius: 999px; background: var(--iw-amber); flex: none; }

/* ---------- toast */
.iwp-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--iw-text); color: #FFFFFF; padding: 12px 18px; border-radius: 999px; font-size: 14px; z-index: 80; box-shadow: 0 10px 30px rgba(0,0,0,0.25); max-width: calc(100vw - 32px); }
.iwp-toast--err { background: var(--iw-red); }
.iwp-toast { display: flex; align-items: center; gap: 14px; }
.iwp-toast-act { border: 0; background: none; color: #C9BFFF; font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.iwp-toast-act:hover { color: #FFFFFF; text-decoration: underline; }

/* ---------- online ordering items (menu.js) */
.iwp-mi-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.iwp-mi-bar .fld { width: auto; }
.iwp-mi-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 10px 20px; border-top: 1px solid #F0F0F2; }
.iwp-mi-row.is-picked { background: #F6F4FF; }
.iwp-mi-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--iw-purple); flex: none; }
.iwp-mi-name { flex: 1 1 200px; min-width: 0; }
.iwp-mi-price { border: 1px dashed transparent; background: none; padding: 2px 6px; margin: -2px -6px; border-radius: 8px; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.iwp-mi-price:hover, .iwp-mi-price:focus-visible { border-color: var(--iw-line-2); }
.iwp-mi-price-edit { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.iwp-mi-price-edit .fld { width: 96px; }
.iwp-mi-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.iwp-mi-cathead { display: flex; align-items: center; gap: 10px; padding: 10px 20px; }
.iwp-mi-cathead h2 { margin: 0; }
.iwp-mi-bulk { position: sticky; bottom: 76px; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--iw-text); color: #FFFFFF; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.iwp-mi-bulk .iwp-btn { background: #FFFFFF; }
.iwp-mi-bulk .iwp-btn--link { background: none; color: #C9BFFF; }
.iwp-mi-when { display: flex; flex-direction: column; gap: 8px; }
.iwp-mi-when label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--iw-line); border-radius: 12px; cursor: pointer; }
.iwp-mi-when label:has(input:checked) { border-color: var(--iw-purple); background: #F6F4FF; }
.iwp-mi-when input[type="radio"] { accent-color: var(--iw-purple); }
@media (max-width: 640px) { .iwp-mi-row { padding: 10px 14px; } .iwp-mi-acts { margin-left: 30px; } }

/* ---------- login */
.iwp-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.iwp-login-card { width: 100%; max-width: 400px; background: #FFFFFF; border: 1px solid var(--iw-line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.iwp-login-card h1 { font-size: 26px; font-weight: 600; }
.iwp-login-card form { display: flex; flex-direction: column; gap: 14px; }
.iwp-login-card label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.iwp-login-card .iwp-check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.iwp-login-site { margin: 0; font-size: 13px; color: var(--iw-ink); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.iwp-login-meta { margin: 0; font-size: 13px; color: var(--iw-muted); }
.iwp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.iwp-upper { text-transform: uppercase; }
.iwp-upper::placeholder { text-transform: none; }

/* Phones: the menu folds behind a button so pages start at the top. */
.iwp-menu-btn { display: none; }
@media (max-width: 820px) {
	.iwp-brand { display: flex; align-items: center; padding: 0 4px 0 0; }
	.iwp-menu-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #3F3F46; background: #1F1F24; color: #FFFFFF; border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; cursor: pointer; }
	.iwp-menu-btn .iwp-count { background: var(--iw-purple); color: #fff; font-size: 12px; border-radius: 999px; padding: 1px 7px; }
	.iwp-side:not(.is-open) > :not(.iwp-brand) { display: none; }
	.iwp-side.is-open .iwp-brand { padding-bottom: 10px; }
}

/* the dashboard's own update notice (assets/app/main.js#UpdateNotice) */
.iwp-update { max-width: 1560px; }

/* ---------- event requests (assets/app/pages/quotes.js) */
.iwp-h3 { font-size: 15px; font-weight: 600; margin: 8px 0 0; }
.iwp-check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.iwp-qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.iwp-qlines { display: flex; flex-direction: column; gap: 10px; }
.iwp-qline { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--iw-line); border-radius: 12px; }
.iwp-qline-nums { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.iwp-qline-nums .iwp-label { width: 110px; }
.iwp-qline-amt { flex: 1; text-align: right; font-weight: 600; padding-bottom: 8px; white-space: nowrap; }
.iwp-savebar { position: sticky; bottom: 12px; z-index: 5; background: #FFFFFF; border: 1px solid var(--iw-line); border-radius: 14px; padding: 10px 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); }

/* ---------- catalog: list + product editor (assets/app/pages/catalog.js) */
.iwp-table .iwp-ck { width: 34px; padding-right: 0; }
.iwp-table input[type="checkbox"], .iwp-cattree input, .iwp-vtable input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--iw-purple); flex: none; }
.iwp-table tr.is-picked td { background: #F6F4FF; }
.iwp-row-link { color: inherit; text-decoration: none; }
.iwp-row-link:hover b { color: var(--iw-ink); text-decoration: underline; }
.iwp-price { white-space: nowrap; }
.iwp-price s { color: var(--iw-faint); margin-right: 2px; }
.iwp-bulk-prev { margin: 6px 0 0; padding-left: 18px; max-height: 220px; overflow-y: auto; }
.iwp-pe { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); grid-template-areas: "main side" "wide side"; gap: 16px; align-items: start; }
.iwp-pe-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.iwp-pe-main { grid-area: main; }
.iwp-pe-side { grid-area: side; }
.iwp-pe-wide { grid-area: wide; }
@media (max-width: 1100px) { .iwp-pe { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "wide" "side"; } }
.iwp-options--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.iwp-rte { border: 1px solid var(--iw-line-2); border-radius: 10px; background: #FFFFFF; font-weight: 400; min-width: 0; }
.iwp-rte:focus-within { outline: 2px solid var(--iw-purple); outline-offset: 1px; border-color: var(--iw-purple); }
.iwp-rte-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 5px 6px; border-bottom: 1px solid var(--iw-line); }
.iwp-rte-bar button { border: 0; background: none; border-radius: 8px; padding: 5px 9px; font-size: 13px; cursor: pointer; color: var(--iw-text); }
.iwp-rte-bar button:hover { background: var(--iw-bg); }
.iwp-rte-sep { width: 1px; align-self: stretch; background: var(--iw-line); margin: 3px 4px; }
.iwp-rte-body { padding: 10px 14px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; max-height: 520px; overflow-y: auto; }
.iwp-rte-body:focus { outline: none; }
.iwp-rte-body p { margin: 0 0 10px; }
.iwp-rte-body ul, .iwp-rte-body ol { margin: 0 0 10px; padding-left: 22px; }
.iwp-rte-body h2, .iwp-rte-body h3, .iwp-rte-body h4 { font-size: 16px; font-weight: 600; margin: 4px 0 8px; }
.iwp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.iwp-gallery figure { margin: 0; position: relative; border: 1px solid var(--iw-line); border-radius: 12px; overflow: hidden; background: #FAFAFB; display: flex; flex-direction: column; }
.iwp-gallery figure.is-main { border-color: var(--iw-purple); box-shadow: 0 0 0 1px var(--iw-purple); }
.iwp-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.iwp-gallery figcaption { display: flex; align-items: center; gap: 2px; padding: 4px 8px; font-size: 12px; min-height: 34px; }
.iwp-gx { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 999px; border: 0; background: rgba(17,17,19,0.7); color: #FFFFFF; font-size: 17px; line-height: 1; cursor: pointer; }
.iwp-gmove { border: 1px solid var(--iw-line-2); background: #FFFFFF; border-radius: 8px; width: 26px; height: 26px; cursor: pointer; font-size: 16px; line-height: 1; }
.iwp-gallery-add { border: 1.5px dashed #C4C4CC; border-radius: 12px; background: #FAFAFB; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12px; min-height: 130px; text-align: center; }
.iwp-tagbox { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 8px; border: 1px solid var(--iw-line-2); border-radius: 10px; background: #FFFFFF; min-height: 44px; font-weight: 400; }
.iwp-tagbox:focus-within { outline: 2px solid var(--iw-purple); outline-offset: 1px; border-color: var(--iw-purple); }
.iwp-tagbox input { border: 0; outline: 0; flex: 1; min-width: 110px; font: inherit; font-size: 15px; padding: 4px; background: none; }
.iwp-tag { display: inline-flex; align-items: center; gap: 2px; background: var(--iw-tint); color: var(--iw-ink); border-radius: 999px; padding: 3px 4px 3px 11px; font-size: 13px; font-weight: 500; }
.iwp-tag button { border: 0; background: none; color: inherit; cursor: pointer; width: 22px; height: 22px; border-radius: 999px; font-size: 15px; line-height: 1; }
.iwp-tag button:hover { background: #E2DBFF; }
.iwp-cattree { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; border: 1px solid var(--iw-line); border-radius: 10px; padding: 6px 10px; }
.iwp-cattree label { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 4px 0; cursor: pointer; }
.iwp-attr { display: grid; grid-template-columns: minmax(140px, 200px) minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--iw-line); border-radius: 12px; background: #FAFAFB; }
@media (max-width: 640px) { .iwp-attr { grid-template-columns: minmax(0, 1fr) auto; } .iwp-attr > .iwp-label:nth-child(2) { grid-column: 1 / -1; grid-row: 2; } .iwp-attr .iwp-x { grid-column: 2; grid-row: 1; } }
.iwp-fill { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.iwp-fill .fld { width: 120px; }
.iwp-vtable { min-width: 640px; }
.iwp-vtable td { padding: 8px 6px; vertical-align: top; }
.iwp-vtable td:nth-child(2) { padding-top: 18px; min-width: 120px; }
.iwp-vtable td:last-child { padding-top: 14px; }
.iwp-vtable .fld { padding: 8px 9px; font-size: 14px; min-width: 64px; }
.iwp-vtable tr.is-off td:not(:last-child) { opacity: 0.5; }
.iwp-vphoto { width: 44px; height: 44px; border-radius: 10px; border: 1.5px dashed #C4C4CC; background: #FAFAFB; padding: 0; cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--iw-muted); font-size: 18px; }
.iwp-vphoto img { width: 100%; height: 100%; object-fit: cover; }
.iwp-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; max-height: 60vh; overflow-y: auto; }
.iwp-pick button { border: 2px solid var(--iw-line); border-radius: 12px; padding: 0; background: #FAFAFB; cursor: pointer; overflow: hidden; text-align: left; font: inherit; color: var(--iw-text); }
.iwp-pick button[aria-pressed="true"] { border-color: var(--iw-purple); box-shadow: 0 0 0 2px var(--iw-tint); }
.iwp-pick img, .iwp-pick-none { width: 100%; aspect-ratio: 1; object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--iw-muted); background: #FFFFFF; }
.iwp-pick span { display: block; font-size: 12px; padding: 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- bookings (1.15.0) */
.iwp-bk-cols { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .iwp-bk-cols { grid-template-columns: 1fr; } }
.iwp-bk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.iwp-bk-dow { text-align: center; font-size: 12px; font-weight: 600; color: var(--iw-muted); padding: 2px 0; }
.iwp-bk-day { aspect-ratio: 1; min-height: 38px; border: 1px solid var(--iw-line); border-radius: 10px; background: #FFFFFF; cursor: pointer; font: inherit; font-size: 13px; color: var(--iw-text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0; }
.iwp-bk-day.is-past { background: #FAFAFB; color: var(--iw-muted); }
.iwp-bk-day.is-today { border-color: var(--iw-purple); font-weight: 700; }
.iwp-bk-day.is-on { background: var(--iw-purple); border-color: var(--iw-purple); color: #FFFFFF; }
.iwp-bk-day i { font-style: normal; font-size: 11px; font-weight: 700; line-height: 1; min-width: 18px; padding: 2px 5px; border-radius: 999px; background: var(--iw-tint); color: var(--iw-ink); }
.iwp-bk-day i.is-wait { background: var(--iw-amber-bg); color: var(--iw-amber); }
.iwp-bk-day.is-on i { background: #FFFFFF; color: var(--iw-ink); }
.iwp-bk-item { text-align: left; cursor: pointer; width: 100%; font: inherit; }
.iwp-bk-item.is-off { opacity: 0.6; }
.iwp-bk-time { font-weight: 700; min-width: 72px; font-size: 14px; }
.iwp-bk-row { flex-wrap: wrap; }
.iwp-bk-open { flex: 1; min-width: 180px; display: flex; flex-direction: column; text-align: left; border: none; background: none; padding: 0; cursor: pointer; font: inherit; color: inherit; }

/* catalog: add-ons on a product (from the core plugin's product options) */
.iwp-addon { border: 1px solid var(--iw-line-2); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.iwp-addon-head { display: flex; align-items: center; gap: 10px; }
.iwp-addon-toggle { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.iwp-addon-toggle b { font-weight: 600; }
.iwp-addon-body { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; border-top: 1px solid var(--iw-line-2); }
.iwp-choices { display: flex; flex-direction: column; gap: 6px; }
.iwp-choice { display: flex; align-items: center; gap: 8px; }
.iwp-choice > .fld { flex: 1; min-width: 0; }
.iwp-choice-price { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--iw-muted, #6B6B73); flex: none; }
.iwp-choice-price .fld { width: 80px; }
.iwp-choice-x { width: 30px; height: 30px; flex: none; border-radius: 999px; border: 1px solid var(--iw-line-2); background: #FFFFFF; font-size: 17px; line-height: 1; cursor: pointer; color: inherit; }
.iwp-choice-add { display: flex; gap: 8px; }
.iwp-choice-add .fld { flex: 1; min-width: 0; }

/* catalog: products customers can't buy (no price, sold out, no shipping set up) */
.iwp-cant { color: var(--iw-red); }
.iwp-cant-list { margin: 6px 0 0; padding-left: 18px; }

/* catalog: price rows with Any (the WooCommerce way) */
.iwp-vtable tr.is-dupe td { background: var(--iw-red-bg); }
.iwp-vtable select.fld { min-width: 120px; }
.iwp-price-say { border-radius: 10px; background: #F6F6F7; padding: 10px 12px; font-size: 14px; }
.iwp-price-say p { margin: 4px 0 0; }

/* quote form: sized fields, read-only summaries with Edit, questions with conditions (Nick 20 Nov 2026) */
.iwp-qblocks { display: flex; flex-direction: column; gap: 10px; }
.iwp-qblock { display: flex; flex-direction: column; gap: 12px; padding: 12px 14px; border: 1px solid var(--iw-line); border-radius: 12px; background: #FFFFFF; }
.iwp-qblock.is-editing { border-color: var(--iw-ink); box-shadow: 0 0 0 3px var(--iw-tint); }
.iwp-qsum { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.iwp-qsum-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.iwp-qsum-body p { margin: 0; }
.iwp-qedit { flex: none; }
.iwp-qrow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.iwp-qrow > .iwp-label { flex: 1 1 100%; }
.iwp-qrow > .iwp-label.q-half { flex: 1 1 280px; }
.iwp-qrow > .iwp-label.q-num { flex: 0 0 auto; }
/* Never wider than the row: a number label sized by its hint ("each, gallon, half pan") overran the card on phones. */
.iwp-qrow > .iwp-label { min-width: 0; max-width: 100%; }
.iwp-qrow > .iwp-label.q-sel { flex: 0 1 300px; }
.iwp-unit { display: flex; align-items: center; gap: 8px; }
.iwp-unit .fld { width: 140px; flex: none; }
.iwp-unit > span { color: var(--iw-muted); font-size: 14px; font-weight: 400; white-space: nowrap; }
/* Extras in groups (quote setup): each group a quiet panel holding its extras. */
.iwp-qgroup { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--iw-line); border-radius: 14px; background: #FAFAFB; }
.iwp-qgroup-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.iwp-qgroup-head h3 { margin: 0; font-size: 16px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.iwp-qgroup-head .iwp-label { flex: 1 1 240px; }
.iwp-qopt { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.iwp-qopt > .iwp-label:first-child { flex: 1 1 200px; }
.iwp-qcond { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.iwp-qcond > b { font-size: 14px; font-weight: 500; min-width: 150px; }
.iwp-qlist { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.iwp-qlist li > span { display: block; }
@media (max-width: 640px) { .iwp-qrow > .iwp-label.q-sel { flex: 1 1 100%; } .iwp-qcond > b { flex: 1 1 100%; min-width: 0; } .iwp-qsum { flex-direction: column; } }

/* catalog: the Categories page */
.iwp-catlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.iwp-catlist li { border-bottom: 1px solid var(--iw-line); padding-top: 8px; padding-bottom: 8px; }
.iwp-catlist li:last-child { border-bottom: 0; }
.iwp-cat-row { display: flex; align-items: center; gap: 10px; }
.iwp-cat-row .grow { flex: 1; }

/* A tool's own screens, in sections (IWP_Outside menu `group`): each section folds like a group, a step in. */
.iwp-side-subfold { padding: 10px 12px 4px 12px; text-transform: none; letter-spacing: 0; font-size: 12.5px; }
