/* ==========================================================================
   Cliptica — recreated product UI (frames + mockups)
   Loaded only by pages that show product mockups. All mockups are hand-coded
   DOM mirroring the real app's views (static/js/views/*) so they read as
   authentic captures — and stay retina-sharp at any zoom.
   ========================================================================== */

/* ------------------------------------------------- real product shots ---
   Actual screenshots captured from the running app (assets/shots/*.webp),
   presented inside the browser/phone frames. Crops are done with
   object-fit + aspect-ratio so the source files stay untouched. */
.frame .shot { display: block; width: 100%; height: auto; }
.frame .shot-crop {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top;
}
.shot-wrap { position: relative; overflow: hidden; }
.shot-scan {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 110px;
  margin-left: -55px;
  background: linear-gradient(90deg, transparent, rgba(232, 73, 15, 0.12), transparent);
  animation: shot-sweep 12s linear infinite;
  pointer-events: none;
}
@keyframes shot-sweep { from { left: 0; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .shot-scan { display: none; } }
.phone .shot-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ------------------------------------------------------ browser frame --- */
.frame {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-3);
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}
.frame-dots { display: flex; gap: 6px; flex: none; }
.frame-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--sand); display: block; }
.frame-dots i:first-child { background: #E8A79A; }
.frame-url {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--slate);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 4px 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.frame-bar .chip { flex: none; }
.frame-body { background: var(--surface); }

/* -------------------------------------------------------- phone frame --- */
.phone {
  position: relative;
  width: 100%;
  max-width: 250px;
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  border: 7px solid var(--ink);
  background: linear-gradient(170deg, #26272B, #131417 55%, #1B1C20);
  overflow: hidden;
  box-shadow: var(--shadow-3);
}
.phone::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 14px;
  border-radius: 99px;
  background: var(--ink);
  z-index: 3;
}
.phone-screen { position: absolute; inset: 0; }
.phone-cap {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 24%;
  z-index: 2;
  color: #FFFFFF;
  font-weight: 700;
  font-size: clamp(13px, 4.2cqw, 17px);
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}
.phone-cap .w-hot { color: #FFD84D; }
.phone-cap .w-on {
  background: var(--orange);
  border-radius: 5px;
  padding: 0 5px;
  display: inline-block;
  transform: rotate(-1deg);
}
.phone-headline {
  position: absolute;
  top: 12%;
  left: 8%;
  right: 8%;
  z-index: 2;
  text-align: center;
  color: #FFF;
  font-weight: 600;
  font-size: clamp(11px, 3.4cqw, 14px);
  background: rgba(17, 18, 20, 0.55);
  border-radius: 8px;
  padding: 7px 10px;
  backdrop-filter: blur(2px);
}
.phone-meta {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--slate);
  display: grid;
  gap: 4px;
}
.phone-meta strong { font-weight: 500; color: var(--ink); }
/* faux subject in the video: soft vignette + figure block */
.phone-fig {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 68%;
  height: 58%;
  background:
    radial-gradient(closest-side at 50% 18%, #55565C 0%, #3A3B41 42%, transparent 43%),
    linear-gradient(180deg, transparent 26%, #303136 27%, #26272C 100%);
  border-radius: 40% 40% 0 0 / 24% 24% 0 0;
  opacity: 0.9;
}
.phone-facebox {
  position: absolute;
  top: 12%;
  left: 22%;
  width: 56%;
  height: 30%;
  border: 1.5px solid rgba(232, 73, 15, 0.9);
  border-radius: 10px;
}
.phone-facebox::after {
  content: "FACE LOCK";
  position: absolute;
  top: -16px;
  left: 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--orange);
}

/* ============================ shared mockup internals ==================== */
.m-side {
  background: var(--paper);
  border-right: 1px solid var(--hairline);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.m-side .brandline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 0 8px 14px;
}
.m-side .brandline svg { height: 18px; width: auto; }
.m-nav {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: var(--slate);
  padding: 8px 10px;
  border-radius: var(--radius);
  border: 1px solid transparent;
}
.m-nav .i { width: 15px; height: 15px; vertical-align: 0; }
.m-nav.on { color: var(--ink); background: var(--surface); border-color: var(--hairline); font-weight: 500; }
.m-side .m-credits {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
}
.m-side .m-credits strong { color: var(--green); font-weight: 500; }
.m-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
}
.m-head h4 { font-size: 16px; }
.m-head .mono { font-size: 13px; color: var(--slate); }
.m-btn {
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.m-btn.orange { background: var(--orange); color: #FFF7F2; }
.m-btn .i { width: 12px; height: 12px; vertical-align: 0; }
.m-bar {
  height: 6px;
  border-radius: 99px;
  background: var(--hairline);
  overflow: hidden;
}
.m-bar span { display: block; height: 100%; border-radius: inherit; background: var(--orange); }
.m-bar.green span { background: var(--green); }
.m-thumb {
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background:
    radial-gradient(closest-side at 50% 34%, #4B4C52 0%, #3A3B41 46%, transparent 47%),
    linear-gradient(180deg, transparent 52%, #2C2D33 53%, #212227 100%),
    linear-gradient(160deg, #55565E, #33343A);
}
.m-thumb.warm {
  background:
    radial-gradient(closest-side at 42% 36%, #6B5347 0%, #52413A 46%, transparent 47%),
    linear-gradient(180deg, transparent 52%, #3B3129 53%, #2B241F 100%),
    linear-gradient(160deg, #7A6152, #443830);
}
.m-thumb.cool {
  background:
    radial-gradient(closest-side at 58% 32%, #4A5766 0%, #3A4552 46%, transparent 47%),
    linear-gradient(180deg, transparent 52%, #2B333D 53%, #202730 100%),
    linear-gradient(160deg, #5A6B7C, #333E4A);
}

/* ====================== 1 · hero — viral-moment scan ===================== */
.mock-hero .frame-body { container-type: inline-size; }
.mh-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 0;
}
.mh-main { padding: 20px; border-right: 1px solid var(--hairline); min-width: 0; }
.mh-src-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.mh-src-head strong { color: var(--ink); font-weight: 500; }

.mh-timeline {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 130px;
  padding: 14px 10px 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--paper);
  overflow: hidden;
}
.mh-timeline .seg {
  flex: 1;
  height: var(--h, 30%);
  border-radius: 3px 3px 0 0;
  background: var(--sand);
  position: relative;
  transition: background 300ms var(--ease);
}
.mh-timeline .seg.hit { background: var(--orange); }
.mh-timeline .seg.hit::after {
  content: attr(data-score);
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--orange-deep);
}
.mh-playhead {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 2px;
  background: var(--ink);
  z-index: 2;
  animation: mh-sweep 14s linear infinite;
}
.mh-playhead::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -4px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--ink);
}
@keyframes mh-sweep {
  from { left: 1%; }
  to { left: 99%; }
}
/* scan glow follows the playhead */
.mh-timeline::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 56px;
  margin-left: -28px;
  background: linear-gradient(90deg, transparent, rgba(232, 73, 15, 0.08), transparent);
  animation: mh-sweep 14s linear infinite;
  pointer-events: none;
}
.mh-scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--slate);
  margin-top: 8px;
  padding: 0 4px;
}
.mh-agents {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.mh-agents .chip { font-size: 12px; padding: 2px 9px; }

.mh-clips { padding: 20px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.mh-clips .label { margin-bottom: 2px; }
.mh-clip {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface);
  opacity: 0.45;
}
.mh-clip .m-thumb { width: 36px; height: 48px; }
.mh-clip h5 { font-size: 14px; font-weight: 600; line-height: 1.25; }
.mh-clip small { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--slate); margin-top: 3px; }
.mh-clip .score { font-size: 16px; }
.mh-clip .m-bars { display: flex; gap: 3px; margin-top: 6px; }
.mh-clip .m-bars i {
  height: 3px;
  border-radius: 99px;
  background: var(--sand);
  flex: 1;
}
.mh-clip .m-bars i.f1 { background: var(--orange); }
.mh-clip .m-bars i.f2 { background: var(--green); }
/* choreography: cards "arrive" as the playhead crosses their segment */
.mock-hero .mh-clip { animation: mh-arrive 14s var(--ease) infinite; }
.mock-hero .mh-clip:nth-child(2) { animation-delay: 0s; }
.mock-hero .mh-clip:nth-child(3) { animation-delay: 2.6s; }
.mock-hero .mh-clip:nth-child(4) { animation-delay: 5.4s; }
@keyframes mh-arrive {
  0% { opacity: 0.45; transform: none; }
  18% { opacity: 0.45; transform: translateY(3px); }
  24%, 92% { opacity: 1; transform: none; }
  100% { opacity: 0.45; }
}
.mock-hero .seg.hit { animation: mh-seg 14s linear infinite; }
.mock-hero .seg.s1 { animation-delay: 0s; }
.mock-hero .seg.s2 { animation-delay: 2.6s; }
.mock-hero .seg.s3 { animation-delay: 5.4s; }
@keyframes mh-seg {
  0%, 16% { background: var(--sand); }
  22%, 96% { background: var(--orange); }
  100% { background: var(--sand); }
}

@media (prefers-reduced-motion: reduce) {
  .mh-playhead, .mh-timeline::after { animation: none; left: 62%; }
  .mh-timeline::after { display: none; }
  .mock-hero .mh-clip, .mock-hero .seg.hit { animation: none; opacity: 1; }
}

/* ========================= 2 · dashboard / projects ====================== */
.mock-dash .frame-body { display: grid; grid-template-columns: 176px minmax(0, 1fr); }
.md-main { min-width: 0; }
.md-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 18px; }
.md-card { border: 1px solid var(--hairline); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.md-card .m-thumb { border: 0; border-radius: 0; height: 74px; border-bottom: 1px solid var(--hairline); }
.md-card-body { padding: 10px 12px 12px; }
.md-card h5 { font-size: 14px; font-weight: 600; line-height: 1.3; }
.md-card small { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--slate); margin: 5px 0 8px; }
.md-card .chip { font-size: 11.5px; padding: 2px 8px; }

/* ========================= 3 · agent pipeline ============================ */
.mock-pipe .frame-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.mp-agents { border-right: 1px solid var(--hairline); background: var(--paper); padding: 18px; }
.mp-agent {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--hairline);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
}
.mp-agent:last-child { border-bottom: 0; }
.mp-agent .tick {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  background: var(--green-wash);
  border: 1px solid #BFDCCE;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mp-agent .tick .i { width: 9px; height: 9px; vertical-align: 0; }
.mp-agent strong { color: var(--ink); font-weight: 500; }
.mp-agent span { margin-left: auto; text-align: right; font-size: 12px; }
.mp-clips { padding: 18px; display: grid; gap: 10px; align-content: start; }
.mp-clip {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  background: var(--surface);
}
.mp-clip.lead { border-color: var(--ink); box-shadow: var(--shadow-1); }
.mp-clip-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mp-clip h5 { font-size: 14.5px; font-weight: 600; }
.mp-clip .mono { font-size: 12px; color: var(--slate); }
.mp-breaks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.mp-break { font-family: var(--font-mono); font-size: 11px; color: var(--slate); text-transform: uppercase; letter-spacing: 0.05em; }
.mp-break .m-bar { margin-top: 4px; height: 4px; }
.mp-break b { color: var(--ink); font-weight: 500; }

/* ============================= 4 · editor ================================ */
.mock-edit .frame-body { display: grid; grid-template-columns: 170px minmax(0, 1fr) 168px; }
.me-styles { border-right: 1px solid var(--hairline); background: var(--paper); padding: 14px; overflow: hidden; }
.me-style {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 9px 10px;
  margin-bottom: 8px;
}
.me-style .cap {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.me-style small { display: block; font-family: var(--font-mono); font-size: 10.5px; color: var(--slate); margin-top: 4px; }
.me-style.on { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.me-style .cap.c-beast { color: var(--ink); text-shadow: 1.5px 1.5px 0 var(--orange); }
.me-style .cap.c-hormozi { color: var(--ink); }
.me-style .cap.c-hormozi b { color: var(--green); }
.me-style .cap.c-opus { color: var(--ink); }
.me-style .cap.c-opus b { background: var(--orange); color: #FFF; border-radius: 3px; padding: 0 3px; }
.me-style .cap.c-glow { color: var(--ink); text-shadow: 0 0 7px rgba(232, 73, 15, 0.65); }
.me-style .cap.c-mono { font-family: var(--font-mono); font-weight: 600; }
.me-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background:
    radial-gradient(circle at 20% 15%, rgba(232, 73, 15, 0.04), transparent 42%),
    var(--paper);
}
.me-canvas .phone { max-width: 172px; box-shadow: var(--shadow-2); }
.me-inspector { border-left: 1px solid var(--hairline); background: var(--paper); padding: 14px; }
.me-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--hairline);
  font-size: 12.5px;
  color: var(--slate);
}
.me-row:last-child { border-bottom: 0; }
.me-row b { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--ink); }
.me-sw {
  width: 26px;
  height: 15px;
  border-radius: 99px;
  background: var(--sand);
  position: relative;
  flex: none;
}
.me-sw::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.me-sw.on { background: var(--green); }
.me-sw.on::after { left: auto; right: 2px; }
.me-tracks {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--hairline);
  background: var(--surface);
  position: relative;
}
.me-track { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; }
.me-track .t-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); }
.me-track .t-lane { position: relative; height: 14px; border-radius: 4px; background: var(--paper); border: 1px solid var(--hairline); }
.me-track .t-lane i { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; }
.t-video i { background: var(--sand); }
.t-caps i { background: rgba(232, 73, 15, 0.35); }
.t-music i { background: rgba(20, 107, 71, 0.3); }
.t-fx i { background: var(--surface); border: 1px solid var(--sand); }
.me-tracks .playline {
  position: absolute;
  top: 10px;
  bottom: 14px;
  left: 44%;
  width: 2px;
  background: var(--orange);
}

/* ============================ 5 · campaigns ============================== */
.mock-camp .frame-body { padding: 18px; display: grid; gap: 12px; }
.mc-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  gap: 8px 20px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.mc-card h5 { font-size: 15px; font-weight: 600; }
.mc-card .mc-src { font-family: var(--font-mono); font-size: 12px; color: var(--slate); margin-top: 3px; display: block; }
.mc-rate { font-family: var(--font-mono); font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.mc-rate small { display: block; font-size: 11.5px; color: var(--slate); font-weight: 400; }
.mc-stats { text-align: right; font-family: var(--font-mono); font-size: 12.5px; color: var(--slate); white-space: nowrap; }
.mc-stats strong { display: block; font-size: 14.5px; color: var(--green); font-weight: 500; }
.mc-budget { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.mc-budget .mono { font-size: 12px; color: var(--slate); }

/* ============================ 6 · earnings =============================== */
.mock-earn .frame-body { padding: 0; }
.mearn-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--hairline); }
.mearn-stat { padding: 16px 18px; border-left: 1px solid var(--hairline); }
.mearn-stat:first-child { border-left: 0; }
.mearn-stat .n { font-family: var(--font-mono); font-size: 20px; font-weight: 500; color: var(--ink); display: block; font-variant-numeric: tabular-nums; }
.mearn-stat .n.up { color: var(--green); }
.mearn-stat .l { font-size: 12.5px; color: var(--slate); margin-top: 2px; display: block; }
.mearn-chart { padding: 18px; }
.mearn-chart svg { display: block; width: 100%; height: auto; }
.mearn-rows { border-top: 1px solid var(--hairline); }
.mearn-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 16px;
  align-items: baseline;
  padding: 10px 18px;
  border-bottom: 1px solid var(--hairline);
  font-size: 13.5px;
  color: var(--slate);
}
.mearn-row:last-child { border-bottom: 0; }
.mearn-row .mono { font-size: 13px; }
.mearn-row .amt { font-family: var(--font-mono); font-weight: 500; color: var(--ink); }
.mearn-row .chip { font-size: 11px; padding: 1px 8px; }

/* ============================ 7 · calendar =============================== */
.mock-cal .frame-body { padding: 18px; }
.mcal-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.mcal-head h5 { font-size: 15px; }
.mcal-head .mono { font-size: 12px; color: var(--slate); }
.mcal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.mcal-dow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  text-align: center;
  padding-bottom: 4px;
}
.mcal-day {
  aspect-ratio: 1;
  border-radius: 5px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  position: relative;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--slate);
  padding: 3px 0 0 4px;
}
.mcal-day.lv1 { background: #DFEDE6; border-color: #CBE0D5; }
.mcal-day.lv2 { background: #B9D8C8; border-color: #A6CBB8; }
.mcal-day.lv3 { background: #7FB89D; border-color: #6FAA8F; color: #FFF; }
.mcal-day.lv4 { background: var(--green); border-color: var(--green); color: #FFF; }
.mcal-day.mute { opacity: 0.35; }
.mcal-legend {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: flex-end;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate);
}
.mcal-legend i { width: 10px; height: 10px; border-radius: 3px; display: block; border: 1px solid var(--hairline); }
.mcal-legend i.l0 { background: var(--surface); }
.mcal-legend i.l1 { background: #DFEDE6; }
.mcal-legend i.l2 { background: #B9D8C8; }
.mcal-legend i.l3 { background: #7FB89D; }
.mcal-legend i.l4 { background: var(--green); }

/* -------------------------------------------------------- responsive ---- */
@media (max-width: 900px) {
  .mh-grid { grid-template-columns: 1fr; }
  .mh-main { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .mock-dash .frame-body { grid-template-columns: 1fr; }
  .mock-dash .m-side { display: none; }
  .md-grid { grid-template-columns: repeat(2, 1fr); }
  .mock-pipe .frame-body { grid-template-columns: 1fr; }
  .mp-agents { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .mock-edit .frame-body { grid-template-columns: minmax(0, 1fr) 168px; }
  .me-styles { display: none; }
}
@media (max-width: 600px) {
  .md-grid { grid-template-columns: 1fr 1fr; padding: 12px; gap: 8px; }
  .mock-edit .frame-body { grid-template-columns: 1fr; }
  .me-inspector { border-left: 0; border-top: 1px solid var(--hairline); }
  .mc-card { grid-template-columns: 1fr; gap: 10px; }
  .mc-stats { text-align: left; }
  .mearn-stats { grid-template-columns: 1fr; }
  .mearn-stat { border-left: 0; border-top: 1px solid var(--hairline); }
  .mearn-stat:first-child { border-top: 0; }
  .mearn-row { grid-template-columns: minmax(0, 1fr) auto; }
  .mearn-row .hide-s { display: none; }
  .frame-bar .chip { display: none; }
}
