/* Interactive /demo simulator. Scoped under .dm-* so it never leaks into the
   rest of the app; plain CSS so it doesn't depend on the Tailwind build. */

.dm-sim {
    --dm-brand: #B85C38;
    --dm-brand-dark: #994422;
    --dm-brand-light: #F5EDEA;
    --dm-ink: #1c1c1a;
    --dm-muted: #5f5e5e;
    --dm-faint: #6f6964; /* AA on white/cream (was #9C9691, 2.8:1) */
    --dm-surface: #fcf9f6;
    --dm-alt: #f3f0ec;
    --dm-inset: #f0edea;
    --dm-border: #E8E4DF;
    --dm-green: #15803d;
    --dm-amber: #b45309;
    --dm-blue: #1d4ed8;
    position: relative;
}
.dm-sim button { font: inherit; cursor: pointer; }
.dm-sim button:disabled { cursor: not-allowed; }
.dm-sim [hidden] { display: none !important; }

/* ---------- Pane switching (CSS-only radio trick) ---------- */
.dm-pane-radio { position: absolute; opacity: 0; pointer-events: none; }
.dm-tabs {
    display: flex; gap: 4px; padding: 4px; margin-bottom: 12px;
    background: var(--dm-alt); border-radius: 14px;
}
.dm-tab {
    flex: 1; text-align: center; padding: 10px 8px; border-radius: 10px;
    font-size: 14px; font-weight: 600; color: var(--dm-muted); cursor: pointer;
    position: relative; user-select: none;
}
#dm-pane-phone:checked ~ .dm-tabs .dm-tab-phone,
#dm-pane-kitchen:checked ~ .dm-tabs .dm-tab-kitchen {
    background: #fff; color: var(--dm-ink); box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
#dm-pane-phone:focus-visible ~ .dm-tabs .dm-tab-phone,
#dm-pane-kitchen:focus-visible ~ .dm-tabs .dm-tab-kitchen { outline: 2px solid var(--dm-brand); }
.dm-badge {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: #dc2626; vertical-align: top; margin-inline-start: 2px;
    animation: dm-pulse 1.4s ease-in-out infinite;
}

@media (max-width: 1023px) {
    #dm-pane-phone:checked ~ .dm-stage .dm-kitchen-col,
    #dm-pane-kitchen:checked ~ .dm-stage .dm-phone-col { display: none; }
    #dm-pane-phone:checked ~ .dm-guide .dm-go-phone,
    #dm-pane-kitchen:checked ~ .dm-guide .dm-go-kitchen { display: none; }
    .dm-pane-label { display: none; }
}
@media (min-width: 1024px) {
    .dm-tabs, .dm-guide-switch { display: none !important; }
}

/* ---------- Guide ---------- */
.dm-guide {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--dm-ink); color: #fff; border-radius: 16px; padding: 14px 18px; margin-bottom: 20px;
}
.dm-guide:focus { outline: none; }
.dm-guide:focus-visible { outline: 2px solid var(--dm-brand); outline-offset: 2px; }
.dm-guide-main { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.dm-guide-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    color: #f0b79d;
}
.dm-guide-text { font-weight: 600; font-size: 15px; margin: 0; }
.dm-dots { display: inline-flex; gap: 5px; }
.dm-dot { width: 18px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.2); }
.dm-dot-done { background: #f0b79d; }
.dm-dot-active { background: #fff; }
.dm-guide-actions { display: flex; align-items: center; gap: 14px; }
.dm-guide-switch {
    background: var(--dm-brand); color: #fff; font-size: 13px; font-weight: 600;
    padding: 7px 12px; border-radius: 9px; cursor: pointer; animation: dm-attn 1.6s ease-in-out infinite;
}
.dm-guide .dm-link { color: rgba(255,255,255,.7); }
.dm-guide .dm-link:hover { color: #fff; }
.dm-link {
    background: none; border: 0; padding: 0; font-size: 13px; font-weight: 500;
    color: var(--dm-muted); text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Stage ---------- */
.dm-stage { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1024px) {
    .dm-stage { grid-template-columns: 360px minmax(0, 1fr); gap: 40px; }
}
.dm-pane-label {
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    color: var(--dm-faint); margin: 0 0 10px; text-align: center;
}
.dm-sandbox-note { text-align: center; font-size: 13px; color: var(--dm-faint); margin-top: 18px; }

/* ---------- Phone frame ---------- */
.dm-phone-col { display: flex; flex-direction: column; align-items: center; }
.dm-phone {
    width: 100%; max-width: 360px; background: #1a1a1a; border-radius: 42px; padding: 10px;
    box-shadow: 0 30px 60px -15px rgba(60, 40, 30, .35);
}
.dm-statusbar {
    display: flex; justify-content: space-between; align-items: center;
    color: #fff; font-size: 12px; font-weight: 600; padding: 4px 20px 6px;
}
.dm-notch { width: 90px; height: 22px; background: #000; border-radius: 12px; }
.dm-urlbar {
    background: #2a2a2a; color: rgba(255,255,255,.75); font-size: 11px; text-align: center;
    border-radius: 10px; padding: 5px 8px; margin: 0 6px 8px;
}
.dm-viewport {
    position: relative; height: 620px; background: var(--dm-surface);
    border-radius: 30px; overflow: hidden;
}
@media (max-width: 400px) { .dm-viewport { height: 560px; } }
.dm-screen { position: absolute; inset: 0; display: flex; flex-direction: column; color: var(--dm-ink); }
.dm-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.dm-pad { padding: 14px; }
.dm-spacer { height: 84px; }

/* menu header */
.dm-hero {
    background: linear-gradient(135deg, var(--dm-brand-dark), var(--dm-brand));
    color: #fff; padding: 20px 16px 16px;
}
.dm-hero-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dm-logo {
    width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--dm-brand);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
}
.dm-hero-name { font-weight: 800; font-size: 17px; margin: 0; font-family: Manrope, Inter, sans-serif; }
.dm-hero-sub { font-size: 12px; opacity: .8; margin: 2px 0 0; }
.dm-table-pill {
    display: inline-block; background: rgba(255,255,255,.2); color: #fff;
    font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.dm-table-pill-sm { background: var(--dm-brand-light); color: var(--dm-brand-dark); font-size: 11px; }
.dm-wifi {
    display: flex; align-items: center; gap: 8px; font-size: 12px;
    margin: 12px 14px 0; padding: 9px 12px; background: #fff; border-radius: 12px;
    box-shadow: 0 2px 8px rgba(85,67,60,.05);
}
.dm-wifi strong { margin-inline-start: auto; font-weight: 600; }
.dm-chips {
    display: flex; gap: 6px; overflow-x: auto; padding: 14px 14px 4px; scrollbar-width: none;
}
.dm-chips::-webkit-scrollbar { display: none; }
.dm-chip {
    flex-shrink: 0; border: 1px solid var(--dm-border); background: #fff; color: var(--dm-muted);
    font-size: 13px; font-weight: 600; padding: 6px 13px; border-radius: 999px;
}
.dm-chip-on { background: var(--dm-brand); border-color: var(--dm-brand); color: #fff; }
.dm-cat-title {
    font-family: Manrope, Inter, sans-serif; font-weight: 800; font-size: 16px;
    margin: 14px 16px 8px;
}
.dm-list { display: flex; flex-direction: column; gap: 8px; padding: 0 14px; }
.dm-pad .dm-list { padding: 0; }

.dm-item {
    display: flex; gap: 12px; align-items: flex-start; text-align: start; width: 100%;
    background: #fff; border: 1px solid transparent; border-radius: 14px; padding: 10px;
    box-shadow: 0 2px 8px rgba(85,67,60,.05); transition: border-color .15s, transform .1s;
}
.dm-item:not(:disabled):hover { border-color: var(--dm-border); }
.dm-item:not(:disabled):active { transform: scale(.98); }
.dm-item-off { opacity: .55; }
.dm-item-icon {
    width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px; font-size: 26px;
    display: flex; align-items: center; justify-content: center;
}
.dm-item-icon-lg { width: 64px; height: 64px; font-size: 34px; }
.dm-tint-brand { background: #F5EDEA; }
.dm-tint-blue { background: #EAF1F7; }
.dm-tint-green { background: #EDF5E9; }
.dm-tint-yellow { background: #FDF6E3; }
.dm-tint-purple { background: #F1ECF7; }
.dm-tint-orange { background: #FBEDE3; }
.dm-tint-red { background: #FBE9E7; }
.dm-tint-stone { background: #F3EDE8; }
.dm-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dm-item-name { font-weight: 700; font-size: 14px; margin: 0; }
.dm-item-desc { font-size: 12px; color: var(--dm-muted); margin: 0; line-height: 1.35; }
.dm-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.dm-item-price { font-weight: 800; font-size: 14px; white-space: nowrap; }
.dm-plus {
    width: 28px; height: 28px; border-radius: 50%; background: var(--dm-brand); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600;
}
.dm-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.dm-tag { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 999px; }
.dm-tag-vegan, .dm-tag-vegetarian { background: #ecfdf5; color: #15803d; }
.dm-tag-gluten_free { background: #fef9c3; color: #854d0e; }
.dm-tag-spicy { background: #fef2f2; color: #b91c1c; }
.dm-tag-popular { background: var(--dm-brand-light); color: var(--dm-brand-dark); }
.dm-tag-new { background: #eff6ff; color: #1d4ed8; }
.dm-stock { font-size: 11px; font-weight: 600; color: var(--dm-amber); margin-top: 3px; }
.dm-stock-out { color: #b91c1c; }

/* floating cart bar */
.dm-cartbar {
    position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 5;
    display: flex; align-items: center; gap: 10px; justify-content: space-between;
    background: var(--dm-ink); color: #fff; border: 0; border-radius: 16px;
    padding: 13px 16px; font-size: 14px; font-weight: 700;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,.35); animation: dm-rise .25s ease-out;
}
.dm-cartbar > span:nth-child(2) { flex: 1; text-align: start; }
.dm-cartbar-count {
    background: var(--dm-brand); border-radius: 8px; min-width: 26px; height: 26px; padding: 0 6px;
    display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
}

/* item sheet */
.dm-sheet-backdrop {
    position: absolute; inset: 0; z-index: 10; border: 0; background: rgba(20,15,10,.45);
    animation: dm-fade .2s ease-out;
}
.dm-sheet {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 11; max-height: 88%; overflow-y: auto;
    background: #fff; border-radius: 24px 24px 0 0; padding: 8px 16px 16px;
    animation: dm-rise .25s ease-out;
}
.dm-sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--dm-border); margin: 0 auto 14px; }
.dm-sheet-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.dm-sheet-title { font-weight: 800; font-size: 17px; margin: 0 0 2px; font-family: Manrope, Inter, sans-serif; }
.dm-sheet-head > div { flex: 1; min-width: 0; }
.dm-sheet:focus { outline: none; }
.dm-sheet-close {
    flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--dm-alt); font-size: 20px; line-height: 1; color: var(--dm-muted);
}
.dm-sheet-close:focus-visible { outline: 2px solid var(--dm-brand); outline-offset: 2px; }
.dm-opt-title { font-weight: 700; font-size: 13px; margin: 14px 0 8px; }
.dm-opts { display: flex; flex-direction: column; gap: 6px; }
.dm-opt {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer;
    border: 1.5px solid var(--dm-border); border-radius: 12px; font-size: 14px;
}
.dm-opt input { accent-color: var(--dm-brand); width: 17px; height: 17px; margin: 0; }
.dm-opt-on { border-color: var(--dm-brand); background: var(--dm-brand-light); }
.dm-opt-name { flex: 1; font-weight: 500; }
.dm-opt-price { font-size: 13px; color: var(--dm-muted); }
/* Primary action stays reachable: pinned to the bottom of the (scrolling) sheet,
   so it never ends up below the phone screen on short viewports. */
.dm-sheet-foot {
    display: flex; gap: 10px; align-items: stretch;
    position: sticky; bottom: -16px; z-index: 1;
    margin: 16px -16px -16px; padding: 12px 16px 16px; background: #fff;
    box-shadow: 0 -10px 16px -12px rgba(85, 67, 60, .25);
}
.dm-sheet-limit { font-size: 12px; color: var(--dm-muted); text-align: center; margin: 10px 0 0; }

.dm-qty {
    display: inline-flex; align-items: center; border: 1.5px solid var(--dm-border); border-radius: 12px;
}
.dm-qty button {
    width: 38px; height: 44px; border: 0; background: none; font-size: 18px; font-weight: 600; color: var(--dm-ink);
}
.dm-qty button:disabled { color: var(--dm-border); }
.dm-qty span { min-width: 22px; text-align: center; font-weight: 700; }
.dm-qty-sm button { width: 30px; height: 32px; font-size: 16px; }

/* buttons */
.dm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 0; border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 700;
    text-decoration: none; transition: filter .15s, transform .1s; position: relative;
}
.dm-btn:not(:disabled):hover { filter: brightness(1.08); }
.dm-btn:not(:disabled):active { transform: scale(.98); }
.dm-btn:disabled { opacity: .6; }
.dm-btn-brand { background: var(--dm-brand); color: #fff; }
.dm-btn-dark, .dm-btn-ready { background: var(--dm-ink); color: #fff; }
.dm-btn-pending { background: var(--dm-brand); color: #fff; }
.dm-btn-confirmed { background: #d97706; color: #fff; }
.dm-btn-preparing { background: var(--dm-green); color: #fff; }
.dm-btn-ghost { background: #fff; color: var(--dm-ink); border: 1.5px solid var(--dm-border); }
.dm-btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 9px; }
.dm-btn-lg { padding: 15px 20px; font-size: 16px; }
.dm-block { display: flex; width: 100%; }
.dm-grow { flex: 1; min-width: 0; }
.dm-attn { animation: dm-attn 1.6s ease-in-out infinite; }

.dm-spinner {
    display: none; width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: dm-spin .7s linear infinite;
}
.dm-btn.htmx-request .dm-spinner, .dm-btn[disabled] .dm-spinner { display: inline-block; }
.dm-btn.htmx-request .dm-when-idle, .dm-btn[disabled] .dm-when-idle { display: none; }

/* cart */
.dm-topbar {
    display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 8px;
    padding: 14px 14px 10px; background: #fff; border-bottom: 1px solid var(--dm-border);
}
.dm-topbar-title { text-align: center; font-weight: 800; font-size: 15px; margin: 0; }
.dm-back {
    width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--dm-alt); font-size: 16px;
}
.dm-line {
    display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 14px; padding: 12px;
    box-shadow: 0 2px 8px rgba(85,67,60,.05);
}
.dm-line-price { font-weight: 700; font-size: 13px; margin: 4px 0 0; }
.dm-label { display: block; font-size: 13px; font-weight: 600; margin: 16px 0 6px; }
.dm-textarea {
    width: 100%; box-sizing: border-box; border: 1.5px solid var(--dm-border); border-radius: 12px;
    padding: 10px 12px; font: inherit; font-size: 13px; resize: none; background: #fff;
}
.dm-textarea:focus { outline: none; border-color: var(--dm-brand); }
.dm-note {
    font-size: 12px; color: var(--dm-brand-dark); background: var(--dm-brand-light);
    border-radius: 10px; padding: 9px 11px; margin: 12px 0 0;
}
.dm-footer {
    position: absolute; left: 0; right: 0; bottom: 0; background: #fff;
    border-top: 1px solid var(--dm-border); padding: 12px 14px 14px;
}
.dm-total-row { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.dm-card .dm-total-row { margin-bottom: 0; }
.dm-total { font-size: 18px; font-weight: 800; }
.dm-empty { text-align: center; padding: 60px 10px; color: var(--dm-muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dm-empty-icon { font-size: 36px; margin: 0; }

/* tracking */
.dm-order-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dm-order-no { font-size: 24px; font-weight: 800; margin: 0; font-family: Manrope, Inter, sans-serif; }
.dm-pin {
    display: flex; flex-direction: column; align-items: center; background: var(--dm-ink); color: #fff;
    padding: 6px 12px; border-radius: 12px;
}
.dm-pin strong { font-size: 18px; letter-spacing: .15em; font-variant-numeric: tabular-nums; }
.dm-pin .dm-xs { color: rgba(255,255,255,.65); }
.dm-ready-banner {
    background: #dcfce7; color: #166534; font-weight: 700; font-size: 14px; text-align: center;
    padding: 12px; border-radius: 14px; margin-bottom: 12px; animation: dm-pop .4s ease-out;
}
.dm-timeline { list-style: none; margin: 0 0 12px; padding: 14px; background: #fff; border-radius: 14px; }
.dm-tl-step { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
.dm-tl-step:last-child { padding-bottom: 0; }
.dm-tl-step:not(:last-child)::after {
    content: ""; position: absolute; inset-inline-start: 11px; top: 26px; bottom: 2px; width: 2px;
    background: var(--dm-border);
}
.dm-tl-done:not(:last-child)::after { background: var(--dm-brand); }
.dm-tl-dot {
    width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; background: var(--dm-inset);
    color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.dm-tl-done .dm-tl-dot { background: var(--dm-brand); }
.dm-tl-current .dm-tl-dot { background: #f59e0b; box-shadow: 0 0 0 4px #fef3c7; animation: dm-pulse 1.4s ease-in-out infinite; }
.dm-tl-name { font-weight: 700; font-size: 14px; margin: 2px 0 0; }
.dm-tl-todo .dm-tl-name { color: var(--dm-faint); }
.dm-tl-desc { font-size: 12px; color: var(--dm-muted); margin: 2px 0 0; }
.dm-waiting, .dm-complete {
    display: flex; align-items: center; gap: 8px; justify-content: center;
    font-size: 13px; color: var(--dm-muted); margin: 0 0 12px;
}
.dm-est {
    display: flex; justify-content: space-between; align-items: center; background: #fffbeb; color: #92400e;
    border-radius: 12px; padding: 10px 14px; font-size: 13px; margin-bottom: 12px;
}
.dm-card { background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.dm-sum-row { font-size: 13px; margin: 6px 0 0; }
.dm-stars { display: flex; justify-content: center; gap: 4px; margin: 8px 0 0; }
.dm-stars button, .dm-stars span {
    background: none; border: 0; font-size: 30px; line-height: 1; color: var(--dm-border); padding: 2px;
}
.dm-stars .dm-star-on { color: #f59e0b; }
.dm-stars button:hover { transform: scale(1.12); }
.dm-waiter-state {
    text-align: center; font-size: 13px; font-weight: 600; color: var(--dm-amber);
    background: #fffbeb; border-radius: 12px; padding: 11px; margin: 0;
}
.dm-waiter-ack { color: var(--dm-green); background: #f0fdf4; }

/* push notification */
.dm-push {
    position: absolute; top: 8px; left: 8px; right: 8px; z-index: 20;
    display: flex; gap: 10px; align-items: center; padding: 11px 12px;
    background: rgba(255,255,255,.96); border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.2);
    animation: dm-push 5.5s ease-in-out forwards;
}
.dm-push-icon {
    width: 34px; height: 34px; border-radius: 9px; background: var(--dm-brand); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0;
}
.dm-push-app { font-size: 11px; color: var(--dm-faint); margin: 0; }
.dm-push-text { font-size: 13px; font-weight: 600; margin: 1px 0 0; }

/* ---------- Kitchen display ---------- */
.dm-kitchen {
    background: #1f1d1b; color: #f5f2ee; border-radius: 24px; padding: 18px;
    box-shadow: 0 30px 60px -20px rgba(30, 20, 10, .45); min-height: 300px;
}
.dm-k-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dm-k-title { font-weight: 800; font-size: 17px; margin: 0; font-family: Manrope, Inter, sans-serif; }
.dm-k-sub { font-size: 12px; color: #a8a29e; margin: 2px 0 0; }
.dm-live-badge {
    display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
    background: rgba(34,197,94,.12); color: #4ade80; padding: 5px 10px; border-radius: 999px;
}
.dm-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-bottom: 14px; }
.dm-stat { background: #2a2724; border-radius: 12px; padding: 10px 12px; }
/* Long single-word labels (de "Ø Zubereitungszeit") must break inside the
   ~70px tile on phones instead of running past its edge. */
.dm-stat p { font-size: 11px; color: #a8a29e; margin: 0 0 2px; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.dm-stat strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.dm-alert {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    background: #fef3c7; color: #78350f; font-weight: 600; font-size: 13px;
    border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; animation: dm-pop .35s ease-out;
}
.dm-cols { display: grid; gap: 12px; }
@media (min-width: 640px) { .dm-cols { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.dm-col { background: #2a2724; border-radius: 16px; padding: 10px; min-height: 120px; }
.dm-col-title {
    display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em; color: #d6d3d1; margin: 2px 4px 10px;
}
.dm-col-count {
    margin-inline-start: auto; background: #3a3632; color: #e7e5e4; border-radius: 999px;
    padding: 1px 8px; font-size: 11px;
}
.dm-cdot { width: 8px; height: 8px; border-radius: 50%; }
.dm-cdot-blue { background: #60a5fa; }
.dm-cdot-amber { background: #fbbf24; }
.dm-cdot-green { background: #4ade80; }
.dm-col-empty { font-size: 12px; color: #a8a29e; text-align: center; padding: 18px 0; margin: 0; }
.dm-ko {
    background: #fff; color: var(--dm-ink); border-radius: 12px; padding: 12px; margin-bottom: 8px;
    border: 2px solid transparent;
}
.dm-ko-mine { border-color: var(--dm-brand); animation: dm-pop .4s ease-out; }
.dm-ko-head { display: flex; justify-content: space-between; align-items: baseline; }
.dm-ko-table { font-weight: 800; font-size: 15px; }
.dm-ko-id { font-size: 12px; color: var(--dm-faint); }
.dm-ko-time { font-size: 11px; color: var(--dm-muted); margin: 2px 0 8px; }
.dm-ko-you { color: var(--dm-brand); font-weight: 700; }
.dm-ko-items { list-style: none; padding: 0; margin: 0 0 10px; font-size: 13px; }
.dm-ko-items li { padding: 3px 0; border-top: 1px dashed var(--dm-border); }
.dm-ko-items li:first-child { border-top: 0; }
.dm-ko-items span { display: block; font-size: 11px; color: var(--dm-muted); padding-inline-start: 20px; }
.dm-ko-note { font-size: 12px; background: #fffbeb; color: #92400e; border-radius: 8px; padding: 6px 8px; margin: 0 0 10px; }
.dm-ko .dm-btn { padding: 9px 12px; font-size: 13px; }

/* ---------- Sign-up CTAs ---------- */
.dm-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.dm-modal-backdrop {
    position: absolute; inset: 0; border: 0; background: rgba(20, 15, 10, .55); cursor: default !important;
    animation: dm-fade .3s ease-out .6s both;
}
.dm-modal-card {
    position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 24px;
    padding: 32px 28px 24px; text-align: center; color: var(--dm-ink);
    box-shadow: 0 30px 80px rgba(0,0,0,.3); animation: dm-modal .45s cubic-bezier(.2,.9,.3,1.2) .6s both;
}
.dm-modal-close {
    position: absolute; top: 12px; inset-inline-end: 12px; width: 34px; height: 34px; border-radius: 50%;
    border: 0; background: var(--dm-alt); font-size: 20px; line-height: 1; color: var(--dm-muted);
}
.dm-modal-emoji { font-size: 40px; margin: 0 0 6px; }
.dm-modal-badge {
    display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    color: var(--dm-brand-dark); background: var(--dm-brand-light); padding: 4px 10px; border-radius: 999px; margin: 0 0 12px;
}
.dm-modal-title { font-family: Manrope, Inter, sans-serif; font-size: 24px; font-weight: 800; line-height: 1.2; margin: 0 0 10px; }
.dm-modal-desc { color: var(--dm-muted); font-size: 15px; line-height: 1.5; margin: 0 0 20px; }
.dm-modal-note { font-size: 12px; color: var(--dm-faint); margin: 10px 0 16px; }

.dm-sticky {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin: 0 auto;
    display: flex; align-items: center; gap: 14px; background: var(--dm-ink); color: #fff;
    border-radius: 18px; padding: 12px 12px 12px 18px; box-shadow: 0 20px 40px rgba(0,0,0,.3);
    animation: dm-rise .35s ease-out;
}
.dm-sticky-text { flex: 1; margin: 0; font-size: 14px; min-width: 0; }
.dm-sticky-text span { color: rgba(255,255,255,.65); font-size: 13px; }
.dm-sticky .dm-btn { white-space: nowrap; }
.dm-sticky-close {
    background: none; border: 0; color: rgba(255,255,255,.6); font-size: 22px; line-height: 1;
    min-width: 36px; min-height: 36px; padding: 4px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dm-sticky-close:hover { color: #fff; background: rgba(255,255,255,.08); }
.dm-sticky-close:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
@media (max-width: 640px) {
    /* Text + close on the first row, a full-width CTA underneath: long translated
       labels (de/fr/es) no longer squeeze the text into a sliver. */
    .dm-sticky { flex-wrap: wrap; padding: 12px; padding-inline-start: 16px; gap: 8px 10px; }
    .dm-sticky-text { flex: 1 1 calc(100% - 46px); }
    .dm-sticky-text span { display: none; }
    .dm-sticky-close { order: 2; }
    .dm-sticky .dm-btn { order: 3; flex: 1 1 100%; white-space: normal; text-align: center; }
}

/* ---------- Utilities ---------- */
.dm-muted { color: var(--dm-muted); }
.dm-xs { font-size: 11px; }
.dm-sm { font-size: 13px; }
.dm-strong { font-weight: 700; margin: 0; }
.dm-center { text-align: center; }
.dm-mt { margin-top: 10px; }
.dm-pulse {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #f59e0b;
    animation: dm-pulse 1.4s ease-in-out infinite;
}
.dm-pulse-green { background: #4ade80; }
.dm-pulse-brand { background: #B85C38; }

/* Hardcoded arrow glyphs point the other way in RTL */
[dir="rtl"] .dm-arrow { display: inline-block; transform: scaleX(-1); }

@keyframes dm-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes dm-spin { to { transform: rotate(360deg); } }
@keyframes dm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dm-rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dm-pop { 0% { transform: scale(.94); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes dm-modal { from { transform: translateY(20px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dm-attn { 0%, 100% { box-shadow: 0 0 0 0 rgba(184,92,56,.55); } 50% { box-shadow: 0 0 0 7px rgba(184,92,56,0); } }
@keyframes dm-push {
    0% { transform: translateY(-130%); opacity: 0; }
    8%, 88% { transform: none; opacity: 1; }
    100% { transform: translateY(-130%); opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
    .dm-sim *, .dm-sim *::before, .dm-sim *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    /* No slide, but still hide the banner after a few seconds */
    .dm-sim .dm-push { animation: dm-push-hide 5.5s step-end forwards !important; }
}
@keyframes dm-push-hide { to { visibility: hidden; } }
