/* ── Mac Browser Window (shared chrome) ──────────────────────────
 *
 * Every mockup on the site uses this frame. It is a CSS container, so the
 * panels inside respond to the WINDOW's width rather than the viewport —
 * one set of rules covers the full-width hero, a narrow column and mobile.
 *
 * Helpers available to any panel inside a window:
 *   .cew-mw-hide-sm  — removed once the window is narrow
 *   .cew-mw-full     — full text, shown on a wide window
 *   .cew-mw-short    — abbreviated text, shown on a narrow window
 * ---------------------------------------------------------------- */

.cew-mw {
  container-type: inline-size;
  container-name: cewmw;
  width: 100%;
  max-width: 540px;
  overflow: hidden;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 24px 60px rgba(9, 20, 32, 0.25);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Title bar */
.cew-mw__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  background-color: #eef1f5;
}

.cew-mw__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.cew-mw__dot--red   { background-color: #ff5f57; }
.cew-mw__dot--amber { background-color: #febc2e; }
.cew-mw__dot--green { background-color: #28c840; }

.cew-mw__body {
  padding: 20px;
}

/* Narrow-window helpers */
.cew-mw-short { display: none; }
.cew-mw-full  { display: inline; }

@container cewmw (max-width: 420px) {
  .cew-mw-hide-sm { display: none !important; }
  .cew-mw-short   { display: inline; }
  .cew-mw-full    { display: none; }
}

/* ── Panel: Dashboard Stats ──────────────────────────────────── */

.cew-dash__greeting {
  margin: 0 0 14px;
  color: #091420;
  font-size: clamp(13px, 3.2cqw, 16px);
  font-weight: 700;
  line-height: 1.3;
}

.cew-dash__tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cew-dash__tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 8px;
  background-color: #1654c0;
  color: #fff;
}

.cew-dash__tile-value {
  font-size: clamp(18px, 5cqw, 26px);
  font-weight: 700;
  line-height: 1.2;
}

.cew-dash__tile-label {
  font-size: clamp(8px, 2.2cqw, 11px);
  font-weight: 500;
  line-height: 1.3;
  opacity: 0.9;
}

.cew-dash__people {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.cew-dash__person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #eef1f5;
}

.cew-dash__person:last-child {
  border-bottom: 0;
}

.cew-dash__avatar {
  width: clamp(24px, 6cqw, 32px);
  height: clamp(24px, 6cqw, 32px);
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.cew-dash__name {
  flex: 1 1 auto;
  min-width: 0;
  color: #091420;
  font-size: clamp(10px, 2.6cqw, 14px);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cew-dash__status {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: clamp(8px, 2.2cqw, 11px);
  font-weight: 600;
  line-height: 1.4;
}

.cew-dash__status--confirmed {
  background-color: rgba(0, 200, 80, 0.12);
  color: #00a344;
}

.cew-dash__status--pending {
  background-color: rgba(254, 188, 46, 0.16);
  color: #b57c00;
}

.cew-dash__status--rejected {
  background-color: rgba(255, 95, 87, 0.14);
  color: #d13b32;
}

@container cewmw (max-width: 420px) {
  .cew-dash__tiles { gap: 8px; }
  .cew-dash__tile  { padding: 10px 12px; }
  .cew-dash__person { padding: 8px 0; }
}
