/* The working pages: track.html (a customer's order page) and admin.html (running the orders).
   Loaded after styles.css, and uses its colours and parts. */

.app-main { min-height: calc(100vh - var(--header-h)); }
.narrow { max-width: 46rem; }
.app-loading { display: flex; gap: 0.75rem; align-items: center; justify-content: center; min-height: 50vh; color: var(--muted); font-weight: 600; }
.app-loading[hidden] { display: none; }
.spin { width: 22px; height: 22px; border: 3px solid var(--green-pale); border-top-color: var(--green-dark); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }

.app-card { display: grid; gap: 0.9rem; align-content: start; padding: clamp(1.1rem, 0.9rem + 1vw, 1.6rem); border-radius: var(--r-card); background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.app-card[hidden] { display: none; }
.app-card h2 { font-size: 1.15rem; letter-spacing: -0.01em; }
.app-card > p { color: var(--text-2); font-size: 0.95rem; }
.app-card .btn { justify-self: start; }
.pill { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.65rem; border-radius: 999px; background: var(--bg-2); color: var(--text-2); font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.pill.good { background: var(--green-pale); color: var(--green-deeper); }
.pill.wait { background: #FFF3D6; color: #8A5A00; }
.pill.bad { background: #FDECEA; color: var(--bad); }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- The customer's order page ---------- */
.track-find { padding-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.track-mine { display: grid; gap: 0.6rem; }
.track-mine h2 { font-size: 1.05rem; }
.track-mine ul { display: grid; gap: 0.5rem; padding: 0; list-style: none; }
.track-mine a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.1rem; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-weight: 650; text-decoration: none; }
.track-mine a:hover { box-shadow: inset 0 0 0 1.5px rgba(29, 175, 104, 0.45); }
.track-mine a span { color: var(--muted); font-weight: 500; }

.track { padding-block: clamp(1.75rem, 1.2rem + 2.5vw, 3.5rem) clamp(3rem, 2rem + 4vw, 6rem); }
.track-head { display: grid; gap: 1.25rem 3rem; align-items: end; margin-bottom: 1.5rem; }
.track-head h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem); letter-spacing: -0.03em; }
.track-head .lead { margin-top: 0.4rem; }
@media (min-width: 900px) { .track-head { grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr); } }
.track-progress { display: grid; gap: 0.55rem; padding: 1.1rem 1.25rem; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.track-progress .row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.track-progress b { color: var(--ink); font-size: 1rem; }
.track-progress small { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.bar { position: relative; height: 10px; overflow: hidden; border-radius: 999px; background: var(--bg-2); }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--green-dark)); transition: width 0.8s var(--ease); }
.track-banner { margin-bottom: 1.25rem; padding: 0.9rem 1.2rem; border-radius: 14px; background: var(--green-pale); color: var(--green-deeper); font-weight: 650; }
.track-banner.wait { background: #FFF3D6; color: #8A5A00; }
.track-banner[hidden] { display: none; }
.track-grid { display: grid; gap: 1.25rem; align-items: start; }
.track-side { display: grid; gap: 1.25rem; }
@media (min-width: 960px) {
  .track-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .track-steps-card { position: sticky; top: calc(var(--header-h) + 1rem); }
}

/* The steps, as a line of dots */
.tsteps { display: grid; padding: 0; list-style: none; }
.tsteps li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0.9rem; padding-bottom: 1.25rem; }
.tsteps li:last-child { padding-bottom: 0; }
.tsteps li::before { content: ""; position: absolute; top: 28px; bottom: 0; left: 13px; width: 2px; background: var(--line); }
.tsteps li:last-child::before { display: none; }
.tsteps li.is-done::before { background: var(--green); }
.tsteps .dot { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--line); }
.tsteps .is-done .dot { background: var(--green); box-shadow: none; }
.tsteps .is-done .dot::after { content: ""; width: 14px; height: 14px; background: #fff; -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat; }
.tsteps .is-now .dot { background: #fff; box-shadow: inset 0 0 0 3px var(--green); }
.tsteps .is-now .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); -webkit-mask: none; mask: none; animation: beat 1.8s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(0.6); opacity: 0.6; } }
@media (prefers-reduced-motion: reduce) { .tsteps .is-now .dot::after { animation: none; } }
.tsteps .body { display: grid; gap: 0.2rem; padding-top: 0.15rem; }
.tsteps .body b { color: var(--ink); font-size: 1rem; }
.tsteps .when { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.tsteps .is-now .when { color: var(--green-deeper); }
.tsteps .body p { color: var(--text-2); font-size: 0.92rem; }
.tsteps .body .btn { justify-self: start; margin-top: 0.4rem; }
.tsteps .later .body b { color: var(--text-2); }
.rounds { display: grid; gap: 0.35rem; margin-top: 0.35rem; }
.rounds span { color: var(--text-2); font-size: 0.88rem; font-weight: 600; }

/* Invoices */
.invoices { display: grid; gap: 0.6rem; padding: 0; list-style: none; }
.invoices li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 1rem; align-items: center; padding: 0.9rem 1rem; border-radius: 14px; background: var(--bg); }
.invoices .what { display: grid; gap: 0.1rem; }
.invoices .what b { color: var(--ink); }
.invoices .what small { color: var(--muted); font-size: 0.82rem; }
.invoices .amt { color: var(--ink); font-size: 1.1rem; font-weight: 750; text-align: right; font-variant-numeric: tabular-nums; }
.invoices .act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.pay-methods { color: var(--muted); font-size: 0.82rem; }

/* Change requests, updates */
.feed { display: grid; gap: 0.75rem; padding: 0; list-style: none; }
.feed li { display: grid; gap: 0.25rem; padding: 0.85rem 1rem; border-radius: 14px; background: var(--bg); }
.feed li p { color: var(--text); font-size: 0.95rem; white-space: pre-line; }
.feed .meta { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.feed li.paid { background: var(--green-pale); }
.ask { display: grid; gap: 0.6rem; }
.ask textarea { width: 100%; min-height: 110px; padding: 0.8rem 0.95rem; border: 0; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font: 500 1rem/1.45 var(--font); resize: vertical; }
.ask textarea:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--green); outline: none; }
.ask .row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: space-between; }
/* Their typed name as their signature: the fixed price, the finished site. */
.ask.sign label { color: var(--ink); font-size: 0.92rem; font-weight: 650; }
.ask.sign input[type="text"] { width: 100%; min-height: 48px; padding: 0.7rem 0.95rem; border: 0; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font: 600 1.05rem var(--font); }
.ask.sign input[type="text"]:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--green); outline: none; }
.accept-card { box-shadow: inset 0 0 0 2px rgba(29, 175, 104, 0.55), var(--shadow-sm); }
.accept-card .btn-glass { justify-self: start; }
.inv-doc { color: var(--green-deeper); font-weight: 650; }
.billing-edit summary { color: var(--green-deeper); font-weight: 650; cursor: pointer; }
.billing-edit .ask { margin-top: 0.8rem; }
#t-plan .hint { margin: 0; }

/* Review */
.stars { display: flex; gap: 0.25rem; margin: 0; padding: 0; border: 0; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #C9D3D9; cursor: pointer; }
.stars label svg { width: 30px; height: 30px; fill: currentColor; }
.stars label.on { color: #F2B21B; }
.stars input:focus-visible + label { outline: 2px solid var(--green); outline-offset: 2px; }
.check-line { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--text-2); font-size: 0.92rem; cursor: pointer; }
.check-line input { flex: none; width: 20px; height: 20px; margin-top: 0.1rem; accent-color: var(--green-dark); }

/* Refer a friend */
.refer { background: linear-gradient(135deg, #0F3A2A, #0B2A3F); color: #fff; box-shadow: var(--shadow); }
.refer h2 { color: #fff; }
.refer > p { color: rgba(255, 255, 255, 0.82) !important; }
.refer .link { overflow-wrap: anywhere; padding: 0.7rem 0.9rem; border-radius: 12px; background: rgba(255, 255, 255, 0.1); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.88rem; }
.refer .ctas { gap: 0.5rem; }

/* ---------- Admin ---------- */
.app-bar { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(244, 248, 251, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.app-bar-row { display: flex; align-items: center; gap: 0.75rem; min-height: 60px; }
.app-bar .logo { width: 118px; height: 28px; }
.app-tag { padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.app-who { margin-left: auto; overflow: hidden; color: var(--muted); font-size: 0.85rem; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 559.98px) { .app-who { display: none; } #a-signout { margin-left: auto; } }
.admin { --header-h: 61px; }
.admin-signin { display: grid; place-items: center; min-height: 70vh; padding: 2rem var(--gutter); }
.admin-signin[hidden] { display: none; }
.admin-signin .form-card { display: grid; gap: 1rem; width: min(26rem, 100%); }
/* The tracker's "find my order" form: room between the fields and the button. */
.track-find .form-card { display: grid; gap: 1.1rem; }
.admin-signin h1 { font-size: 1.6rem; }
.admin-signin .btn { justify-self: stretch; }
.local-code { padding: 0.7rem 0.9rem; border-radius: 12px; background: #FFF3D6; color: #8A5A00; font-size: 0.9rem; font-weight: 650; }

/* minmax(0, 1fr): a long title or a row of buttons never makes the page wider than a phone. */
.admin-app { display: grid; grid-template-columns: minmax(0, 1fr); }
.admin-app[hidden] { display: none; }
.admin-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.9rem; align-content: start; padding: 1rem var(--gutter) 5rem; }
.admin-tabs { display: flex; gap: 0.35rem; padding: 4px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.admin-tabs button { flex: 1; min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font: 650 0.95rem var(--font); cursor: pointer; }
.admin-tabs [aria-selected="true"] { background: var(--ink); color: #fff; }
.admin-tools { display: grid; gap: 0.6rem; }
.admin-tools input[type="search"] { width: 100%; min-height: 48px; padding: 0.7rem 0.95rem; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font: 500 1rem var(--font); }
.admin-tools input[type="search"]:focus { box-shadow: inset 0 0 0 2px var(--green); outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips button { min-height: 40px; padding: 0.3rem 0.9rem; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font: 650 0.86rem var(--font); cursor: pointer; }
.chips [aria-pressed="true"] { background: var(--green-pale); box-shadow: inset 0 0 0 1.5px rgba(29, 175, 104, 0.5); color: var(--green-deeper); }
.order-rows { display: grid; gap: 0.6rem; padding: 0; list-style: none; }
.order-rows > li > button, .order-rows .prow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.3rem 0.75rem; width: 100%; padding: 0.9rem 1rem; border: 0; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.order-rows > li > button:hover { box-shadow: inset 0 0 0 1.5px rgba(29, 175, 104, 0.45); }
.order-rows > li > button[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--green); }
.order-rows b { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.order-rows .sub { overflow: hidden; color: var(--muted); font-size: 0.84rem; text-overflow: ellipsis; white-space: nowrap; }
.order-rows .right { display: grid; justify-items: end; gap: 0.3rem; }
.order-rows .money { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.order-rows .flags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.admin-empty { padding: 2rem 0; text-align: center; }
.admin-lead-hint { margin: 0.9rem 0.2rem 0.5rem; }

/* Today: what needs you, at the top of the list. A yellow tile wants something from you. */
.today { display: grid; gap: 0.55rem; }
.today h2 { color: var(--ink); font-size: 1rem; }
.today h2 span { color: var(--muted); font-weight: 600; }
.today-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; }
.today-tile { display: grid; align-content: start; gap: 0.12rem; min-width: 0; min-height: 76px; padding: 0.6rem 0.7rem; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font: inherit; text-align: left; cursor: pointer; }
.today-tile:hover { box-shadow: inset 0 0 0 1.5px rgba(29, 175, 104, 0.45); }
.today-tile b { overflow: hidden; color: var(--ink); font-size: 1.3rem; font-weight: 750; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.today-tile span { font-size: 0.78rem; font-weight: 650; line-height: 1.25; }
.today-tile small { color: var(--muted); font-size: 0.72rem; line-height: 1.25; }
.today-tile.is-act { background: #FFF8E6; box-shadow: inset 0 0 0 1px #F0D48C; }
.today-tile.is-act b { color: #7A4F00; }
.today-tile.is-warn small { color: var(--bad); font-weight: 700; }
.today-tile.is-zero b { color: #A9B6BF; }
/* Seven tabs: two rows on a phone, one row when there is room. */
.admin-tabs { flex-wrap: wrap; }
.admin-tabs button { flex: 1 1 auto; min-width: 4.5rem; padding-inline: 0.55rem; font-size: 0.9rem; }
.admin-pane-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; margin: 0.4rem 0.2rem 0.5rem; }
.admin-pane-top .hint { margin: 0; }
/* A message, its status chips and a site's details take the card's full width. */
.order-rows .prow > .msg, .order-rows .prow > .status-chips, .order-rows .prow > .kv { grid-column: 1 / -1; }
.order-rows .msg { margin: 0.35rem 0 0.15rem; color: var(--text); font-size: 0.95rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.status-chips { gap: 0.3rem; margin-top: 0.2rem; }
.status-chips button { min-height: 36px; padding: 0.2rem 0.85rem; font-size: 0.8rem; }
.site-kv { margin-top: 0.5rem; }
.site-kv dd { font-size: 0.9rem; }
.editor-chip { display: inline-flex; align-items: center; gap: 0.15rem; max-width: 100%; margin: 0 0.35rem 0.35rem 0; padding: 0.1rem 0.15rem 0.1rem 0.65rem; border-radius: 999px; background: var(--bg-2); color: var(--ink); font-size: 0.85rem; overflow-wrap: normal; white-space: nowrap; }
/* A phone: each detail of a site under its label, so an email address has the whole width. */
@media (max-width: 559.98px) { .order-rows .site-kv div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; } }
.editor-chip button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font: 700 1.05rem var(--font); cursor: pointer; }
.editor-chip button:hover { background: #FDECEA; color: var(--bad); }

/* Chats with Clovi */
.top-asks { gap: 0.6rem; padding: 0.85rem 1rem; }
.top-asks summary { color: var(--ink); font-weight: 700; cursor: pointer; }
.top-asks ol { display: grid; gap: 0.4rem; margin: 0; padding-left: 1.3rem; }
.top-asks li { color: var(--text); font-size: 0.9rem; }
.top-asks li span { margin-right: 0.5rem; }
.top-asks li b { color: var(--green-deeper); font-variant-numeric: tabular-nums; }
.convo { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.convo li { display: grid; gap: 0.3rem; max-width: min(40rem, 92%); padding: 0.7rem 0.9rem; border-radius: 16px; }
.convo li small { color: var(--muted); font-size: 0.74rem; font-weight: 650; }
.convo li p { margin: 0; color: var(--text); font-size: 0.95rem; line-height: 1.55; overflow-wrap: anywhere; }
.convo li .pill { justify-self: start; white-space: normal; }
.convo .q { justify-self: end; border-bottom-right-radius: 5px; background: var(--green-pale); }
.convo .a { justify-self: start; border-bottom-left-radius: 5px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }

/* Articles: the Google preview, the article as readers see it, and the form to change it. */
.art-note { margin: 0; color: var(--ink); font-weight: 650; }
.serp { display: grid; gap: 0.2rem; padding: 0.9rem 1rem; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-family: Arial, Helvetica, sans-serif; }
.serp-url { color: #4D5156; font-size: 0.8rem; }
.serp-title { color: #1A0DAB; font-size: 1.15rem; font-weight: 400; line-height: 1.3; }
.serp-desc { margin: 0; color: #4D5156; font-size: 0.88rem; line-height: 1.5; }
.art-preview { gap: 0.7rem; color: var(--text); }
.art-preview h1 { font-size: 1.5rem; line-height: 1.25; }
.art-preview h2 { margin-top: 0.8rem; font-size: 1.15rem; }
.art-preview h3 { margin-top: 0.4rem; font-size: 1rem; }
.art-preview p, .art-preview li { margin: 0; font-size: 0.98rem; line-height: 1.65; }
.art-preview ul, .art-preview ol { display: grid; gap: 0.3rem; margin: 0; padding-left: 1.3rem; }
.art-preview a { color: var(--green-deeper); }
.art-answer { padding: 0.9rem 1rem; border-radius: 12px; background: var(--green-pale); color: var(--ink) !important; font-weight: 550; }
.art-box { display: grid; gap: 0.45rem; padding: 0.9rem 1rem; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.art-box b { color: var(--ink); }
.art-tip { padding: 0.65rem 0.9rem; border-left: 3px solid var(--green); border-radius: 0 10px 10px 0; background: var(--bg); }
.art-table { overflow-x: auto; }
.art-table table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.art-table th, .art-table td { padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.art-table caption { margin-bottom: 0.4rem; color: var(--muted); font-size: 0.85rem; text-align: left; }
.art-form { --pad: clamp(1.1rem, 0.9rem + 1vw, 1.6rem); gap: 1rem; }
.art-form .af { display: grid; gap: 0.35rem; color: var(--ink); font-size: 0.9rem; font-weight: 650; }
.art-form .af-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 0.75rem; }
.art-form textarea { overflow: hidden; }
.art-form input, .art-form textarea { width: 100%; padding: 0.65rem 0.8rem; border: 0; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font: 500 0.95rem/1.55 var(--font); }
.art-form input:focus, .art-form textarea:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--green); outline: none; }
.art-form textarea { resize: vertical; }
.art-form .count { color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.art-form .count.bad { color: var(--bad); }
.af-sec { display: grid; gap: 0.8rem; min-width: 0; margin: 0; padding: 0.9rem 1rem 1rem; border: 0; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.af-sec legend { padding: 0 0.4rem; color: var(--green-deeper); font-size: 0.85rem; font-weight: 750; }
.art-save { position: sticky; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 calc(var(--pad) * -1) calc(var(--pad) * -1); padding: 0.8rem var(--pad) calc(0.8rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); border-radius: 0 0 var(--r-card) var(--r-card); background: rgba(255, 255, 255, 0.96); }
/* Nothing open: a hint beside the list on a wide screen; nothing at all on a phone. */
.detail-empty { justify-self: center; margin: 22vh 0 0; color: var(--muted); font-weight: 600; text-align: center; }
@media (max-width: 999.98px) { .admin-detail.is-empty { display: none; } }

.admin-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-content: start; padding: 1rem var(--gutter) 6rem; }
.admin-detail[hidden] { display: none; }
.detail-top { position: sticky; top: 61px; z-index: 5; display: flex; align-items: center; gap: 0.6rem; margin: -1rem calc(var(--gutter) * -1) 0; padding: 0.6rem var(--gutter); border-bottom: 1px solid var(--line); background: rgba(244, 248, 251, 0.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.detail-top h2 { flex: 1 1 auto; min-width: 0; overflow: hidden; font-size: 1.05rem; text-overflow: ellipsis; white-space: nowrap; }
.detail-top .back { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); cursor: pointer; }
.detail-top .back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.quick a, .quick button { display: grid; justify-items: center; gap: 0.25rem; min-height: 64px; padding: 0.55rem 0.3rem; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 650 0.78rem var(--font); text-align: center; text-decoration: none; cursor: pointer; }
.quick svg { width: 22px; height: 22px; fill: none; stroke: var(--green-dark); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.quick [aria-disabled="true"] { opacity: 0.4; pointer-events: none; }
.stage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; }
.stage-grid button { min-height: 48px; padding: 0.45rem 0.6rem; border: 0; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font: 650 0.86rem var(--font); text-align: left; cursor: pointer; }
/* .past, not .done: styles.css gives .done (the order page thank-you screen) its own layout. */
.stage-grid button.past { color: var(--green-deeper); }
.stage-grid button.past::before { content: "✓ "; }
.stage-grid button[aria-pressed="true"] { background: var(--green-dark); box-shadow: none; color: #fff; }
.stage-grid button.cancel { color: var(--bad); }
@media (min-width: 560px) { .stage-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kv { display: grid; gap: 0.5rem; margin: 0; }
.kv div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.75rem; }
.kv dt { color: var(--muted); font-size: 0.86rem; font-weight: 600; }
.kv dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 0.95rem; }
.inline-form { display: flex; gap: 0.5rem; }
.inline-form input { flex: 1; min-width: 0; min-height: 46px; padding: 0.6rem 0.85rem; border: 0; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font: 500 0.95rem var(--font); }
.inline-form input:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--green); outline: none; }
.counter { display: flex; align-items: center; gap: 0.75rem; }
.counter button { width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 700 1.3rem var(--font); cursor: pointer; }
.counter b { min-width: 6.5rem; color: var(--ink); font-size: 1.05rem; text-align: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.btn-row .btn { justify-self: auto; }
.brief { overflow: auto; max-height: 22rem; margin: 0; padding: 0.9rem; border-radius: 12px; background: var(--bg); color: var(--text-2); font: 0.85rem/1.55 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; }
details.more summary { color: var(--green-deeper); font-weight: 650; cursor: pointer; }

.admin-sheet { position: fixed; inset: 0; z-index: 80; display: grid; align-items: end; background: rgba(10, 22, 30, 0.5); }
.admin-sheet[hidden] { display: none; }
.admin-sheet .sheet { display: grid; gap: 0.9rem; max-height: 88vh; overflow: auto; padding: 1.25rem var(--gutter) calc(1.25rem + env(safe-area-inset-bottom, 0px)); border-radius: 22px 22px 0 0; background: #fff; box-shadow: var(--shadow-lg); }
.admin-sheet h2 { font-size: 1.2rem; }
.admin-sheet textarea, .admin-sheet input, .admin-sheet select { width: 100%; min-height: 46px; padding: 0.7rem 0.85rem; border: 0; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font: 500 0.98rem/1.45 var(--font); }
.admin-sheet textarea { min-height: 150px; resize: vertical; }
.admin-sheet label { display: grid; gap: 0.35rem; color: var(--ink); font-size: 0.9rem; font-weight: 600; }
/* A tick box in a sheet stays a tick box, beside its words. */
.admin-sheet label.check-line { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 500; }
.admin-sheet input[type="checkbox"] { width: 18px; min-height: 0; height: 18px; padding: 0; border-radius: 4px; background: none; box-shadow: none; accent-color: var(--green); }
@media (min-width: 700px) { .admin-sheet { align-items: center; justify-items: center; } .admin-sheet .sheet { width: min(36rem, calc(100vw - 2rem)); border-radius: 22px; } }
.admin-toast { position: fixed; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 90; max-width: calc(100vw - 2rem); padding: 0.75rem 1.1rem; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; transform: translateX(-50%); box-shadow: var(--shadow-lg); }
.admin-toast[hidden] { display: none; }
.admin-toast button { margin-left: 0.6rem; padding: 0.2rem 0.7rem; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.18); color: #fff; font: 700 0.82rem var(--font); cursor: pointer; }
@media (max-width: 999.98px) { .editor-page .admin-toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }

/* A phone or tablet: an open order has the whole screen; its back arrow returns to the list. */
@media (max-width: 999.98px) { .admin-app.open .admin-list { display: none; } }
/* Enquiries, leads, sites and partners have no detail panel: their list takes the whole width. */
@media (min-width: 1000px) {
  .admin-app.is-wide { grid-template-columns: minmax(0, 1fr); }
  .admin-app.is-wide .admin-list { position: static; width: min(64rem, 100%); max-height: none; overflow: visible; margin-inline: auto; border-right: 0; }
  .admin-app.is-wide .admin-detail { display: none; }
  .admin-app.is-wide .today-grid { grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }
}
/* A wide screen: the list on the left, the order on the right. */
@media (min-width: 1000px) {
  .admin-app { grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); min-height: calc(100vh - 61px); }
  .admin-list { position: sticky; top: 61px; max-height: calc(100vh - 61px); overflow: auto; padding-inline: 1.25rem; border-right: 1px solid var(--line); }
  .admin-detail { padding: 1.25rem 2rem 4rem; }
  .admin-detail .back { display: none; }
  .detail-top { top: 61px; margin: -1.25rem -2rem 0; padding: 0.75rem 2rem; }
  /* The cards in a centred column, so a wide screen has even space on both sides. */
  .admin-detail > :not(.detail-top) { width: 100%; max-width: 52rem; justify-self: center; }
}

/* ---------- The self-edit editor (editor.html, assets/editor.js) ---------- */
.editor-page { --header-h: 61px; }
.editor { display: grid; grid-template-rows: auto auto 1fr; min-height: calc(100vh - 61px); }
.editor[hidden] { display: none; }
.e-bar { position: sticky; top: 61px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; padding: 0.65rem var(--gutter); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.e-bar-l { display: grid; gap: 0.1rem; min-width: 0; }
.e-bar-l .e-title { overflow: hidden; margin: 0; color: var(--ink); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.e-status { color: var(--green-deeper); font-size: 0.8rem; font-weight: 650; }
.e-bar-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.6rem; }
/* The site checkup: how many things are left to do, always in view. */
.e-check { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 26px; padding: 0.15rem 0.6rem; border: 0; border-radius: 999px; background: #FFF3D6; color: #6B4700; font: 700 0.74rem var(--font); cursor: pointer; }
.e-check::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #E0A100; }
.e-check:hover { background: #FFEABA; }
.e-check.is-done { background: var(--green-pale); color: var(--green-deeper); }
.e-check.is-done::before { background: var(--green); }
.e-check[hidden] { display: none; }
.e-status.pending { color: #8A5A00; }
.e-bar-r { display: flex; align-items: center; gap: 0.5rem; }
.e-bar-r .btn[disabled] { opacity: 0.45; cursor: default; box-shadow: none; }
.e-history { display: flex; gap: 0.2rem; }
.e-icon { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: 400 1.4rem/1 var(--font); cursor: pointer; }
.e-icon:hover:not(:disabled) { background: var(--bg-2); }
.e-icon:disabled { opacity: 0.3; cursor: default; }
.e-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.e-device button { min-height: 36px; }
.e-demo { margin: 0; padding: 0.6rem var(--gutter); background: #FFF3D6; color: #6B4700; font-size: 0.86rem; }
.e-demo[hidden] { display: none; }
.e-demo button { margin-left: 0.3rem; padding: 0; border: 0; background: none; color: inherit; font: 700 0.86rem var(--font); text-decoration: underline; cursor: pointer; }
.e-demo:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.55rem; }
.e-demo-kinds { display: inline-flex; flex-wrap: wrap; gap: 0.3rem; }
.e-demo-kinds button { min-height: 30px; margin: 0; padding: 0.2rem 0.75rem; border-radius: 999px; background: rgba(255, 255, 255, 0.75); box-shadow: inset 0 0 0 1px rgba(107, 71, 0, 0.28); font-size: 0.8rem; font-weight: 650; text-decoration: none; }
.e-demo-kinds button:hover { background: #fff; }
.e-demo-kinds button[aria-pressed="true"] { background: #6B4700; box-shadow: none; color: #fff; }
.e-demo .e-demo-reset { margin-left: auto; }
/* Like Wix: the page fills the screen; a row of icons opens one panel at a time. */
.e-main { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.e-rail { position: sticky; z-index: 15; display: flex; gap: 0.2rem; background: #fff; scrollbar-width: none; }
.e-rail button { display: grid; flex: 1 0 auto; justify-items: center; gap: 0.2rem; min-width: 58px; padding: 0.45rem 0.35rem; border: 0; border-radius: 12px; background: transparent; color: var(--text-2); font: 650 0.7rem var(--font); cursor: pointer; }
.e-rail button:hover { background: var(--bg); color: var(--ink); }
.e-rail button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.e-rail svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.e-side { z-index: 14; display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--bg); }
.e-side[hidden] { display: none; }
.e-side-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0.6rem 0.6rem var(--gutter); border-bottom: 1px solid var(--line); background: #fff; }
.e-side-head h2 { margin: 0; font-size: 1.05rem; }
.e-form { display: grid; gap: 0.9rem; align-content: start; overflow: auto; padding: 1rem var(--gutter) 2rem; }
.e-tip { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; margin: 0.8rem auto 0; width: fit-content; max-width: calc(100% - 2rem); padding: 0.55rem 0.9rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.86rem; }
.e-tip[hidden] { display: none; }
.e-look { display: inline-flex; align-items: center; gap: 0.4rem; }
.e-look svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.e-look[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.e-bar-l { flex: 1 1 12rem; max-width: 100%; }
.e-bar-r { flex-wrap: wrap; justify-content: flex-end; }
/* A small phone: Preview is its eye alone (the word stays, for screen readers). */
@media (max-width: 419.98px) { .e-look { padding-inline: 0.6rem; } .e-look span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.e-look-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.3rem 0.6rem; width: fit-content; max-width: calc(100% - 2rem); margin: 0.8rem auto 0; padding: 0.5rem 0.6rem 0.5rem 1rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.86rem; }
.e-look-bar[hidden] { display: none; }
.e-look-bar button { min-height: 30px; padding: 0.2rem 0.85rem; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: 700 0.8rem var(--font); cursor: pointer; }
.editor.is-looking .e-rail, .editor.is-looking .e-side, .editor.is-looking .e-tip, .editor.is-looking .e-pagebar-add { display: none; }
.editor.is-looking .e-main { grid-template-columns: minmax(0, 1fr); }
.editor.is-looking .e-preview { grid-column: 1 / -1; }
.is-looking .ed-sec-tools, .is-looking .ed-tools, .is-looking .ed-insert, .is-looking .ed-add, .is-looking .ed-photo-add, .is-looking .ed-hidden, .is-looking .ed-photo-tag, .is-looking .ed-hours-tag, .is-looking .ab-insert, .is-looking .ab-adder, .is-looking .es-post-adds, .is-looking .es-top .ed-off, .is-looking .es-soon { display: none !important; }
.is-looking .es [data-ed] { outline: none !important; cursor: auto; }
.is-looking .es [data-ed]:empty { display: none; }
.is-looking .es [data-photo], .is-looking .es img[data-act] { outline: none !important; cursor: auto; }
.is-looking .es-news small input, .is-looking .es-article-date input { pointer-events: none; }
.e-pagebar { display: flex; align-items: center; gap: 0.3rem; overflow-x: auto; width: fit-content; max-width: calc(100% - 2rem); margin: 0.8rem auto 0; padding: 0.3rem; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); scrollbar-width: none; }
.e-pagebar::-webkit-scrollbar { display: none; }
.e-pagebar-label { flex: none; padding: 0 0.35rem 0 0.75rem; color: var(--muted); font-size: 0.7rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.e-pagebar button { flex: none; min-height: 34px; padding: 0.3rem 0.85rem; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font: 650 0.84rem var(--font); white-space: nowrap; cursor: pointer; }
.e-pagebar button:hover { background: var(--bg); color: var(--ink); }
.e-pagebar button[aria-current="page"] { background: var(--ink); color: #fff; }
.e-pagebar .e-pagebar-add { color: var(--green-deeper); }
.e-pagebar-post { display: inline-flex; flex: none; align-items: center; gap: 0.45rem; padding-left: 0.2rem; color: var(--muted); font-size: 0.84rem; white-space: nowrap; }
.e-pagebar-post b { max-width: 14rem; overflow: hidden; color: var(--ink); text-overflow: ellipsis; }
.e-pagebar .e-pagebar-post button { background: var(--green-pale); color: var(--green-deeper); }
.e-tip button { padding: 0.2rem 0.7rem; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.16); color: #fff; font: 700 0.8rem var(--font); cursor: pointer; }
/* A computer: the icons down the left, the panel beside them, the page in the rest. */
@media (min-width: 1000px) {
  .e-main { grid-template-columns: 76px auto minmax(0, 1fr); min-height: calc(100vh - 61px - 64px); }
  .e-rail { grid-column: 1; }
  .e-side { grid-column: 2; }
  .e-preview { grid-column: 3; }
  .e-rail { top: calc(61px + 64px); flex-direction: column; align-self: start; height: calc(100vh - 61px - 64px); padding: 0.6rem 0.45rem; border-right: 1px solid var(--line); }
  .e-rail button { flex: none; }
  .e-side { position: sticky; top: calc(61px + 64px); width: 380px; height: calc(100vh - 61px - 64px); border-right: 1px solid var(--line); box-shadow: 8px 0 24px -18px rgba(15, 30, 38, 0.35); }
  .e-preview { min-height: 100%; background: var(--bg-2); }
  /* The panel beside the page: room for its fields (the page itself keeps the wide margins). */
  .e-side .e-form { padding-inline: 1.25rem; }
  .e-side .e-side-head { padding-left: 1.25rem; }
}
/* A phone or a tablet: the page full width, the icons along the bottom, a panel as a sheet. */
@media (max-width: 999.98px) {
  .e-rail { position: fixed; left: 0; right: 0; bottom: 0; overflow-x: auto; padding: 0.35rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgba(15, 30, 38, 0.35); }
  .e-side { position: fixed; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom, 0px)); max-height: 62vh; border-radius: 20px 20px 0 0; box-shadow: 0 -16px 40px -16px rgba(15, 30, 38, 0.45); }
  .e-preview { padding-bottom: 80px; }
  .e-device { display: none; }
  /* The demo's sample businesses on one line that scrolls, so the page itself shows sooner. */
  .e-demo:not([hidden]) { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .e-demo::-webkit-scrollbar { display: none; }
  .e-demo > span:not(.e-demo-kinds) { display: none; }
  .e-demo-kinds { flex-wrap: nowrap; }
  .e-demo .e-demo-reset { margin-left: 0.4rem; }
}
/* Every icon fits across a phone (on the narrowest phones they scroll). */
@media (min-width: 360px) and (max-width: 999.98px) {
  .e-rail button { flex: 1 1 0; min-width: 0; padding-inline: 0.15rem; }
  .e-rail button span { max-width: 100%; overflow: hidden; font-size: 0.66rem; text-overflow: ellipsis; white-space: nowrap; }
}
/* A section the editor scrolls to stops clear of the bars at the top. */
.es .ed-sec { scroll-margin-top: 140px; }
.e-form .hint { margin: 0; }
.e-two { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.e-kind { flex: none; padding: 0.2rem 0.55rem; border-radius: 999px; background: var(--green-pale); color: var(--green-deeper); font-size: 0.72rem; font-weight: 750; }
.e-item > .btn, .e-item > .e-link, .e-item > .e-page-now { justify-self: start; }
.e-link { padding: 0.2rem 0; border: 0; background: none; color: var(--green-deeper); font: 650 0.85rem var(--font); cursor: pointer; }
.e-link:hover { text-decoration: underline; }
.e-page-now { color: var(--green-deeper); font-size: 0.82rem; font-weight: 700; }
.e-page-item.is-on { box-shadow: inset 0 0 0 2px var(--green); }
.e-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.e-chip { min-height: 32px; padding: 0.25rem 0.75rem; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font: 600 0.8rem var(--font); cursor: pointer; }
.e-chip[aria-pressed="true"] { background: var(--green-pale); box-shadow: inset 0 0 0 1.5px var(--green); color: var(--green-deeper); }
.e-money { align-items: end; }
.e-show-prices { min-height: 48px; font-size: 0.9rem; }
.no-prices .e-price { display: none; }
.no-prices .e-item-main { grid-template-columns: minmax(0, 1fr); }
.e-hours { display: grid; gap: 0.5rem; }
.e-closures { display: grid; gap: 0.55rem; margin-top: 0.4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.e-closures h3 { margin: 0; color: var(--ink); font-size: 0.98rem; }
.e-closure { display: grid; gap: 0.45rem; padding: 0.65rem; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.e-closure { grid-template-columns: minmax(0, 1fr) 36px; }
.e-closure-days { display: contents; }
.e-closure-days label:first-child { grid-column: 1 / -1; }
.e-closure-days label:nth-child(2) { grid-column: 1 / -1; }
.e-closure-days button { grid-column: 2; grid-row: 3; }
.e-closure > [data-cl-note] { grid-column: 1; grid-row: 3; }
.e-closure label { display: grid; gap: 0.2rem; color: var(--muted); font-size: 0.75rem; font-weight: 650; }
.e-closure input { width: 100%; min-width: 0; min-height: 40px; padding: 0.35rem 0.55rem; border: 0; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 500 0.88rem var(--font); }
.e-closure input:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--green); outline: none; }
.e-closure-days button { width: 36px; height: 40px; border: 0; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 700 0.9rem var(--font); cursor: pointer; }
.admin-sheet .e-closure input { min-height: 40px; padding: 0.35rem 0.55rem; font-size: 0.88rem; }
.admin-sheet .e-closure label { font-size: 0.75rem; }
.e-closures > .btn { justify-self: start; }
.e-hour { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.45rem 0.6rem; align-items: center; padding: 0.6rem 0.7rem; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.e-hour-times { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0.5rem; align-items: center; }
.e-hour.is-closed .e-hour-times { display: none; }
.e-hour b { color: var(--ink); font-size: 0.9rem; }
.e-hour span { color: var(--muted); font-size: 0.85rem; }
.e-hour input[type="time"] { min-width: 0; min-height: 40px; padding: 0.3rem 0.5rem; border: 0; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font: 500 0.9rem var(--font); }
.e-hour input:disabled { opacity: 0.4; }
.e-hour .check-line { font-size: 0.82rem; }
.e-items { display: grid; gap: 0.6rem; }
.e-item { display: grid; gap: 0.45rem; padding: 0.75rem; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.e-item input, .e-item textarea { width: 100%; min-width: 0; min-height: 42px; padding: 0.5rem 0.7rem; border: 0; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 500 0.95rem/1.4 var(--font); }
.e-item textarea { min-height: 80px; resize: vertical; }
.e-item input:focus, .e-item textarea:focus, .e-hour input:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--green); outline: none; }
.e-item-top { display: flex; gap: 0.5rem; align-items: center; }
.e-item-top input { flex: 1; font-size: 0.85rem; color: var(--text-2); }
.e-item-acts { display: flex; gap: 0.25rem; }
.e-item-acts button, .e-photos figcaption button { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 700 0.9rem var(--font); cursor: pointer; }
.e-item-acts button:disabled, .e-photos button:disabled { opacity: 0.35; cursor: default; }
.e-item-main { display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem; gap: 0.45rem; }
.e-item-main [data-mname] { font-weight: 650; }
.e-price { display: flex; align-items: center; gap: 0.3rem; padding-left: 0.6rem; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.e-price span { color: var(--muted); font-size: 0.85rem; font-weight: 650; }
.e-price input { box-shadow: none; padding-left: 0; background: transparent; text-align: right; font-variant-numeric: tabular-nums; }
.e-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; }
.e-photos figure { display: grid; margin: 0; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.e-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.e-photos figure:first-child { box-shadow: inset 0 0 0 2px var(--green); }
.e-photos figcaption { display: grid; gap: 0.35rem; padding: 0.45rem; }
.e-photos figcaption input { min-height: 36px; padding: 0.35rem 0.5rem; border: 0; border-radius: 8px; background: var(--bg); font: 500 0.8rem var(--font); }
.e-photos figcaption span { display: flex; justify-content: flex-end; gap: 0.25rem; }
.e-add-photo { display: grid; place-items: center; min-height: 150px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line); color: var(--green-deeper); font-weight: 700; cursor: pointer; }
.e-add-photo:hover { box-shadow: inset 0 0 0 2px var(--green); }
.e-screen { padding: 1rem 1rem 1.5rem; }
.e-frame { overflow: hidden; margin-inline: auto; border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg); container-type: inline-size; transition: width 0.35s var(--ease); }
/* The Phone view: the Designs page's phone (a black bezel with a metal edge, side buttons, the
   status bar, the Dynamic Island and the home bar), with the page scrolling inside it. */
.e-shell-screen > .ph-status, .e-shell-screen > .ph-island, .e-shell-screen > .ph-home { display: none; }
.e-preview.as-phone .e-shell { position: relative; width: 400px; max-width: 100%; margin-inline: auto; padding: 9px; border-radius: 56px; background: #0A0B0D; box-shadow: 0 0 0 1.5px #4A4F55, 0 0 0 3px #1B1D20, 0 36px 70px -26px rgba(10, 16, 20, 0.65), inset 0 0 0 1px #24272B; }
.e-preview.as-phone .e-shell::before, .e-preview.as-phone .e-shell::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #3A3E43, #1C1E21); }
.e-preview.as-phone .e-shell::before { left: -5px; top: 21%; height: 11%; }
.e-preview.as-phone .e-shell::after { right: -5px; top: 27%; height: 15%; }
.e-preview.as-phone .e-shell-screen { position: relative; overflow: hidden; border-radius: 47px; background: var(--status-bg, #fff); container-type: inline-size; }
.e-preview.as-phone .e-shell-screen > .ph-status { display: flex; }
.e-preview.as-phone .e-shell-screen > .ph-island, .e-preview.as-phone .e-shell-screen > .ph-home { display: block; }
.e-preview.as-phone .e-frame { width: auto; height: min(760px, calc(100vh - 250px)); min-height: 520px; margin-top: 12.6cqw; overflow-y: auto; border-radius: 0; box-shadow: none; scrollbar-width: none; }
.e-preview.as-phone .e-frame::-webkit-scrollbar { display: none; }
.e-pub { display: grid; gap: 0.8rem; justify-items: center; padding: 1rem 0.5rem; text-align: center; }
.e-pub .bar { width: 100%; }
.e-pub .bar i { transition: width 2s var(--ease); }
.e-pub.is-done .sent-icon { width: 56px; height: 56px; border-radius: 18px; }
@media (max-width: 999.98px) {
  .e-screen { padding: 0 0 2rem; }
  .e-frame { border-radius: 0; box-shadow: none; }
}
@media (max-width: 479.98px) { .e-bar-r .btn-quiet { display: none; } .e-bar-r { gap: 0.3rem; } }

/* The sample site in the preview: a warm café look, drawn from the content (.es = editor site) */
.es { --es-ink: #2A1C12; --es-accent: #B5452C; --es-cream: #FBF4EA; color: var(--es-ink); font: 400 15px/1.6 Georgia, "Times New Roman", serif; background: var(--es-cream); }
.es .es-h1, .es h2, .es h3 { margin: 0; color: var(--es-ink); font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -0.01em; text-wrap: balance; }
.es-top { position: relative; z-index: 4; display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.4rem; background: var(--es-cream); }
.es-top > b { flex: 0 1 auto; min-width: 0; margin-right: auto; font-size: 1.1rem; line-height: 1.25; }
.es-top nav { display: flex; gap: 1.1rem; font: 500 0.82rem system-ui, sans-serif; }
.es-top nav a { padding: 0.25rem 0; border-bottom: 2px solid transparent; color: inherit; text-decoration: none; white-space: nowrap; }
.es-top nav a:hover { color: var(--es-accent); }
.es-top nav a.on { border-bottom-color: var(--es-accent); font-weight: 700; }
.es-burger { display: none; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--es-ink); }
.es-burger span, .es-burger span::before, .es-burger span::after { content: ""; display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.2s ease, background-color 0.2s ease; }
.es-burger span { position: relative; }
.es-burger span::before, .es-burger span::after { position: absolute; left: 0; }
.es-burger span::before { top: -6px; }
.es-burger span::after { top: 6px; }
.es-top.is-open .es-burger span { background: transparent; }
.es-top.is-open .es-burger span::before { top: 0; transform: rotate(45deg); }
.es-top.is-open .es-burger span::after { top: 0; transform: rotate(-45deg); }
.es-top-cta, .es-ctas i { padding: 0.45rem 0.95rem; border-radius: 999px; background: var(--es-accent); color: var(--es-on, #fff); font: 600 0.8rem system-ui, sans-serif; font-style: normal; white-space: nowrap; }
.es-hero { display: grid; gap: 0.8rem; align-content: end; min-height: 380px; padding: 2.2rem 1.6rem; background: #3A2A1E center / cover no-repeat; color: #fff; }
.es-hero .es-h1 { max-width: 16ch; margin: 0; color: #fff; font-size: clamp(1.8rem, 1.2rem + 2.5vw, 3rem); line-height: 1.08; }
.es-hero p { max-width: 42ch; margin: 0; color: rgba(255, 255, 255, 0.88); }
.es-open { justify-self: start; padding: 0.2rem 0.7rem; border-radius: 999px; background: rgba(0, 0, 0, 0.45); font: 600 0.75rem system-ui, sans-serif; }
.es-open.on::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 0.4rem; border-radius: 50%; background: #56D38A; }
.es-ctas { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.es-ctas .ghost { background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.es section:not(.es-hero) { padding: 2rem 1.6rem; }
.es h2 { margin-bottom: 0.8rem; font-size: 1.6rem; }
.es-about { display: grid; gap: 1.2rem; align-items: center; }
.es-about img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.es-about p { margin: 0; }
.es-groups { display: grid; gap: 1.2rem; }
.es-groups h3 { margin-bottom: 0.4rem; color: var(--es-accent); font: 700 0.75rem system-ui, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; }
.es-groups ul, .es-visit ul { margin: 0; padding: 0; list-style: none; }
.es-groups li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px dashed rgba(42, 28, 18, 0.2); }
.es-groups li b { display: block; font-weight: 400; }
.es-groups li small { display: block; color: rgba(42, 28, 18, 0.65); font: 0.8rem system-ui, sans-serif; }
.es-groups li em { font-style: normal; font-variant-numeric: tabular-nums; }
.es-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; padding-top: 0 !important; }
.es-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.es-news article { padding: 0.8rem 0; border-top: 1px solid rgba(42, 28, 18, 0.15); }
.es-news small { color: rgba(42, 28, 18, 0.6); font: 0.75rem system-ui, sans-serif; }
.es-news h3 { font-size: 1.15rem; }
.es-news p { margin: 0.2rem 0 0; }
.es-visit { display: grid; gap: 1.5rem; background: var(--es-band, #F3E6D4); }
.es-visit li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.25rem 0; font: 0.88rem system-ui, sans-serif; }
.es-visit p { margin: 0 0 0.5rem; font: 0.9rem/1.5 system-ui, sans-serif; }
.es-foot { padding: 1rem 1.6rem; background: var(--es-ink); color: rgba(255, 255, 255, 0.7); font: 0.78rem system-ui, sans-serif; }
@container (min-width: 700px) { .es-about { grid-template-columns: 1.2fr 1fr; } .es-groups { grid-template-columns: 1fr 1fr; gap: 2rem; } .es-visit { grid-template-columns: 1fr 1fr; } }
@container (max-width: 559.98px) {
  .es-top { gap: 0.6rem; padding: 0.8rem 1rem; }
  .es-top nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 0.3rem 1rem 0.8rem; background: var(--es-cream); box-shadow: 0 14px 24px -14px rgba(42, 28, 18, 0.4); }
  .es-top.is-open nav { display: flex; }
  .es-top nav a { padding: 0.7rem 0; border-bottom: 1px solid rgba(42, 28, 18, 0.1); font-size: 0.95rem; }
  .es-top nav a.on { border-bottom-color: rgba(42, 28, 18, 0.1); color: var(--es-accent); }
  .es-burger { display: grid; }
  .es-top-cta { padding: 0.4rem 0.75rem; font-size: 0.75rem; }
}

/* Click on the page to change it (HIS ask, 1 Oct 2026): every word shows an outline on hover and
   takes the cursor where it is pressed; photos, menu items and sections have their own buttons. */
.es [data-ed] { border-radius: 4px; outline: 1.5px dashed transparent; outline-offset: 3px; cursor: text; transition: outline-color 0.15s ease, background-color 0.15s ease; }
.es [data-ed]:hover, .es [data-ed]:focus-visible { outline-color: color-mix(in srgb, var(--es-accent) 60%, transparent); }
.es [data-ed].is-editing { outline: 2px solid #1DAF68; background: rgba(255, 255, 255, 0.7); }
.es-hero [data-ed].is-editing { background: rgba(0, 0, 0, 0.3); }
.es [data-ed]:empty::before { content: attr(data-ph); opacity: 0.45; }
.es [data-ed]:empty { display: inline-block; min-width: 3ch; }
.es li small[data-ed]:empty:not(.is-editing) { display: none; }
.es li:hover small[data-ed]:empty, .es li:focus-within small[data-ed]:empty { display: block; }
.es [data-photo] { cursor: pointer; }
.es img[data-photo]:hover, .es img[data-photo]:focus-visible { outline: 3px solid color-mix(in srgb, var(--es-accent) 65%, transparent); outline-offset: 2px; }
.es [data-act] { cursor: pointer; }
.es-hero { position: relative; }
.ed-photo-tag { position: absolute; top: 0.9rem; right: 0.9rem; padding: 0.3rem 0.75rem; border-radius: 999px; background: rgba(0, 0, 0, 0.55); color: #fff; font: 600 0.75rem system-ui, sans-serif; opacity: 0; transition: opacity 0.2s ease; pointer-events: none; }
.es-hero:hover .ed-photo-tag { opacity: 1; }
.es-top .ed-off { background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--es-accent) 50%, transparent); color: var(--es-accent); }
.ed-sec { position: relative; }
.ed-sec-tools { position: absolute; top: 0.55rem; right: 0.6rem; z-index: 2; display: flex; gap: 0.25rem; opacity: 0; transition: opacity 0.2s ease; }
.ed-sec:hover > .ed-sec-tools, .ed-sec:focus-within > .ed-sec-tools { opacity: 1; }
.ed-sec-tools button, .ed-tools button { min-width: 30px; height: 30px; padding: 0 0.55rem; border: 0; border-radius: 8px; background: #fff; color: #2A1C12; font: 700 0.78rem system-ui, sans-serif; box-shadow: 0 2px 8px rgba(42, 28, 18, 0.18); cursor: pointer; }
.ed-sec-tools button:disabled, .ed-tools button:disabled { opacity: 0.35; cursor: default; }
.es-groups li, .es-news article { position: relative; }
.ed-tools { position: absolute; top: -0.85rem; right: 0; z-index: 2; display: flex; gap: 0.2rem; opacity: 0; transition: opacity 0.15s ease; }
.es-groups li:hover .ed-tools, .es-groups li:focus-within .ed-tools, .es-news article:hover .ed-tools, .es-news article:focus-within .ed-tools { opacity: 1; }
.ed-add { margin-top: 0.6rem; padding: 0.45rem 0.85rem; border: 1.5px dashed rgba(42, 28, 18, 0.3); border-radius: 10px; background: transparent; color: var(--es-accent); font: 650 0.82rem system-ui, sans-serif; cursor: pointer; }
.ed-add:hover, .ed-add:focus-visible { border-color: var(--es-accent); background: color-mix(in srgb, var(--es-accent) 7%, transparent); }
.ed-add-wide { display: block; width: 100%; margin-top: 1.2rem; }
.ed-photo-add { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; border: 1.5px dashed rgba(42, 28, 18, 0.3); border-radius: 14px; background: rgba(255, 255, 255, 0.55); color: var(--es-accent); font: 650 0.85rem system-ui, sans-serif; cursor: pointer; }
.es-gallery .ed-photo-add { aspect-ratio: 1; border-radius: 10px; }
.ed-photo-add:hover { border-color: var(--es-accent); }
.ed-hidden { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.3rem 0.6rem; margin: 0.6rem 1.6rem; padding: 0.6rem; border: 1.5px dashed rgba(42, 28, 18, 0.25); border-radius: 10px; color: rgba(42, 28, 18, 0.6); font: 0.82rem system-ui, sans-serif; }
.ed-hidden button { border: 0; background: none; color: var(--es-accent); font: 700 0.82rem system-ui, sans-serif; text-decoration: underline; cursor: pointer; }
.ed-hours { display: block; width: 100%; padding: 0; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; outline: 1.5px dashed transparent; outline-offset: 4px; cursor: pointer; }
.ed-hours:hover, .ed-hours:focus-visible { outline-color: color-mix(in srgb, var(--es-accent) 60%, transparent); }
.ed-hours-tag { display: inline-block; margin-top: 0.4rem; color: var(--es-accent); font: 650 0.78rem system-ui, sans-serif; }
.es-news small input { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; }
.es-lines span { display: block; }
@media (hover: none) { .ed-sec-tools, .ed-tools { opacity: 1; } }
/* Closed on special days: the site says so by itself, under its header. */
.es-notice { margin: 0; padding: 0.7rem 1.4rem; background: var(--es-ink); color: #fff; font: 600 0.88rem/1.45 system-ui, sans-serif; text-align: center; cursor: pointer; }
.es-notice::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 0.55rem; border-radius: 50%; background: #F5B53D; vertical-align: 0.05em; }
/* News dated later goes live on its day: until then only the owner sees it. */
.es-soon { display: inline-block; margin-left: 0.5rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: #FFF3D6; color: #6B4700; font: 700 0.7rem system-ui, sans-serif; }
.es-post.is-soon { opacity: 0.72; }
.e-kind.is-soon { background: #FFF3D6; color: #6B4700; }
/* Every page but the home page starts with its name, and a line about it. */
.es section.es-pagehead { padding: clamp(2rem, 1.4rem + 3cqw, 3rem) 1.6rem clamp(1.6rem, 1.2rem + 2cqw, 2.4rem); background: var(--es-band, #F3E6D4); }
.es-pagehead .es-h1 { font-size: clamp(1.9rem, 1.3rem + 3cqw, 2.8rem); line-height: 1.1; }
.es-pagehead p { max-width: 52ch; margin: 0.6rem 0 0; color: rgba(42, 28, 18, 0.72); }
/* News: short news, and articles with a picture and "Read the article". */
.es-posts { display: grid; gap: 0.4rem; margin-top: 0.4rem; }
.es-news .es-post { display: grid; gap: 0.9rem; align-items: start; padding: 1.1rem 0; }
.es-post-pic { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.es-more { display: inline-block; margin-top: 0.55rem; color: var(--es-accent); font: 700 0.86rem system-ui, sans-serif; font-style: normal; }
.es-post-adds { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.es-post-adds .ed-add { margin-top: 0; }
@container (min-width: 640px) { .es-news .es-post.is-article:has(.es-post-pic) { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 1.3rem; } }
/* An article, on its own page: written like a document, part by part. */
.es .es-article { max-width: 46rem; margin: 0 auto; padding: 1.3rem 1.6rem 2.8rem; }
.es-crumb { margin: 0 0 1.1rem; font: 650 0.85rem system-ui, sans-serif; }
.es-crumb i { color: var(--es-accent); font-style: normal; }
.es-article-date input { padding: 0; border: 0; background: transparent; color: rgba(42, 28, 18, 0.6); font: 0.82rem system-ui, sans-serif; }
.es-article .es-h1 { margin: 0.35rem 0 0; font-size: clamp(1.9rem, 1.2rem + 3.5cqw, 2.9rem); line-height: 1.1; }
.es-lede { margin: 0.75rem 0 0; color: rgba(42, 28, 18, 0.74); font-size: 1.12rem; line-height: 1.55; white-space: pre-line; }
.es-cover { display: block; width: 100%; aspect-ratio: 16 / 9; margin-top: 1.4rem; object-fit: cover; border-radius: 14px; cursor: pointer; }
.es-cover:hover, .es-cover:focus-visible, .ab-img img:hover, .ab-img img:focus-visible { outline: 3px solid color-mix(in srgb, var(--es-accent) 65%, transparent); outline-offset: 2px; }
.es .es-cover-add { margin-top: 1.4rem; aspect-ratio: 16 / 5; }
.es-article-body { display: grid; margin-top: 1.3rem; font-size: 1.05rem; line-height: 1.75; }
.ab { position: relative; padding: 0.4rem 0; }
.ab p, .ab blockquote, .ab ul, .ab figure, .ab figcaption { margin: 0; }
.es .ab-h h2 { margin-top: 0.7rem; font-size: 1.5rem; line-height: 1.25; }
.ab-quote blockquote { padding: 0.2rem 0 0.2rem 1.1rem; border-left: 3px solid var(--es-accent); font-size: 1.15rem; font-style: italic; }
.ab-list ul { padding-left: 1.35rem; }
.ab-list li { padding: 0.1rem 0; }
.ab-img img { display: block; width: 100%; border-radius: 12px; cursor: pointer; }
.ab-img figcaption { margin-top: 0.45rem; color: rgba(42, 28, 18, 0.62); font: 0.86rem/1.5 system-ui, sans-serif; text-align: center; }
.es-article [data-ed]:empty { display: block; }
.es-article li[data-ed]:empty { display: list-item; }
.ab > .ed-tools { top: -0.55rem; }
.ab:hover > .ed-tools, .ab:focus-within > .ed-tools { opacity: 1; }
/* "+" between the parts of an article, and the row that adds one. */
.ab-insert { position: relative; z-index: 3; height: 0; }
.ab-insert::after { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 18px; }
.ab-insert button { position: absolute; z-index: 2; left: 50%; top: 0; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: #1DAF68; color: #fff; font: 700 1rem/1 system-ui, sans-serif; opacity: 0; transform: translate(-50%, -50%) scale(0.8); transition: opacity 0.15s ease, transform 0.15s ease; cursor: pointer; }
.ab-insert:hover button, .ab-insert:focus-within button { opacity: 1; transform: translate(-50%, -50%); }
@media (hover: none) { .ab-insert button { opacity: 0.85; } }
.ab-adder { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0.7rem 0; padding: 0.55rem 0.6rem; border: 1.5px dashed color-mix(in srgb, var(--es-accent) 45%, transparent); border-radius: 12px; font: 0.85rem system-ui, sans-serif; }
.ab-adder > span { margin-right: 0.15rem; color: rgba(42, 28, 18, 0.6); font-weight: 700; }
.ab-adder button { min-height: 32px; padding: 0.3rem 0.8rem; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgba(42, 28, 18, 0.18); color: var(--es-ink); font: 650 0.8rem system-ui, sans-serif; cursor: pointer; }
.ab-adder button:hover, .ab-adder button:focus-visible { box-shadow: inset 0 0 0 1.5px var(--es-accent); color: var(--es-accent); }
.ab-adder .ab-adder-x { margin-left: auto; background: transparent; box-shadow: none; font-size: 1.1rem; }
/* Ask Clovi: a box under the page, to say what to change in their own words. */
.e-ask-wrap { position: sticky; bottom: 1rem; z-index: 6; display: grid; justify-items: center; gap: 0.5rem; padding: 0 1rem 1rem; pointer-events: none; }
.e-ask-wrap > * { pointer-events: auto; }
.e-ask { display: flex; align-items: center; gap: 0.45rem; width: min(42rem, 100%); padding: 0.35rem 0.4rem 0.35rem 0.5rem; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 18px 40px -18px rgba(15, 30, 38, 0.55); }
.e-ask:focus-within { box-shadow: 0 0 0 2px var(--green), 0 18px 40px -18px rgba(15, 30, 38, 0.55); }
.e-ask-clovi { flex: none; width: 34px; height: auto; }
.e-ask input { flex: 1; min-width: 0; min-height: 40px; padding: 0 0.3rem; border: 0; background: transparent; color: var(--ink); font: 500 0.95rem var(--font); }
.e-ask input::placeholder { color: var(--muted); }
.e-ask input:focus { outline: none; }
.e-ask .btn { flex: none; }
.e-ask.is-busy .e-ask-clovi { animation: e-ask-think 1s ease-in-out infinite alternate; }
@keyframes e-ask-think { to { transform: translateY(-3px) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .e-ask.is-busy .e-ask-clovi { animation: none; } }
.e-ask-out { width: min(42rem, 100%); padding: 0.85rem 1rem; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); color: var(--text-2); font-size: 0.9rem; line-height: 1.5; }
.e-ask-out[hidden] { display: none; }
.e-ask-out p { margin: 0; }
.e-ask-out b { color: var(--ink); }
.e-ask-out ul { display: grid; gap: 0.2rem; margin: 0.5rem 0 0; padding-left: 1.1rem; }
.e-ask-out li::marker { color: var(--green); }
.e-ask-out li.more { list-style: none; color: var(--muted); }
.e-ask-acts { display: flex; gap: 0.4rem; margin-top: 0.65rem; }
.editor.is-looking .e-ask-wrap { display: none; }
@media (max-width: 999.98px) {
  .e-ask-wrap { position: fixed; left: 0; right: 0; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); padding: 0 0.6rem 0.5rem; }
  .editor.panel-open .e-ask-wrap { display: none; }
  .e-preview { padding-bottom: 150px; }
}
/* The form beside the page marks the field that was clicked on the page. */
.e-form .is-linked { border-radius: 12px; box-shadow: 0 0 0 3px rgba(29, 175, 104, 0.35); transition: box-shadow 0.3s ease; }
/* The small sheets that open from the page. */
.e-mini { display: grid; gap: 0.9rem; text-align: left; }
.admin-sheet:has(.sheet.is-top) { align-items: start; justify-items: center; }
.admin-sheet .sheet.is-top { width: min(40rem, 100vw); max-height: 80vh; border-radius: 0 0 22px 22px; }
@media (min-width: 700px) { .admin-sheet:has(.sheet.is-top) { padding-top: 11vh; } .admin-sheet .sheet.is-top { border-radius: 22px; } }
.e-find { display: grid; gap: 0.6rem; }
.admin-sheet .e-find input { min-height: 54px; font-size: 1.05rem; }
.e-found { display: grid; gap: 0.2rem; margin: 0; padding: 0; list-style: none; }
.e-found li { display: grid; gap: 0.1rem; padding: 0.6rem 0.8rem; border-radius: 12px; cursor: pointer; }
.e-found li b { overflow: hidden; color: var(--ink); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.e-found li small { color: var(--muted); font-size: 0.78rem; }
.e-found li[aria-selected="true"], .e-found li:hover { background: var(--bg); }
.e-found li.is-do b { color: var(--green-deeper); font-weight: 700; }
.e-found li.none { color: var(--muted); cursor: default; }
.e-found mark { border-radius: 3px; background: #FFE58A; color: inherit; }
.e-find-tip { margin: 0; color: var(--muted); font-size: 0.78rem; }
.e-find-tip kbd { padding: 0.05rem 0.35rem; border-radius: 5px; background: var(--bg); box-shadow: inset 0 -1px 0 var(--line); font: 600 0.74rem var(--font); }
.e-changes { display: grid; gap: 0.35rem; max-height: 46vh; overflow: auto; margin: 0; padding: 0; list-style: none; }
.e-changes li { position: relative; padding: 0.5rem 0.75rem 0.5rem 1.9rem; border-radius: 10px; background: var(--bg); color: var(--ink); font-size: 0.9rem; line-height: 1.45; }
.e-changes li::before { content: ""; position: absolute; left: 0.8rem; top: 0.95rem; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.e-changes li.more { color: var(--muted); }
.e-checks { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.e-checks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 0.4rem 0.6rem; align-items: start; padding: 0.75rem; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.e-checks li b { display: block; color: var(--ink); font-size: 0.92rem; }
.e-checks li small { display: block; margin-top: 0.15rem; color: var(--text-2); font-size: 0.8rem; line-height: 1.45; }
.e-checks li .btn { grid-column: 2; justify-self: start; }
.e-checks li.is-ok { background: transparent; box-shadow: none; padding-block: 0.35rem; }
.e-checks li.is-ok b { color: var(--muted); font-weight: 600; }
.e-check-mark { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px #E0A100; color: #fff; font-size: 0.75rem; font-weight: 800; }
.is-ok .e-check-mark { background: var(--green); box-shadow: none; }
.e-mini h2 { font-size: 1.25rem; }
.e-mini-photo { width: 100%; max-height: 240px; object-fit: cover; border-radius: 14px; }
.e-mini-acts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.e-mini > .btn-primary { justify-self: start; }

/* "+ Add a section here" between the sections, as in Wix: a line that shows on hover. */
.ed-insert { position: relative; z-index: 3; height: 0; }
.ed-insert button { position: absolute; z-index: 2; left: 50%; top: 0; padding: 0.3rem 0.8rem; border: 0; border-radius: 999px; background: #1DAF68; color: #fff; font: 700 0.75rem system-ui, sans-serif; white-space: nowrap; box-shadow: 0 4px 14px rgba(18, 134, 83, 0.4); opacity: 0; transform: translate(-50%, -50%) scale(0.92); transition: opacity 0.15s ease, transform 0.15s ease; cursor: pointer; }
.ed-insert::before { content: ""; position: absolute; left: 1.6rem; right: 1.6rem; top: -1px; height: 2px; background: #1DAF68; opacity: 0; transition: opacity 0.15s ease; }
.ed-insert:hover button, .ed-insert:focus-within button { opacity: 1; transform: translate(-50%, -50%); }
.ed-insert:hover::before, .ed-insert:focus-within::before { opacity: 1; }
.ed-insert::after { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 28px; }
@media (hover: none) { .ed-insert button { opacity: 0.9; transform: translate(-50%, -50%) scale(0.85); } }

/* Sections they add: text and a photo, questions and answers, a banner with a button. */
.es-text { display: grid; gap: 1.2rem; align-items: center; }
.es-text img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.es-text p { margin: 0.4rem 0 0; white-space: pre-line; }
@container (min-width: 700px) { .es-text { grid-template-columns: 1.2fr 1fr; } .es-text.flip > :last-child { order: -1; } }
.es-faq-list { display: grid; gap: 0.2rem; }
.es-faq-item { position: relative; padding: 0.8rem 0; border-top: 1px solid rgba(42, 28, 18, 0.15); }
.es-faq-item h3 { font-size: 1.05rem; }
.es-faq-item p { margin: 0.25rem 0 0; font: 0.92rem/1.6 system-ui, sans-serif; white-space: pre-line; }
.es-faq-item:hover .ed-tools, .es-faq-item:focus-within .ed-tools { opacity: 1; }
.es-banner { display: grid; gap: 0.6rem; justify-items: start; background: var(--es-accent); color: var(--es-on, #fff); }
.es .es-banner h2 { margin: 0; color: inherit; }
.es-banner p { margin: 0; opacity: 0.9; white-space: pre-line; }
.es-banner .es-banner-btn { margin-top: 0.4rem; padding: 0.55rem 1.15rem; border-radius: 999px; background: var(--es-on, #fff); color: var(--es-accent); font: 700 0.85rem system-ui, sans-serif; font-style: normal; }
.es-banner .ed-sec-tools button { color: #2A1C12; }
.es-about p, .es-news p { white-space: pre-line; }

/* The look they choose (Design panel): a font style for the whole page. */
.es.font-modern, .es.font-modern .es-h1, .es.font-modern h2, .es.font-modern h3 { font-family: "DM Sans", system-ui, sans-serif; }
.es.font-friendly, .es.font-friendly .es-h1, .es.font-friendly h2, .es.font-friendly h3 { font-family: Outfit, system-ui, sans-serif; }
.es.font-elegant .es-h1, .es.font-elegant h2, .es.font-elegant h3 { font-family: Fraunces, Georgia, serif; }
.es.font-elegant { font-family: "DM Sans", system-ui, sans-serif; }
.es.font-modern .es-h1, .es.font-friendly .es-h1 { letter-spacing: -0.03em; font-weight: 700; }
.es.font-modern h2, .es.font-friendly h2 { font-weight: 700; letter-spacing: -0.02em; }

/* The Add and Design panels. */
.e-add-list { display: grid; gap: 0.6rem; }
.e-add-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0.85rem; align-items: center; width: 100%; padding: 0.7rem; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-align: left; cursor: pointer; }
.e-add-card:hover, .e-add-card:focus-visible { box-shadow: inset 0 0 0 2px var(--green); }
.e-add-card b { display: block; font-size: 0.95rem; }
.e-add-card small { display: block; margin-top: 0.15rem; color: var(--muted); font-size: 0.8rem; line-height: 1.4; }
.e-add-art { display: grid; gap: 4px; align-content: center; height: 52px; padding: 7px; border-radius: 10px; background: var(--bg-2); }
.e-add-art i { display: block; height: 6px; border-radius: 3px; background: #C9D3DA; }
.e-add-art i:nth-child(2) { width: 80%; }
.e-add-art i:nth-child(3) { width: 60%; }
.art-text { grid-template-columns: 1fr 22px; }
.art-text i:nth-child(1) { grid-column: 1; }
.art-text i:nth-child(3) { grid-row: 1 / span 2; grid-column: 2; width: 22px; height: 30px; border-radius: 5px; background: #8FB6D6; }
.art-faq i { height: 5px; background: #C9D3DA; box-shadow: 0 9px 0 -1px #E3E9ED; }
.art-banner { background: #1DAF68; }
.art-banner i { background: rgba(255, 255, 255, 0.75); }
.art-banner i:nth-child(3) { width: 40%; height: 9px; background: #fff; }
.art-show { background: #FFF3D6; }
.e-swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.e-swatch { position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--c, #fff); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); cursor: pointer; }
.e-swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
.e-swatch-own { overflow: hidden; background: conic-gradient(from 0deg, #E5484D, #F5C542, #1DAF68, #2F76AE, #8B5CF6, #E5484D); }
.e-swatch-own input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.e-swatch-own span { width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--ink); font: 800 0.9rem/22px var(--font); text-align: center; pointer-events: none; }
.e-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 0.5rem; }
.e-choice { display: grid; justify-items: center; gap: 0.3rem; padding: 0.7rem 0.4rem; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 600 0.82rem var(--font); cursor: pointer; }
.e-choice b { font-size: 1.5rem; font-weight: 600; line-height: 1; }
.e-choice i { display: block; width: 100%; height: 26px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.e-choice[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--green); background: var(--green-pale); }
.e-choices-list { grid-template-columns: minmax(0, 1fr); }
.e-choices-list .e-choice { justify-items: start; padding: 0.8rem 1rem; text-align: left; }
.e-choices-list .e-choice small { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 500; }
.e-choices-list .e-choice b { font-size: 0.95rem; }

/* ---------- invoice.html: an invoice or receipt as a document, to print or save as a PDF ---------- */
.doc-page { display: grid; justify-items: center; align-content: start; gap: 1rem; min-height: 100vh; padding: 1.5rem var(--gutter) 3rem; background: var(--bg); }
.doc-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; width: min(52rem, 100%); }
.doc-tools[hidden] { display: none; }
.doc-error { width: min(52rem, 100%); padding: 1rem 1.2rem; border-radius: 14px; background: #FDECEA; color: var(--bad); font-weight: 650; }
.doc { display: grid; gap: 1.6rem; width: min(52rem, 100%); padding: clamp(1.25rem, 4vw, 3rem); border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); color: var(--ink); }
.doc[hidden] { display: none; }
.doc-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem 2rem; }
.doc-brand .logo { width: 150px; height: 36px; }
.doc-brand p { margin: 0.7rem 0 0; color: var(--text-2); font-size: 0.85rem; line-height: 1.55; }
.doc-title { display: grid; justify-items: end; gap: 0.5rem; }
.doc-title h1 { font-size: 1.7rem; letter-spacing: -0.01em; }
.doc-paid { padding: 0.2rem 0.85rem; border: 2px solid var(--green); border-radius: 8px; color: var(--green-deeper); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; transform: rotate(-4deg); }
.doc-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.8rem 1.5rem; margin: 0; padding: 1rem 0; border-block: 1px solid var(--line); }
.doc-meta dt, .doc-to h2, .doc-pay h2 { color: var(--muted); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.doc-meta dd { margin: 0.2rem 0 0; font-weight: 650; }
.doc-to h2, .doc-pay h2 { margin-bottom: 0.35rem; }
.doc-to p, .doc-pay p { margin: 0; line-height: 1.6; }
.doc-pay a { color: var(--green-deeper); font-weight: 650; overflow-wrap: anywhere; }
.doc-lines { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.doc-lines th { padding: 0.6rem 0; border-bottom: 2px solid var(--ink); font-size: 0.78rem; letter-spacing: 0.05em; text-align: left; text-transform: uppercase; }
.doc-lines th:last-child, .doc-lines td:last-child { padding-left: 1rem; text-align: right; white-space: nowrap; }
.doc-lines td { padding: 0.8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-lines td span { color: var(--text-2); font-size: 0.88rem; }
.doc-lines small { color: var(--muted); font-size: 0.8rem; }
.doc-lines tfoot td { padding: 0.35rem 0; border-bottom: 0; color: var(--text-2); }
.doc-lines tfoot tr:first-child td { padding-top: 0.9rem; }
.doc-lines tfoot .total td { padding-top: 0.65rem; border-top: 2px solid var(--ink); color: var(--ink); font-size: 1.15rem; font-weight: 800; }
.doc-foot { display: grid; gap: 0.3rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; }
.doc-foot p { margin: 0; }
@media (max-width: 559.98px) { .doc-title { justify-items: start; } }
/* On paper: just the document, on A4. */
@media print {
  @page { size: A4; margin: 16mm; }
  body, .doc-page { background: #fff; }
  .doc-page { display: block; min-height: 0; padding: 0; }
  .doc-tools, .skip { display: none !important; }
  .doc { width: auto; padding: 0; border-radius: 0; box-shadow: none; }
  .doc-paid { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Admin: a button that reads as a link, and a monthly plan's state. */
.link-btn { padding: 0; border: 0; background: none; color: var(--green-deeper); font: inherit; font-weight: 650; text-decoration: underline; cursor: pointer; }
.plan-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0; color: var(--text-2); font-size: 0.92rem; }
.plan-line b { color: var(--ink); }
