/* Responsive layout corrections. Colors and surfaces come from each original page stylesheet. */
html { color-scheme: dark; scroll-padding-top: 24px; }
button, input, select, textarea { font-family: inherit; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #86efac; outline-offset: 4px; }
:where(.account-shell, .customer-content, .review-page, .dash) { min-width: 0; }
:where(.account-shell, .customer-content, .review-page, .dash) :where(h1,h2,h3,p,a,summary,label) { overflow-wrap: anywhere; }
:where(.account-shell, .dash) h1 { font-size: clamp(1.65rem, 3vw, 2.3rem); line-height: 1.18; letter-spacing: -.035em; }
:where(.account-shell, .dash) h2 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.3; letter-spacing: -.025em; }
:where(.account-shell, .dash) h3 { font-size: 1.08rem; line-height: 1.4; }
:where(.account-shell, .dash) p { line-height: 1.65; }

/* One header layout, including intermediate tablet widths. */
body > .header-pro.home-header {
  position: relative; z-index: 300; display: flex; align-items: center; justify-content: space-between;
  flex-direction: row; flex-wrap: nowrap; gap: 24px; width: 100%; min-height: 106px; margin: 0;
  padding: 14px 48px; border: 0; border-bottom: 1px solid #94a3b81a;
  border-radius: 0; background: #020617; box-shadow: none;
}
body .header-pro.home-header .home-logo { display: flex; flex-direction: row; align-items: center; flex: 0 0 auto; justify-content: flex-start; width: auto; gap: 10px; min-width: 0; padding: 0; margin: 0; text-align: left; }
body .header-pro.home-header .home-logo img { display: block; width: 74px; height: 74px; flex: none; object-fit: contain; }
body .header-pro.home-header .home-logo strong { font: 400 34px/1.1 "Alfa Slab One",Georgia,serif; white-space: nowrap; letter-spacing: normal; color: #22c55e; text-shadow: none; }
body .header-pro.home-header .home-logo small { display: block; font: 400 15px/1.4 Inter,Arial,sans-serif; color: #cbd5e1; margin-top: 0; }
body .header-pro.home-header .home-actions { display: flex; flex-direction: row; align-items: center; flex-wrap: nowrap; gap: 16px; flex: 0 0 auto; width: auto; min-width: 0; margin: 0; }
body .header-pro.home-header .site-menu > nav { gap: clamp(12px,1.3vw,24px); align-items: center; flex-wrap: nowrap; margin: 0; padding: 0; }
body .header-pro.home-header .site-menu > nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 4px 0; font: 800 15px/1.35 Inter,Arial,sans-serif; color: #f8fafc; text-shadow: none; text-decoration: none; white-space: nowrap; border: 0; background: transparent; }
body .header-pro.home-header .site-menu > nav a:hover { color: #22c55e; text-decoration: underline; text-underline-offset: 5px; }
body .header-pro.home-header .language-toggle { flex: none; width: 54px; min-width: 54px; height: 44px; min-height: 44px; padding: 0; margin: 0; border: 1px solid #22c55eb3; border-radius: 999px; background: #22c55e; color: #020617; font: 800 14px Inter,Arial,sans-serif; box-shadow: 0 8px 18px #22c55e33; }
body .header-pro.home-header .nav-cart-icon { width: 30px; height: 30px; object-fit: contain; }
body .header-pro.home-header .site-menu > summary { border: 1px solid #334155; border-radius: 10px; min-height: 44px; padding: 11px 15px; background: #0f172a; font: 600 13px/20px Inter,Arial,sans-serif; color: #f8fafc; }
@media (min-width:1101px) and (max-width:1240px) {
  body > .header-pro.home-header { padding-inline: 24px; gap: 16px; }
  body .header-pro.home-header .home-logo strong { font-size: 27px; }
  body .header-pro.home-header .home-logo img { width: 60px; height: 60px; }
  body .header-pro.home-header .site-menu > nav { gap: 12px; }
  body .header-pro.home-header .site-menu > nav a { font-size: 14px; }
}
@media (min-width:1101px) {
  body .header-pro.home-header .site-menu > summary { display: none; }
  body .header-pro.home-header .site-menu > nav { display: flex !important; }
}
@media (max-width:1100px) {
  body > .header-pro.home-header { min-height: 76px; padding: 14px 24px; gap: 14px; }
  body .header-pro.home-header .site-menu { position: static; flex: none; }
  body .header-pro.home-header .site-menu > summary { display: block; cursor: pointer; }
  body .header-pro.home-header .site-menu:not([open]) > nav { display: none !important; }
  body .header-pro.home-header .site-menu[open] > nav {
    display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr));
    position: absolute; top: calc(100% + 8px); right: 24px; width: min(440px,calc(100vw - 48px));
    padding: 12px; gap: 6px; background: #020617; border: 1px solid #334155;
    border-radius: 16px; box-shadow: 0 18px 45px #0008;
  }
  body .header-pro.home-header .site-menu > nav a { white-space: normal; text-align: center; padding: 10px; background: #0f172a; border-radius: 8px; }
}
@media (max-width:520px) {
  body > .header-pro.home-header { padding: 12px 16px; min-height: 70px; gap: 10px; }
  body .header-pro.home-header .home-logo strong { font-size: 17px; }
  body .header-pro.home-header .language-toggle { width: 44px; min-width: 44px; }
  body .header-pro.home-header .home-logo img { width: 30px; height: 30px; }
  body .header-pro.home-header .home-logo small { display: none; }
  body .header-pro.home-header .home-actions { gap: 8px; }
  body .header-pro.home-header .site-menu > summary { padding-inline: 12px; }
  body .header-pro.home-header .site-menu[open] > nav { right: 16px; width: calc(100vw - 32px); }
}
@media (max-width:360px) {
  body > .header-pro.home-header { padding-inline: 12px; gap: 8px; }
  body .header-pro.home-header .home-logo { gap: 6px; }
  body .header-pro.home-header .home-logo strong { font-size: 15px; }
  body .header-pro.home-header .home-logo img { width: 24px; height: 24px; }
  body .header-pro.home-header .home-actions { gap: 6px; }
  body .header-pro.home-header .site-menu > summary { padding-inline: 10px; }
}

/* Accounts, forms, product reviews and purchase guide. */
.account-shell { width: 100%; max-width: 1200px; margin: 40px auto 64px; padding-inline: clamp(16px,3vw,32px); }
.account-card { padding: clamp(20px,3vw,32px); }
.account-kicker { font-size: 11px; letter-spacing: .14em; margin-bottom: 12px; }
.account-button, .account-login-page .account-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 20px; font-size: 14px; line-height: 1.45; font-weight: 700; white-space: normal; }
.account-form { gap: 18px; }
.account-form label, .account-login-page .account-form label { font-size: 14px; line-height: 1.5; font-weight: 600; }
.account-form input:not([type=checkbox]):not([type=radio]), .account-form select, .account-form textarea {
  width: 100%; max-width: 100%; min-width: 0; min-height: 46px; padding: 12px 14px;
  font: 400 16px/1.5 Inter,Arial,sans-serif; }
.account-form textarea { min-height: 128px; resize: vertical; }
.account-card .account-links { gap: 12px 18px; font-size: 13px; line-height: 1.6; }
.account-fine, .account-login-page .account-fine { font-size: 12px; line-height: 1.65; }
.account-form small { font-size: 12px; line-height: 1.5; }
.account-toolbar { gap: 12px; align-items: center; margin-bottom: 28px; }
.account-toolbar > div:first-child { flex: 1 1 300px; }
.account-toolbar h1 { margin: 0; }
.account-toolbar form { margin: 0; }
.customer-workspace { grid-template-columns: 216px minmax(0,1fr); gap: 26px; }
.customer-content { gap: 20px; }
.customer-content > h2 { margin: 0; }
.customer-menu .account-nav a { min-height: 46px; padding: 13px 14px; }
.customer-content .account-summary { gap: 12px; }
.customer-content .account-summary li { padding: 18px; }
.customer-content .account-summary strong { font-size: 28px; line-height: 1.2; }
.customer-content .account-summary span { font-size: 11px; line-height: 1.5; }
.account-login-page .account-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(24px,5vw,60px); }
.account-login-page .account-intro p { font-size: 15px; }
.account-login-page .account-intro h1 { font-size: clamp(2.15rem,4.5vw,3.3rem); }
.account-login-page .account-card .account-login-title { font-size: 25px; }
.account-login-page .account-login-header p { font-size: 14px; }
.account-login-page .account-shell { margin-top: 44px; }
.account-flow-page .account-grid { display: block; max-width: 540px; margin-inline: auto; }
.account-flow-page .account-intro { display: none; }
.account-flow-page .account-shell { max-width: 620px; min-height: 60vh; }
.account-flow-page .account-shell > .account-links { justify-content: center; }
.review-page { max-width: 1040px; }
.review-product { grid-template-columns: minmax(140px,220px) minmax(0,1fr); }
.review-product img { height: 220px; padding: 20px; }
.review-product h1 { margin-bottom: 12px; }
.review-page .review-stars { min-width: 0; width: 100%; max-width: 400px; margin: 0; }
.review-page .review-stars legend { padding-inline: 6px; font-size: 14px; }
.review-page .review-stars label { min-height: 68px; }
.review-entry { padding-block: 24px; }
.review-entry p { margin: 0 0 12px; }
.review-entry summary { min-height: 44px; padding-block: 10px; }
.review-entry .account-form { padding-bottom: 12px; }
.product-rating { font-family: Inter,Arial,sans-serif; font-size: 13px; }
@media(max-width:900px) {
  .account-login-page .account-grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .account-login-page .account-shell { max-width: 620px; }
  .customer-workspace { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .customer-workspace > aside { position: static; }
  .customer-menu > summary { display: block; }
  .customer-menu:not([open]) > nav { display: none !important; }
  .customer-menu[open] > nav { display: flex !important; }
  .account-shell { margin-top: 28px; }
}
@media(max-width:600px) {
  .account-login-page .account-shell { padding-inline: 16px; margin-top: 26px; }
  .account-login-page .account-card { padding: 24px 20px; }
  .account-flow-page .account-shell { padding-inline: 16px; }
  .account-intro .account-steps { display: none; }
  .account-toolbar > div:first-child { flex-basis: 100%; }
  .account-toolbar h1 { font-size: 26px; }
  .account-toolbar .account-button { padding: 10px 16px; }
  .customer-content .account-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .customer-content .account-summary li { padding: 16px 12px; }
  .customer-content .account-summary li:last-child:nth-child(odd) { grid-column: 1/-1; }
  .review-product { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .review-product img { height: 180px; width: 100%; }
}

/* Dashboard and moderation controls follow the existing administrative palette. */
.dash { gap: 24px; }
.dash-filters { display: grid; grid-template-columns: minmax(130px,1fr) minmax(130px,1fr) minmax(130px,1fr) auto; gap: 12px; align-items: end; }
.dash-filters label { min-width: 0; font-size: 13px; line-height: 1.6; }
.dash-filters input,.dash-filters select { max-width: none; width: 100%; min-height: 46px; }
.dash-filters button { min-height: 46px; padding-inline: 22px; }
.dash-metrics article { padding: 20px; }
.dash-metrics article > span { font-size: 13px; line-height: 1.5; }
.dash-metrics strong { font-size: clamp(1.6rem,2.4vw,2.3rem); line-height: 1.2; font-variant-numeric: tabular-nums; }
.dash-metrics small { display: block; font-size: 12px; line-height: 1.65; }
.dash-details summary { min-height: 30px; font-size: 14px; line-height: 1.5; }
.dash-task { font-size: 14px; line-height: 1.55; }
.admin-page .review-entry form { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; max-width: none; }
.admin-page .review-entry label { display: grid; gap: 8px; min-width: 0; font-size: 13px; }
.admin-page .review-entry select,.admin-page .review-entry button { min-height: 44px; font: inherit; padding: 10px 14px; }
.admin-page .review-entry select,.admin-page .review-entry button { border: 1px solid var(--admin-border); border-radius: 9px; background: var(--admin-surface); color: var(--admin-text); }
.admin-page .review-entry button { background: var(--admin-accent); color: #102e23; font-weight: 700; }
.account-toolbar .pec-tour-launch,.admin-account-actions .pec-tour-launch,.account-bar .pec-tour-launch { position: static; margin: 0; flex: none; z-index: auto; min-height: 44px; }
.admin-account-actions { flex-wrap: wrap; }
@media(max-width:1100px) { .dash-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) {
  .dash-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dash-filters>* { min-width: 0; }
  .dash-filters button { padding-inline: 10px; }
  .dash-metrics { gap: 12px; }
  .dash-metrics article { padding: 16px 12px; }
  .dash-metrics strong { font-size: 26px; }
}
@media(max-width:360px) { .dash-metrics { grid-template-columns: minmax(0,1fr); } .dash-filters { grid-template-columns: minmax(0,1fr); } }

/* New navigation links use the existing site's green accent. */
.about-teaser > .account-button { background: #22c55e; color: #020617; border-radius: 11px; text-decoration: none; margin-top: 16px; }
.about-teaser > .account-button:hover { background: #86efac; }
.home-page > footer:not(.home-footer) a { color: #86efac; }

/* Preserve original informational-page appearance; only constrain its layout. */
.knowledge-community-section { overflow: clip; }
.mission-section { overflow: clip; max-width: 1200px; margin-inline: auto; padding-inline: 24px; gap: 24px; }
.mission-card { padding: 28px; }
.mission-card p,.mission-card li { line-height: 1.7; }
@media(max-width:1000px) { .mission-section { grid-template-columns: minmax(0,1fr); } }
@media(max-width:600px) { .mission-section { padding-inline: 16px; }.mission-card{padding:24px}.about-teaser { margin-inline: 16px !important; } }
@media(prefers-reduced-motion:reduce) { .site-menu *, .account-shell *, .dash * { scroll-behavior: auto; transition: none; } }
