/* The drawn-screen kit: tiles holding cropped app panels in the app's own look, chips, rows,
   ticks and avatars, and the section label. Shared by the home page and the practice pages. */

.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 6px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.chip--wait { background: #fdf3dc; color: #7a5310; }
.chip--ok { background: var(--mint-soft); color: var(--green); }
.chip--mint { background: var(--mint); color: var(--forest-deep); }

/* A tile: one cropped moment of the product, colour kept inside it. */
.tile {
  position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 3;
  display: grid; place-items: center; padding: clamp(18px, 2.4vw, 34px);
  background: radial-gradient(80% 70% at 15% 10%, rgba(255, 255, 255, 0.55), transparent 55%), linear-gradient(135deg, var(--tile, #e6f1ea), var(--tile-2, var(--tile, #e6f1ea)));
}
/* Colour lives in the tiles: a pastel pair each, kept off the page chrome (Gus, 9 Nov: "more colour"). */
.tile--program { --tile: #d3f1cf; --tile-2: #eef9d6; }
.tile--id { --tile: #d5e7f8; --tile-2: #e6e0f7; }
.tile--screen { --tile: #e2dbf6; --tile-2: #f2dcef; }
.tile--watch { --tile: #cdeee5; --tile-2: #e3f6dc; }
.tile--clock { --tile: #e3f2c4; --tile-2: #d6f0d8; }
.tile--record { --tile: #c6e6d3; --tile-2: #dcefe1; }
.tile.loop { padding: 0; }
.tile .loop__video { width: 100%; height: 100%; object-fit: cover; }

/* Cropped UI, drawn in the app's own look, staged like a product shot: a main panel that runs
   off the tile and one fragment floating over it. Demonstration data. Sizes follow the tile. */
.tile:has(.scene) { container-type: inline-size; padding: 0; place-items: stretch; }
.scene { position: relative; width: 100%; height: 100%; font-size: clamp(10px, 1.8cqw, 13.5px); }
.scene::before { /* a fine grid under the panels, faded out toward the edges */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(13, 61, 41, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(13, 61, 41, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(70% 70% at 40% 40%, #000 30%, transparent 85%); mask-image: radial-gradient(70% 70% at 40% 40%, #000 30%, transparent 85%);
}
.ui {
  position: absolute; left: 7%; top: 10%; width: 74%;
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(13, 23, 26, 0.07), 0 1px 2px rgba(13, 23, 26, 0.05), 0 12px 24px -12px rgba(13, 23, 26, 0.16), 0 40px 80px -40px rgba(13, 61, 41, 0.35);
  font-size: 1em; color: var(--ink);
}
.ui__head { padding: 1.25em 1.4em 1.05em; border-bottom: 1px solid #eef1ef; }
.ui__title { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.ui__title b { font-size: 1.07em; font-weight: 600; letter-spacing: -0.01em; }
.ui__title .num { color: var(--ink-3); }
.scene .chip { height: 1.75em; padding: 0 0.7em; font-size: 0.8em; }
.ui__progress { margin-top: 0.95em; height: 4px; border-radius: 999px; background: #e9eeeb; overflow: hidden; }
.ui__progress span { display: block; height: 100%; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--forest), #2f8a62); }
.ui__meta { margin-top: 0.55em; font-size: 0.8em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ui__rows { margin: 0; padding: 0.35em 0; list-style: none; }
.ui__rows li { display: flex; align-items: center; gap: 0.85em; padding: 0.62em 1.4em; font-size: 0.93em; }
.ui__rows .is-now { background: linear-gradient(90deg, var(--mint-soft), rgba(234, 248, 236, 0.4)); box-shadow: inset 2px 0 0 var(--forest); }
.ui__rows .is-skip { color: var(--ink-3); }
.ui .num { font: 500 0.78em/1 var(--mono); color: #9aa6a0; min-width: 1.9em; }
.ui__rows .tick, .ui__rows .pill, .ui__rows .ring { margin-left: auto; }
.ring { flex: none; width: 1.15em; height: 1.15em; border-radius: 50%; border: 1.5px solid #cdd6d1; }
.tick { flex: none; width: 1.15em; height: 1.15em; border-radius: 50%; background: var(--forest); position: relative; }
.tick::after { content: ""; position: absolute; left: 36%; top: 20%; width: 24%; height: 44%; border: solid #fff; border-width: 0 0.13em 0.13em 0; transform: rotate(45deg); }
.pill { flex: none; display: inline-flex; align-items: center; height: 1.75em; padding: 0 0.7em; border-radius: 6px; font-size: 0.82em; font-weight: 500; background: #f1f4f2; color: var(--ink-3); white-space: nowrap; }
.pill--now { background: var(--forest); color: #fff; }
.pill--ok { background: var(--mint-soft); color: var(--green); }
.pill--wait { background: #fdf3dc; color: #7a5310; }
.av { flex: none; width: 2.1em; height: 2.1em; border-radius: 50%; display: grid; place-items: center; font-size: 0.78em; font-weight: 600; color: hsl(var(--h) 35% 28%); background: hsl(var(--h) 45% 92%); }
.who { display: grid; gap: 0.15em; min-width: 0; }
.who small { font-size: 0.82em; color: var(--ink-3); }

/* The floating fragment: a policy being confirmed, or the overnight result. */
.ui--float { left: auto; top: auto; right: 5%; bottom: 7%; width: 52%; padding: 1.15em 1.25em 1.1em; border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(13, 23, 26, 0.08), 0 2px 4px rgba(13, 23, 26, 0.06), 0 24px 48px -16px rgba(13, 23, 26, 0.28), 0 60px 90px -50px rgba(13, 61, 41, 0.45); }
.ui__kicker { display: flex; align-items: center; gap: 0.6em; font-size: 0.86em; font-weight: 600; }
.ui__kicker .num { color: var(--green); min-width: 0; }
.ui__body { margin-top: 0.55em; font-size: 0.86em; line-height: 1.5; color: var(--ink-2); }
.ui__confirm { margin-top: 0.95em; padding-top: 0.85em; border-top: 1px solid #eef1ef; display: flex; align-items: center; gap: 0.6em; font-size: 0.84em; font-weight: 500; }
.box { flex: none; width: 1.15em; height: 1.15em; border-radius: 4px; background: var(--forest); position: relative; }
.box::after { content: ""; position: absolute; left: 36%; top: 18%; width: 24%; height: 46%; border: solid var(--mint); border-width: 0 0.13em 0.13em 0; transform: rotate(45deg); }
.ui__btn { margin-left: auto; display: inline-flex; align-items: center; height: 2.2em; padding: 0 1em; border-radius: 999px; background: var(--forest); color: #fff; font-size: 0.95em; font-weight: 500; white-space: nowrap; }
.ui--toast { right: 6%; top: 7%; bottom: auto; width: 50%; display: flex; align-items: center; gap: 0.85em; padding: 0.95em 1.1em; }
.ui--toast p { display: grid; gap: 0.2em; font-size: 0.88em; }
.ui--toast small { font-size: 0.86em; color: var(--ink-3); }
.toast__icon { flex: none; width: 2.2em; height: 2.2em; border-radius: 50%; display: grid; place-items: center; background: var(--mint); }
.toast__icon .tick { width: 1.2em; height: 1.2em; }

/* Section labels (Gus, 8 Nov): the same mono label and icon tile as the Product menu groups. */
.label, .duties__head p.label, .price__head p.label { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; max-width: none; font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.label__tile { flex: none; width: 28px; height: 28px; border-radius: 7px; background: var(--forest); display: grid; place-items: center; }
.label__tile svg { width: 16px; height: 16px; color: #fff; --icon-accent: var(--mint); }
