/* ClinicFlow product UI previews (sample data, not a live clinic).
   Everything is sized in em off a container-based font size, so a preview scales with its box. */
.mock { container-type: inline-size; }
.app, .scr, .phone {
  --t: #0F766E; --t2: #14B8A6; --mint: #E8F5F2; --bg: #F8FAFC; --ink: #1E293B; --mut: #64748B; --ln: #E2E8F0;
  font-family: Inter, system-ui, sans-serif; color: var(--ink); text-align: left; line-height: 1.35;
  font-size: calc(100cqw / 76);
}
.phone { font-size: calc(100cqw / 30); }
.app *, .scr *, .phone * { box-sizing: border-box; }
.app svg, .scr svg { display: inline-block; flex: none; }

/* ---------------- Dashboard ---------------- */
.app {
  display: grid; grid-template-columns: 15.6em 1fr; background: var(--bg);
  border-radius: 1.6em; overflow: hidden; border: .1em solid var(--ln);
  box-shadow: 0 3em 6em -2.5em rgba(15, 23, 42, .35);
}
.app-side { background: #fff; border-right: .1em solid var(--ln); padding: 1.8em 1.2em; display: flex; flex-direction: column; gap: 2em; }
.app-logo { display: flex; align-items: center; gap: .6em; font-family: "Plus Jakarta Sans", Inter, sans-serif; font-weight: 800; font-size: 1.5em; letter-spacing: -.01em; }
.app-logo svg { width: 1.7em; height: 1.7em; }
.app-logo span { color: var(--t); }
.app-nav { display: grid; gap: .3em; }
.app-nav span { display: flex; align-items: center; gap: .8em; padding: .75em .9em; border-radius: .8em; font-size: 1.22em; color: var(--mut); font-weight: 500; }
.app-nav span svg { width: 1.15em; height: 1.15em; }
.app-nav .on { background: var(--mint); color: var(--t); font-weight: 700; }
.app-clinic { margin-top: auto; display: flex; gap: .7em; align-items: center; padding: .9em; border-radius: 1em; background: var(--bg); font-size: 1.1em; }
.app-clinic i { width: 2.6em; height: 2.6em; border-radius: .8em; background: var(--t); color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 700; }
.app-clinic b { display: block; } .app-clinic small { color: var(--mut); }
.app-main { padding: 1.8em 2em; display: flex; flex-direction: column; gap: 1.5em; min-width: 0; }
.app-top { display: flex; align-items: center; gap: 1em; }
.app-search { flex: 1; display: flex; align-items: center; gap: .7em; background: #fff; border: .1em solid var(--ln); border-radius: .9em; padding: .8em 1em; color: var(--mut); font-size: 1.12em; white-space: nowrap; overflow: hidden; }
.app-search svg { width: 1.2em; height: 1.2em; }
.app-date { font-size: 1.12em; color: var(--mut); white-space: nowrap; }
.app-user { width: 2.8em; height: 2.8em; border-radius: 50%; background: linear-gradient(135deg, var(--t2), var(--t)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.05em; flex: none; }
.app-hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 1em; }
.app-hello small { color: var(--mut); font-size: 1.12em; }
.app-hello b { display: block; font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 2em; font-weight: 800; letter-spacing: -.02em; }
.app-btn { background: var(--t); color: #fff; font-weight: 700; font-size: 1.12em; padding: .8em 1.2em; border-radius: .9em; white-space: nowrap; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1em; }
.kpi { background: #fff; border: .1em solid var(--ln); border-radius: 1.1em; padding: 1.1em 1.2em; min-width: 0; }
.kpi small { display: block; color: var(--mut); font-size: 1.02em; font-weight: 500; white-space: nowrap; }
.kpi b { display: block; font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 2.4em; font-weight: 800; letter-spacing: -.02em; margin: .12em 0; white-space: nowrap; }
.kpi em { font-style: normal; font-size: 1em; color: var(--t); font-weight: 600; white-space: nowrap; }
.app-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 1em; }
.panel { background: #fff; border: .1em solid var(--ln); border-radius: 1.1em; padding: 1.2em; min-width: 0; }
.ph { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7em; }
.ph b { font-size: 1.28em; } .ph span { font-size: 1.02em; color: var(--t); font-weight: 600; }
.row { display: grid; grid-template-columns: 3.4em 2.8em 1fr auto; align-items: center; gap: .8em; padding: .65em 0; border-top: .1em solid var(--ln); }
.row:first-of-type { border-top: 0; }
.row time { font-size: 1.08em; color: var(--mut); font-weight: 600; }
.av { width: 2.8em; height: 2.8em; border-radius: 50%; display: grid; place-items: center; font-size: 1em; font-weight: 700; background: var(--mint); color: var(--t); }
.row b { display: block; font-size: 1.14em; } .row small { color: var(--mut); font-size: 1em; white-space: nowrap; }
.st { font-style: normal; font-size: .95em; font-weight: 700; padding: .35em .8em; border-radius: 99em; white-space: nowrap; }
.st.done { background: #DCFCE7; color: #15803D; } .st.cons { background: #E0F2FE; color: #0369A1; }
.st.wait { background: #FEF3C7; color: #B45309; } .st.book { background: #F1F5F9; color: #475569; }
.st.call { background: var(--mint); color: var(--t); } .st.cancel { background: #FEE2E2; color: #B91C1C; }
.st.paid { background: #DCFCE7; color: #15803D; } .st.due { background: #FEE2E2; color: #B91C1C; }
.live { color: #16A34A !important; display: inline-flex; align-items: center; gap: .4em; }
.live::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 .3em rgba(22, 163, 74, .18); }
.now { background: linear-gradient(135deg, var(--t), #115E59); color: #fff; border-radius: 1em; padding: 1.1em; text-align: center; margin-bottom: .8em; }
.now small { opacity: .8; font-size: 1.02em; }
.now b { display: block; font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 3.4em; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.now span { font-size: 1.02em; opacity: .85; }
.q { list-style: none; margin: 0; padding: 0; display: grid; gap: .5em; }
.q li { display: grid; grid-template-columns: 4.4em 1fr auto; align-items: center; gap: .6em; padding: .65em .8em; border-radius: .8em; background: var(--bg); transition: transform .5s ease, opacity .5s ease; }
.q li b { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 1.22em; color: var(--t); }
.q li span { font-size: 1.08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- Product screens (window frame) ---------------- */
.scr { background: var(--bg); border-radius: 1.6em; border: .1em solid var(--ln); overflow: hidden; box-shadow: 0 3em 6em -2.5em rgba(15, 23, 42, .35); }
.scr-bar { display: flex; align-items: center; gap: .55em; padding: 1em 1.4em; background: #fff; border-bottom: .1em solid var(--ln); }
.scr-bar i { width: 1em; height: 1em; border-radius: 50%; background: #E2E8F0; }
.scr-bar b { margin-left: .8em; font-size: 1.2em; }
.scr-bar em { margin-left: auto; font-style: normal; font-size: 1.05em; color: var(--mut); }
.scr-body { padding: 1.8em; display: grid; gap: 1.2em; min-height: 30em; align-content: start; }
.card-w { background: #fff; border: .1em solid var(--ln); border-radius: 1.1em; padding: 1.3em; }
.lbl { display: block; font-size: 1em; color: var(--mut); font-weight: 600; margin-bottom: .45em; }
.fld { background: var(--bg); border: .1em solid var(--ln); border-radius: .8em; padding: .8em 1em; font-size: 1.15em; }
.fld.tall { min-height: 6.4em; line-height: 1.5; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2em; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; }
.chipline { display: flex; flex-wrap: wrap; gap: .5em; }
.found { display: flex; align-items: center; gap: 1em; }
.found .av { width: 3.6em; height: 3.6em; font-size: 1.2em; }
.found b { display: block; font-size: 1.35em; } .found small { color: var(--mut); font-size: 1.05em; }
.btn-t { display: inline-flex; align-items: center; gap: .5em; background: var(--t); color: #fff; font-weight: 700; font-size: 1.12em; padding: .8em 1.2em; border-radius: .9em; }
.btn-o { display: inline-flex; align-items: center; gap: .5em; border: .12em solid var(--t); color: var(--t); font-weight: 700; font-size: 1.12em; padding: .7em 1.1em; border-radius: .9em; }
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9em; }
.col { background: #fff; border: .1em solid var(--ln); border-radius: 1em; padding: .9em; display: grid; gap: .6em; align-content: start; min-height: 22em; }
.col h5 { margin: 0 0 .2em; font-size: 1.05em; color: var(--mut); text-transform: uppercase; letter-spacing: .06em; display: flex; justify-content: space-between; }
.tok { border-radius: .8em; padding: .8em; background: var(--bg); border: .1em solid var(--ln); }
.tok b { display: block; font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 1.5em; color: var(--t); }
.tok span { font-size: 1.02em; color: var(--ink); }
.tok.hot { background: var(--mint); border-color: rgba(15, 118, 110, .35); }
.rcpt { background: #fff; border: .1em solid var(--ln); border-radius: 1.1em; padding: 1.6em; display: grid; gap: .8em; }
.rcpt h4 { margin: 0; font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 1.6em; }
.line { display: flex; justify-content: space-between; font-size: 1.15em; }
.line.tot { border-top: .12em dashed var(--ln); padding-top: .8em; font-weight: 800; font-size: 1.4em; }
.bars { display: flex; align-items: flex-end; gap: 1em; height: 18em; padding: 1em 0 0; border-bottom: .12em solid var(--ln); }
.bars i { flex: 1; border-radius: .6em .6em 0 0; background: linear-gradient(180deg, var(--t2), var(--t)); position: relative; }
.bars i.dim { background: linear-gradient(180deg, #99F6E4, #5EEAD4); }
.days { display: flex; gap: 1em; } .days span { flex: 1; text-align: center; font-size: 1em; color: var(--mut); }
.stat b { display: block; font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 2.2em; font-weight: 800; }
.stat small { color: var(--mut); font-size: 1.02em; }
.note { font-size: 1em; color: var(--mut); display: flex; align-items: center; gap: .5em; }
.note svg { width: 1.2em; height: 1.2em; }

/* Phone (public booking page) */
.phone { width: 100%; max-width: 30em; margin: 0 auto; background: #0F172A; border-radius: 3.6em; padding: 1.1em; box-shadow: 0 3em 6em -2.5em rgba(15, 23, 42, .5); }
.phone-in { background: var(--bg); border-radius: 2.7em; overflow: hidden; padding: 2.4em 1.6em 1.8em; display: grid; gap: 1.1em; }
.phone .hdr { display: flex; align-items: center; gap: .8em; }
.phone .hdr i { width: 3.2em; height: 3.2em; border-radius: 1em; background: var(--t); color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 800; }
.phone .hdr b { display: block; font-size: 1.3em; } .phone .hdr small { color: var(--mut); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; }
.slots span { text-align: center; padding: .7em 0; border-radius: .8em; background: #fff; border: .1em solid var(--ln); font-weight: 600; font-size: 1.05em; }
.slots .pick { background: var(--t); color: #fff; border-color: var(--t); }
.slots .off { color: #CBD5E1; text-decoration: line-through; }
.dates { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5em; }
.dates span { text-align: center; padding: .6em 0; border-radius: .9em; background: #fff; border: .1em solid var(--ln); font-size: .95em; color: var(--mut); }
.dates span b { display: block; font-size: 1.35em; color: var(--ink); }
.dates .pick { background: var(--mint); border-color: var(--t); }

@container (max-width: 560px) {
  .app, .scr { font-size: calc(100cqw / 56); }
  .app { grid-template-columns: 1fr; }
  .app-side, .app-date { display: none; }
  .app-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .board { grid-template-columns: repeat(2, 1fr); }
  .two { grid-template-columns: 1fr; }
}
