/* Product render: a light MicMD app window shown in the Platform section.
   Illustrative only — fictional names, no customer data. */

.product {
  position: relative;
  padding: clamp(20px, 3vw, 48px) clamp(16px, 3vw, 48px) 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: radial-gradient(120% 90% at 50% 0%, #cfe8ff 0%, #e8f4ff 42%, #f5f9fe 78%);
  overflow: hidden;
}

.app {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 290px;
  grid-template-rows: 44px auto;
  border: 1px solid #dfe6ef;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: var(--surface);
  box-shadow: var(--shadow-product);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
}

.app__bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 0 16px; border-bottom: 1px solid #edf1f6; }
.app__dots { display: flex; gap: 7px; }
.app__dots i { width: 11px; height: 11px; border-radius: 50%; background: #dfe5ec; }
.app__crumb { color: var(--ink-3); font-family: var(--font-mono); font-size: 12px; }
.app__bar .spacer { flex: 1; }

.app__side { display: grid; align-content: start; gap: 2px; padding: 14px 10px; background: #f7f9fc; border-right: 1px solid #edf1f6; }
.app__brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; color: var(--ink); font-size: 14px; font-weight: 650; }
.app__mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; }
.app__nav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink-3); font-weight: 500; }
.app__nav svg { width: 16px; height: 16px; flex: none; }
.app__nav.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(11, 21, 38, 0.08); }
.app__nav .count { margin-left: auto; padding: 1px 7px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 650; }
.app__group { margin: 14px 10px 6px; color: var(--ink-3); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }

.app__main { display: grid; grid-template-rows: auto auto auto; align-content: start; gap: 12px; padding: 16px; min-width: 0; }
.app__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app__head b { color: var(--ink); font-size: 15px; font-weight: 650; }
.app__head span { color: var(--ink-3); font-family: var(--font-mono); font-size: 12px; }

.app-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: #e3f4ea; color: var(--ok); font-size: 12px; font-weight: 600; }
.app-tag i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.stagegrid { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 10px; }
.vid { position: relative; overflow: hidden; border-radius: 12px; background: #1b2433; }
.vid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid--main { aspect-ratio: 16 / 10; }
.vid--main.is-speaking { box-shadow: inset 0 0 0 2px var(--blue); }
.vid__name { position: absolute; left: 10px; bottom: 10px; padding: 4px 9px; border-radius: 7px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 12px; font-weight: 600; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.vid__net { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 7px; background: rgba(0, 0, 0, 0.5); color: #fff; font-family: var(--font-mono); font-size: 11px; }
.vid__self { position: absolute; top: 12px; right: 12px; width: 132px; aspect-ratio: 16 / 10; overflow: hidden; border: 2px solid rgba(255, 255, 255, 0.85); border-radius: 9px; }
.vid__self img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stagegrid__side { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; }

.controls { display: flex; justify-content: center; gap: 10px; }
.ctl { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #f1f4f8; color: var(--ink-2); }
.ctl svg { width: 17px; height: 17px; }
.ctl--end { width: auto; padding: 0 18px; border-radius: 999px; background: #e5484d; color: #fff; font-weight: 650; }

.app__panel { display: grid; grid-template-rows: auto 1fr auto; gap: 12px; padding: 16px 14px; border-left: 1px solid #edf1f6; min-width: 0; }
.ptabs { display: flex; gap: 4px; padding: 3px; border-radius: 9px; background: #f1f4f8; }
.ptabs span { flex: 1; padding: 6px 0; border-radius: 7px; color: var(--ink-3); font-size: 12px; font-weight: 600; text-align: center; }
.ptabs .is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(11, 21, 38, 0.08); }
.chat { display: grid; align-content: start; gap: 10px; }
.msg { max-width: 92%; padding: 9px 12px; border-radius: 12px 12px 12px 4px; background: #f1f4f8; color: var(--ink); line-height: 1.45; }
.msg small { display: block; margin-bottom: 3px; color: var(--ink-3); font-size: 11px; font-weight: 650; }
.msg--me { justify-self: end; border-radius: 12px 12px 4px 12px; background: var(--blue); color: #fff; }
.msg--me small { color: rgba(255, 255, 255, 0.9); }
.file { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #e1e7ef; border-radius: 10px; color: var(--ink-2); font-weight: 600; }
.file svg { width: 16px; height: 16px; color: var(--blue); }
.ptt { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 10px; padding: 10px; border: 1px solid #cfe6fb; border-radius: 12px; background: #eef7ff; }
.ptt__btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; }
.ptt__btn svg { width: 15px; height: 15px; }
.ptt b { display: block; color: var(--ink); font-size: 12px; }
.wave { display: flex; align-items: center; gap: 2px; height: 16px; margin-top: 4px; }
.wave i { width: 3px; border-radius: 2px; background: var(--blue); }
.wave i:nth-child(3n) { height: 100%; }
.wave i:nth-child(3n + 1) { height: 45%; }
.wave i:nth-child(3n + 2) { height: 70%; }

@media (max-width: 1100px) {
  .app { grid-template-columns: minmax(0, 1fr) 260px; }
  .app__side { display: none; }
}

@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .app__panel { display: none; }
  .stagegrid { grid-template-columns: 1fr; }
  .stagegrid__side { display: none; }
  .app__crumb { display: none; }
}
