/* ==========================================================================
   PREN Connect — illustrative product UI
   Hand-built panels that reproduce the approved mockups' product screens.
   Every dimension is in `em`; the root font-size scales with the container,
   so a panel keeps its exact proportions at any width.
   ========================================================================== */

.ui { container-type: inline-size; height: 100%; }
.ui__inner { height: 100%; }

.ui__inner {
  font-size: 11px;
  font-family: var(--sans);
  line-height: 1.35;
  color: #1d2f3f;
  text-align: left;
}

@supports (font-size: 1cqw) {
  .ui__inner { font-size: 2.05cqw; }
}

.ui__inner * { box-sizing: border-box; }
.ui__inner svg { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: middle; }

/* ------------------------------------------------------------- app shell */

.app {
  display: grid;
  grid-template-rows: auto 1fr;
  background: #f3f6f8;
  height: 100%;
  overflow: hidden;
}

.app__bar {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 0.75em 1.1em;
  background: #fff;
  border-bottom: 1px solid #e4e9ed;
}

.app__logo { display: flex; align-items: center; gap: 0.45em; flex: none; }
.app__logo img { height: 1.45em; width: auto; display: block; }

.app__search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5em;
  height: 1.9em;
  padding: 0 0.7em;
  border: 1px solid #e4e9ed;
  border-radius: 0.45em;
  background: #f7f9fa;
  color: #94a3ad;
  font-size: 0.82em;
  max-width: 24em;
}
.app__search svg { width: 1em; height: 1em; }

.app__icons { display: flex; align-items: center; gap: 0.65em; margin-left: auto; color: #8a9aa6; }
.app__icons svg { width: 1.05em; height: 1.05em; }
.app__icons .dot { position: relative; }
.app__icons .dot::after {
  content: "";
  position: absolute;
  top: -0.15em;
  right: -0.15em;
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: #c6a15b;
}

.app__avatar {
  width: 1.7em;
  height: 1.7em;
  border-radius: 50%;
  background: #1f668f;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex: none;
}

.app__body { display: grid; grid-template-columns: 9.2em 1fr; min-height: 0; }

.app__nav {
  background: linear-gradient(180deg, #14476e 0%, #0e3a5c 100%);
  padding: 0.85em 0.6em;
  display: flex;
  flex-direction: column;
  gap: 0.12em;
}

.app__nav a {
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.42em 0.6em;
  border-radius: 0.4em;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8em;
  text-decoration: none;
}
.app__nav a svg { width: 1.05em; height: 1.05em; flex: none; opacity: 0.85; }
.app__nav a.on { background: rgba(255, 255, 255, 0.14); color: #fff; font-weight: 600; }

.app__main { padding: 1em 1.1em; overflow: hidden; }

.app__welcome { display: flex; align-items: flex-start; justify-content: space-between; gap: 1em; }
.app__welcome h4 {
  font-family: var(--serif);
  font-size: 1.35em;
  color: #0b3555;
  margin: 0 0 0.15em;
  line-height: 1.15;
}
.app__welcome p { margin: 0; font-size: 0.82em; color: #6e808d; }
.app__date {
  font-size: 0.72em;
  color: #8a9aa6;
  display: flex;
  align-items: center;
  gap: 0.35em;
  flex: none;
  white-space: nowrap;
}
.app__date svg { width: 0.9em; height: 0.9em; }

/* ------------------------------------------------------------ stat tiles */

.ui-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6em; margin-top: 0.9em; }
.ui-tiles--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ui-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ui-tile {
  background: #fff;
  border: 1px solid #e4e9ed;
  border-radius: 0.5em;
  padding: 0.65em 0.7em;
  display: flex;
  align-items: center;
  gap: 0.55em;
}
.ui-tile svg { width: 1.15em; height: 1.15em; color: #1f668f; flex: none; }
.ui-tile b { display: block; font-family: var(--serif); font-size: 1.15em; color: #0b3555; line-height: 1.1; }
.ui-tile span { display: block; font-size: 0.68em; color: #7e8e9a; white-space: nowrap; }
.ui-tile .up { color: #248a52; font-size: 0.66em; font-weight: 600; margin-left: auto; white-space: nowrap; }

/* --------------------------------------------------------------- columns */

.ui-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6em; margin-top: 0.7em; }
.ui-cols--wide { grid-template-columns: 1.5fr 1fr; }

.ui-card {
  background: #fff;
  border: 1px solid #e4e9ed;
  border-radius: 0.5em;
  padding: 0.7em 0.75em;
}

.ui-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
  margin-bottom: 0.55em;
}
.ui-card__head b { font-size: 0.85em; font-weight: 700; color: #0b3555; }
.ui-card__head span { font-size: 0.68em; color: #97a5b0; }
.ui-card__head a { font-size: 0.68em; color: #1f668f; text-decoration: none; }

/* --------------------------------------------------------- activity rows */

.ui-rows { display: grid; gap: 0.12em; }

.ui-row {
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.38em 0.1em;
  font-size: 0.78em;
}
.ui-row + .ui-row { border-top: 1px solid #f0f3f5; }
.ui-row svg { width: 0.95em; height: 0.95em; color: #1f668f; flex: none; }
.ui-row b { display: block; font-weight: 600; color: #22394c; font-size: 1em; }
.ui-row small { display: block; font-size: 0.85em; color: #8a9aa6; }
.ui-row .when { margin-left: auto; font-size: 0.82em; color: #a3b0ba; white-space: nowrap; }

.ui-action {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.42em 0.55em;
  border: 1px solid #e8edf0;
  border-radius: 0.4em;
  font-size: 0.76em;
  color: #22394c;
  margin-bottom: 0.3em;
  background: #fff;
}
.ui-action svg { width: 0.9em; height: 0.9em; color: #1f668f; flex: none; }

/* ------------------------------------------------------------- bar chart */

.ui-chart { display: flex; align-items: flex-end; gap: 0.3em; height: 6em; margin-top: 0.3em; }
.ui-chart span {
  flex: 1;
  background: linear-gradient(180deg, #2f7ba6 0%, #1f668f 100%);
  border-radius: 0.15em 0.15em 0 0;
  min-height: 0.2em;
}
.ui-chart span.hi { background: linear-gradient(180deg, #c6a15b 0%, #b08c47 100%); }

.ui-chart-wrap { display: grid; grid-template-columns: 1.9em 1fr; gap: 0.4em; }
.ui-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.62em;
  color: #a3b0ba;
  height: 6em;
  text-align: right;
}
.ui-labels { display: flex; gap: 0.3em; margin-top: 0.25em; font-size: 0.6em; color: #a3b0ba; }
.ui-labels span { flex: 1; text-align: center; }

/* ----------------------------------------------------------------- donut */

.ui-donut { display: flex; align-items: center; gap: 0.8em; }
.ui-donut__ring {
  width: 5.4em;
  height: 5.4em;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  position: relative;
}
.ui-donut__ring::after {
  content: "";
  position: absolute;
  inset: 1.25em;
  background: #fff;
  border-radius: 50%;
}
.ui-donut__ring b {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 1.05em;
  color: #0b3555;
  text-align: center;
  line-height: 1;
}
.ui-donut__ring b small { display: block; font-family: var(--sans); font-size: 0.5em; color: #97a5b0; font-weight: 500; }

.ui-legend { display: grid; gap: 0.28em; font-size: 0.7em; }
.ui-legend div { display: flex; align-items: center; gap: 0.4em; color: #55697a; }
.ui-legend i { width: 0.5em; height: 0.5em; border-radius: 50%; flex: none; }
.ui-legend em { margin-left: auto; font-style: normal; color: #22394c; font-weight: 600; }

/* -------------------------------------------------------------- generic */

.ui-pill {
  font-size: 0.66em;
  padding: 0.22em 0.6em;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}
.ui-pill--green { background: #e3f3ea; color: #1d7245; }
.ui-pill--gold { background: #f6eeda; color: #8a6a26; }
.ui-pill--blue { background: #e4eff5; color: #1a5a80; }
.ui-pill--grey { background: #eef2f4; color: #6b7c88; }

.ui-tabs {
  display: flex;
  gap: 0.9em;
  border-bottom: 1px solid #e8edf0;
  margin-bottom: 0.6em;
  font-size: 0.75em;
  color: #8a9aa6;
}
.ui-tabs span { padding-bottom: 0.4em; white-space: nowrap; }
.ui-tabs span.on { color: #1f668f; font-weight: 600; box-shadow: inset 0 -0.16em 0 #1f668f; }

.ui-head {
  background: linear-gradient(120deg, #14476e 0%, #0e3a5c 100%);
  color: #fff;
  padding: 0.85em 1em;
  border-radius: 0.5em 0.5em 0 0;
}
.ui-head h4 { font-family: var(--serif); font-size: 1.2em; margin: 0 0 0.15em; color: #fff; }
.ui-head p { margin: 0; font-size: 0.75em; color: rgba(255, 255, 255, 0.76); }

.ui-panel {
  background: #fff;
  border: 1px solid #e4e9ed;
  border-radius: 0.55em;
  overflow: hidden;
  box-shadow: 0 0.5em 1.6em rgba(11, 53, 85, 0.1);
}
.ui-panel__body { padding: 0.85em 0.9em; }

.ui-crumb {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.72em;
  color: #8a9aa6;
  margin-bottom: 0.5em;
}
.ui-crumb b { color: #1f668f; font-weight: 600; }

.ui-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.4em 0.8em;
  border-radius: 0.35em;
  font-size: 0.72em;
  font-weight: 600;
  white-space: nowrap;
}
.ui-btn.ui-btn--gold { background: #c6a15b; color: #3a2a0c; }
.ui-btn.ui-btn--navy { background: #1f668f; color: #fff; }
.ui-btn.ui-btn--ghost { border: 1px solid #d9e1e7; color: #33556e; }

.ui-field {
  display: flex;
  align-items: center;
  gap: 0.45em;
  height: 1.8em;
  padding: 0 0.6em;
  border: 1px solid #e4e9ed;
  border-radius: 0.35em;
  font-size: 0.74em;
  color: #97a5b0;
  background: #fff;
}
.ui-field svg { width: 0.9em; height: 0.9em; }

/* ------------------------------------------------------- milestone line */

.ui-mile { display: grid; grid-auto-flow: column; gap: 0; margin-top: 0.7em; position: relative; }
.ui-mile::before {
  content: "";
  position: absolute;
  top: 0.52em;
  left: 8%;
  right: 8%;
  height: 0.12em;
  background: #e2e8ec;
}
.ui-mile > div { text-align: center; position: relative; z-index: 1; }
.ui-mile i {
  display: block;
  width: 1.05em;
  height: 1.05em;
  border-radius: 50%;
  margin: 0 auto 0.35em;
  background: #fff;
  border: 0.18em solid #cfd9e0;
}
.ui-mile > div.done i { background: #1f668f; border-color: #1f668f; }
.ui-mile > div.now i { border-color: #1f668f; box-shadow: 0 0 0 0.2em rgba(31, 102, 143, 0.16); }
.ui-mile b { display: block; font-size: 0.66em; color: #22394c; font-weight: 600; }
.ui-mile small { display: block; font-size: 0.62em; color: #a3b0ba; }

/* ------------------------------------------------------------- progress */

.ui-bar { height: 0.42em; border-radius: 999px; background: #e8edf0; overflow: hidden; }
.ui-bar i { display: block; height: 100%; border-radius: 999px; background: #1f668f; }
.ui-bar i.gold { background: #c6a15b; }
.ui-bar i.green { background: #248a52; }

.ui-check {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.34em 0;
  font-size: 0.76em;
  color: #33556e;
}
.ui-check svg { width: 0.95em; height: 0.95em; flex: none; }
.ui-check .st { margin-left: auto; font-size: 0.85em; }
.ui-check.done svg { color: #248a52; }
.ui-check.done .st { color: #248a52; }
.ui-check.now svg { color: #c6a15b; }
.ui-check.now .st { color: #b08c47; }
.ui-check.todo svg { color: #cfd9e0; }
.ui-check.todo .st { color: #a3b0ba; }

/* ---------------------------------------------------------- media / thumbs */

.ui-thumb {
  border-radius: 0.35em;
  overflow: hidden;
  background: #dfe6ea;
  display: block;
}
.ui-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

.ui-avatar {
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: #dbe5ec;
  color: #33556e;
  display: grid;
  place-items: center;
  font-size: 0.7em;
  font-weight: 700;
  flex: none;
  overflow: hidden;
}
.ui-avatar img { width: 100%; height: 100%; object-fit: cover; }

.ui-swatches { display: flex; gap: 0.35em; margin-top: 0.5em; }
.ui-swatches i { width: 2.4em; height: 1.5em; border-radius: 0.25em; display: block; }

/* ------------------------------------------------ website / flyer mockups */

.ui-site { border-radius: 0.4em; overflow: hidden; border: 1px solid #e4e9ed; }
.ui-site__bar {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.45em 0.65em;
  background: #fff;
  border-bottom: 1px solid #eef2f4;
  font-size: 0.64em;
  color: #6e808d;
}
.ui-site__bar img { height: 1.5em; width: auto; }
.ui-site__bar span { margin-left: auto; display: flex; gap: 0.7em; }
.ui-site__hero { position: relative; aspect-ratio: 16 / 9; }
.ui-site__hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ui-site__hero > div {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  background: linear-gradient(90deg, rgba(6, 28, 46, 0.62) 0%, rgba(6, 28, 46, 0.34) 55%, rgba(6, 28, 46, 0.22) 100%);
  color: #fff;
  text-align: center;
  padding: 0.6em;
}
.ui-site__hero h5 { font-family: var(--serif); font-size: 1.15em; margin: 0; color: #fff; }
.ui-site__search {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 0.3em;
  overflow: hidden;
  font-size: 0.62em;
  width: 80%;
  max-width: 16em;
}
.ui-site__search span { flex: 1; padding: 0.4em 0.6em; color: #97a5b0; text-align: left; }
.ui-site__search b { background: #1f668f; color: #fff; padding: 0.4em 0.7em; font-weight: 600; }

.ui-flyer { border-radius: 0.4em; overflow: hidden; border: 1px solid #e4e9ed; background: #fff; }
.ui-flyer img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ui-flyer__body { padding: 0.6em 0.7em; }
.ui-flyer__body b { display: block; font-family: var(--serif); font-size: 1.05em; color: #0b3555; }
.ui-flyer__body span { display: block; font-size: 0.7em; color: #7e8e9a; }
.ui-flyer__body img { width: 4.5em; aspect-ratio: auto; margin-top: 0.5em; }

.ui-list { display: grid; gap: 0.3em; }
.ui-list > div {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.35em 0.5em;
  border: 1px solid #eef2f4;
  border-radius: 0.35em;
  font-size: 0.72em;
  color: #33556e;
}
.ui-list > div .muted { margin-left: auto; color: #a3b0ba; font-size: 0.9em; }

/* -------------------------------------------------------------- listing */

.ui-listing { border-radius: 0.4em; overflow: hidden; border: 1px solid #e4e9ed; background: #fff; }
.ui-listing__img { position: relative; aspect-ratio: 16 / 10; }
.ui-listing__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ui-listing__img .ui-pill { position: absolute; top: 0.45em; right: 0.45em; background: #e3f3ea; color: #1d7245; }
.ui-listing__body { padding: 0.55em 0.65em; }
.ui-listing__body b { display: block; font-size: 0.85em; color: #22394c; }
.ui-listing__body span { display: block; font-size: 0.7em; color: #8a9aa6; }
.ui-listing__body .price { font-family: var(--serif); font-size: 1.05em; color: #0b3555; margin-top: 0.2em; display: block; }
.ui-listing__meta { display: flex; gap: 0.7em; font-size: 0.66em; color: #8a9aa6; margin-top: 0.25em; }

/* ------------------------------------------------------------ agent rows */

.ui-agents { display: grid; gap: 0.35em; }
.ui-agents > div { display: flex; align-items: center; gap: 0.5em; font-size: 0.74em; }
.ui-agents b { font-weight: 600; color: #22394c; }
.ui-agents small { display: block; color: #a3b0ba; font-size: 0.85em; }
.ui-agents .val { margin-left: auto; font-weight: 600; color: #0b3555; white-space: nowrap; }
.ui-agents .ui-bar { width: 4.5em; }

/* ------------------------------------------------- listings card (mockup) */

.ui-listing2 { display: flex; align-items: flex-start; gap: 0.6em; }
.ui-listing2__img {
  position: relative;
  flex: 1;
  border-radius: 0.45em;
  overflow: hidden;
  aspect-ratio: 16 / 11;
}
.ui-listing2__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ui-listing2__cam {
  position: absolute;
  top: 0.35em;
  left: 0.35em;
  width: 1.4em;
  height: 1.4em;
  border-radius: 0.3em;
  background: rgba(10, 28, 44, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
}
.ui-listing2__cam svg { width: 0.85em; height: 0.85em; }
.ui-listing2__side {
  width: 5em;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.1em;
  padding-top: 0.1em;
}
.ui-dots { color: #9fb0bc; font-size: 1em; letter-spacing: 0.06em; }

.ui-listing2__title {
  display: block;
  font-family: var(--serif);
  font-size: 1.25em;
  color: #0b3555;
  margin-top: 0.55em;
  line-height: 1.15;
}
.ui-listing2__sub { display: block; font-size: 0.78em; color: #8a9aa6; }
.ui-listing2__meta { display: flex; gap: 1.1em; font-size: 0.75em; color: #55697a; margin-top: 0.45em; }

/* ------------------------------------------------ transaction desk stepper */

.ui-step { display: flex; align-items: flex-start; gap: 0.15em; margin: 0.5em 0 0.7em; position: relative; }
.ui-step > div { flex: 1; text-align: center; position: relative; }
.ui-step > div::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: -50%;
  width: 100%;
  height: 0.14em;
  background: #e2e8ec;
}
.ui-step > div:first-child::before { display: none; }
.ui-step > div.done::before, .ui-step > div.next::before { background: #9dc0d6; }
.ui-step i {
  position: relative;
  z-index: 1;
  display: block;
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  margin: 0 auto 0.35em;
  background: #fff;
  border: 0.2em solid #d7e0e6;
}
.ui-step > div.done i { background: #1f668f; border-color: #1f668f; }
.ui-step > div.next i { border-color: #6fa3c2; background: #eaf2f7; }
.ui-step b { display: block; font-size: 0.58em; font-weight: 600; color: #55697a; line-height: 1.15; word-break: break-word; }
.ui-step > div.done b { color: #22394c; }

.ui-deal {
  display: flex;
  align-items: center;
  gap: 0.6em;
  border: 1px solid #eef2f4;
  border-radius: 0.45em;
  padding: 0.5em;
}
.ui-deal b { display: block; font-size: 0.82em; color: #22394c; }
.ui-deal small { display: block; font-size: 0.7em; color: #8a9aa6; margin-bottom: 0.3em; }

/* ------------------------------------------------------- document rows */

.ui-doc {
  display: flex;
  align-items: center;
  gap: 0.6em;
  border: 1px solid #eef2f4;
  border-radius: 0.45em;
  padding: 0.5em 0.6em;
  margin-bottom: 0.4em;
}
.ui-doc b { display: block; font-size: 0.8em; color: #22394c; }
.ui-doc small { display: block; font-size: 0.68em; color: #a3b0ba; }
.ui-chev { margin-left: auto; color: #93a3ae; font-size: 1.1em; line-height: 1; }
.ui-chev--left { margin: 0 0.3em 0 0; }

.ui-pdf {
  position: relative;
  width: 1.9em;
  height: 2.2em;
  border-radius: 0.25em;
  background: #d94a4a;
  display: grid;
  place-items: center;
  flex: none;
}
.ui-pdf svg { width: 1.2em; height: 1.4em; }
.ui-pdf b { display: none; }

/* --------------------------------------------------------------- reviews */

.ui-review { display: flex; align-items: center; }
.ui-review__body { flex: 1; }
.ui-review__who { display: flex; align-items: center; gap: 0.5em; margin-bottom: 0.4em; }
.ui-review__who b { display: block; font-size: 0.82em; color: #22394c; }
.ui-review p { font-size: 0.75em; color: #55697a; margin: 0; }
.ui-stars { color: #e0a52b; font-size: 0.8em; letter-spacing: 0.04em; }

.ui-avatar--sq { border-radius: 0.35em; width: 1.9em; height: 1.9em; background: #e7eef4; }

/* ---------------------------------------------------------- stat boxes */

.ui-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45em; }
.ui-boxes > div {
  border: 1px solid #e8edf0;
  border-radius: 0.4em;
  padding: 0.5em 0.4em;
  text-align: center;
}
.ui-boxes b { display: block; font-family: var(--serif); font-size: 1.05em; color: #0b3555; line-height: 1.1; }
.ui-boxes span { display: block; font-size: 0.62em; color: #8a9aa6; }

/* ------------------------------------------------- website builder hero */

.ui-site__hero > div { align-items: flex-start; justify-content: flex-end; padding: 0.9em; gap: 0.7em; text-align: left; }
.ui-site__hero h5 { text-align: left; font-size: 1.55em; line-height: 1.1; text-shadow: 0 1px 10px rgba(6,30,48,.5); }
.ui-site__hero .ui-site__search { width: 100%; max-width: none; }
.ui-site__btn {
  background: #fff;
  color: #0b3555;
  font-size: 0.68em;
  font-weight: 600;
  padding: 0.45em 0.9em;
  border-radius: 0.3em;
}

/* Panels inside a feature card sit in a ~320px column; at the hero scale they
   render too small to read. Scale them up so they fill the card the way the
   approved mockups do. */
@supports (font-size: 1cqw) {
  .feature .ui__inner { font-size: 3.2cqw; }
  .duo .ui__inner { font-size: 2.7cqw; }
}
.feature .ui { margin-top: auto; }

.ui-kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
  font-size: 0.74em;
  color: #8a9aa6;
  padding: 0.25em 0;
}
.ui-kv b { color: #22394c; font-weight: 600; }

.ui-task {
  display: flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.75em;
  color: #33556e;
  padding: 0.32em 0;
}
.ui-task + .ui-task { border-top: 1px solid #f2f5f7; }
.ui-task i {
  width: 0.85em;
  height: 0.85em;
  border-radius: 50%;
  border: 0.14em solid #cfd9e0;
  flex: none;
  display: block;
}
.ui-task .when { margin-left: auto; color: #a3b0ba; font-size: 0.92em; }

/* staged portraits from the Platform Production Kit: 512px source shown at
   32-64px, so they stay sharp on any display */
.ui-avatar picture,
.ui-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.ui-avatar--lg { width: 2.6em; height: 2.6em; }

/* In the Platform module pairs the card column is ~155-210px, matching the
   approved target. Container-scaled type collapses at that width, so these
   panels take a fixed size the way platform-reference.css does. */
/* Capability-card previews: a 3-up card at 1240px is ~385px wide, so the
   panel can run at its natural container scale and stay legible. The old
   narrow-column override that shrank this to 10px is gone with .modblock. */
.capcard__vis .ui-panel { overflow: hidden; }
.capcard__vis .ui__inner { font-size: 13px; }
@supports (font-size: 1cqw) { .capcard__vis .ui__inner { font-size: 3.4cqw; } }
@media (max-width: 767px) { .capcard__vis .ui__inner { font-size: 13px; } }

/* Fifteen modules run five across on the approved Features target, leaving each
   card ~200px. Container-scaled type collapses at that width. */
.modules .feature .ui__inner { font-size: 9.6px; }
@media (max-width: 1200px) { .modules .feature .ui__inner { font-size: 11px; } }
@media (max-width: 720px)  { .modules .feature .ui__inner { font-size: 13px; } }

/* Panels dropped inside a standard card (Academy's quizzes / assignments /
   progress trio) sit in a ~330px column and need the same scale-up. */
.card > .ui .ui__inner { font-size: 3.1cqw; }
@media (max-width: 720px) { .card > .ui .ui__inner { font-size: 13px; } }

/* ------------------------- Academy progress rows (Alignment Fix Kit) ------ */
.ui-courses { display: grid; gap: 1.15em; margin: 1.1em 0 0.4em; }
.ui-course { display: flex; align-items: center; gap: 0.7em; }
.ui-course b { display: block; font-size: 0.84em; color: #22394c; font-weight: 600; }
.ui-course small { display: block; font-size: 0.72em; color: #8a9aa6; }
.ui-course__pct { width: 8em; flex: none; text-align: right; }
.ui-course__pct span { display: block; font-size: 0.76em; color: #22394c; font-weight: 600; margin-bottom: 0.3em; }
.ui-course__pct .ui-bar { width: 100%; }

/* ---------------------- Powered by PREN launch screen (Alignment Fix Kit) -- */
.poweredscreen { position: relative; overflow: hidden; background: #0b3555; }
.poweredscreen__photo,
.poweredscreen__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.poweredscreen::after {
  content: "";
  position: absolute;
  inset: 0;
  /* the lockup sits mid-screen, over the brightest part of the photo, so the
     scrim darkens the centre as well as the foot of the frame */
  background:
    radial-gradient(130% 95% at 50% 42%, rgba(4, 22, 38, 0.74), rgba(4, 22, 38, 0.3) 62%),
    linear-gradient(180deg, rgba(6, 30, 50, 0.38), rgba(6, 30, 50, 0.82));
}
.poweredscreen__plate {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1em;
  text-align: center;
  padding: 1.2em;
}
/* the plate fills the screen, so a percentage here is a share of the laptop
   window rather than of a shrink-wrapped box */
/* .laptop__window img paints a white plate behind any image it frames, which
   is right for a screenshot and wrong for a logo sitting on photography. */
.poweredscreen__plate img { width: 54%; max-width: 230px; height: auto; background: none; }
.poweredscreen__plate span {
  font-family: var(--serif);
  font-size: 1.05em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.5;
}
