/* ============================================================================
   Product UI mocks — CSS-rendered MyLOFT, MyDiscovery, dashboards.
   ============================================================================ */

/* ---------- MyLOFT desktop mock ---------- */
.ml-mock {
  max-width: 100%;
  min-width: 0;
  background: linear-gradient(120deg, #EAF5FF 0%, #F8FBFF 46%, #EAFBFF 100%);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,46,110,0.13);
  font-family: var(--font-product);
  color: #1E2430;
}
.ml-mock * { min-width: 0; }
.ml-app-head {
  height: 72px;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  padding: 0 18px;
  background: rgba(235, 247, 255, 0.92);
  border-bottom: 3px solid #61C6E8;
}
.ml-app-head img { width: 118px; justify-self: center; height: auto; }
.ml-app-head button {
  width: 30px;
  height: 30px;
  border: 1px solid #C8D8E6;
  border-radius: 50%;
  background: rgba(255,255,255,0.72);
  color: #314151;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(31, 50, 74, 0.08);
}
.ml-app-head button:last-child { justify-self: end; font-size: 18px; }
.ml-app-body {
  position: relative;
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr) 42px;
  gap: 0;
  min-height: 515px;
}
.ml-sidebar {
  padding: 18px 12px;
  background: linear-gradient(180deg, #EEF5FF, #E4EEFB);
  border-right: 1px solid #D8E3F0;
}
.ml-institute { text-align: center; color: #556070; }
.ml-cover {
  height: 72px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background:
    radial-gradient(circle at 50% 20%, rgba(92, 200, 255, 0.35), transparent 48%),
    linear-gradient(140deg, #07152C, #061B35 65%, #0A101F);
  color: rgba(92, 200, 255, 0.74);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.ml-institute-logo {
  width: 44px;
  height: 44px;
  margin: -22px auto 8px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,46,110,0.16);
}
.ml-institute-logo img { width: 30px; height: auto; }
.ml-institute strong { display: block; font-size: 12px; }
.ml-side-nav { display: flex; flex-direction: column; gap: 10px; margin-top: 30px; }
.ml-side-nav span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #535B66;
  font-size: 13px;
  font-weight: 700;
}
.ml-side-nav b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #F6FAFF;
  color: #5EC2E6;
  font-size: 14px;
}
.ml-side-nav .active b { background: #66C8EC; color: #fff; }
.ml-content { padding: 20px 22px 78px; overflow: hidden; }
.ml-discover {
  position: relative;
  padding-bottom: 18px;
  border-bottom: 2px solid #68C6E6;
}
.ml-discover h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.1; }
.ml-searchbar {
  max-width: 520px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0,46,110,0.12);
  transform: translateY(18px);
}
.ml-search-icon {
  width: 14px;
  height: 14px;
  border: 2px solid #61C6E8;
  border-right-color: transparent;
  border-radius: 50%;
}
.ml-searchbar strong { flex: 1; color: #8A91A0; font-size: 13px; }
.ml-searchbar em {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #606879;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}
.ml-searchbar em img { width: 24px; height: auto; }
.ml-section { margin-top: 28px; }
.ml-section h4 { margin: 0 0 12px; font-size: 18px; line-height: 1.15; }
.ml-section h4 span { color: #A774EC; }
.ml-recommend-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.ml-rec-card {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.9);
  border: 1px solid #D9E3F0;
  border-radius: 7px;
  box-shadow: 0 6px 14px rgba(0,46,110,0.04);
}
.ml-rec-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #F58A1F, #FFCB5B);
}
.ml-rec-icon.r1 { background: linear-gradient(135deg, #93B4FF, #DCE8FF); }
.ml-rec-icon.r2 { background: linear-gradient(135deg, #0E5A76, #DFF8FF); }
.ml-rec-icon.r3 { background: linear-gradient(135deg, #F6B15B, #FFF0DB); }
.ml-rec-icon.r4 { background: linear-gradient(135deg, #E83B4A, #FFE0E5); }
.ml-rec-card strong,
.ml-db-card strong,
.ml-article-card strong { display: block; font-size: 12.5px; line-height: 1.22; }
.ml-rec-card small,
.ml-db-card small,
.ml-article-card small { display: block; color: #687385; font-size: 10.5px; line-height: 1.35; }
.ml-db-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(92px, 1fr));
  gap: 12px;
}
.ml-db-card {
  min-height: 132px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: center;
  background: #fff;
  border: 1px solid #D7E0EC;
  border-radius: 7px;
  box-shadow: 0 6px 14px rgba(0,46,110,0.05);
}
.ml-db-logo {
  min-height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 4px;
  background: #763EA2;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.ml-db-logo.d1,
.ml-db-logo.d2 { background: linear-gradient(135deg, #47AF57 0 45%, #1E6A9A 45%); }
.ml-db-logo.d3 { background: #2634C4; }
.ml-db-logo.d4 { background: #fff; color: #F58A1F; border: 1px solid #ECEFF4; }
.ml-db-logo.d5 { background: #fff; color: #173B73; border: 1px solid #ECEFF4; }
.ml-article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ml-article-card {
  min-height: 86px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  background: rgba(255,255,255,0.92);
  border: 1px solid #D9E3F0;
  border-radius: 7px;
}
.ml-book {
  min-height: 66px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 5px;
  background: linear-gradient(160deg, #7F8C99, #44505B);
  color: #fff;
  text-align: center;
  font-size: 9px;
  line-height: 1.2;
}
.ml-book.b1 { background: linear-gradient(160deg, #5ECFC1, #28817A); }
.ml-book.b2 { background: linear-gradient(160deg, #76A7A5, #466463); }
.ml-book.b3 { background: linear-gradient(160deg, #D896DD, #9865A7); }
.ml-right-rail {
  padding: 28px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.56);
  border-left: 1px solid #D8E3F0;
}
.ml-right-rail span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #173B73;
  font-size: 12px;
  box-shadow: 0 5px 10px rgba(0,46,110,0.08);
}
.ml-ai-panel {
  position: absolute;
  right: 52px;
  top: 146px;
  width: 300px;
  min-height: 270px;
  background: #fff;
  border: 2px solid #1D4B82;
  box-shadow: 0 18px 36px rgba(0,46,110,0.18);
}
.ml-ai-panel header {
  height: 54px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #EEF1F4;
  font-size: 15px;
}
.ml-ai-panel header span,
.ml-ai-msg i {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #1E2430;
}
.ml-ai-msg {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 32px 18px;
}
.ml-ai-msg p {
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  background: #F2F4F7;
  color: #2D3542;
  font-size: 12.5px;
  line-height: 1.45;
}
.ml-ai-input {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #DDE3EA;
  border-radius: 10px;
  color: #9AA2AF;
  font-size: 11.5px;
  font-weight: 700;
}
.ml-app-footer {
  min-height: 54px;
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  background: #fff;
  border-top: 1px solid #DCE5EF;
  color: #8B929D;
  font-size: 11px;
  font-weight: 700;
}
.ml-app-footer img { width: 90px; height: auto; }
.ml-app-footer nav { display: flex; gap: 18px; color: #555E6B; }

@media (max-width: 1180px) {
  .ml-recommend-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ml-db-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ml-ai-panel { display: none; }
}

@media (max-width: 980px) {
  .ml-app-body { grid-template-columns: 1fr 38px; }
  .ml-sidebar { display: none; }
}

@media (max-width: 720px) {
  .ml-mock,
  .md-mock,
  .dash-mock { border-radius: 12px; }
  .ml-app-head { height: 58px; padding: 0 12px; }
  .ml-app-head img { width: 96px; }
  .ml-app-body { grid-template-columns: 1fr; min-height: auto; }
  .ml-right-rail { display: none; }
  .ml-content { padding: 16px 14px 28px; }
  .ml-searchbar { transform: none; max-width: none; }
  .ml-section { margin-top: 18px; }
  .ml-recommend-grid,
  .ml-db-row,
  .ml-article-grid { grid-template-columns: 1fr; }
  .ml-app-footer { grid-template-columns: 1fr; justify-items: start; padding: 12px 16px; gap: 8px; }
  .ml-app-footer nav { flex-wrap: wrap; gap: 10px; }
}

/* ---------- MyLOFT phone ---------- */
.ml-phone {
  width: 232px; height: 470px; border-radius: 36px; padding: 12px;
  background: linear-gradient(160deg, #1C1A22, #0A1428);
  box-shadow: 0 30px 60px rgba(0,46,110,0.28);
  position: relative;
  margin: 0 auto;
}
.ml-phone-notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; background: #0A1428; border-radius: 999px; z-index: 2; }
.ml-phone-screen { background: #fff; border-radius: 26px; height: 100%; overflow: hidden; padding: 32px 14px 8px; display: flex; flex-direction: column; }
.ml-phone-head { padding-bottom: 8px; }
.ml-phone-search { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--hairline); border-radius: 999px; font-size: 11.5px; color: var(--fg-3); }
.ml-phone-search .i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--fg-3); border-right-color: transparent; }
.ml-phone-section { font-size: 9.5px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase; color: var(--fg-3); margin: 12px 0 6px; }
.ml-phone-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ml-phone-card { aspect-ratio: 4/5; border-radius: 8px; padding: 8px; color: #fff; display: flex; flex-direction: column; gap: 4px; }
.ml-phone-card.a { background: linear-gradient(160deg, #00BAF2, #002E6E); }
.ml-phone-card.b { background: linear-gradient(160deg, #AE71F7, #23085A); }
.ml-phone-card small { font-size: 8px; font-weight: 800; letter-spacing: 0.14em; opacity: 0.85; }
.ml-phone-card strong { margin-top: auto; font-size: 11px; line-height: 1.2; }
.ml-phone-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.ml-phone-row > span { width: 32px; height: 32px; border-radius: 6px; background: linear-gradient(160deg, #43BEE2, #002E6E); flex: 0 0 auto; }
.ml-phone-row > span.o { background: linear-gradient(160deg, #F58A1F, #C76A0E); }
.ml-phone-row strong { display: block; font-size: 11px; font-weight: 600; color: var(--ink); }
.ml-phone-row em { display: block; font-style: normal; font-size: 10px; color: var(--fg-3); }
.ml-phone-tab { margin-top: auto; display: flex; justify-content: space-around; padding: 12px 4px 8px; border-top: 1px solid var(--hairline); }
.ml-phone-tab span { width: 14px; height: 14px; border-radius: 4px; background: #D9E1EE; }
.ml-phone-tab span.active { background: var(--myloft-sky); }

/* ---------- MyDiscovery mock ---------- */
.md-mock {
  max-width: 100%;
  min-width: 0;
  background: #F5F5F5; border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,46,110,0.13);
  font-family: var(--font-product);
  color: #1f2933;
}
.md-mock * { min-width: 0; }
.md-shell-top {
  height: 72px; display: grid; grid-template-columns: 128px 1fr 44px; align-items: center; gap: 18px;
  padding: 0 22px; background: #EFEFEF; border-bottom: 3px solid #1E6A9A;
}
.md-brand img { width: 82px; height: auto; }
.md-home-link { color: #1C69A2; font-size: 17px; font-weight: 500; }
.md-user { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #94C848; color: #fff; font-weight: 700; font-size: 13px; }
.md-body { padding: 34px 22px 22px; }
.md-search-panel { max-width: 760px; margin: 0 auto 26px; background: #fff; border-radius: 8px; box-shadow: 0 14px 34px rgba(0,0,0,0.1); overflow: hidden; }
.md-search-line { min-height: 56px; display: flex; align-items: center; gap: 16px; padding: 0 18px; border-bottom: 1px solid #E5E7EB; }
.md-search-line .i { width: 15px; height: 15px; border-radius: 50%; border: 2px solid #9AA0B8; border-right-color: transparent; }
.md-search-line strong { flex: 1; color: #555; font-size: 16px; font-weight: 600; }
.md-search-line .md-star { color: #E7A92C; font-size: 21px; line-height: 1; }
.md-search-line em { font-style: normal; background: #DDA451; color: #fff; border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 700; }
.md-search-actions { min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 10px 14px; }
.md-search-actions span { border: 1px solid #C9CDD3; border-radius: 999px; padding: 7px 13px; color: #737373; font-size: 12px; font-weight: 600; }
.md-search-actions span:last-child { margin-left: auto; }
.md-toolbar { display: flex; align-items: center; gap: 7px; margin-bottom: 16px; padding-left: 166px; }
.md-toolbar button { border: 1px solid #D2D5DA; background: #F8F8F8; color: #666; border-radius: 3px; padding: 6px 10px; font-size: 11.5px; font-weight: 600; }
.md-check, .md-checkbox { width: 14px; height: 14px; border: 1px solid #A8ADB5; border-radius: 3px; background: #fff; flex: 0 0 auto; }
.md-results { display: grid; grid-template-columns: 170px minmax(0, 1fr) 210px; gap: 16px; align-items: start; }
.md-filters { background: #fff; border-radius: 8px; padding: 18px 16px; box-shadow: 0 12px 26px rgba(0,0,0,0.06); }
.md-sort { border-bottom: 1px solid #DADDE3; padding-bottom: 12px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 7px; color: #123C9B; font-size: 12.5px; }
.md-filter-search { margin-bottom: 14px; color: #555; font-size: 12px; font-weight: 700; }
.md-filter-search div { height: 28px; margin-top: 5px; border: 1px solid #D8DDE5; border-radius: 4px; display: flex; }
.md-filter-search em { flex: 1; }
.md-filter-search b { width: 32px; border-left: 1px solid #D8DDE5; background: #F7F7F7; }
.md-fg { border-top: 1px solid #EEF0F4; padding-top: 12px; margin-bottom: 12px; }
.md-fg small { display: block; color: #DDA451; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.md-fg label { display: flex; justify-content: space-between; gap: 8px; color: #123C9B; font-size: 12px; line-height: 1.25; padding: 5px 0; }
.md-fg label em { flex: 0 0 auto; color: #123C9B; font-style: normal; }
.md-list { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.md-count { color: #676767; font-size: 12px; font-weight: 700; }
.md-summary, .md-related, .md-result, .md-side-card { background: #fff; border-radius: 8px; box-shadow: 0 12px 28px rgba(0,0,0,0.06); }
.md-summary { padding: 20px 18px; }
.md-summary-h { display: flex; align-items: center; gap: 10px; color: #1f2933; font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.md-spark { color: #173F73; font-size: 20px; }
.md-summary p { font-size: 13px; line-height: 1.55; margin: 0; color: #333; }
.md-summary sup { color: #4F72D8; }
.md-show { width: 100%; margin-top: 18px; border: 1px solid #E1E3E8; border-radius: 999px; background: #fff; padding: 8px; color: #555; font-weight: 700; }
.md-related { border: 1px solid #E2A64F; padding: 16px; }
.md-related h4 { margin: 0 0 14px; color: #666; font-size: 16px; font-weight: 600; }
.md-related > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.md-related span { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #123C9B; font-size: 12px; font-weight: 700; text-align: center; }
.md-related i, .md-cover { width: 48px; height: 68px; border-radius: 3px; background: linear-gradient(150deg, #BDEDD4 0 42%, #76D6A7 42% 58%, #D8F6E9 58%); box-shadow: 0 4px 9px rgba(0,0,0,0.16); }
.md-result { position: relative; display: grid; grid-template-columns: 16px 54px minmax(0,1fr) auto; gap: 10px; padding: 16px; overflow: hidden; }
.md-cover { width: 50px; height: 66px; }
.md-cover.pink { background: linear-gradient(150deg, #F6D8DF 0 42%, #E9879B 42% 58%, #FAEDF0 58%); }
.md-cover.green { background: linear-gradient(150deg, #B7DCD0 0 42%, #6FB19D 42% 58%, #E0EEE9 58%); }
.md-result h5 { margin: 0 0 5px; color: #123C9B; font-size: 14.5px; line-height: 1.22; }
.md-result small { display: block; color: #2F7B37; font-size: 11px; font-weight: 700; margin-bottom: 6px; }
.md-result p { color: #333; margin: 0; font-size: 12px; line-height: 1.35; }
.md-links { margin-top: 12px; color: #123C9B; font-size: 11.5px; font-weight: 700; border-top: 1px solid #E9E9E9; padding-top: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-type { align-self: start; color: #1E6A9A; background: #E7F2FF; border-radius: 4px; padding: 4px 8px; font-size: 10px; font-style: normal; font-weight: 800; }
.md-rail { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.md-assist { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.md-assist button { align-self: center; border: 1px solid #4A91E8; background: linear-gradient(90deg, #F7D9DD, #CFE4FF); border-radius: 999px; padding: 8px 14px; color: #222; font-size: 12px; font-weight: 800; }
.md-assist span { color: #9B9B9B; font-size: 12px; font-weight: 700; }
.md-side-card { border: 1px solid #E2A64F; padding: 16px; }
.md-side-card h4 { margin: 0 0 12px; color: #666; font-size: 16px; font-weight: 600; }
.md-side-card strong { display: block; color: #123C9B; font-size: 14px; line-height: 1.25; }
.md-side-card span { display: block; color: #2F7B37; font-size: 12px; font-weight: 700; margin: 3px 0 8px; }
.md-side-card p { color: #333; margin: 0; font-size: 11.5px; line-height: 1.45; }

@media (max-width: 1120px) { .md-results { grid-template-columns: 150px minmax(0, 1fr); } .md-rail { display: none; } .md-type { display: none; } .md-result { grid-template-columns: 16px 54px minmax(0,1fr); } }
@media (max-width: 980px) { .md-toolbar { padding-left: 0; flex-wrap: wrap; } .md-results { grid-template-columns: 1fr; } .md-filters { display: none; } }

@media (max-width: 640px) {
  .md-shell-top { height: 62px; grid-template-columns: 92px 1fr 34px; padding: 0 12px; gap: 10px; }
  .md-brand img { width: 68px; }
  .md-home-link { font-size: 14px; }
  .md-user { width: 30px; height: 30px; font-size: 11px; }
  .md-body { padding: 12px; }
  .md-search-line { flex-wrap: wrap; gap: 10px; padding: 12px; }
  .md-search-line strong { min-width: 150px; }
  .md-search-line em { margin-left: auto; padding: 8px 14px; }
  .md-search-actions { flex-wrap: wrap; }
  .md-search-actions span:last-child { margin-left: 0; }
  .md-related > div { grid-template-columns: repeat(2, 1fr); }
  .md-result { grid-template-columns: 14px minmax(0, 1fr); }
  .md-result .md-cover { display: none; }
  .md-type { grid-column: 2; justify-self: start; }
  .md-links { font-size: 10.5px; }
}

/* Keep product mocks scaled as fixed desktop previews inside responsive wrappers. */
.hero-mock-scale > .ml-mock,
.hero-mock-scale > .md-mock {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--mock-preview-width);
  max-width: none;
  zoom: var(--mock-preview-scale);
  transform: none;
}

/* ---------- Dashboard mock ---------- */
.dash-mock { background: #fff; border: 1px solid var(--hairline); border-radius: 14px; padding: 18px; box-shadow: var(--shadow-md); font-family: var(--font-product); }
.dash-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dash-h strong { font-size: 14px; font-weight: 700; }
.dash-pill { font-size: 11px; background: var(--canvas); padding: 4px 10px; border-radius: 999px; color: var(--fg-2); font-weight: 600; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.kpi { background: #FAFBFD; border-radius: 8px; padding: 10px; }
.kpi small { font-size: 10px; color: var(--fg-3); display: block; }
.kpi b { font-size: 16px; font-weight: 800; display: block; color: var(--ink); margin: 4px 0; }
.kpi em { font-style: normal; font-size: 10px; font-weight: 700; }
.kpi em.up { color: var(--ok); }
.dash-chart { background: #FAFBFD; border-radius: 8px; padding: 14px; height: 110px; position: relative; }
.dash-bars { height: 100%; display: flex; align-items: flex-end; gap: 6px; }
.dash-bar { flex: 1; background: linear-gradient(180deg, var(--myloft-sky), rgba(0,186,242,0.4)); border-radius: 3px 3px 0 0; }
.dash-rows { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.dash-row { display: grid; grid-template-columns: 1fr 1.4fr 1fr; padding: 8px 4px; font-size: 11.5px; border-bottom: 1px solid var(--hairline); }
.dash-row:last-child { border-bottom: 0; }
.dash-row span { color: var(--fg-3); }
.dash-row strong { color: var(--ink); font-weight: 700; }
.dash-row em { font-style: normal; color: var(--fg-2); text-align: right; }

@media (max-width: 640px) {
  .dash-mock { padding: 12px; }
  .dash-h { align-items: flex-start; flex-direction: column; gap: 8px; }
  .dash-kpis { grid-template-columns: 1fr 1fr; }
  .dash-row { grid-template-columns: 1fr; gap: 4px; }
  .dash-row em { text-align: left; }
}

/* ---------- High-res Clean Hero Image Containers (Border-Cropped) ---------- */
.hero-img-container {
  width: 100%;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0, 30, 80, 0.08);
  box-shadow:
    0 24px 60px -12px rgba(0, 46, 110, 0.14),
    0 8px 24px -4px rgba(0, 20, 60, 0.06);
  transition: transform var(--dur-med), box-shadow var(--dur-med);
}

.hero-img-container:hover {
  transform: translateY(-4px);
  box-shadow:
    0 32px 72px -12px rgba(0, 46, 110, 0.18),
    0 12px 32px -4px rgba(0, 20, 60, 0.08);
}

.hero-mock-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  /* Scale up slightly to crop out the 2px dark border baked into the WebP graphic file */
  transform: scale(1.026);
  transform-origin: center center;
}

.hero-phone-container {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  transition: transform var(--dur-med);
}

.hero-phone-container:hover {
  transform: translateY(-4px);
}

.hero-phone-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  transform: none !important;
  filter: drop-shadow(0 20px 40px rgba(0, 46, 110, 0.18));
}

body[data-mode="dark"] .hero-img-container {
  background: #0f1b33;
  border-color: rgba(255, 255, 255, 0.10);
}

@media (max-width: 640px) {
  .hero-img-container {
    border-radius: 10px;
  }
  .hero-phone-container {
    max-width: 240px;
    border-radius: 28px;
  }
}
