/* markeiter.duxels.com — the page's own layout. The header and the footer are the common ones of duxels-shared (the Worker puts them in, src/site-chrome.js) and bring their own
   stylesheet, /shared/<version>/chrome/chrome.css, which loads AFTER this one: it has the palette (:root --bg --fg --mut --ia --line), the box model, the links, the header, the language
   menu and the footer. What the shared sheet does not carry is here: the document's background, type and resets, the focus ring and the width of the page's body (.privacy-main).
   The classes privacy-page / account-page are the shell's (the header's solid bar comes from them). Same base as duxels-mainager's app.css.
   The screens (public/list.js, form.js, detail.js) follow the approved mockup «Markeiter»: dark #0b1020 page, cards #121a33, blue #1f6fe0 / #2a86ff, the e-mail preview on a light sheet. */
html { background: var(--bg); color-scheme: dark; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: transparent; color: var(--fg); font-family: var(--font); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
main { position: relative; z-index: 1; }
.privacy-page { background: radial-gradient(ellipse at 70% 0%, var(--bg2), var(--bg) 42%) fixed; }
.privacy-main { width: min(100% - 40px, 1200px); margin: 0 auto; padding: 40px 0 max(64px, env(safe-area-inset-bottom)); }
@media (max-width: 600px) { .privacy-main { width: calc(100% - 32px); padding-top: 24px; } }
.account-main { display: flex; justify-content: center; align-items: flex-start; min-height: 60vh; }
#app { width: 100%; display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.status, .mk-status { color: var(--mut); text-align: center; margin-top: 12vh; max-width: 32rem; align-self: center; }
button:focus-visible, a:focus-visible, select:focus-visible, textarea:focus-visible, input:focus-visible { outline: 2px solid #2a86ff; outline-offset: 2px; }

/* the screen before the campaigns: a title, a line and one button */
.mk-welcome { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 10vh auto 0; max-width: 32rem; text-align: center; }
.mk-welcome h1 { font-size: 1.4rem; }
.mk-welcome p { color: var(--mut); }

.mk-btn { display: inline-flex; align-items: center; justify-content: center; background: #1f6fe0; color: #fff; border: 1px solid #1f6fe0; border-radius: 10px; padding: 0 18px; min-height: 44px; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; }
.mk-btn:hover { background: #2a86ff; border-color: #2a86ff; }
.mk-btn:disabled { opacity: .55; cursor: default; }
.mk-btn-plain, .mk-btn-plain:hover { background: transparent; color: #e8ecf8; border: 1px solid rgba(232, 236, 248, .32); font-weight: 600; font-size: 14px; }
.mk-btn-plain:hover { border-color: rgba(232, 236, 248, .6); }

.mk-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.mk-head h1 { font-size: 1.6rem; overflow-wrap: anywhere; }
.mk-intro, .mk-hint { color: var(--mut); font-size: 14px; }
.mk-back { color: #8fc0ff; font-size: 14px; text-decoration: none; align-self: flex-start; }
.mk-back:hover { color: #bcd9ff; }
.mk-empty { color: var(--mut); text-align: center; padding: 48px 16px; border: 1px dashed rgba(232, 236, 248, .24); border-radius: 14px; }
.mk-big { font-size: 2rem; font-weight: 700; }

/* ---- the list ---- */
.mk-list { display: flex; flex-direction: column; gap: 10px; }
.mk-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 150px 130px; align-items: center; gap: 12px; padding: 14px 16px; background: #121a33; border: 1px solid rgba(232, 236, 248, .14); border-radius: 14px; color: inherit; text-decoration: none; min-height: 44px; }
.mk-row:hover { border-color: #2a86ff; }
.mk-row-name { font-weight: 600; overflow-wrap: anywhere; }
.mk-row-meta { color: var(--mut); font-size: 14px; }
@media (max-width: 700px) { .mk-row { grid-template-columns: minmax(0, 1fr) auto; } .mk-row-name { grid-column: 1; } .mk-row-meta { grid-column: 1 / -1; } }

.mk-chip { display: inline-block; font: inherit; font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(232, 236, 248, .24); background: transparent; color: #e8ecf8; white-space: nowrap; }
.mk-st-ready, .mk-st-approved { border-color: #2a86ff; color: #8fc0ff; }
.mk-st-sending, .mk-st-finished { border-color: #22b14c; color: #7fe0a0; }
.mk-st-paused, .mk-st-canceled { border-color: #f0b429; color: #f6d27a; }
button.mk-pick { cursor: pointer; min-height: 32px; }
button.mk-pick.is-on { border-color: #2a86ff; color: #8fc0ff; }

/* ---- cards and the form ---- */
.mk-card { background: #121a33; border: 1px solid rgba(232, 236, 248, .14); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mk-card.is-sel { border: 2px solid #2a86ff; padding: 15px; }
.mk-card h2 { font-size: 18px; }
.mk-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.mk-form { max-width: 640px; gap: 16px; }
.mk-field { display: flex; flex-direction: column; gap: 4px; }
.mk-field label { font-size: 14px; font-weight: 600; }
.mk-field input, .mk-field select, .mk-field textarea { font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(232, 236, 248, .32); background: #0b1020; color: #e8ecf8; min-height: 44px; min-width: 0; box-sizing: border-box; width: 100%; }
.mk-field textarea { resize: vertical; }
.mk-field-error { color: #ff8a80; font-size: 14px; }
.mk-field-error[hidden] { display: none; }
.mk-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.mk-general { display: flex; flex-direction: column; }

.mk-error { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 16px; text-align: center; background: #121a33; border: 1px solid rgba(255, 138, 128, .5); border-radius: 14px; }
.mk-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: #7fe0a0; }
.mk-notice.is-error { color: #ff8a80; }

/* ---- the detail: three steps ---- */
.mk-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(232, 236, 248, .14); }
.mk-step { display: inline-flex; align-items: center; gap: 10px; background: transparent; border: 0; padding: 4px 6px; min-height: 44px; font: inherit; font-size: 15px; font-weight: 600; color: var(--mut); cursor: pointer; }
.mk-step.is-on { color: #e8ecf8; }
.mk-step.is-done { color: #7fe0a0; }
.mk-num { width: 28px; height: 28px; border-radius: 999px; border: 1px solid rgba(232, 236, 248, .3); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
.mk-step.is-on .mk-num { background: #1f6fe0; border-color: #1f6fe0; color: #fff; }
.mk-step.is-done .mk-num { border-color: #22b14c; }
.mk-dash { color: var(--mut); }
.mk-two { display: grid; grid-template-columns: minmax(280px, 470px) minmax(0, 1fr); gap: 20px; align-items: start; }
.mk-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mk-variants { display: flex; flex-direction: column; gap: 12px; }
.mk-snippet { color: var(--mut); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.mk-chips { display: flex; gap: 6px; }
.mk-bottom { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid rgba(232, 236, 248, .14); }

/* the e-mail as the prospect gets it: a light sheet on the dark page */
.mk-mail { background: #f7f8fc; color: #141a2e; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.mk-mail.is-phone { max-width: 340px; padding: 14px; font-size: 14px; }
.mk-mail p { white-space: pre-wrap; }
.mk-mail-from, .mk-mail-foot { font-size: 12px; color: #4a5370; }
.mk-mail-subject { font-size: 20px; font-weight: 700; }
.mk-mail.is-phone .mk-mail-subject { font-size: 16px; }
.mk-mail-link { color: #1f5fc4; text-decoration: underline; }

/* ---- the phone: the steps are tabs, the next button sticks to the bottom ---- */
@media (max-width: 800px) {
  .mk-two { grid-template-columns: minmax(0, 1fr); }
  .mk-steps { flex-wrap: nowrap; overflow-x: auto; gap: 4px; }
  .mk-step { white-space: nowrap; font-size: 14px; }
  .mk-dash { display: none; }
  .mk-bottom { position: sticky; bottom: 0; z-index: 5; margin: 0 -16px; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); background: #121a33; }
  .mk-bottom .mk-btn { flex: 1; }
  .mk-bottom span { display: none; }
}
