/* Encaix App: panell de detall que s'expandeix des de la targeta */
:root {
  --good: #0f9d63;
  --pace: #2563eb;
  --bad: #c0362c;
}

[data-theme="dark"] {
  --good: #34d399;
  --pace: #60a5fa;
  --bad: #f87171;
}

/* Panell: neix amb la mida i la posició de la targeta i s'expandeix a pantalla completa */
.detail {
  --clip-top: 0px;
  --clip-right: 0px;
  --clip-bottom: 0px;
  --clip-left: 0px;
  --clip-radius: var(--radius);
  position: fixed;
  inset: 0;
  z-index: 2000;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  color: var(--text);
  clip-path: inset(var(--clip-top) var(--clip-right) var(--clip-bottom) var(--clip-left) round var(--clip-radius));
  opacity: 0;
  /* En tancar, el panell s'encongeix fins a la targeta i s'esvaeix per deixar-la veure */
  transition: clip-path .75s cubic-bezier(.2, .7, .2, 1), opacity .3s ease .45s;
}
.detail[hidden] { display: none; }
.detail.is-open { clip-path: inset(0 0 0 0 round 0); opacity: 1; transition: clip-path .75s cubic-bezier(.2, .7, .2, 1), opacity 0s; }

.detail__bar,
.detail__inner { transition: opacity .45s ease, transform .7s cubic-bezier(.2, .7, .2, 1); opacity: 0; transform: translateY(28px); }
.detail__inner { transition-delay: 0s; }
.detail.is-open .detail__bar,
.detail.is-open .detail__inner { opacity: 1; transform: none; transition-delay: .3s; }

.detail__bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 74px; padding: 0 var(--gutter);
  background: var(--header-bg); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.detail__bar-title { font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.detail__close {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 44px; padding: 0 1.1rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: inherit; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.detail__close:hover { background: var(--text); color: var(--bg); }

body.detail-open { overflow: hidden; }

/* La targeta es fa una mica més petita quan s'obre el detall */
.carousel .project-card.is-pressed { scale: .93; }
.carousel .project-card { transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .6s ease, box-shadow .6s ease, scale .5s cubic-bezier(.2, .7, .2, 1); }

/* Contingut */
.case-hero { padding: clamp(3.5rem, 7vw, 6rem) var(--gutter) clamp(3rem, 6vw, 6rem); }
.case-hero__title { margin: 0; font-size: clamp(2.5rem, 6vw, 5.6rem); line-height: 1; letter-spacing: -.045em; font-weight: 500; }
.case-hero__intro { max-width: 46rem; margin: 2rem 0 0; font-size: clamp(1.1rem, 1.7vw, 1.5rem); color: var(--muted); }
.case-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: clamp(2.5rem, 5vw, 4.5rem) 0 0; border-top: 1px solid var(--line); }
.case-meta div { padding: 1.4rem 1.5rem 0 0; }
.case-meta dt { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.case-meta dd { margin: .5rem 0 0; font-size: clamp(1.05rem, 1.5vw, 1.3rem); letter-spacing: -.02em; }

.case-section { padding: clamp(4rem, 8vw, 8rem) var(--gutter); border-top: 1px solid var(--line); }
.case-title { margin: 0; max-width: 18ch; font-size: clamp(1.9rem, 3.6vw, 3.6rem); line-height: 1.04; letter-spacing: -.04em; font-weight: 500; }
.case-title--wide { max-width: 20ch; }
.case-note { margin: 1.5rem 0 0; font-size: .9rem; color: var(--muted); }
.case-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.case-prose { font-size: clamp(1.1rem, 1.6vw, 1.45rem); line-height: 1.4; letter-spacing: -.015em; }
.case-prose p { margin: 0 0 1.5rem; }
.case-prose p:nth-child(2) { color: var(--muted); }
.case-prose .skills { margin-top: 2.5rem; }

.case-grid { list-style: none; margin: clamp(2.5rem, 5vw, 4.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.case-grid li { padding: 1.6rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-grid span, .mock-tag { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.case-grid h4 { margin: 2.5rem 0 .8rem; font-size: clamp(1.15rem, 1.5vw, 1.45rem); font-weight: 500; line-height: 1.1; letter-spacing: -.035em; }
.case-grid p { margin: 0; color: var(--muted); font-size: .95rem; }

.mock-block { margin: clamp(2.5rem, 5vw, 4.5rem) 0 0; }
.mock-label { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.mock-label h4 { margin: 0; font-size: clamp(1.2rem, 1.6vw, 1.6rem); font-weight: 500; letter-spacing: -.04em; }
.mock-tag { padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 999px; letter-spacing: .04em; text-transform: none; white-space: nowrap; }
.mock { padding: clamp(1.1rem, 2.5vw, 2rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.mock-caption { max-width: 60rem; margin: .9rem .2rem 0; font-size: .9rem; color: var(--muted); }
.mock__name { margin: 0 0 1rem; font-weight: 600; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; }
.stat { padding: 1rem; border-radius: .75rem; background: var(--bg); border: 1px solid var(--line); min-width: 0; }
.stat__label { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat__row { display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; margin-top: .5rem; }
.stat b { font-size: clamp(1.4rem, 2vw, 1.9rem); font-weight: 500; letter-spacing: -.04em; }
.spark { display: block; flex-shrink: 0; }
.spark path { fill: none; stroke: var(--muted); stroke-width: 1.6; opacity: .55; }
.spark circle { fill: var(--accent); }

.prog-list { display: flex; flex-direction: column; gap: 1.2rem; }
.prog-row__top { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; font-size: .95rem; }
.prog-row__top b { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.is-good { color: var(--good); }
.is-pace { color: var(--pace); }
.is-bad { color: var(--bad); }
.track { position: relative; height: 9px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.fill { position: absolute; inset: -1px auto -1px -1px; border-radius: 999px; }
.fill.is-good { background: var(--good); }
.fill.is-pace { background: var(--pace); }
.fill.is-bad { background: var(--bad); }
.mark { position: absolute; top: 50%; width: 2px; height: 18px; transform: translate(-50%, -50%); background: var(--text); opacity: .55; }

.group-mock { display: flex; flex-direction: column; gap: 1rem; }
.group-top { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill { padding: .45rem .8rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--bg); font-size: .88rem; }
.chk-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; }
.chk-list li { display: flex; align-items: center; gap: .7rem; padding: .65rem .85rem; border-top: 1px solid var(--line); font-size: .92rem; }
.chk-list li:first-child { border-top: 0; }
.chk-list li.is-off { color: var(--muted); }
.chk-list em { margin-left: auto; font-style: normal; font-size: .78rem; }
.chk { flex-shrink: 0; width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--line); border-radius: 4px; font-size: .7rem; }
.chk.is-on { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.group-cta { display: flex; justify-content: flex-end; }
.mock-button { padding: .6rem 1.1rem; border-radius: 999px; background: var(--text); color: var(--bg); font-size: .88rem; }

.case-end { padding: clamp(4rem, 8vw, 8rem) var(--gutter) clamp(5rem, 9vw, 9rem); border-top: 1px solid var(--line); }
.case-end__lead { margin: 1.5rem 0 0; max-width: 40rem; font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--muted); }
.case-end__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; margin-top: 3rem; }
.case-end__actions .contact__mail { margin-top: 0; }
.case-end__actions .button { border: 0; cursor: pointer; font-size: 1rem; }

@media (max-width: 900px) {
  .case-split { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-meta { grid-template-columns: 1fr; }
  .case-meta div { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .detail__bar { min-height: 66px; }
  .case-grid { grid-template-columns: 1fr; }
}

/* Delivery Track: maquetes de mòbil i tauler (colors de l'app) */
.phones { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem, 4vw, 3.5rem); background: var(--surface); }
.phone { width: min(100%, 270px); padding: 9px; border-radius: 36px; background: #222; box-shadow: 0 24px 50px rgba(0, 0, 0, .18); }
.phone__screen { min-height: 470px; padding: 20px 16px 18px; border-radius: 28px; background: #fff; color: #222; display: flex; flex-direction: column; gap: .7rem; }
.phone__title { margin: 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; }
.phone__sub { margin: -.4rem 0 0; font-size: .8rem; color: #5c5c5c; }
.phone__progress { height: 6px; border-radius: 99px; background: #e6e6e6; overflow: hidden; }
.phone__progress i { display: block; height: 100%; background: #61a229; border-radius: 99px; }
.stops { list-style: none; margin: .3rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.stops li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: .5rem; padding: .55rem .6rem; border: 1px solid #e2e4e8; border-radius: 8px; font-size: .78rem; }
.stops b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #f2f2f2; font-size: .7rem; font-weight: 600; }
.stops em { font-style: normal; font-size: .66rem; color: #5c5c5c; }
.stops .is-done b { background: #e6f0db; color: #3f7a1a; }
.stops .is-done em { color: #3f7a1a; }
.stops .is-next { border-color: #61a229; background: #f6faf1; }
.stops .is-next b { background: #61a229; color: #fff; }
.stops .is-next em { color: #3f7a1a; font-weight: 600; }
.phone__field { padding: .55rem .7rem; border: 1px solid #e2e4e8; border-radius: 8px; font-size: .85rem; }
.phone__field small, .phone__sign small { display: block; font-size: .66rem; color: #5c5c5c; }
.phone__photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.phone__photos span { aspect-ratio: 1; border-radius: 8px; background: linear-gradient(135deg, #d9dee3, #b8c0c8); }
.phone__photos span.is-add { display: grid; place-items: center; border: 1.5px dashed #b8c0c8; background: transparent; color: #5c5c5c; font-size: 1.2rem; }
.phone__sign { padding: .5rem .7rem; border: 1px solid #e2e4e8; border-radius: 8px; }
.phone__sign svg { display: block; width: 100%; height: 48px; }
.phone__sign path { fill: none; stroke: #222; stroke-width: 2.2; stroke-linecap: round; }
.phone__offline { margin: 0; padding: .4rem .6rem; border-radius: 6px; background: #f2f2f2; font-size: .7rem; color: #444; }
.phone__button { margin-top: auto; padding: .8rem; border-radius: 6px; background: #61a229; color: #fff; text-align: center; font-size: .85rem; font-weight: 600; }

.prog-list--spaced { margin-top: 1.5rem; }
.review { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin-top: 1.5rem; padding: .9rem 1.1rem; border-radius: .75rem; border: 1px solid color-mix(in srgb, var(--bad) 45%, transparent); background: color-mix(in srgb, var(--bad) 9%, var(--surface)); font-size: .92rem; }
.review b { color: var(--bad); font-weight: 600; }
.review span { color: var(--muted); }

/* Taskin: tauler, dictat per veu i bústia */
.case-hero__cta { margin-top: 2rem; }
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.k-col { padding: .8rem; border-radius: .75rem; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: .6rem; }
.k-col h5 { margin: 0; display: flex; justify-content: space-between; font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.k-col h5 em { font-style: normal; padding: 0 .55rem; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.k-card { padding: .75rem .8rem; border-radius: .6rem; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; display: flex; flex-direction: column; gap: .6rem; }
.k-card div { display: flex; align-items: center; justify-content: space-between; }
.k-card i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--text); color: var(--bg); font-style: normal; font-size: .6rem; }
.k-tag { padding: .1rem .55rem; border-radius: 99px; background: color-mix(in srgb, var(--pace) 14%, transparent); color: var(--pace); font-size: .7rem; font-weight: 500; }
.k-tag.is-ok { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
.k-tag.is-warn { background: color-mix(in srgb, #d97706 16%, transparent); color: #b45309; }
[data-theme="dark"] .k-tag.is-warn { color: #fbbf24; }

.voice-mock { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.2rem; align-items: start; }
.voice-box, .inbox-box { padding: 1.2rem; border-radius: .9rem; background: var(--bg); border: 1px solid var(--line); }
.voice-box__top { display: flex; align-items: center; gap: 1rem; }
.mic-dot { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--text); color: var(--bg); font-size: 1rem; }
.bars-mock { display: flex; align-items: center; gap: 4px; height: 36px; }
.bars-mock i { width: 5px; border-radius: 4px; background: var(--pace); }
.bars-mock i:nth-child(1) { height: 12px; } .bars-mock i:nth-child(2) { height: 24px; } .bars-mock i:nth-child(3) { height: 34px; }
.bars-mock i:nth-child(4) { height: 18px; } .bars-mock i:nth-child(5) { height: 30px; } .bars-mock i:nth-child(6) { height: 14px; } .bars-mock i:nth-child(7) { height: 22px; }
.voice-box em { margin-left: auto; font-style: normal; font-size: .72rem; font-weight: 600; color: var(--bad); }
.voice-box p { margin: 1rem 0 0; padding: .8rem .9rem; border-radius: .6rem; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.inbox-box h5 { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.inbox-box h5 span { padding: .15rem .6rem; border-radius: 99px; background: color-mix(in srgb, var(--pace) 14%, transparent); color: var(--pace); letter-spacing: 0; text-transform: none; font-size: .7rem; }
.inbox-box ul { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.inbox-box li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .65rem .8rem; border-radius: .6rem; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; }
.inbox-box li small { display: block; font-size: .72rem; color: var(--muted); }
.inbox-box li i { padding: .1rem .5rem; border-radius: 6px; background: color-mix(in srgb, var(--pace) 14%, transparent); color: var(--pace); font-style: normal; font-size: .7rem; font-weight: 500; white-space: nowrap; }

@media (max-width: 900px) {
  .kanban, .voice-mock { grid-template-columns: 1fr; }
}

/* EspaiViu: sessions al mòbil i taula de llistat */
.sessions { list-style: none; margin: .3rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.sessions li { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: .5rem; padding: .6rem .65rem; border: 1px solid #e2e4e8; border-radius: 8px; font-size: .78rem; }
.sessions b { font-size: .75rem; }
.sessions small { display: block; font-size: .66rem; color: #5c5c5c; }
.sessions em { font-style: normal; font-size: .66rem; padding: .1rem .5rem; border-radius: 99px; background: #fdf0d5; color: #8a5a06; }
.sessions .is-done em { background: #e3f6ea; color: #17703a; }
.sessions .is-live { border-color: #1677ff; background: #f3f8ff; }
.sessions .is-live em { background: #e6f0ff; color: #1556c4; }
.ev-timer { padding: .6rem .8rem; border-radius: 8px; border: 1px solid #e2e4e8; }
.ev-timer small { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; color: #5c5c5c; }
.ev-timer b { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 1.5rem; font-weight: 600; }
.ev-voice { padding: .6rem .8rem; border-radius: 8px; background: #f5f7fa; }
.ev-voice__top { display: flex; align-items: center; justify-content: space-between; }
.ev-voice__top em { font-style: normal; font-size: .62rem; font-weight: 700; color: #d92d20; }
.bars-dot { width: 54px; height: 18px; background: repeating-linear-gradient(90deg, #1677ff 0 4px, transparent 4px 9px); -webkit-mask: linear-gradient(0deg, #000 0 100%); border-radius: 3px; }
.ev-voice p { margin: .45rem 0 0; font-size: .74rem; color: #374151; line-height: 1.4; }

.table-wrap { overflow-x: auto; }
.mock-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .9rem; }
.mock-table th { padding: .7rem .9rem; text-align: left; font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.mock-table td { padding: .8rem .9rem; border-bottom: 1px solid var(--line); }
.mock-table tr:last-child td { border-bottom: 0; }
.mock-table td:last-child, .mock-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* ActClub, RFIDControl, Pla Estratègic, Qualitac i Càtedra */
.case-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mock-table--left td:last-child, .mock-table--left th:last-child { text-align: left; }
.mock-table .is-good { color: var(--good); font-weight: 500; }
.mock-table .is-pending { color: #b45309; font-weight: 500; }
[data-theme="dark"] .mock-table .is-pending { color: #fbbf24; }
.mock .table-wrap { margin-top: 1rem; }

.credential { max-width: 420px; margin: 0 auto; padding: 1.4rem 1.5rem; border-radius: 1rem; background: linear-gradient(135deg, #22c55e, #15803d); color: #fff; box-shadow: 0 20px 40px rgba(0, 0, 0, .15); }
.credential small { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.credential h5 { margin: .3rem 0 0; font-size: 1.5rem; font-weight: 600; }
.credential p { margin: .2rem 0 0; font-size: .9rem; opacity: .92; }
.credential__qr { margin-top: 1rem; width: 84px; height: 84px; padding: 8px; border-radius: 8px; background: #fff; display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.credential__qr i { background: #111; border-radius: 1px; }
.credential__qr i.o { background: transparent; }

.login-mock { max-width: 420px; margin: 0 auto; border-radius: .9rem; overflow: hidden; background: #fff; color: #111; box-shadow: 0 20px 40px rgba(0, 0, 0, .12); }
.login-mock__top { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.3rem; background: #253545; color: #fff; }
.login-mock__top i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: #22c1cd; font-style: normal; font-size: 1.3rem; }
.login-mock__top b { font-size: 1.2rem; font-weight: 600; }
.login-mock__body { display: flex; flex-direction: column; gap: .6rem; padding: 1.2rem 1.3rem 1.4rem; }
.login-mock__body h5 { margin: 0; font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.login-mock__body p { margin: -.2rem 0 .3rem; font-size: .85rem; color: #6b7a8c; }
.login-mock__field { padding: .65rem .8rem; border: 1px solid #d5dbe3; border-radius: 6px; font-size: .88rem; color: #8896a8; }
.login-mock__btn { padding: .7rem; border-radius: 6px; background: #2b7fc9; color: #fff; text-align: center; font-size: .9rem; font-weight: 600; }
.login-mock__btn--ms { background: #8fb9e3; }

.eix-list { display: flex; flex-direction: column; }
.eix { display: grid; grid-template-columns: 44px minmax(0, 1fr) 76px; gap: 1rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--line); }
.eix:first-child { border-top: 0; }
.eix__pin { width: 44px; height: 44px; border-radius: 50% 50% 0 50%; }
.eix h5 { margin: 0; font-size: .95rem; font-weight: 600; letter-spacing: -.01em; }
.eix p { margin: .25rem 0 0; font-size: .85rem; }
.eix small { display: block; margin-top: .2rem; color: var(--muted); font-style: italic; font-size: .76rem; }
.eix__ring { position: relative; width: 72px; height: 72px; color: var(--text); }
.eix__ring svg { width: 72px; height: 72px; transform: rotate(-90deg); }
.eix__ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: .78rem; font-weight: 500; color: var(--pace); }

.q-alerts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.qa { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .9rem .6rem; border-radius: 6px; color: #fff; text-align: center; }
.qa b { font-size: 1.8rem; font-weight: 600; }
.qa span { font-size: .78rem; }
.qa--blue { background: #5b7ce8; }
.qa--red { background: #e5525e; }
.q-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-top: .6rem; }
.qt { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .3rem; min-height: 86px; padding: .7rem .5rem; border-radius: 6px; color: #fff; text-align: center; font-size: .78rem; font-weight: 500; }
.qt b { font-size: 1.15rem; font-weight: 600; }
.qt--ok { background: #1fc8b4; }
.qt--red { background: #e5525e; }

.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.shot img { display: block; width: 100%; height: auto; }
.video-frame { margin-top: clamp(1.5rem, 3vw, 2.5rem); aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (max-width: 900px) {
  .case-grid--three { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .q-alerts, .q-tiles { grid-template-columns: 1fr; }
  .eix { grid-template-columns: 36px minmax(0, 1fr) 60px; gap: .7rem; }
  .eix__pin { width: 36px; height: 36px; }
  .eix__ring, .eix__ring svg { width: 60px; height: 60px; }
}
