/* Railway mobile / demo — la cornice su computer, lo schermo intero su telefono, i pezzi solo-demo.
   I componenti dell'app stanno in ../shared/mobile.css. */
body.demo-page { margin: 0; min-height: 100dvh; display: grid; place-items: center; background: #ececec;
  font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
.demo-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px 16px; }
.demo-note { margin: 0; font-size: 13px; color: #737373; }
.demo-note a { color: #171717; text-decoration: underline; text-underline-offset: 3px; }

.app { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.phone button { font-family: inherit; }
.phone :focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.phone .btn:not([disabled]):active, .phone .chip:active { transform: scale(.98); }
.phone .btn--outline:not([disabled]):hover, .phone .btn--ghost:not([disabled]):hover { background: var(--muted); }
.phone .btn--primary:not([disabled]):hover { background: #262626; }

/* controlli veri dentro l'aspetto di .input */
.field-input { all: unset; flex: 1; min-width: 0; font-size: 16px; color: var(--foreground); }
.field-input::placeholder { color: color-mix(in srgb, var(--muted-foreground) 70%, transparent); }
textarea.field-input { white-space: pre-wrap; min-height: 64px; }

.list-link { color: inherit; }
a.list-link:not(.row) { display: block; }
.list-link:active { background: var(--muted); }

/* sezione "Demo" in fondo al Profilo: si distingue dalle funzioni vere */
.demo-box { border: 1px dashed var(--brand); border-radius: var(--radius); padding: 14px; background: color-mix(in srgb, var(--brand-tint) 40%, var(--card)); }
.demo-box__title { display: flex; align-items: center; gap: 8px; font: 600 13px var(--font-sans); color: var(--brand-text); margin: 0 0 4px; }

/* su un telefono vero: niente cornice, schermo intero */
@media (max-width: 500px) {
  body.demo-page { display: block; background: var(--background); }
  .demo-wrap { padding: 0; }
  .demo-note { display: none; }
  .phone { width: 100vw; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  .statusbar { display: none; }
  .tabbar { height: auto; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .tabbar::after { display: none; }
}
