.portal-navigation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.portal-navigation a {
  text-decoration: none;
}
.portal-content {
  overflow: auto;
}
.portal-section {
  width: min(100%, 1100px);
  padding: 24px;
  margin: 0 auto;
}
.portal-hero {
  padding-block: 36px;
}
.portal-hero p {
  max-width: 650px;
  line-height: 1.6;
}
.portal-customers {
  margin-block: 42px 28px;
}
.portal-customers > h2 {
  margin: 0 0 18px;
  font-size: 26px;
  font-weight: 400;
}
.portal-form {
  max-width: 600px;
}
.product-section {
  margin-block: 36px;
  scroll-margin-top: 20px;
}
.product-section > p,
.product-steps,
.product-faq p {
  max-width: 850px;
  line-height: 1.65;
}
.product-steps li {
  margin-block: 12px;
}
.product-faq details {
  border-bottom: 1px solid var(--line);
  padding-block: 12px;
}
.product-faq summary {
  cursor: pointer;
  min-height: 44px;
  align-content: center;
  font-weight: 600;
}
.portal-content:has(.grid-shell) {
  overflow: hidden;
}
/* Public product page only: shared editors, navigation tiles and tenant pages stay unchanged. */
.product-page {
  width: min(100%, 1240px);
  padding: 48px 32px 32px;
}
.product-hero {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 24px 0 64px;
}
.product-page .product-eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.6;
}
.product-hero h1 {
  font-size: clamp(34px, 3.6vw, 50px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.12;
  margin: 0 0 24px;
}
.product-hero h1 > span {
  color: #496887;
}
.product-hero .product-lead {
  font-size: 18px;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 0 26px;
}
.product-page .e-toolbar,
.product-page .e-toolbar .e-toolbar-items {
  background: transparent;
  border: 0;
}
.product-page .e-toolbar .product-primary-action .e-tbar-btn {
  background: var(--primary, #04386b);
  border: 1px solid var(--primary, #04386b);
  border-radius: 6px;
  padding: 0 18px;
  min-height: 46px;
}
.product-page .e-toolbar .product-primary-action .e-tbar-btn .e-tbar-btn-text,
.product-page .e-toolbar .product-primary-action .e-tbar-btn .e-icons {
  color: #fff;
}
.product-page .e-toolbar .product-primary-action .e-tbar-btn:hover {
  background: #092e54;
}
.product-page .product-hero-note {
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.8;
  color: #52697e;
}
.product-preview {
  border: 1px solid #d8e3ee;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f7fb;
  box-shadow: 0 20px 55px -24px #163d6a4d;
  position: relative;
}
.product-preview::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #e52428 0 16.66%, #f26b21 16.66% 33.33%, #f8cb00 33.33% 50%, #8cbd00 50% 66.66%, #159d49 66.66% 83.33%, #2495cc 83.33%);
}
.product-preview-header {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: white;
  border-bottom: 1px solid #e1e9f1;
}
.product-preview-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}
.product-example {
  font-size: 10px;
  color: #586b7e;
}
.product-preview-body {
  padding: 24px;
}
.product-preview-greeting {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 600;
  margin-bottom: 18px;
}
.product-preview-greeting small {
  font-weight: 400;
  font-size: 12px;
  color: #52697e;
}
.product-clock-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px;
  border-radius: 10px;
  background: white;
  border: 1px solid #dde7ef;
}
.product-clock-card > span {
  font-size: 12px;
}
.product-clock-card i,
.product-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2c8756;
  margin-right: 6px;
}
.product-clock-card > strong {
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: -.03em;
  margin: 8px 0 2px;
  font-variant-numeric: tabular-nums;
}
.product-clock-card > strong span {
  color: #97acc0;
}
.product-clock-card > small {
  font-size: 11px;
  color: #52697e;
}
.product-preview-controls {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  width: 100%;
}
.product-preview-controls span {
  flex: 1;
  padding: 9px;
  text-align: center;
  border: 1px solid #d5e1ec;
  border-radius: 5px;
  font-size: 12px;
}
.product-preview-controls span:first-child {
  background: #04386b;
  color: white;
  border-color: #04386b;
}
.product-preview-team {
  background: white;
  border: 1px solid #dde7ef;
  border-radius: 10px;
  padding: 16px;
  margin-top: 14px;
}
.product-preview-team > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}
.product-preview-team > div:first-child > span {
  font-size: 10px;
  color: #52697e;
}
.product-mini-week {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.product-mini-week > span {
  flex: 1;
  text-align: center;
  font-size: 9px;
  color: #52697e;
}
.product-mini-week b {
  display: block;
  margin-top: 6px;
  padding: 5px 0;
  background: #edf3fc;
  border-radius: 3px;
  color: #275a90;
  font-size: 10px;
}
.product-mini-week b:nth-child(2) {
  background: #f2edfa;
  color: #744591;
}
.product-mini-week b.product-mini-leave {
  background: #e9f4ed;
  color: #287447;
}
.product-preview-footer {
  border-top: 1px solid #e1e9f1;
  padding: 12px;
  text-align: center;
  font-size: 10px;
  background: white;
}
.product-page .product-section > h2 {
  font-size: 28px;
  letter-spacing: -.025em;
  line-height: 1.25;
  margin: 0 0 16px;
}
.product-page .product-section > p {
  color: #52697e;
}
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 64px;
  padding: 32px 0;
  border-top: 1px solid #dde7ef;
  margin-top: 56px;
}
.product-detail-grid .product-detail {
  margin: 16px 0;
}
.product-detail-number {
  display: block;
  font-size: 13px;
  color: #52697e;
  margin-bottom: 16px;
  font-weight: 600;
}
.product-page .product-detail h2 {
  font-size: 23px;
}
.product-start {
  padding: 36px;
  border: 1px solid #d8e3ee;
  border-radius: 12px;
  background: #f3f7fb;
}
.product-page .product-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0;
  max-width: none;
  list-style: none;
  counter-reset: steps;
}
.product-steps li::before {
  counter-increment: steps;
  content: '0' counter(steps);
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
.product-steps strong {
  display: block;
  margin-bottom: 8px;
}
.product-page .product-faq {
  max-width: 850px;
  margin: 64px auto 32px;
}
@media (max-width: 950px) {
  .product-hero {
    gap: 28px;
  }
  .product-preview-header {
    padding: 14px;
  }
  .product-preview-body {
    padding: 16px;
  }
}
@media (max-width: 760px) {
  .product-hero,
  .product-detail-grid,
  .product-page .product-steps {
    grid-template-columns: 1fr;
  }
  .product-hero {
    padding: 12px 0 24px;
    gap: 32px;
  }
  .product-preview {
    width: 100%;
    max-width: 480px;
    margin: auto;
  }
  .product-page .product-section > h2 {
    font-size: 25px;
  }
  .product-detail-grid {
    gap: 8px;
  }
  .product-start {
    padding: 24px 18px;
  }
  .product-page .product-steps {
    gap: 4px;
  }
}
@media (max-width: 600px) {
  .portal-layout {
    display: flex;
    flex-direction: column;
  }
  .portal-layout > .topbar {
    flex-shrink: 0;
  }
  .portal-layout > .portal-content {
    position: static;
    flex: 1;
    margin-bottom: 44px;
  }
  .topbar {
    flex-wrap: wrap;
    height: auto;
    gap: 12px;
    padding: 12px 16px;
  }
  .portal-navigation {
    gap: 12px;
    font-size: 14px;
  }
  .portal-section {
    padding: 16px;
  }
}
