/* Pedler public demo — the banner and the "demo" notices. Everything else
   on these pages is the real app's own style.css. */

.demo-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 24px; min-height: 44px;
  background: #0B1F1B; color: #E6F2EE;
  font-size: 0.86rem; line-height: 1.35;
  position: relative; z-index: 31;
}
.demo-bar p { margin: 0; flex: 1; min-width: 0; }
.demo-bar strong { color: #fff; font-family: var(--font-brand); font-weight: 600; letter-spacing: 0.01em; }
.demo-bar-mark {
  width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #3DD6B0, #0E6B5C);
  color: #06201A; font: 700 0.8rem/1 var(--font-brand);
}
.demo-bar a { color: #BFE9DC; white-space: nowrap; font-weight: 500; }
.demo-bar a:hover { color: #fff; }
.demo-bar-cta {
  padding: 6px 12px; border-radius: var(--r-pill);
  background: #3DD6B0; color: #06201A !important; font-weight: 600;
}
.demo-bar-cta:hover { background: #6BE3C6; text-decoration: none; }
@media (max-width: 760px) {
  .demo-bar { padding: 8px 16px; gap: 10px; }
  .demo-bar-long, .demo-bar-link { display: none; }
}

/* Notices from the demo — deliberately a different voice from the app's
   own flash messages, so it's always clear which is which. */
.demo-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200;
  width: min(560px, calc(100vw - 32px));
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 12px 12px 14px; border-radius: 14px;
  background: #0B1F1B; color: #E6F2EE; box-shadow: 0 18px 50px rgba(6, 32, 26, 0.35);
  font-size: 0.9rem; line-height: 1.45;
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.demo-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.demo-toast-mark {
  flex-shrink: 0; margin-top: 1px; padding: 2px 7px; border-radius: 6px;
  background: #3DD6B0; color: #06201A; font: 700 0.72rem/1.4 var(--font-brand);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.demo-toast-text { flex: 1; }
.demo-toast-close {
  flex-shrink: 0; width: 28px; height: 28px; margin: -4px -2px -4px 0; border: 0; border-radius: 8px;
  background: transparent; color: #BFE9DC; font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.demo-toast-close:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
@media (max-width: 760px) {
  /* clear of the app's bottom navigation */
  .demo-toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .demo-toast { transition: none; }
}

.bubble.demo-new { animation: demo-pop 0.35s ease; }
.thread-job.job-booked:last-child { animation: demo-pop 0.35s ease; }
@keyframes demo-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.job.demo-status { opacity: 0.6; }

/* On-page "are you sure?" and the export preview */
.demo-confirm, .demo-sheet {
  position: fixed; z-index: 210; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 24px 70px rgba(6, 32, 26, 0.28), 0 0 0 100vmax rgba(11, 31, 27, 0.35);
  padding: 20px; display: grid; gap: 14px;
}
.demo-sheet { width: min(720px, calc(100vw - 32px)); }
.demo-confirm p { margin: 0; font-size: 1rem; }
.demo-confirm-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.demo-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo-sheet-head h2 { margin: 0; font-size: 1.1rem; }
.demo-sheet-head .demo-toast-close { color: var(--ink-2); }
.demo-sheet-note { margin: 0; color: var(--ink-2); font-size: 0.9rem; }
.demo-sheet-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.demo-sheet-table table { border-collapse: collapse; font-size: 0.8rem; min-width: 100%; }
.demo-sheet-table th, .demo-sheet-table td { padding: 7px 10px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
.demo-sheet-table th { background: var(--surface-2); font-weight: 600; }
.demo-sheet .btn { justify-self: start; }
