/* Simple mode (static/simple.js): one cafe at a time, big type, big buttons,
   high contrast. Same tokens and soft surfaces as the rest of the app. */

body[data-view="simple"] { font-size: 18px; }
.simple { min-height: 100dvh; display: flex; flex-direction: column; background: var(--canvas); color: var(--ink); }

.sm-head { position: sticky; top: 0; z-index: 5; }
.sm-top {
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--canvas); border-bottom: 1px solid var(--line);
}
/* Admin preview banner (#/simple-preview): above the bar, takes the safe area instead. */
.sm-preview {
  display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
  background: color-mix(in srgb, var(--warning) 14%, var(--surface)); border-bottom: 1px solid color-mix(in srgb, var(--warning) 45%, transparent);
  color: var(--ink); font-size: 15px; font-weight: 600;
}
.sm-preview span { flex: 1; min-width: 0; }
.sm-preview + .sm-top { padding-top: 10px; }
.sm-preview-x { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.sm-preview-x:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.sm-logo { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.sm-me { flex: 1; min-width: 0; font-weight: 700; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-langs { display: flex; background: var(--line); border-radius: 999px; padding: 3px; flex: none; }
.sm-langs button { border: 0; background: none; min-width: 40px; min-height: 36px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.sm-langs button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.sm-out { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.sm-out svg { width: 22px; height: 22px; }

.sm-main { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 16px 16px calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.sm-loading { padding: 40px 0; text-align: center; font-size: 22px; }

/* progress: one dot per cafe */
.sm-prog { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sm-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.sm-dots i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line-2); color: #fff; }
.sm-dots i.cur { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand-soft); }
.sm-dots i.done { background: var(--success); border-color: transparent; }
.sm-dots i svg { width: 13px; height: 13px; }
.sm-count { font-weight: 700; font-size: 17px; color: var(--ink-2); }

.sm-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.sm-cafe { margin: 0; font-size: 30px; line-height: 1.15; overflow-wrap: anywhere; }
.sm-where { display: flex; align-items: center; gap: 6px; font-size: 18px; color: var(--ink-2); }
.sm-where svg { width: 20px; height: 20px; flex: none; }
.sm-again { align-self: flex-start; padding: 4px 12px; border-radius: 999px; font-size: 15px; font-weight: 600; background: color-mix(in srgb, var(--warning) 16%, transparent); color: color-mix(in srgb, var(--warning) 55%, var(--ink)); }
.sm-instr { margin: 6px 0 0; font-size: 21px; font-weight: 700; line-height: 1.3; }
.sm-msg-l { font-size: 16px; font-weight: 700; color: var(--brand-text); text-transform: uppercase; letter-spacing: .03em; }
.sm-msg {
  margin: 0; padding: 14px 16px; border-radius: 14px; border-left: 6px solid var(--brand);
  background: var(--surface-alt); font-size: 18px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink);
  max-height: 46vh; overflow: auto;
}
.sm-note { margin: 0; font-size: 16px; color: var(--ink-2); line-height: 1.4; }
.sm-acts { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.sm-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 62px; padding: 10px 18px;
  border-radius: 16px; border: 2px solid var(--line-2); background: var(--surface); color: var(--ink);
  font: inherit; font-size: 20px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .12s ease;
}
.sm-btn:active { transform: scale(.98); }
.sm-btn:disabled { opacity: .55; cursor: default; }
.sm-btn svg { width: 26px; height: 26px; flex: none; }
.sm-btn.primary { background: var(--brand); border-color: transparent; color: #fff; }
.sm-btn.success { background: var(--success); border-color: transparent; color: #fff; }
.sm-btn.ok { border-color: var(--success); color: color-mix(in srgb, var(--success) 70%, var(--ink)); }
.sm-btn:focus-visible, .sm-link:focus-visible, .sm-langs button:focus-visible, .sm-out:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.sm-hint { margin: -2px 2px 4px; font-size: 16px; color: var(--ink-2); line-height: 1.4; text-align: center; }
.sm-warn { color: color-mix(in srgb, var(--warning) 60%, var(--ink)); font-weight: 600; }
.sm-link { align-self: center; border: 0; background: none; font: inherit; font-size: 17px; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; min-height: 48px; padding: 0 12px; cursor: pointer; }

.sm-center { align-items: center; text-align: center; padding: 28px 18px; }
.sm-center .sm-btn { margin-top: 6px; }
.sm-h { margin: 0; font-size: 28px; line-height: 1.2; }
.sm-sub { margin: 0; font-size: 18px; color: var(--ink-2); line-height: 1.4; }
.sm-big { font-size: 20px; margin: 0; }

/* "Did you send the message?" */
.sm-ask { align-items: stretch; text-align: center; padding: 28px 18px; border: 2px solid var(--brand); }
.sm-ask .sm-h { font-size: 30px; }
.sm-ask-ic { align-self: center; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); }
.sm-ask-ic svg { width: 34px; height: 34px; }
.sm-ask .sm-btn.success { min-height: 72px; font-size: 22px; }

/* all done */
.sm-done { border: 2px solid color-mix(in srgb, var(--success) 40%, transparent); background: color-mix(in srgb, var(--success) 8%, var(--surface)); }
.sm-party { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--success); color: #fff; }
.sm-party svg { width: 40px; height: 40px; }
.sm-done .sm-btn { align-self: stretch; }

@media (min-width: 761px) {
  .sm-main { padding-top: 28px; }
}
