:root {
  --bg: #F2F0EB;
  --bg-soft: #FAF8F4;
  --surface: #FFFFFF;
  --surface-alt: #F7F5F0;
  --text: #23262C;
  --muted: #5B616B;
  --accent: #FE7733;
  --accent-dark: #D95E1F;
  --soft: #23262C;
  --success: #009840;
  --success-soft: #E7F7EE;
  --danger: #D64545;
  --warning: #D6A323;
  --border: rgba(35,38,44,.10);
  --shadow: 0 14px 40px rgba(35,38,44,.08);
  --container: 1120px;
  --narrow: 760px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(254,119,51,.10), transparent 28%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent-dark); }
p { margin: 0 0 1rem; }
.container { width: min(calc(100% - 2rem), var(--container)); margin: 0 auto; }
.narrow { width: min(calc(100% - 2rem), var(--narrow)); }
.site-shell { min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(242,240,235,.88);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .85rem 0; }
.brand { display: flex; align-items: center; gap: .95rem; min-width: 0; }
.brand-logo-wrap {
  width: 54px; height: 54px; border-radius: 14px; background: #fff;
  display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(0,152,64,.12);
  box-shadow: 0 8px 24px rgba(0,152,64,.10);
}
.brand-logo { width: 40px; height: 40px; object-fit: contain; display:block; }
.brand-copy { display:flex; flex-direction:column; gap:.15rem; min-width:0; }
.brand-text { font-weight: 800; color: var(--text); }
.brand-subline { color: var(--muted); font-size: .9rem; }
.nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.nav a {
  color: var(--muted); font-size: .96rem; font-weight: 600;
  padding: .55rem .85rem; border-radius: 999px;
}
.nav a.active, .nav a:hover { background: rgba(35,38,44,.06); color: var(--text); }
.hero { padding: 2.4rem 0 1.4rem; }
.hero-grid, .split-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.15rem; align-items: start; }
.hero-brandline { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: .1rem; }
.hero-logo {
  width: 84px; height: 84px; object-fit: contain; flex: 0 0 auto;
  filter: drop-shadow(0 10px 20px rgba(0,152,64,.12));
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--success); letter-spacing: .02em; text-transform: none;
  font-size: .84rem; font-weight: 800; margin-bottom: .5rem;
  background: var(--success-soft); border: 1px solid rgba(0,152,64,.12);
  padding: .35rem .7rem; border-radius: 999px;
}
h1, h2, h3 { color: var(--soft); line-height: 1.15; margin: 0 0 .7rem; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 12ch; letter-spacing: -.03em; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); letter-spacing: -.02em; }
h3 { font-size: 1.08rem; }
.hero-text { font-size: 1.02rem; max-width: 62ch; color: var(--text); }
.hero-note { color: var(--muted); max-width: 60ch; }
.button-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.1rem; }
.button, button {
  display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: .85rem;
  padding: .88rem 1.15rem; background: var(--accent); color: #fff; font-weight: 800; cursor: pointer;
  box-shadow: 0 10px 24px rgba(254,119,51,.22);
}
.button:hover, button:hover { background: var(--accent-dark); color: #fff; }
.button.ghost {
  background: #fff; color: var(--text); border: 1px solid var(--border); box-shadow: none;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  padding: 1.15rem;
  box-shadow: var(--shadow);
}
.card-grid { display: grid; gap: 1rem; }
.card-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.badge {
  display: inline-flex; align-items: center; background: var(--success-soft); color: var(--success);
  padding: .3rem .58rem; border-radius: 999px; font-size: .74rem; font-weight: 800; margin-bottom: .85rem;
}
.section, .page-header { padding: 1rem 0 2rem; }
.page-header { padding-top: 2.1rem; }
.alt { background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.55)); }
.section-head { margin-bottom: 1rem; }
.section-head p:last-child { margin-bottom: 0; }
.stat-card h2, .service-card h3, .pricing-head strong { color: var(--text); }
.site-footer {
  border-top: 1px solid var(--border); padding: 2rem 0 2.5rem; margin-top: 2rem;
  background: rgba(255,255,255,.45);
}
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr; gap: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: .5rem 0 0; }
.footer-grid li { margin: .35rem 0; }
.footer-grid strong { color: var(--text); }
.legal-text pre { white-space: pre-wrap; font: inherit; margin: 0; }
.contact-panel { text-align: left; }
.pricing-table-wrap { overflow-x: auto; }
.pricing-table {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(3, minmax(220px, 1fr));
  gap: .7rem;
  align-items: stretch;
}
.pricing-head, .pricing-feature-name, .pricing-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.pricing-head { display: flex; flex-direction: column; gap: .35rem; }
.pricing-head span { color: var(--accent-dark); font-weight: 800; }
.pricing-head.featured { outline: 2px solid rgba(254,119,51,.35); }
.pricing-feature-name { font-weight: 800; display: flex; align-items: center; }
.pricing-cell { display: grid; gap: .2rem; }
.pricing-cell .state-icon { font-size: 1.2rem; font-weight: 900; }
.pricing-cell.included .state-icon, .pricing-cell.included .state-label { color: var(--success); }
.pricing-cell.optional .state-icon, .pricing-cell.optional .state-label { color: var(--warning); }
.pricing-cell.excluded .state-icon, .pricing-cell.excluded .state-label { color: var(--danger); }
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 30; }
.cookie-banner.hidden { display: none; }
.cookie-panel {
  background: #fff; border: 1px solid var(--border); border-radius: 1rem; padding: 1rem;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  box-shadow: 0 18px 40px rgba(35,38,44,.14);
}
.cookie-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.install-body { min-height: 100vh; display: grid; place-items: center; padding: 2rem; background: var(--bg); }
.install-box {
  width: min(100%, 560px); background: var(--surface); border-radius: 1.2rem; padding: 1.4rem;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.stack { display: grid; gap: 1rem; }
input, textarea, select {
  width: 100%; margin-top: .35rem; background: #fff; color: var(--text); border: 1px solid rgba(35,38,44,.16);
  border-radius: .8rem; padding: .82rem .9rem;
}
.success { color: var(--success); }
.error { color: var(--danger); }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.matrix-editor { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { vertical-align: top; padding: .6rem; border-bottom: 1px solid rgba(35,38,44,.08); }
tr:hover td { background: rgba(35,38,44,.02); }
.small { font-size: .92rem; color: var(--muted); }
@media (max-width: 980px) {
  .hero-grid, .split-grid, .footer-grid, .admin-grid, .services-grid, .card-grid.compact { grid-template-columns: 1fr; }
  .pricing-table { grid-template-columns: 220px repeat(3, minmax(180px, 1fr)); }
  h1 { max-width: none; }
}
@media (max-width: 760px) {
  .nav-wrap { align-items: flex-start; flex-direction: column; }
  .brand-subline { font-size: .82rem; }
  .hero-brandline { flex-direction: column; }
  .hero-logo { width: 72px; height: 72px; }
  .cookie-panel { flex-direction: column; align-items: stretch; }
}


.admin-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1.1rem;
}
.admin-nav a {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .9rem;
  border-radius: 1rem;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(35,38,44,.05);
}
.admin-nav a strong {
  color: var(--text);
}
.admin-nav a span {
  color: var(--muted);
  font-size: .84rem;
}
.admin-nav a.active,
.admin-nav a:hover {
  border-color: rgba(0,152,64,.22);
  background: var(--success-soft);
}
.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.admin-overview-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  gap: .5rem;
  padding: 1.2rem;
  border-radius: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.admin-overview-card p {
  color: var(--muted);
}
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.admin-stats-grid h2 {
  font-size: 2rem;
  margin-bottom: 0;
}
@media (max-width: 980px) {
  .admin-nav,
  .admin-overview-grid,
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
}


.subpanel { padding: 1rem; border: 1px solid rgba(35,38,44,.08); border-radius: .95rem; background: rgba(255,255,255,.72); }
.inline-actions { display: flex; gap: .65rem; flex-wrap: wrap; }
.danger-button { border-color: rgba(214,69,69,.18); color: var(--danger); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.legend-symbol { font-weight: 900; margin-right: .2rem; }
.matrix-legend { display: flex; gap: .65rem; flex-wrap: wrap; margin-bottom: .9rem; }
.matrix-pill { display: inline-flex; align-items: center; justify-content: center; padding: .34rem .62rem; border-radius: 999px; font-size: .78rem; font-weight: 800; border: 1px solid transparent; }
.matrix-ok { background: var(--success-soft); color: var(--success); border-color: rgba(0,152,64,.14); }
.matrix-maybe { background: rgba(254,119,51,.12); color: var(--accent-dark); border-color: rgba(254,119,51,.16); }
.matrix-no { background: rgba(214,69,69,.10); color: var(--danger); border-color: rgba(214,69,69,.16); }
.support-matrix-wrap { overflow-x: auto; }
.support-matrix { width: 100%; min-width: 780px; border-collapse: separate; border-spacing: 0; }
.support-matrix thead th { text-align: left; font-size: .9rem; color: var(--muted); background: rgba(255,255,255,.7); }
.support-matrix th, .support-matrix td { padding: .9rem .85rem; border-bottom: 1px solid rgba(35,38,44,.08); }
.support-matrix tbody th { color: var(--text); width: 120px; }
.symbol-matrix .matrix-cell { text-align: center; }
.matrix-status-wrap { display: inline-flex; flex-direction: column; align-items: center; gap: .18rem; min-width: 72px; }
.matrix-symbol { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; font-size: 1.08rem; font-weight: 900; line-height: 1; border: 1px solid transparent; }
.matrix-symbol.status-yes { background: var(--success-soft); color: var(--success); border-color: rgba(0,152,64,.14); }
.matrix-symbol.status-maybe { background: rgba(254,119,51,.12); color: var(--accent-dark); border-color: rgba(254,119,51,.16); }
.matrix-symbol.status-no { background: rgba(214,69,69,.10); color: var(--danger); border-color: rgba(214,69,69,.16); }
.matrix-cell-note { font-size: .76rem; color: var(--muted); line-height: 1.2; }
.udp-matrix-editor select, .udp-matrix-editor input[type="text"] { min-width: 150px; }
.program-card { position: relative; overflow: hidden; }
.program-card::after { content: ''; position: absolute; inset: auto -24px -24px auto; width: 90px; height: 90px; border-radius: 999px; opacity: .14; }
.program-card-n1mm::after { background: var(--accent); }
.program-card-wsjtx::after { background: var(--success); }
.program-card-ucx::after { background: #8aa2ff; }
.program-card-dxlog::after { background: #b98cff; }
.program-generic::after { background: rgba(35,38,44,.20); }


.inquiry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .75fr);
  gap: 1rem;
  align-items: start;
}
.form-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.feature-select-list {
  border: 1px solid rgba(35,38,44,.10);
  border-radius: 1rem;
  padding: 1rem;
  display: grid;
  gap: .6rem;
}
.feature-select-list legend {
  font-weight: 800;
  padding: 0 .35rem;
}
.feature-check {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .6rem;
  align-items: center;
  padding: .55rem .65rem;
  border-radius: .75rem;
  background: rgba(35,38,44,.03);
}
.feature-check input { width: auto; margin: 0; }
.feature-check small { color: var(--accent-dark); font-weight: 800; }
.estimate-panel {
  position: sticky;
  top: 96px;
}
.estimate-panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--accent-dark);
}
.inquiry-admin-card { display: grid; gap: .75rem; }
.inquiry-admin-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .inquiry-layout, .form-grid-two { grid-template-columns: 1fr; }
  .estimate-panel { position: static; }
}


.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.2rem;
  align-items: start;
}
.shop-main {
  min-width: 0;
}
.shop-summary {
  position: sticky;
  top: 6rem;
}
.shop-plan-grid,
.shop-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}
.shop-plan-card,
.shop-module-card {
  display: grid;
  gap: .45rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255,255,255,.78);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.shop-plan-card:hover,
.shop-module-card:hover {
  transform: translateY(-2px);
  border-color: rgba(254,119,51,.28);
  box-shadow: 0 14px 30px rgba(35,38,44,.08);
}
.shop-plan-card input,
.shop-module-card input {
  width: auto;
  margin: 0;
}
.shop-plan-card:has(input:checked),
.shop-module-card:has(input:checked) {
  border-color: rgba(0,152,64,.30);
  background: linear-gradient(180deg, #fff 0%, #f8fcf7 100%);
}
.shop-plan-card.featured {
  outline: 2px solid rgba(254,119,51,.22);
}
.shop-price {
  color: var(--accent-dark);
  font-weight: 800;
}
.module-status-badge {
  display: inline-flex;
  align-self: start;
  padding: .26rem .55rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  background: rgba(35,38,44,.06);
  color: var(--muted);
}
.shop-module-card.is-included .module-status-badge {
  background: var(--success-soft);
  color: var(--success);
}
.shop-module-card.is-optional .module-status-badge {
  background: rgba(254,119,51,.12);
  color: var(--accent-dark);
}
.shop-module-card.is-excluded .module-status-badge {
  background: rgba(214,69,69,.10);
  color: var(--danger);
}
.module-surcharge {
  color: var(--muted);
}
.shop-summary-list {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-top: 1rem;
}
.shop-summary-list ul {
  padding-left: 1.1rem;
  margin: .5rem 0 0;
}
@media (max-width: 980px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .shop-summary {
    position: static;
  }
}
@media (max-width: 720px) {
  .shop-plan-grid,
  .shop-module-grid {
    grid-template-columns: 1fr;
  }
}


.module-description {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}
.shop-module-card.is-included {
  border-color: rgba(0,152,64,.28);
}
.shop-module-card.is-optional {
  border-color: rgba(254,119,51,.24);
}
.shop-module-card.is-excluded {
  border-color: rgba(214,69,69,.16);
}
.shop-summary h2 {
  margin-top: .35rem;
}


.module-category-list {
  display: grid;
  gap: 1rem;
}
.module-category {
  display: grid;
  gap: .75rem;
  padding: 1rem;
  border: 1px solid rgba(35,38,44,.08);
  border-radius: 1.05rem;
  background: rgba(255,255,255,.55);
}
.module-category-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid rgba(35,38,44,.08);
  padding-bottom: .55rem;
}
.module-category-head h3 {
  margin: 0;
}
.module-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.module-mini-badge {
  display: inline-flex;
  align-self: start;
  padding: .22rem .48rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  background: rgba(35,38,44,.06);
  color: var(--muted);
}
.module-mini-badge.recommended {
  background: rgba(254,119,51,.12);
  color: var(--accent-dark);
}
.shop-module-card.recommended {
  box-shadow: 0 12px 28px rgba(254,119,51,.10);
}
.shop-summary-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  margin: 1rem 0;
}
.shop-summary-stats div {
  padding: .75rem;
  border-radius: .85rem;
  background: rgba(35,38,44,.04);
  border: 1px solid rgba(35,38,44,.07);
}
.shop-summary-stats strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--text);
}
.shop-summary-stats span {
  color: var(--muted);
  font-size: .82rem;
}


.configurator-pro-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding: 1.15rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(254,119,51,.18);
  background:
    radial-gradient(circle at top right, rgba(254,119,51,.12), transparent 35%),
    linear-gradient(135deg, #ffffff 0%, #fff7f1 100%);
  box-shadow: var(--shadow);
}
.configurator-pro-strip h2 {
  margin-bottom: .35rem;
}
.configurator-pro-strip p {
  margin-bottom: 0;
  color: var(--muted);
}
.module-category {
  border-left: 5px solid rgba(254,119,51,.45);
}
.module-category:nth-child(2n) {
  border-left-color: rgba(0,152,64,.45);
}
.module-category-head h3::before {
  content: "▣ ";
  color: var(--accent-dark);
}
.shop-summary {
  border: 1px solid rgba(254,119,51,.18);
}
.shop-summary .badge {
  background: rgba(254,119,51,.12);
  color: var(--accent-dark);
}
@media (max-width: 760px) {
  .configurator-pro-strip {
    flex-direction: column;
    align-items: stretch;
  }
}


.backend-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.admin-field-hint {
  display: block;
  margin-top: .3rem;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.35;
}
.admin-overview-card h2,
.backend-guide-grid h2 {
  font-size: 1.2rem;
}
.matrix-editor th:first-child,
.matrix-editor td:first-child {
  min-width: 220px;
}
.matrix-editor select {
  min-width: 150px;
}
@media (max-width: 900px) {
  .backend-guide-grid {
    grid-template-columns: 1fr;
  }
}


.admin-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.admin-toggle-card {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .8rem;
  border: 1px solid rgba(35,38,44,.08);
  border-radius: .9rem;
  background: rgba(255,255,255,.72);
}
.admin-toggle-card input {
  width: auto;
  margin: 0;
}
@media (max-width: 760px) {
  .admin-toggle-grid {
    grid-template-columns: 1fr;
  }
}


.shop-duration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}
.shop-duration-card {
  display: grid;
  gap: .45rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255,255,255,.78);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.shop-duration-card:hover {
  transform: translateY(-2px);
  border-color: rgba(254,119,51,.28);
  box-shadow: 0 14px 30px rgba(35,38,44,.08);
}
.shop-duration-card input {
  width: auto;
  margin: 0;
}
.shop-duration-card:has(input:checked) {
  border-color: rgba(0,152,64,.30);
  background: linear-gradient(180deg, #fff 0%, #f8fcf7 100%);
}
@media (max-width: 720px) {
  .shop-duration-grid {
    grid-template-columns: 1fr;
  }
}


.assistant-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.2rem;
  align-items: start;
}
.assistant-chat {
  min-height: 560px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.assistant-chat-head {
  border-bottom: 1px solid rgba(35,38,44,.08);
  padding-bottom: .75rem;
  margin-bottom: .75rem;
}
.assistant-messages {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  max-height: 420px;
  overflow: auto;
  padding-right: .25rem;
}
.assistant-bubble {
  max-width: 82%;
  padding: .78rem .95rem;
  border-radius: 1rem;
  background: rgba(35,38,44,.06);
  color: var(--text);
}
.assistant-bubble.bot {
  align-self: flex-start;
  border-bottom-left-radius: .3rem;
}
.assistant-bubble.user {
  align-self: flex-end;
  background: rgba(254,119,51,.14);
  color: var(--accent-dark);
  border-bottom-right-radius: .3rem;
  font-weight: 700;
}
.assistant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  border-top: 1px solid rgba(35,38,44,.08);
  padding-top: .85rem;
  margin-top: .85rem;
}
.assistant-summary {
  position: sticky;
  top: 6rem;
}
.assistant-summary dl {
  display: grid;
  gap: .35rem;
  margin: 1rem 0;
}
.assistant-summary dt {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}
.assistant-summary dd {
  margin: 0 0 .55rem;
  font-weight: 700;
}
.assistant-final-form {
  margin-top: 1.2rem;
}
.hidden {
  display: none !important;
}
@media (max-width: 980px) {
  .assistant-layout {
    grid-template-columns: 1fr;
  }
  .assistant-summary {
    position: static;
  }
}


.assistant-card-actions {
  display: block;
}
.assistant-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  width: 100%;
}
.assistant-choice-card,
.assistant-module-card {
  display: grid;
  gap: .45rem;
  width: 100%;
  text-align: left;
  padding: 1rem;
  border: 1px solid rgba(35,38,44,.10);
  border-radius: 1rem;
  background: rgba(255,255,255,.82);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(35,38,44,.06);
}
.assistant-choice-card {
  cursor: pointer;
}
.assistant-choice-card:hover,
.assistant-module-card:hover {
  transform: translateY(-2px);
  border-color: rgba(254,119,51,.25);
}
.assistant-choice-card.featured,
.assistant-module-card.selected {
  border-color: rgba(0,152,64,.30);
  background: linear-gradient(180deg, #fff 0%, #f8fcf7 100%);
}
.assistant-choice-card.category {
  border-left: 5px solid rgba(254,119,51,.45);
}
.assistant-card-badge {
  display: inline-flex;
  width: fit-content;
  padding: .24rem .52rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  background: rgba(35,38,44,.06);
  color: var(--muted);
}
.assistant-card-price {
  font-weight: 900;
  color: var(--accent-dark);
}
.assistant-module-card {
  cursor: default;
}
.assistant-module-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .7rem;
}
.assistant-module-card p {
  margin-bottom: .25rem;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
}
.assistant-module-card.status-included {
  border-left: 5px solid rgba(0,152,64,.45);
}
.assistant-module-card.status-optional {
  border-left: 5px solid rgba(254,119,51,.45);
}
.assistant-module-card.status-excluded {
  border-left: 5px solid rgba(214,69,69,.28);
}
.module-mini-badge.selected {
  background: var(--success-soft);
  color: var(--success);
}
.assistant-action-footer {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .85rem;
  width: 100%;
}
.assistant-summary dd small {
  color: var(--muted);
  font-weight: 600;
}
@media (max-width: 760px) {
  .assistant-option-grid {
    grid-template-columns: 1fr;
  }
}


.module-description,
.assistant-module-card p {
  display: block;
  padding: .55rem .65rem;
  border-radius: .75rem;
  background: rgba(35,38,44,.045);
  color: var(--text);
}
.assistant-module-card p {
  margin: .15rem 0 .35rem;
}
.shop-module-card .module-description {
  margin-top: .15rem;
}


.module-edit-panel h3 {
  margin-bottom: .35rem;
  color: var(--text);
}
.module-edit-panel textarea {
  min-height: 110px;
}


.backend-module-preview {
  padding: .85rem;
  border: 1px dashed rgba(35,38,44,.16);
  border-radius: 1rem;
  background: rgba(255,255,255,.55);
}
.backend-module-preview .assistant-module-card {
  margin-top: .45rem;
}
.page-beta-badge {
  display: inline-flex;
  vertical-align: middle;
  margin-left: .45rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  background: rgba(254,119,51,.14);
  color: var(--accent-dark);
}


.crm-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}
.crm-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: .75rem;
  flex: 1;
}
.crm-stat-card {
  padding: .85rem;
}
.crm-stat-card strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
  color: var(--text);
}
.crm-status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: .26rem .58rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 900;
  background: rgba(35,38,44,.07);
  color: var(--muted);
  margin: 0 .35rem .65rem 0;
}
.crm-status-badge.status-neu {
  background: rgba(254,119,51,.14);
  color: var(--accent-dark);
}
.crm-status-badge.status-in_pruefung,
.crm-status-badge.status-rueckfrage,
.crm-status-badge.status-angebot_vorbereitet {
  background: rgba(214,163,35,.14);
  color: #8a6410;
}
.crm-status-badge.status-angebot_gesendet {
  background: rgba(35,38,44,.08);
  color: var(--text);
}
.crm-status-badge.status-erledigt {
  background: var(--success-soft);
  color: var(--success);
}
.crm-status-badge.overdue {
  background: rgba(214,69,69,.12);
  color: var(--danger);
}
.inquiry-admin-card.is-overdue {
  border-color: rgba(214,69,69,.28);
  box-shadow: 0 14px 40px rgba(214,69,69,.08);
}
.inquiry-price-block {
  text-align: right;
}
.crm-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1rem;
  margin: .8rem 0;
}
.crm-details {
  margin: .75rem 0;
  padding: .85rem;
  border: 1px solid rgba(35,38,44,.08);
  border-radius: .9rem;
  background: rgba(255,255,255,.55);
}
.crm-details summary {
  cursor: pointer;
  font-weight: 800;
}
.crm-edit-form {
  display: grid;
  gap: .9rem;
  margin-top: 1rem;
}
@media (max-width: 860px) {
  .crm-toolbar {
    display: grid;
  }
  .crm-stat-grid,
  .crm-detail-grid {
    grid-template-columns: 1fr;
  }
  .inquiry-price-block {
    text-align: left;
  }
}


.system-version-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.system-version-grid h2 {
  font-size: 1.8rem;
}
.system-check-list {
  display: grid;
  gap: .55rem;
}
.system-check-list div {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem .8rem;
  border: 1px solid rgba(35,38,44,.08);
  border-radius: .85rem;
  background: rgba(255,255,255,.65);
}
.system-check-list span {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  font-weight: 900;
}
.system-check-list .ok span {
  background: var(--success-soft);
  color: var(--success);
}
.system-check-list .fail span {
  background: rgba(214,69,69,.12);
  color: var(--danger);
}
.system-timeline-item {
  padding: .85rem;
  border: 1px solid rgba(35,38,44,.08);
  border-radius: .95rem;
  background: rgba(255,255,255,.58);
}
.changelog-entry {
  padding: .8rem;
  border: 1px solid rgba(35,38,44,.08);
  border-radius: .9rem;
  background: rgba(255,255,255,.58);
}
.changelog-entry summary {
  cursor: pointer;
}
.changelog-entry ul {
  margin: .65rem 0 0;
}
code {
  background: rgba(35,38,44,.06);
  padding: .12rem .3rem;
  border-radius: .35rem;
}
@media (max-width: 980px) {
  .system-version-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .system-version-grid {
    grid-template-columns: 1fr;
  }
}


/* v3.14.1 quality round */
:focus-visible {
  outline: 3px solid rgba(254,119,51,.45);
  outline-offset: 3px;
}
img, svg {
  max-width: 100%;
}
.admin-nav {
  scrollbar-width: thin;
}
.admin-version-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-top: .85rem;
  padding: .65rem .8rem;
  border: 1px solid rgba(35,38,44,.08);
  border-radius: .9rem;
  background: rgba(255,255,255,.62);
  color: var(--muted);
  font-size: .9rem;
}
.admin-version-strip a {
  font-weight: 800;
  color: var(--accent-dark);
}
.admin-overview-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.admin-stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.shop-summary,
.assistant-summary {
  max-height: calc(100vh - 7rem);
  overflow: auto;
}
.matrix-editor,
.support-matrix-wrap,
.pricing-table-wrap {
  -webkit-overflow-scrolling: touch;
}
.matrix-editor table {
  min-width: 760px;
}
.inquiry-admin-head {
  gap: 1rem;
}
.crm-edit-form textarea,
.assistant-final-form textarea,
.stack textarea {
  resize: vertical;
}
.system-version-grid,
.crm-stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.system-timeline-item .badge {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.changelog-entry summary {
  line-height: 1.35;
}
@media (max-width: 860px) {
  .admin-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: .25rem;
  }
  .admin-nav a {
    min-width: 180px;
  }
  .admin-version-strip {
    align-items: flex-start;
    flex-direction: column;
  }
  .inquiry-admin-head,
  .cookie-panel {
    align-items: flex-start;
    flex-direction: column;
  }
  .cookie-actions,
  .inline-actions,
  .assistant-action-footer {
    width: 100%;
  }
  .inline-actions .button,
  .inline-actions button,
  .assistant-action-footer .button,
  .assistant-action-footer button,
  .cookie-actions .button,
  .cookie-actions button {
    width: 100%;
  }
}
@media (max-width: 720px) {
  .section,
  .page-header {
    padding-left: 0;
    padding-right: 0;
  }
  .panel {
    padding: 1rem;
  }
  .hero-logo {
    width: 68px;
    height: 68px;
  }
  .assistant-bubble {
    max-width: 96%;
  }
  .shop-summary,
  .assistant-summary {
    max-height: none;
    overflow: visible;
  }
  .button,
  button {
    width: 100%;
  }
  .button-row .button,
  .button-row button {
    width: auto;
  }
}


/* v3.15.0 offer PDF / print view */
.offer-print-body {
  background: #f4f2ec;
  color: #23262C;
}
.offer-print-actions {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  gap: .8rem;
  padding: .9rem;
  background: rgba(242,240,235,.92);
  border-bottom: 1px solid rgba(35,38,44,.10);
  backdrop-filter: blur(10px);
}
.offer-document {
  width: min(100% - 2rem, 920px);
  margin: 1.2rem auto 2.5rem;
  padding: 2.2rem;
  background: #fff;
  border: 1px solid rgba(35,38,44,.10);
  border-radius: 1.1rem;
  box-shadow: 0 18px 50px rgba(35,38,44,.10);
}
.offer-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 3px solid #FE7733;
}
.offer-brand {
  display: flex;
  align-items: center;
  gap: .9rem;
}
.offer-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.offer-brand strong,
.offer-meta strong {
  display: block;
  font-size: 1.1rem;
}
.offer-brand span,
.offer-meta span {
  display: block;
  color: #5B616B;
  font-size: .9rem;
}
.offer-meta {
  text-align: right;
}
.offer-title-block {
  padding: 1.4rem 0 .7rem;
}
.offer-title-block h1 {
  max-width: none;
}
.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}
.offer-grid article,
.offer-section,
.offer-total-box {
  border: 1px solid rgba(35,38,44,.10);
  border-radius: .9rem;
  padding: 1rem;
  background: #fff;
}
.offer-section {
  margin-top: 1rem;
}
.offer-table {
  width: 100%;
  border-collapse: collapse;
}
.offer-table th {
  width: 170px;
  color: #5B616B;
  text-align: left;
}
.offer-table th,
.offer-table td {
  padding: .8rem 0;
  border-bottom: 1px solid rgba(35,38,44,.10);
}
.offer-table tr:last-child th,
.offer-table tr:last-child td {
  border-bottom: none;
}
.offer-module-list {
  margin: 0;
  padding-left: 1.15rem;
}
.offer-module-list li {
  margin-bottom: .75rem;
}
.offer-mini-badge {
  display: inline-flex;
  margin-left: .35rem;
  padding: .14rem .45rem;
  border-radius: 999px;
  background: #E7F7EE;
  color: #009840;
  font-size: .72rem;
  font-weight: 800;
}
.offer-total-box {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  background: linear-gradient(135deg, #fff7f1 0%, #ffffff 100%);
  border-color: rgba(254,119,51,.28);
}
.offer-total-box span {
  display: block;
  color: #5B616B;
  font-weight: 800;
}
.offer-total-box strong {
  display: block;
  font-size: 2rem;
  color: #D95E1F;
}
.offer-message {
  white-space: normal;
  color: #23262C;
}
.offer-notes ul {
  margin-bottom: 0;
}
.offer-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.4rem;
  padding-top: .9rem;
  border-top: 1px solid rgba(35,38,44,.12);
  color: #5B616B;
  font-size: .84rem;
}
@media print {
  @page {
    size: A4;
    margin: 13mm;
  }
  html,
  body {
    background: #fff !important;
  }
  .no-print,
  .offer-print-actions {
    display: none !important;
  }
  .offer-document {
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
  .offer-section,
  .offer-grid article,
  .offer-total-box {
    break-inside: avoid;
  }
  a {
    color: #23262C !important;
  }
}
@media (max-width: 760px) {
  .offer-document {
    padding: 1.1rem;
  }
  .offer-header,
  .offer-grid,
  .offer-total-box,
  .offer-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .offer-meta {
    text-align: left;
  }
}


/* v3.16.0 editable offers */
.offer-editor-summary h2 {
  font-size: 2rem;
  color: var(--accent-dark);
}
.offer-item-editor {
  border-left: 5px solid rgba(254,119,51,.30);
}
.offer-position-table th,
.offer-position-table td {
  text-align: left;
}
.offer-position-table th:nth-child(2),
.offer-position-table th:nth-child(3),
.offer-position-table th:nth-child(4),
.offer-position-table td:nth-child(2),
.offer-position-table td:nth-child(3),
.offer-position-table td:nth-child(4) {
  text-align: right;
  white-space: nowrap;
}
.offer-position-table .optional-row {
  opacity: .78;
}
.offer-position-table .optional-row td {
  background: rgba(35,38,44,.03);
}
@media print {
  .offer-position-table th,
  .offer-position-table td {
    padding: .55rem .35rem;
  }
}
@media (max-width: 760px) {
  .offer-position-table {
    display: block;
    overflow-x: auto;
    min-width: 100%;
  }
}
