/* Keep the existing product layout inside one desktop frame. */
html.mptech-panel-mode {
  --mptech-panel-height: calc(100dvh - 98px);
  scroll-padding-top: calc(100dvh - var(--mptech-panel-height));
}
.mptech-panel-mode [data-mptech-frame] {
  position: relative;
  height: var(--mptech-panel-height) !important;
  min-height: 0 !important;
  overflow: clip;
}
.mptech-panel-mode [data-mptech-frame] > main,
.mptech-panel-mode [data-mptech-frame] > .mptech-panel-content {
  position: absolute;
  height: auto !important; min-height: 0 !important;
  width: 100%; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(var(--mptech-panel-scale, 1));
  transform-origin: center center;
  opacity: var(--mptech-panel-opacity, 1);
}
.mptech-panel-mode [data-mptech-frame] [data-widget-type="padding"] [data-height] > div {
  height: var(--mptech-compact-space) !important;
}
.mptech-panel-mode #doz_footer_wrap {
  min-height: 0;
  background: #182b55;
}
.mptech-panel-mode #doz_footer { width: 100%; }

.mptech-panel-mode [data-mptech-spacer] { display:none !important; }
.mptech-panel-mode [data-mptech-utility] { height:var(--mptech-utility-height) !important; }
.mptech-panel-mode [data-mptech-utility] > main { position:fixed;top:0;left:0;width:100%;height:var(--mptech-utility-height);z-index:120;background:white; }
.mptech-panel-mode .legal-page { max-width:none;margin:0;padding:0; }
.mptech-panel-mode .mptech-legal-content { max-width:960px;padding:32px 24px;box-sizing:border-box; }
.mptech-legal-unit { display:contents; }

.mptech-panel-mode body { padding-top:var(--mptech-leading-space,0px); }
.mptech-panel-mode [data-mptech-group] { height:auto !important;min-height:0 !important; }
.mptech-panel-mode [data-mptech-group] > main { position:static !important;height:auto !important;transform:none !important;width:100%; }

/* Panel motion owns desktop fades; the original widget motion remains on mobile. */
.mptech-panel-mode [data-mptech-frame] .wg_animated {
  animation:none !important;visibility:visible !important;opacity:1 !important;
}
.mptech-panel-mode [data-mptech-home-intro] > main > .inside:has([data-widget-type="padding"]):not(:has(img, [data-widget-type="text"])) { display:none; }
.mptech-panel-mode [data-mptech-home-stats] { margin-top:36px; }
.mptech-panel-mode [data-mptech-span="1.5"] { height:var(--mptech-intro-height) !important; }
.mptech-panel-mode [data-mptech-intro-title] > main {
  top:0;left:0;transform:none;position:relative;
}
.mptech-panel-mode [data-mptech-intro-title] > main > .inside:first-child {
  height:calc(var(--mptech-panel-height) * 1.5 - 100dvh);display:flex;flex-direction:column;justify-content:center;
}
.mptech-panel-mode [data-mptech-intro-title] > main > .inside:last-child { padding:0 24px;max-width:1808px !important;width:100% !important; }
.mptech-panel-mode [data-mptech-intro-title] img {
  display:block;width:auto !important;max-width:100%;height:auto !important;max-height:var(--mptech-panel-height);object-fit:contain;margin:auto;
}
.mptech-history { list-style:none;padding:0;margin:28px auto;max-width:1200px;display:grid;grid-template-columns:1fr 1fr;gap:24px 64px;color:#1b2027;text-align:left; }
.mptech-history li { display:grid;grid-template-columns:90px 1fr;gap:20px;border-top:1px solid #dce0e8;padding-top:18px; }
.mptech-history time { font-size:32px;font-weight:700;color:#182b55;line-height:1.2; }
.mptech-history p { font-size:17px;line-height:1.65;margin:0; }
.mptech-org-chart { position:relative;max-width:1100px;margin:28px auto 12px;color:#182b55;text-align:center; }
.mptech-org-chart ul { list-style:none;margin:0;padding:0; }
.mptech-org-leader { position:relative;margin:auto;width:180px;height:64px;box-sizing:border-box;padding:14px 12px;line-height:36px;background:#182b55;color:white;border-radius:8px;font-size:26px;font-weight:700; }
.mptech-org-leader::after { content:'';position:absolute;width:2px;height:82px;background:#182b55;left:calc(50% - 1px);top:100%; }
.mptech-org-auditor { position:relative;width:37.5%;height:48px;margin:22px 0 36px 12.5%;font-size:20px;font-weight:700; }
.mptech-org-auditor span { position:relative;display:block;width:150px;height:48px;box-sizing:border-box;padding:8px;border:2px solid #182b55;border-radius:8px;background:white;z-index:1;line-height:28px; }
.mptech-org-auditor::after { content:'';position:absolute;left:0;right:0;top:50%;height:2px;background:#182b55; }
.mptech-org-branches { position:relative;display:grid;grid-template-columns:repeat(4,1fr);gap:48px; }
.mptech-org-branches > li { position:relative; }
.mptech-org-branches > li::before { content:'';position:absolute;height:24px;width:2px;background:#182b55;top:-24px;left:calc(50% - 1px); }
.mptech-org-branches::before { content:'';position:absolute;left:calc((100% - 144px) / 8);right:calc((100% - 144px) / 8);height:2px;background:#182b55;top:-24px; }
.mptech-org-branches h3 { border:2px solid #182b55;border-radius:8px;padding:10px;margin:0 0 14px;font-size:21px;font-weight:700;line-height:1.4; }
.mptech-org-branches ul li { padding:8px 4px;margin:0 0 8px;background:#f0f1f4;border-radius:4px;font-size:17px;line-height:1.4;color:#343b48; }
.mptech-panel-mode .mptech-history { margin:24px auto; }
@media(max-width:767px){
  .mptech-history { display:block;margin:24px 0; }
  .mptech-history li { grid-template-columns:64px 1fr;gap:16px;margin:0 0 20px;padding-top:16px; }
  .mptech-history time { font-size:25px; }
  .mptech-history p { font-size:15px; }
  .mptech-org-chart { margin:24px 0 12px; }
  .mptech-org-leader { font-size:22px;width:100%; }
  .mptech-org-leader::after { left:12px;height:88px; }
  .mptech-org-branches::before,.mptech-org-branches > li::before { display:none; }
  .mptech-org-auditor { margin:16px 0 24px 30px;width:120px;font-size:17px; }
  .mptech-org-auditor::after { left:-18px;right:auto;width:18px; }
  .mptech-org-auditor span { width:120px; }
  .mptech-org-branches { display:block;border-left:2px solid #182b55;margin-left:12px !important;padding-left:18px !important; }
  .mptech-org-branches > li { display:grid;grid-template-columns:66px 1fr;gap:12px;margin-bottom:16px; }
  .mptech-org-branches > li::after { content:'';position:absolute;left:-20px;top:20px;width:20px;height:2px;background:#182b55; }
  .mptech-org-branches h3 { font-size:17px;padding:8px 4px;align-self:start; }
  .mptech-org-branches ul li { font-size:15px;padding:7px 4px; }
}
@media(prefers-reduced-motion:reduce){.mptech-panel-mode [data-mptech-frame] > main,.mptech-panel-mode .mptech-panel-content {opacity:1;}}
