@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

html, html[data-theme="dark"] {
  --bg-primary: #071426;
  --bg-secondary: #0B1E33;
  --bg-tertiary: #10253D;
  --bg-card: #10253D;
  --text-primary: #F5F9FF;
  --text-secondary: #A9BBD0;
  --text-tertiary: #7E93AB;
  --purple-primary: #1677FF;
  --purple-secondary: #1677FF;
  --purple-light: rgba(22, 119, 255, .16);
  --purple-dark: #0d5ed4;
  --purple-glow: rgba(22, 119, 255, .25);
  --teal-primary: #1677FF;
  --teal-dark: #0d5ed4;
  --teal-light: rgba(0, 194, 224, .16);
  --teal-glow: rgba(22, 119, 255, .28);
  --accent-green: #00C2E0;
  --accent-blue: #1677FF;
  --accent-pink: #1677FF;
  --border-color: rgba(169, 187, 208, .18);
  --border-hover: rgba(22, 119, 255, .55);
  --hero-bg: #071426;
  --logo-filter: none;
}
html[data-theme="light"] {
  --bg-primary: #F7FAFD;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #EAF1F8;
  --bg-card: #FFFFFF;
  --text-primary: #102236;
  --text-secondary: #52667D;
  --text-tertiary: #6d8096;
  --purple-primary: #146CFF;
  --purple-secondary: #146CFF;
  --purple-light: rgba(20, 108, 255, .1);
  --purple-dark: #0e56cc;
  --purple-glow: rgba(20, 108, 255, .18);
  --teal-primary: #146CFF;
  --teal-dark: #0e56cc;
  --teal-light: rgba(20, 108, 255, .1);
  --teal-glow: rgba(20, 108, 255, .2);
  --accent-green: #00C2E0;
  --accent-blue: #146CFF;
  --accent-pink: #146CFF;
  --border-color: #DDE7F1;
  --border-hover: #146CFF;
  --hero-bg: #F7FAFD;
  --logo-filter: none;
}

body, #root, .app {
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  font-family: Inter, system-ui, sans-serif !important;
}
h1, h2, h3, .hero-title, .section-title, .product-card-title, .cta-title {
  font-family: Inter, system-ui, sans-serif !important;
  color: var(--text-primary) !important;
}
.navbar {
  isolation: isolate;
  background: color-mix(in srgb, var(--bg-primary) 92%, transparent) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color) !important;
}
.navbar-logo { position: static !important; left: auto !important; transform: none !important; }
.navbar-logo:hover { transform: none !important; }
.navbar-logo img,
.footer-logo-section img {
  filter: none !important;
  mix-blend-mode: screen;
  background: transparent !important;
}
.navbar-logo img { height: 42px !important; }
html[data-theme="light"] .navbar-logo img,
html[data-theme="light"] .footer-logo-section img {
  filter: invert(1) !important;
  mix-blend-mode: multiply;
}
@media (min-width: 1366px) {
  .navbar-menu { flex-wrap: nowrap !important; }
  .navbar-link { white-space: nowrap !important; font-size: .78rem !important; padding: .4rem .5rem !important; }
}
/* Nine links plus language, quote, and theme no longer fit below 1366px.
   Use the existing off-canvas menu instead of letting the bar spill off-screen. */
@media (max-width: 1365px) {
  .navbar .navbar-menu {
    position: fixed !important;
    top: 0;
    bottom: 0;
    left: -100% !important;
    height: 100vh;
    width: min(300px, 86vw);
    max-width: 300px;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    margin: 0;
    padding: 88px 1.25rem 1.5rem !important;
    background: var(--bg-primary) !important;
    z-index: 1000;
    overflow-y: auto;
    transition: left .3s ease;
    box-shadow: 0 20px 25px rgba(0, 0, 0, .18);
  }
  .navbar .navbar-menu.active { left: 0 !important; display: flex !important; }
  .navbar .navbar-menu li { width: 100%; }
  .navbar .navbar-link {
    display: block !important;
    width: 100%;
    font-size: 1.05rem !important;
    padding: .9rem 0 !important;
    white-space: normal !important;
  }
  .navbar .navbar-toggle { display: flex !important; }
  .navbar .navbar-actions { display: none !important; }
  .navbar .mobile-theme-toggle {
    display: flex !important;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1002;
    width: 40px;
    height: 40px;
  }
  .navbar-container { padding-left: 58px !important; }
}
@media (min-width: 1366px) {
  .navbar .mobile-theme-toggle { display: none !important; }
}
@media (max-width: 768px) {
  .hero-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
  .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
  }
}
.navbar-link, .navbar-link:hover, .navbar-link.active { background: transparent !important; color: var(--text-secondary) !important; }
.navbar-link.active, .navbar-link.active:hover { color: var(--purple-primary) !important; }
.navbar-link:after, .navbar-link.active:after { background: var(--purple-primary) !important; }
.navbar-link.active:after,
.navbar-link.active:hover:after { width: 40% !important; }
.btn-primary, a.btn-primary { background: var(--purple-primary) !important; color: #fff !important; border-radius: 12px !important; box-shadow: none !important; }
.btn-secondary, .btn-ghost, .btn-white { background: transparent !important; color: var(--text-primary) !important; border: 1px solid var(--border-color) !important; border-radius: 12px !important; }
.product-card, .gallery-item, .service-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(7, 20, 38, .12);
  color: var(--text-primary) !important;
}
.product-card-image img { width: 100%; height: 200px; object-fit: cover; display: block; }
/* Keep product cards the same width when a filter leaves one or two items. */
.products-page .products-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  justify-content: start !important;
  align-items: start;
  gap: 1.5rem !important;
}
.products-page .products-grid > .product-card {
  width: 100%;
  max-width: 340px;
  justify-self: start;
}
@media (max-width: 768px) {
  .products-page .products-grid {
    grid-template-columns: 1fr !important;
  }
  .products-page .products-grid > .product-card {
    max-width: none;
  }
}
.product-card-title, .product-card-description, .product-card-category,
.gallery-item-title, .gallery-item-description { color: var(--text-primary) !important; }
.product-card-description, .gallery-item-description { color: var(--text-secondary) !important; }
.products-page .product-card-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.gallery-tab { background: transparent !important; color: var(--text-primary) !important; border: 1px solid var(--border-color) !important; border-radius: 12px !important; }
.gallery-tab.active { background: var(--purple-primary) !important; color: #fff !important; }
footer, .footer {
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border-top: 1px solid var(--border-color);
  padding-bottom: 96px !important;
}
.footer-column h4,
.footer h4 { color: var(--text-primary) !important; }
.footer-description,
.footer-link,
.footer-copyright,
.footer-links a,
.footer-column li,
.footer-column a { color: var(--text-secondary) !important; }
@media (max-width: 480px) {
  .product-detail-content > div:has(> .btn) { flex-wrap: wrap !important; }
  .footer-social {
    flex-wrap: wrap !important;
    row-gap: 8px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 !important;
  }
}
#almed-testimonials-carousel .atc-card,
#almed-testimonials-carousel .atc-card-content,
#almed-testimonials-carousel .atc-card-nobg {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
  border-radius: 16px !important;
  box-shadow: none !important;
  min-height: 0 !important;
  height: auto !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  text-align: left !important;
}
#testimonials .container,
#almed-testimonials-carousel {
  width: min(1180px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}
#almed-testimonials-carousel { width: 100%; padding: 0 56px 36px; box-sizing: border-box; }
#almed-testimonials-carousel .atc-slide { padding: 0; }
#almed-testimonials-carousel .atc-card,
#almed-testimonials-carousel .atc-card-nobg { padding: 28px 32px !important; }
#almed-testimonials-carousel .atc-card-content { width: 100%; display: flex; flex-direction: column; align-items: flex-start; }
#almed-testimonials-carousel .atc-quote-icon { margin: 0 0 8px; line-height: 1; font-size: 2.4rem; }
#almed-testimonials-carousel .atc-text { margin: 0 0 18px; text-align: left; }
#almed-testimonials-carousel .atc-author { align-self: flex-start; margin: 0; }
#almed-testimonials-carousel .atc-arrows { padding: 0; }
#almed-testimonials-carousel .atc-text,
#almed-testimonials-carousel .atc-name,
#almed-testimonials-carousel .atc-quote-icon { color: var(--text-primary) !important; }
#almed-testimonials-carousel .atc-company { color: var(--text-secondary) !important; }

body.has-almed-hero .hero,
body.has-almed-hero #discover,
body.has-almed-hero #products,
body.has-almed-hero #whychoose,
body.has-almed-hero .cta-section { display: none !important; }

/* Partner band uses the page surface instead of the bright blue gradient. */
html[data-theme] .cta-section,
html[data-theme="light"] .home-page .cta-section,
html[data-theme="light"] body:not(.services-page):not(.about-page):not(.contact-page):not(.products-page):not(.gallery-page):not(.blog-page) .cta-section {
  animation: none !important;
  background: var(--bg-primary) !important;
  background-image: none !important;
  color: var(--text-primary) !important;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.cta-section::before,
.cta-section::after {
  content: none !important;
  display: none !important;
  background: none !important;
}
.cta-section h1,
.cta-section h2,
.cta-section h3 {
  color: var(--text-primary) !important;
}
.cta-section p {
  color: var(--text-secondary) !important;
}

body.has-almed-hero #testimonials { padding: 28px 0 72px !important; }
.almed-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
  gap: 32px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 88px auto 24px;
  padding: 28px 8px 12px;
}
@media (max-width: 860px) { .almed-hero { grid-template-columns: 1fr; margin-top: 84px; } }
.almed-kicker { margin: 0 0 8px; letter-spacing: .14em; text-transform: uppercase; color: #00C2E0; font-size: .75rem; font-weight: 700; }
.almed-hero h1 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; color: var(--text-primary); }
.almed-hero p, .almed-lead { color: var(--text-secondary); line-height: 1.6; max-width: 58ch; }
.almed-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.almed-actions a, .almed-actions button, .almed-cta {
  display: inline-flex; align-items: center; border-radius: 12px; padding: 12px 16px;
  font-weight: 650; text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.almed-actions a:first-child, .almed-cta { background: #1677FF; color: #fff; }
.almed-actions a:nth-child(2), .almed-actions button { background: transparent; color: var(--text-primary); border-color: var(--border-color); }
.almed-stage { background: radial-gradient(circle at 70% 40%, rgba(22,119,255,.28), transparent 42%), #0B1E33; border: 1px solid rgba(169,187,208,.2); border-radius: 20px; min-height: 320px; padding: 12px; }
.almed-stage img, .almed-stage model-viewer { width: 100%; height: 360px; object-fit: contain; background: transparent; border: 0; }
.almed-strip, .almed-bento, .almed-envs, .almed-block {
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto;
  color: var(--text-primary);
}
.almed-strip { display: flex; flex-wrap: wrap; gap: 18px 32px; padding: 8px 4px 18px; }
.almed-strip strong { display: block; font-size: 1.6rem; color: var(--text-primary); }
.almed-strip span { color: var(--text-secondary); font-size: .9rem; }
.almed-grid, .almed-install-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 800px) { .almed-install-grid { grid-template-columns: 1fr; } }
#certifications .discover-grid,
#awards .products-grid { display: none !important; }
/* Counts that do not divide into three columns use a full row instead of a blank cell. */
#almed-cert-grid,
#almed-award-grid {
  display: grid !important;
  width: 100%;
  gap: 16px;
  margin-top: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
#almed-cert-grid[data-count="3"],
#almed-award-grid[data-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#almed-cert-grid[data-count="1"],
#almed-award-grid[data-count="1"] {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}
@media (max-width: 800px) {
  #almed-cert-grid,
  #almed-award-grid,
  #almed-cert-grid[data-count="3"],
  #almed-award-grid[data-count="3"] {
    grid-template-columns: 1fr !important;
  }
}
.almed-cert-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.almed-cert-shot {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  padding: 12px;
  background: #eef3f8;
}
#almed-award-grid .almed-cert-shot { aspect-ratio: 1 / 1; }
[data-theme="dark"] .almed-cert-shot { background: #10253d; }
.almed-cert-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  display: block;
}
.almed-cert-card div { padding: 14px 16px 16px; }
.almed-cert-card h3 { margin: 0 0 4px; font-size: 1rem; line-height: 1.35; color: var(--text-primary) !important; }
.almed-cert-card p { margin: 0; color: var(--text-secondary); font-size: .88rem; line-height: 1.4; }
.almed-use { width: min(1180px, calc(100% - 40px)); margin: 28px auto; }
.almed-use h2 { margin: 0 0 16px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.almed-use-grid { display: grid; grid-template-columns: 1.45fr 1fr; grid-template-rows: repeat(3, minmax(150px, 1fr)); gap: 14px; min-height: 520px; }
.almed-use-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px; border-radius: 18px; overflow: hidden; text-decoration: none; border: 1px solid var(--border-color); background: #10253D; }
.almed-use-card--lead { grid-row: 1 / span 3; min-height: 100%; }
.almed-use-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.almed-use-card div { position: relative; padding: 18px; background: linear-gradient(180deg, transparent, rgba(7,20,38,.92) 42%); }
.almed-use-card span { display: block; margin-bottom: 6px; color: #22D3EE; font-size: .75rem; letter-spacing: .12em; font-weight: 700; }
.almed-use-card h3 { margin: 0 0 6px; color: #F5F9FF !important; font-size: 1.25rem; }
.almed-use-card p { margin: 0; color: #D5E2F0; font-size: .92rem; line-height: 1.45; }
.almed-why-grid { grid-template-rows: repeat(2, minmax(180px, 1fr)); min-height: 420px; }
.almed-why-grid .almed-use-card--lead { grid-row: 1 / span 2; }
@media (max-width: 900px) {
  .almed-use-grid { grid-template-columns: 1fr; grid-template-rows: none; min-height: 0; }
  .almed-use-card--lead, .almed-why-grid .almed-use-card--lead { grid-row: auto; min-height: 280px; }
  .almed-why-grid { grid-template-rows: none; min-height: 0; }
}
.almed-install-card { background: var(--bg-card); color: var(--text-primary); border-radius: 16px; overflow: hidden; border: 1px solid var(--border-color); }
.almed-install-card img { width: 100%; height: 210px; object-fit: cover; object-position: center; display: block; background: #0B1E33; }
.almed-install-card div { padding: 14px 16px 16px; }
.almed-install-card h3 { margin: 0 0 4px; font-size: 1rem; color: var(--text-primary) !important; font-weight: 700; }
.almed-install-card p { margin: 0; color: var(--text-secondary); font-size: .9rem; line-height: 1.4; }
@media (max-width: 800px) { .almed-grid { grid-template-columns: 1fr; } }
.almed-card, .almed-trust-card, .almed-pillar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  color: var(--text-primary);
  text-decoration: none;
}
.almed-card img, .almed-trust-card img { width: 100%; height: 170px; object-fit: cover; display: block; background: #0B1E33; }
.almed-card div, .almed-trust-card div, .almed-pillar { padding: 14px; }
.almed-card h3, .almed-trust-card h3, .almed-pillar h3, .almed-block h2 { color: var(--text-primary); margin: 0 0 6px; }
.almed-card p, .almed-trust-card p, .almed-pillar p, .almed-note, .almed-stage-copy { color: var(--text-secondary); margin: 0; line-height: 1.45; }
.almed-pillars { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 14px 0; }
@media (max-width: 900px) { .almed-pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .almed-pillars { grid-template-columns: 1fr; } }
.almed-block { box-sizing: border-box; padding: 22px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 20px; }
.af {
  color: #F5F9FF;
  --af-room: #071426;
  --af-unit: #10253D;
  --af-line: rgba(186, 198, 211, .32);
  --af-room-line: rgba(186, 198, 211, .14);
  --af-ink: #F5F8FC;
  --af-muted: #BAC6D3;
  --af-table: #16324f;
  --af-grille: #0c1c33;
  --af-shaft: rgba(45, 212, 191, .05);
  --af-shaft-line: rgba(45, 212, 191, .28);
}
html[data-theme="light"] .af {
  --af-room: #F4F8FC;
  --af-unit: #FFFFFF;
  --af-line: rgba(16, 34, 54, .16);
  --af-room-line: rgba(16, 34, 54, .12);
  --af-ink: #102236;
  --af-muted: #52667D;
  --af-table: #D5E2F0;
  --af-grille: #E7EEF6;
  --af-shaft: rgba(14, 143, 134, .08);
  --af-shaft-line: rgba(14, 143, 134, .4);
}
.af-canvas { background: var(--af-room, #071426); border-radius: 20px; overflow: hidden; }
html[data-theme="light"] .af-steps [role="tab"] { color: var(--text-secondary); }
html[data-theme="light"] .af-steps [role="tab"] span { border-color: var(--border-color); color: var(--text-secondary); }
html[data-theme="light"] .af-steps [role="tab"][aria-selected="true"] {
  color: var(--text-primary);
  border-color: var(--purple-primary);
  box-shadow: none;
}
html[data-theme="light"] .af-steps [role="tab"][aria-selected="true"] span { border-color: var(--purple-primary); color: var(--purple-primary); }
html[data-theme="light"] .af-icon { color: var(--text-secondary); border-color: var(--border-color); background: var(--bg-card); }
html[data-theme="light"] #almed-film .af-copy,
html[data-theme="light"] .af-copy { color: var(--text-primary) !important; }
html[data-theme="light"] #almed-film .af-note,
html[data-theme="light"] .af-note { color: var(--text-secondary) !important; }
.af-desk { display: block; width: 100%; height: auto; }
.af-mob { display: none; width: 100%; height: auto; }
@media (max-width: 720px) {
  .af-desk { display: none; }
  .af-mob { display: block; }
}
.af path[data-flow] {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .62;
  transition: opacity .35s ease;
}
.af path[data-flow].is-hot { opacity: 1; }
.af:not(.is-static):not(.is-paused) path[data-flow].is-hot {
  stroke-dasharray: 1.6 7;
  animation: af-dash 1.05s linear infinite;
}
.af path[data-flow].is-dim { opacity: .38; }
.af path.flow-supply.is-hot { filter: drop-shadow(0 0 3px rgba(34,199,239,.85)); }
.af path.flow-return.is-hot { filter: drop-shadow(0 0 3px rgba(255,77,90,.7)); }
.af path.flow-fresh.is-hot { filter: drop-shadow(0 0 3px rgba(245,184,61,.75)); }
.af .af-seq.is-hot { animation: af-seq 1.4s ease; }
@keyframes af-seq { from { opacity: .35; } to { opacity: 1; } }
.af .af-chev { fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: .45; transition: opacity .35s ease; }
.af .af-chev.is-hot { opacity: 1; }
.af .af-chev.is-dim { opacity: .22; }
.af .af-beam { transition: opacity .35s ease; }
.af .af-beam.is-hot { opacity: 1; }
.af .af-shaft { transition: opacity .35s ease, fill .35s ease; }
.af .af-shaft.is-dim { opacity: .4; }
.af .af-shaft.is-hot { opacity: 1; }
.af [data-part] { transition: opacity .35s ease; }
.af [data-part].is-dim { opacity: .55; }
.af [data-part].is-hot { opacity: 1; }
.af .af-beam.is-dim { opacity: .18; }
.af-dot { opacity: 0; offset-distance: 0%; }
.af:not(.is-paused):not(.is-static) .af-dot.is-hot {
  opacity: 1;
  animation: af-move var(--af-dur, 3.2s) linear infinite;
  animation-delay: var(--af-delay, 0s);
}
@keyframes af-move { to { offset-distance: 100%; } }
@keyframes af-dash { to { stroke-dashoffset: -27; } }
@media (prefers-reduced-motion: reduce) {
  .af-dot { animation: none !important; opacity: 0 !important; }
  .af path[data-flow] { animation: none !important; stroke-dasharray: none !important; opacity: .8; }
}
.af-steps { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.af-steps [role="tab"] {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #A9BBD0; border: 1px solid transparent;
  border-radius: 999px; padding: 6px 10px 6px 6px; cursor: pointer; font: 500 .82rem Inter, sans-serif;
}
.af-steps [role="tab"] span {
  width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center;
  border: 1px solid rgba(169,187,208,.35); font-size: .72rem;
}
.af-steps [role="tab"][aria-selected="true"] { color: #F5F9FF; border-color: rgba(34,211,238,.7); box-shadow: 0 0 0 1px rgba(34,211,238,.25); }
.af-steps [role="tab"][aria-selected="true"] span { border-color: #22D3EE; color: #22D3EE; }
.af-icon { background: transparent; color: #A9BBD0; border: 1px solid rgba(169,187,208,.3); border-radius: 999px; padding: 6px 10px; cursor: pointer; font: 500 .78rem Inter, sans-serif; }
.af-copy { min-height: 3.2em; margin: 12px 0 0; color: #F5F9FF; }
.af-note { margin: 4px 0 0; color: #7E93AB; font-size: .75rem; }
.af-section { background: #071426; }
.almed-svg-wrap { background: #071426; border-radius: 16px; overflow: hidden; }
.almed-svg-wrap svg { width: 100%; height: auto; display: block; }
.almed-svg-wrap .flow-path { stroke-linecap: round; opacity: .42; }
.almed-svg-wrap .flow-path.is-hot { opacity: 1; stroke-dasharray: 10 8; animation: almed-flow 1s linear infinite; }
.almed-svg-wrap.is-paused .flow-path { animation: none; opacity: .8; }
.almed-svg-wrap.is-static .flow-path { animation: none; opacity: .9; }
.almed-svg-wrap .flow-path.is-dim { opacity: .28; }
.almed-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
@keyframes almed-flow { to { stroke-dashoffset: -30; } }
@media (prefers-reduced-motion: reduce) { .almed-svg-wrap .flow-path { animation: none; } }
.almed-stage-list, .almed-controls, .almed-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.almed-stage-list button, .almed-controls button, .almed-btn {
  border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-primary);
  border-radius: 12px; padding: 8px 12px; cursor: pointer; font: 600 .85rem Inter, sans-serif;
}
.almed-stage-list button[aria-pressed="true"] { background: #1677FF; color: #fff; border-color: #1677FF; }
.almed-row { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(220px,.8fr); gap: 16px; }
@media (max-width: 860px) { .almed-row { grid-template-columns: 1fr; } }
.almed-poster, .almed-viewer { width: 100%; min-height: 260px; border-radius: 16px; background: #071426; }
.wa-fab, .aira-launch { position: fixed; bottom: 16px; z-index: 40; border-radius: 14px; font-weight: 700; max-width: calc(50vw - 28px); box-sizing: border-box; }
.wa-fab { left: 16px; background: #128C7E; color: #fff; text-decoration: none; padding: 12px 16px; display: inline-flex; gap: 8px; align-items: center; }
button.back-to-top {
  left: 16px;
  right: auto;
  bottom: 104px;
}
#aira-root { --aira-kb: 0px; font-family: Inter, system-ui, sans-serif; font-size: 15px; line-height: 1.5; color: var(--text-primary); }
#aira-root button, #aira-root textarea, #aira-root p, #aira-root strong, #aira-root span { font-family: inherit; line-height: inherit; letter-spacing: normal; }
#aira-root svg { width: 16px; height: 16px; fill: currentColor; display: block; flex: 0 0 auto; }
.aira-launch { right: 16px; background: #10253D; color: #F5F9FF; border: 1px solid rgba(169,187,208,.25); padding: 10px 14px; cursor: pointer; overflow: hidden; font-size: 14px; z-index: 45; }
.aira-launch strong { color: #F5F9FF; font-size: 14px; font-weight: 700; }
.aira-launch small { display: block; color: #00C2E0; font-size: 11px; font-weight: 500; }
.aira-panel {
  position: fixed; right: 12px; bottom: calc(84px + var(--aira-kb)); z-index: 1100;
  width: min(420px, calc(100vw - 24px));
  height: min(600px, calc(100dvh - 112px - var(--aira-kb)));
  max-height: calc(100dvh - 100px - var(--aira-kb));
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--bg-card); color: var(--text-primary);
  border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden;
  box-shadow: 0 18px 48px rgba(7, 20, 38, .28);
}
.aira-panel[hidden] { display: none !important; }
.aira-head { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 8px 10px; background: #071426; color: #F5F9FF; }
.aira-mark { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #1677FF; color: #fff; font-size: 14px; font-weight: 700; flex: 0 0 auto; }
.aira-id { min-width: 0; display: flex; flex-direction: column; }
.aira-id strong { color: #F5F9FF; font-size: 17px; font-weight: 700; line-height: 1.2; }
.aira-id span { color: #9fb4c8; font-size: 12px; }
.aira-badge { margin-left: auto; max-width: 42%; padding: 2px 8px; border-radius: 999px; background: rgba(22,119,255,.25); color: #d7ecff; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aira-head [data-clear], .aira-head [data-close] { background: transparent; color: #F5F9FF; border: 0; cursor: pointer; min-width: 36px; min-height: 36px; border-radius: 8px; font-size: 13px; }
.aira-head [data-clear] { margin-left: auto; }
.aira-head [data-close] { font-size: 22px; line-height: 1; }
.aira-log { min-height: 0; min-width: 0; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-secondary); }
.aira-msg { max-width: 90%; padding: 8px 10px; border-radius: 12px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.aira-msg--user { align-self: flex-end; background: #1677FF; color: #fff; }
.aira-msg--bot { align-self: flex-start; background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-color); }
.aira-link { align-self: flex-start; font-size: 13px; }
.aira-foot { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 8px 10px 10px; border-top: 1px solid var(--border-color); background: var(--bg-card); position: relative; }
.aira-chips { display: flex; flex-wrap: wrap; gap: 6px; overflow: visible; min-width: 0; }
.aira-chips:empty { display: none; }
.aira-chips button, .aira-link { border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-primary); border-radius: 999px; padding: 6px 10px; min-height: 36px; font-size: 13px; text-decoration: none; cursor: pointer; }
.aira-confirm { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.aira-confirm[hidden], .aira-voice[hidden], .aira-privacy[hidden] { display: none !important; }
.aira-confirm button, .aira-voice button { border: 1px solid var(--border-color); background: var(--bg-primary); color: var(--text-primary); border-radius: 8px; min-height: 32px; padding: 0 8px; font-size: 12px; cursor: pointer; }
.aira-voice { display: flex; align-items: center; gap: 6px; min-width: 0; }
.aira-voice [data-level] { display: block; height: 6px; width: 56px; background: #1677FF; transform-origin: left center; transform: scaleX(.08); border-radius: 99px; flex: 0 0 auto; }
.aira-form { display: flex; align-items: flex-end; gap: 6px; min-width: 0; margin: 0; }
.aira-form textarea { flex: 1 1 auto; min-width: 0; max-height: 96px; resize: none; border: 1px solid var(--border-color); border-radius: 12px; padding: 8px 10px; background: var(--bg-primary); color: var(--text-primary); font-size: 15px; line-height: 1.4; }
.aira-actions { display: flex; gap: 4px; flex: 0 0 auto; }
.aira-actions button { display: inline-flex; align-items: center; gap: 4px; border: 0; background: #10253D; color: #F5F9FF; border-radius: 10px; min-height: 40px; padding: 0 8px; font-size: 12px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.aira-actions button[hidden] { display: none !important; }
.aira-actions button[type="submit"] { background: #1677FF; }
.aira-info { align-self: flex-start; border: 0; background: transparent; color: var(--text-secondary); font-size: 12px; padding: 0; cursor: pointer; text-decoration: underline; }
.aira-privacy { position: absolute; left: 8px; right: 8px; bottom: 36px; z-index: 2; padding: 10px; border-radius: 12px; background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-color); box-shadow: 0 10px 28px rgba(7,20,38,.25); }
.aira-privacy p { margin: 0 0 8px; font-size: 13px; line-height: 1.45; }
.aira-privacy button { border: 1px solid var(--border-color); background: var(--bg-primary); color: var(--text-primary); border-radius: 8px; min-height: 32px; padding: 0 10px; cursor: pointer; }
.aira-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.aira-lead { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-width: 100%; }
.aira-lead input, .aira-lead button { border-radius: 10px; padding: 8px; min-width: 0; }
#aira-root button:focus-visible, #aira-root textarea:focus-visible { outline: 2px solid #55D9FF; outline-offset: 2px; }
@media (max-width: 640px) {
  .aira-panel { left: 0; right: 0; bottom: var(--aira-kb); width: 100%; height: calc(100dvh - var(--aira-kb)); max-height: calc(100dvh - var(--aira-kb)); border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom); }
}
@media (max-width: 380px) {
  .aira-actions button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .aira-actions button { padding: 0 10px; }
  .aira-id span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .aira-voice [data-level] { transform: none !important; }
}
.gallery-page .gallery-card.card-expanded,
.gallery-page .gallery-item.card-expanded,
.gallery-page [class*="grid"] > div.card-expanded {
  max-width: min(1320px, 94vw) !important;
  width: min(1320px, 94vw) !important;
}
.gallery-page .gallery-card.card-expanded img,
.gallery-page .gallery-item.card-expanded img,
.gallery-page [class*="grid"] > div.card-expanded img {
  max-height: 78vh !important;
  height: auto !important;
  object-fit: contain !important;
  background: #0b1e33;
}
.footer-brand,
.footer-column,
.footer-bottom,
.footer-description {
  text-align: left !important;
}
.footer-logo-section,
.footer .footer-social {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.footer-logo-section { margin-bottom: 14px !important; }
.footer-logo-section img {
  display: block !important;
  height: 42px !important;
  width: auto !important;
  max-width: 190px !important;
  margin: 0 !important;
  object-fit: contain;
  object-position: left center;
}
.footer .footer-social { gap: 10px !important; flex-wrap: wrap; max-width: 100%; padding: 0 !important; }
.footer .footer-social a { margin: 0 !important; width: 36px; height: 36px; }
.footer .footer-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr) !important;
  gap: 24px 28px !important;
  align-items: start !important;
  width: 100%;
}
#story .about-content > :last-child {
  margin-top: 28px;
}
.footer-column { min-width: 0; }
.footer-links {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 10px !important;
}
.footer-links li { display: block; width: 100%; margin: 0; }
.footer-links a, .footer-column li, .footer-column a {
  white-space: normal !important;
  overflow-wrap: anywhere;
  max-width: 100%;
}
@media (max-width: 768px) {
  .footer .footer-grid { grid-template-columns: 1fr !important; }
}
a[href*="facebook.com"],
a[href*="twitter.com"],
a[href*="x.com"],
a[href*="instagram.com"],
a[href*="linkedin.com"] {
  margin-left: 8px !important;
  margin-right: 8px !important;
}
a[href*="twitter.com/almedequip"],
a[href*="x.com/almedequip"] {
  display: none !important;
}
@media (max-width: 420px) {
  .wa-fab span, .aira-launch span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
