html, body {
  overflow-x: hidden;
}

body.path-workbench {
  background: #f4f6f8 !important;
}

body.path-workbench .eplan-app-shell {
  width: 100%;
  min-height: calc(100vh - 40px);
  background: #f4f6f8;
}

body.path-workbench .eplan-app-main {
  padding: 10px 14px;
  box-sizing: border-box;
}

body.path-workbench .block-page-title-block,
body.path-workbench .breadcrumb,
body.path-workbench .region--hero,
body.path-workbench header.site-header,
body.path-workbench .site-header,
body.path-workbench footer,
body.path-workbench .site-footer {
  display: none !important;
}

body.path-workbench .eplan-hero {
  background: #fff;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 0 0 10px 0;
}

body.path-workbench .eplan-hero h1 {
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 10px 0;
}

body.path-workbench .eplan-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px 0;
}

body.path-workbench .eplan-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
}

body.path-workbench .eplan-tree,
body.path-workbench .eplan-main,
body.path-workbench .eplan-panel,
body.path-workbench .eplan-card,
body.path-workbench .eplan-standards-dashboard,
body.path-workbench .eplan-dmn-catalogue {
  background: #fff;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  padding: 12px;
  box-sizing: border-box;
}

body.path-workbench .eplan-tree,
body.path-workbench .eplan-main {
  max-height: calc(100vh - 205px);
  overflow: auto;
}

body.path-workbench h1,
body.path-workbench h2,
body.path-workbench h3 {
  margin-top: 0;
}

body.path-workbench .eplan-main h2,
body.path-workbench .eplan-tree h2 {
  font-size: 22px;
}

body.path-workbench table {
  width: 100%;
}

@media (max-width: 900px) {
  body.path-workbench .eplan-layout {
    grid-template-columns: 1fr;
  }

  body.path-workbench .eplan-tree,
  body.path-workbench .eplan-main {
    max-height: none;
  }
}

/* Tuned public/front landing page. */
body.path-front .layout-container,
body.path-front .main-content,
body.path-front .main-content__container,
body.path-front .region--content,
body.path-front .block-system-main-block,
body.path-front .block-system-main-block > .content {
  max-width: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.path-front .block-page-title-block,
body.path-front .breadcrumb {
  display: none !important;
}

.eplan-public-front {
  min-height: calc(100vh - 80px);
  background: #f4f6f8;
  color: #172033;
}

.eplan-front-hero {
  padding: 42px 54px 34px 54px;
  background: linear-gradient(135deg, #10213f 0%, #1d4d7a 55%, #0f766e 100%);
  color: white;
}

.eplan-front-kicker {
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  opacity: 0.85;
}

.eplan-front-hero h1 {
  margin: 0 0 14px 0;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.95;
  color: white;
}

.eplan-front-lead {
  max-width: 920px;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.35;
  margin-bottom: 24px;
  color: #eef6ff;
}

.eplan-front-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.eplan-front-actions .button,
.eplan-front-quick a {
  display: inline-block;
  text-decoration: none;
  border-radius: 6px;
  padding: 10px 15px;
  background: white;
  color: #10213f;
  font-weight: 700;
  border: 1px solid #dbe4ef;
}

.eplan-front-actions .button--primary {
  background: #facc15;
  border-color: #facc15;
  color: #111827;
}

.eplan-front-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
  padding: 18px 24px 10px 24px;
}

.eplan-front-card {
  display: block;
  background: white;
  border: 1px solid #d9e0ea;
  border-radius: 10px;
  padding: 18px;
  text-decoration: none;
  color: #172033;
  min-height: 150px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.eplan-front-card:hover {
  border-color: #2563eb;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.eplan-front-card h2 {
  margin: 0 0 8px 0;
  font-size: 22px;
}

.eplan-front-card p {
  margin: 0;
  line-height: 1.45;
}

.eplan-front-panel {
  margin: 14px 24px;
  padding: 18px;
  background: white;
  border: 1px solid #d9e0ea;
  border-radius: 10px;
}

.eplan-front-panel h2 {
  margin-top: 0;
}

.eplan-front-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 12px;
}

.eplan-front-flow div {
  border-left: 4px solid #2563eb;
  padding: 10px 12px;
  background: #f8fafc;
}

.eplan-front-flow strong {
  display: block;
  margin-bottom: 4px;
}

.eplan-front-flow span {
  display: block;
  line-height: 1.4;
}

.eplan-front-quick p {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.eplan-front-quick a {
  background: #eef2ff;
}

@media (max-width: 1100px) {
  .eplan-front-grid,
  .eplan-front-flow {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 700px) {
  .eplan-front-hero {
    padding: 28px 22px;
  }

  .eplan-front-grid,
  .eplan-front-flow {
    grid-template-columns: 1fr;
  }

  .eplan-front-grid {
    padding: 14px;
  }

  .eplan-front-panel {
    margin: 14px;
  }
}

.eplan-app-topbar {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 14px;
  background: #111827;
  color: #fff;
  box-sizing: border-box;
}

.eplan-app-brand {
  font-weight: 700;
  white-space: nowrap;
}

.eplan-app-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
}

.eplan-app-nav a {
  color: #e5e7eb;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 14px;
  white-space: nowrap;
}

.eplan-app-nav a:hover {
  background: #374151;
  color: #fff;
}

.eplan-app-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  background: #eef2f7;
  border-bottom: 1px solid #d9e0ea;
  box-sizing: border-box;
  font-size: 13px;
  color: #374151;
}

.eplan-app-breadcrumb a {
  color: #1d4ed8;
  text-decoration: none;
}

.eplan-app-breadcrumb strong {
  color: #111827;
  font-weight: 700;
}
