:root {
  --medical-bg: #f7f6f2;
  --medical-surface: #ffffff;
  --medical-navy: #071f3d;
  --medical-ink: #071426;
  --medical-muted: #5a6578;
  --medical-gold: #d7a84b;
  --medical-gold-hover: #c59b27;
  --medical-border: #e2e8f0;
  --medical-danger: #b42318;
  --medical-success: #147d64;
  --medical-radius: 20px;
  --medical-shadow: 0 16px 44px rgba(7, 20, 38, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; background: var(--medical-bg); }
body {
  min-height: 100%; margin: 0; overflow-x: hidden;
  background: var(--medical-bg); color: var(--medical-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.csx-menu-open, body.csx-chat-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.csx-header {
  position: sticky; top: 0; z-index: 900; min-height: 76px;
  padding-top: env(safe-area-inset-top, 0);
  border-bottom: 1px solid var(--medical-border);
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(20px);
}
.csx-header-grid {
  width: min(1240px, calc(100% - 32px)); min-height: 76px; margin: 0 auto;
  display: grid; grid-template-columns: 230px minmax(0, 1fr) 420px; align-items: center; gap: 16px;
}
.csx-brand { min-width: 0; height: 58px; display: flex; align-items: center; text-decoration: none; }
.csx-brand-logo { width: 208px; height: 52px; display: flex; align-items: center; }
.csx-brand-logo img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.csx-brand-copy { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.csx-public-nav { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 3px; }
.csx-public-nav a {
  min-height: 40px; display: inline-flex; align-items: center; padding: 0 10px;
  border-radius: 11px; color: var(--medical-muted); text-decoration: none; font-size: 11px; font-weight: 800;
}
.csx-public-nav a:hover, .csx-public-nav a.active { background: #f3eee3; color: var(--medical-navy); }
.csx-action-grid { display: grid; grid-template-columns: 118px 128px 158px; gap: 8px; }
.csx-action-grid a, .csx-mobile-cta {
  min-height: 42px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--medical-border); border-radius: 12px; background: var(--medical-surface);
  color: var(--medical-navy); text-decoration: none; font-size: 10px; font-weight: 900;
}
.csx-action-grid a.primary, .csx-mobile-cta {
  border-color: var(--medical-gold); background: var(--medical-gold); color: var(--medical-ink);
}
.csx-action-grid a.primary:hover, .csx-mobile-cta:hover { background: var(--medical-gold-hover); }
.csx-mobile-cta, .csx-menu-toggle { display: none; }

.csx-mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 980;
  padding: calc(88px + env(safe-area-inset-top, 0)) 14px 110px;
  background: rgba(7, 31, 61, 0.72); backdrop-filter: blur(14px); overflow: auto;
}
.csx-mobile-menu.open { display: block; }
.csx-mobile-card {
  width: min(520px, 100%); margin: auto; padding: 18px;
  border: 1px solid var(--medical-border); border-radius: 25px; background: var(--medical-surface);
  box-shadow: 0 34px 100px rgba(7, 20, 38, 0.25);
}
.csx-mobile-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.csx-mobile-head > div { min-width: 0; display: flex; align-items: center; gap: 10px; }
.csx-mobile-head img { width: 180px; height: 50px; object-fit: contain; object-position: left center; }
.csx-mobile-head strong { position: absolute; width: 1px; height: 1px; overflow: hidden; }
.csx-mobile-head button, .csx-chat-close {
  width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid var(--medical-border);
  border-radius: 13px; background: var(--medical-bg); color: var(--medical-ink); font-size: 22px; cursor: pointer;
}
.csx-mobile-links, .csx-mobile-actions { display: grid; gap: 8px; }
.csx-mobile-links a, .csx-mobile-actions a {
  min-height: 48px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--medical-border); border-radius: 13px; background: #fbfaf7;
  color: var(--medical-ink); text-decoration: none; text-align: center; font-size: 11px; font-weight: 850;
}
.csx-mobile-actions { margin-top: 10px; }
.csx-mobile-actions a:last-child { border-color: var(--medical-gold); background: var(--medical-gold); }

.csx-main { min-height: calc(100vh - 76px); overflow: hidden; background: var(--medical-bg); }
.csx-flash-wrap { width: min(1180px, calc(100% - 32px)); margin: 14px auto 0; }
.csx-flash { padding: 13px 15px; border-radius: 14px; font-size: 12px; font-weight: 750; }
.csx-flash.error { border: 1px solid #fecaca; background: #fff1f2; color: var(--medical-danger); }
.csx-flash.success { border: 1px solid #a7f3d0; background: #ecfdf5; color: #0f6b55; }

.csx-commerce { min-height: calc(100vh - 150px); display: grid; place-items: center; padding: 60px 16px; }
.csx-commerce-card {
  width: min(720px, 100%); padding: clamp(28px, 6vw, 54px); text-align: center;
  border: 1px solid var(--medical-border); border-radius: 28px; background: var(--medical-surface); box-shadow: var(--medical-shadow);
}
.csx-commerce-card img { width: min(390px, 92%); height: auto; margin: auto; }
.csx-commerce-card small { display: block; margin-top: 16px; color: #9b7226; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.csx-commerce-card h1 { margin: 13px 0; color: var(--medical-ink); font-size: clamp(32px, 6vw, 54px); line-height: 1.04; }
.csx-commerce-card p { color: var(--medical-muted); line-height: 1.7; }
.csx-commerce-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.csx-commerce-actions a {
  min-height: 47px; display: inline-flex; align-items: center; justify-content: center; padding: 0 17px;
  border: 1px solid var(--medical-gold); border-radius: 13px; background: var(--medical-gold);
  color: var(--medical-ink); text-decoration: none; font-size: 12px; font-weight: 900;
}
.csx-commerce-actions a:last-child { border-color: var(--medical-border); background: var(--medical-surface); color: var(--medical-navy); }

/* Shared public and customer UI */
.site-shell, .s2-shell { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 112px; }
.site-nav { background: var(--medical-surface); border-bottom: 1px solid var(--medical-border); }
.site-nav-inner { max-width: 1200px; margin: auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-brand, .site-menu, .site-actions, .hero-actions, .s2-actions, .s2-auth-actions { display: flex; align-items: center; gap: 12px; }
.site-menu { color: var(--medical-muted); font-size: 14px; }
.site-brand { color: var(--medical-navy); font-weight: 900; }
.btn, .btn-solid, .btn-ghost, .s2-btn, .btn-primary-xl, .btn-outline-xl {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 17px;
  border: 1px solid var(--medical-border); border-radius: 13px; background: var(--medical-surface);
  color: var(--medical-navy); text-decoration: none; font-weight: 800; cursor: pointer;
}
.btn.primary, .btn-solid, .s2-btn-primary, .btn-primary-xl, button.primary {
  border-color: var(--medical-gold); background: var(--medical-gold); color: var(--medical-ink);
}
.btn.primary:hover, .btn-solid:hover, .s2-btn-primary:hover, .btn-primary-xl:hover, button.primary:hover { background: var(--medical-gold-hover); }
.btn.danger, .danger { border-color: #fecaca; color: var(--medical-danger); background: #fff7f7; }
.s2-head-block, .s2-box, .s2-consult-box, .s2-auth-intro, .s2-auth-card,
.info-hero, .dash-sidebar, .dash-card, .dash-kpi, .chat-room-list, .chat-main-box,
.faq-item, .customer-route-head, .cdoc-hero, .cdoc-card, .card, .panel, .box {
  border: 1px solid var(--medical-border); border-radius: var(--medical-radius);
  background: var(--medical-surface); color: var(--medical-ink); box-shadow: var(--medical-shadow);
}
.s2-head-block, .s2-box, .s2-consult-box, .s2-auth-intro, .s2-auth-card, .dash-card, .card, .panel, .box { padding: 22px; }
.s2-chip, .chip, .badge { display: inline-flex; align-items: center; padding: 7px 11px; border-radius: 999px; background: #f3eee3; color: #8c651e; font-size: 12px; font-weight: 850; }
.s2-grid, .grid { display: grid; gap: 18px; }
.s2-grid-products, .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.s2-product-card, .category-card, .mock-card {
  overflow: hidden; border: 1px solid var(--medical-border); border-radius: var(--medical-radius);
  background: var(--medical-surface); box-shadow: var(--medical-shadow);
}
.s2-product-media, .category-card-media { min-height: 220px; display: flex; align-items: center; justify-content: center; padding: 18px; background: #fbfaf7; border-bottom: 1px solid var(--medical-border); }
.s2-product-media img, .category-card-media img { width: 100%; height: 220px; object-fit: contain; }
.s2-product-body, .category-card { padding: 18px; }
.s2-product-body p, .category-card p, .s2-head-block p, .s2-box p, .info-copy p,
.dash-card p, .faq-item p, .muted, .subtitle { color: var(--medical-muted); line-height: 1.7; }
.s2-detail-wrap, .s2-auth-wrap, .info-hero, .dash-grid, .chat-ui, .two-col, .grid2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}
.dash-grid { grid-template-columns: 280px 1fr; }
.dash-sidebar { height: fit-content; padding: 18px; display: grid; gap: 8px; }
.dash-sidebar a { padding: 11px 12px; border-radius: 12px; text-decoration: none; }
.dash-sidebar a.active, .dash-sidebar a:hover { background: #f3eee3; color: var(--medical-navy); }
.dash-main { display: grid; gap: 18px; }
.dash-kpi-grid, .stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dash-kpi { padding: 18px; }
.dash-kpi strong, .stat-card strong { color: var(--medical-navy); font-size: 32px; }
.dash-kpi span, .stat-card span { display: block; margin-top: 6px; color: var(--medical-muted); }
.chat-ui { grid-template-columns: 320px 1fr; }
.chat-main-box { min-height: 68vh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; }
.chat-side-head, .chat-main-head { padding: 16px 18px; border-bottom: 1px solid var(--medical-border); font-weight: 850; }
.chat-message-list { padding: 18px; display: flex; flex-direction: column; gap: 12px; background: #fbfaf7; }
.bubble { max-width: 78%; padding: 12px 14px; border-radius: 16px; line-height: 1.6; }
.bubble.me { align-self: flex-end; border: 1px solid #ecd8a8; background: #fff8e8; }
.bubble.them { align-self: flex-start; border: 1px solid var(--medical-border); background: var(--medical-surface); }
.chat-compose { padding: 14px; display: grid; grid-template-columns: 1fr auto; gap: 10px; border-top: 1px solid var(--medical-border); background: var(--medical-surface); }

input:not([type="checkbox"]):not([type="radio"]), textarea, select {
  width: 100%; min-height: 46px; padding: 11px 13px;
  border: 1px solid #E2E8F0; border-radius: 13px; background: var(--medical-surface); color: var(--medical-ink);
}
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #5A6578; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--medical-gold); box-shadow: 0 0 0 4px rgba(215, 168, 75, .16); }
label { color: var(--medical-ink); font-weight: 750; }
table { width: 100%; border-collapse: collapse; background: var(--medical-surface); }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--medical-border); text-align: left; }
th { background: #F7F6F2; color: var(--medical-navy); font-size: 12px; letter-spacing: .03em; }
.table-wrap, .s2-table-scroll { width: 100%; overflow-x: auto; }

/* Footer */
.csx-footer { background: var(--medical-navy); color: #f7f6f2; border-top: 1px solid rgba(215, 168, 75, .35); }
.csx-footer-inner {
  width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 42px;
  display: grid; grid-template-columns: minmax(240px, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: end;
}
.csx-footer-logo { width: min(360px, 100%); height: auto; }
.csx-footer p { max-width: 600px; margin: 16px 0 0; color: #c8d0da; font-size: 13px; line-height: 1.75; }
.csx-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px 20px; }
.csx-footer-links a { color: #e7ebef; text-decoration: none; font-size: 12px; font-weight: 700; }
.csx-footer-copy { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(226, 232, 240, .16); color: #9cabbc; font-size: 11px; }

/* Floating concierge */
.csx-chat-widget { position: fixed; right: 2rem; bottom: 2rem; z-index: 950; }
.csx-chat-trigger {
  position: relative; min-width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 0 18px; border: 1px solid var(--medical-gold); border-radius: 999px;
  background: var(--medical-navy); color: #f7f6f2; box-shadow: 0 18px 50px rgba(7, 31, 61, .28);
  font: 900 11px/1 Inter, sans-serif; cursor: pointer;
}
.csx-chat-trigger svg { width: 22px; height: 22px; fill: none; stroke: var(--medical-gold); stroke-width: 1.7; }
.csx-chat-unread { position: absolute; top: -7px; right: -5px; min-width: 23px; height: 23px; display: grid; place-items: center; padding: 0 6px; border: 2px solid #fff; border-radius: 999px; background: #b42318; color: #fff; font-size: 9px; font-style: normal; }
.csx-chat-modal[hidden] { display: none; }
.csx-chat-modal { position: fixed; inset: 0; z-index: 10000; }
.csx-chat-backdrop { position: absolute; inset: 0; background: rgba(7, 31, 61, .65); backdrop-filter: blur(7px); }
.csx-chat-panel {
  position: absolute; right: 2rem; bottom: 6.75rem; width: min(440px, calc(100% - 28px)); max-height: min(720px, calc(100vh - 9rem));
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--medical-border);
  border-radius: 25px; background: var(--medical-surface); box-shadow: 0 38px 110px rgba(7, 20, 38, .28); color: var(--medical-ink);
}
.csx-chat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 21px; border-bottom: 1px solid var(--medical-border); }
.csx-chat-head span { color: #9b7226; font-size: 9px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.csx-chat-head h2 { margin: 8px 0 7px; color: var(--medical-navy); font-size: 27px; }
.csx-chat-head p, .csx-gateway p, .csx-internal-copy { margin: 0; color: var(--medical-muted); font-size: 11px; line-height: 1.6; }
.csx-chat-body { min-height: 0; display: flex; flex-direction: column; padding: 17px; }
.csx-chat-status { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--medical-border); border-radius: 13px; background: #fbfaf7; }
.csx-chat-status div { display: flex; align-items: center; gap: 8px; }
.csx-chat-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--medical-success); }
.csx-chat-status span, .csx-chat-status strong { font-size: 9px; }
.csx-micro-thread { height: 320px; overflow-y: auto; padding: 12px; border: 1px solid var(--medical-border); border-radius: 17px; background: #fbfaf7; }
.csx-thread-loading, .csx-thread-empty { min-height: 100%; display: grid; place-items: center; padding: 28px; text-align: center; color: var(--medical-muted); font-size: 11px; }
.csx-thread-row { display: flex; margin: 8px 0; }
.csx-thread-row.mine { justify-content: flex-end; }
.csx-thread-bubble { max-width: 82%; padding: 10px 12px; border: 1px solid var(--medical-border); border-radius: 16px; background: #fff; color: var(--medical-ink); box-shadow: 0 8px 20px rgba(7, 20, 38, .05); }
.csx-thread-row.mine .csx-thread-bubble { border-color: #ecd8a8; border-bottom-right-radius: 5px; background: #fff8e8; }
.csx-thread-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 5px; color: #8c651e; font-size: 8px; font-weight: 800; }
.csx-thread-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; line-height: 1.55; }
.csx-micro-composer { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 8px; margin-top: 10px; }
.csx-micro-composer button { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--medical-gold); border-radius: 14px; background: var(--medical-gold); color: var(--medical-ink); }
.csx-micro-composer button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.csx-micro-foot { min-height: 18px; display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 8px; }
.csx-micro-foot a { color: #8c651e; font-weight: 850; text-decoration: none; }
.csx-gateway-seal { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 17px; border: 1px solid #ecd8a8; border-radius: 18px; background: #fff8e8; color: #9b7226; }
.csx-gateway-seal svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.csx-gateway h3 { margin: 0 0 10px; font-size: 22px; }
.csx-gateway-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.csx-gateway-actions a, .csx-internal-action { min-height: 46px; display: flex; align-items: center; justify-content: center; padding: 0 13px; border: 1px solid var(--medical-border); border-radius: 12px; background: #fff; color: var(--medical-navy); text-decoration: none; text-align: center; font-size: 10px; font-weight: 900; }
.csx-gateway-actions a:first-child, .csx-internal-action { border-color: var(--medical-gold); background: var(--medical-gold); color: var(--medical-ink); }
.csx-internal-action { width: 100%; margin-top: 18px; }

.csx-bottom-nav { display: none; }

/* Customer complaints and warranties */
.complaints-page, .warranties-page { max-width: 1120px; margin: 0 auto; padding: 18px 18px 110px; display: grid; gap: 16px; color: var(--medical-ink); }
.complaints-hero, .warranties-hero { position: relative; overflow: hidden; padding: 26px; border: 1px solid var(--medical-border); border-radius: 32px; background: radial-gradient(circle at 16% 10%, rgba(215,168,75,.16), transparent 34%), linear-gradient(135deg, #fff, var(--medical-bg)); box-shadow: 0 22px 70px rgba(7,20,38,.09); }
.complaints-hero::after, .warranties-hero::after { position: absolute; right: 24px; top: 24px; width: 58px; height: 58px; border-radius: 22px; display: grid; place-items: center; background: #fff8e8; color: #8c651e; font-size: 26px; }
.complaints-hero::after { content: "⚠️"; }
.warranties-hero::after { content: "🛡️"; }
.complaints-hero h1, .warranties-hero h1 { margin: 0; padding-right: 74px; color: var(--medical-ink); font-size: 36px; line-height: 1.05; letter-spacing: -.055em; }
.warranties-hero h1 { margin-top: 7px; }
.complaints-hero p, .warranties-hero p { max-width: 760px; margin: 10px 0 0; color: var(--medical-muted); font-weight: 750; line-height: 1.6; }
.complaints-card, .warranties-card { padding: 22px; border: 1px solid var(--medical-border); border-radius: 28px; background: #fff; box-shadow: 0 18px 50px rgba(7,20,38,.06); }
.complaints-card h2 { margin: 0 0 16px; color: var(--medical-navy); font-size: 22px; }
.complaints-form { display: grid; gap: 13px; }
.complaints-form label { display: grid; gap: 7px; color: var(--medical-ink); font-weight: 850; }
.complaints-form input, .complaints-form textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--medical-border); border-radius: 14px; padding: 11px 12px; background: #fff; color: var(--medical-ink); }
.complaints-form input:focus, .complaints-form textarea:focus { outline: 0; border-color: var(--medical-gold); box-shadow: 0 0 0 4px rgba(215,168,75,.16); }
.complaints-actions, .warranties-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.complaints-btn, .warranties-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 15px; border: 1px solid var(--medical-border); border-radius: 999px; background: #fff; color: var(--medical-ink); text-decoration: none; font-weight: 950; cursor: pointer; }
.complaints-btn.primary { border-color: var(--medical-gold); background: var(--medical-gold); }
.complaints-btn.primary:hover { background: var(--medical-gold-hover); }
.complaints-table-wrap, .warranties-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--medical-border); border-radius: 20px; }
.complaints-table, .warranties-table { width: 100%; min-width: 620px; border-collapse: collapse; background: #fff; }
.complaints-table { min-width: 650px; }
.complaints-table th, .complaints-table td, .warranties-table th, .warranties-table td { padding: 13px; border-bottom: 1px solid var(--medical-border); text-align: left; font-size: 14px; vertical-align: top; }
.complaints-table th, .warranties-table th { background: var(--medical-bg); color: var(--medical-navy); }
.complaints-table tr:last-child td, .warranties-table tr:last-child td { border-bottom: 0; }
.complaints-status, .warranties-kicker, .warranties-status { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #fff8e8; color: #8c651e; font-size: 12px; font-weight: 900; }
.warranties-empty { margin: 0; color: var(--medical-muted); font-weight: 750; line-height: 1.6; }
.wishlist-link { display: block; color: inherit; text-decoration: none; }
.wishlist-remove-form { margin-top: 10px; }
.wishlist-remove-form button { padding: 8px 14px; border: 1px solid #fecaca; border-radius: 999px; background: #fff; color: #b91c1c; font-weight: 800; cursor: pointer; }
.wishlist-remove-form button:hover { background: #fef2f2; }

@media (max-width: 1020px) {
  .csx-header { min-height: 68px; }
  .csx-header-grid { width: calc(100% - 20px); min-height: 68px; grid-template-columns: 58px minmax(0, 1fr) 48px; gap: 8px; }
  .csx-brand-logo { width: 56px; height: 54px; overflow: hidden; }
  .csx-brand-logo img { width: 190px; max-width: none; object-position: left center; }
  .csx-public-nav, .csx-action-grid { display: none; }
  .csx-mobile-cta { display: flex; height: 46px; }
  .csx-menu-toggle { width: 48px; height: 48px; display: grid; place-content: center; gap: 5px; border: 1px solid var(--medical-border); border-radius: 14px; background: #fff; }
  .csx-menu-toggle span { width: 23px; height: 2px; border-radius: 999px; background: var(--medical-navy); }
  .csx-main { padding-bottom: 105px; }
  .csx-bottom-nav {
    position: fixed; left: 12px; right: 12px; bottom: calc(8px + env(safe-area-inset-bottom, 0)); z-index: 930;
    min-height: 72px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 7px;
    border: 1px solid var(--medical-border); border-radius: 23px; background: rgba(255, 255, 255, .97);
    box-shadow: 0 16px 48px rgba(7, 20, 38, .14); backdrop-filter: blur(18px);
  }
  .csx-bottom-nav a { min-width: 0; display: grid; place-items: center; align-content: center; gap: 5px; border: 1px solid transparent; border-radius: 17px; color: var(--medical-muted); text-decoration: none; font-size: 8px; font-weight: 850; }
  .csx-bottom-nav svg { width: 22px; height: 22px; color: var(--medical-navy); }
  .csx-bottom-nav a.active { border-color: #ecd8a8; background: #fff8e8; color: var(--medical-navy); }
  .csx-bottom-nav a.active svg { color: var(--medical-gold-hover); }
  .csx-chat-widget { right: 1rem; bottom: calc(5.5rem + env(safe-area-inset-bottom, 0)); }
  .csx-chat-trigger { width: 52px; min-width: 52px; height: 52px; padding: 0; }
  .csx-chat-trigger span { display: none; }
  .csx-chat-panel { left: 10px; right: 10px; bottom: calc(9.25rem + env(safe-area-inset-bottom, 0)); width: auto; max-height: calc(100dvh - 10.5rem); }
  .csx-footer-inner { grid-template-columns: 1fr; padding-bottom: 120px; }
  .csx-footer-links { justify-content: flex-start; }
  .s2-detail-wrap, .s2-auth-wrap, .info-hero, .dash-grid, .chat-ui, .two-col, .grid2 { grid-template-columns: 1fr; }
  .s2-grid-products, .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .site-shell, .s2-shell { width: calc(100% - 20px); }
  .s2-grid-products, .category-grid, .dash-kpi-grid, .stats-grid { grid-template-columns: 1fr; }
  .csx-gateway-actions { grid-template-columns: 1fr; }
  .csx-chat-head { padding: 17px; }
  .csx-chat-body { padding: 13px; }
  .csx-footer-inner { width: calc(100% - 24px); gap: 28px; }
  .complaints-page, .warranties-page { padding: 12px 12px 104px; }
  .complaints-hero, .warranties-hero { padding: 22px; border-radius: 26px; }
  .complaints-hero::after, .warranties-hero::after { right: 16px; top: 18px; width: 50px; height: 50px; border-radius: 18px; }
  .complaints-hero h1, .warranties-hero h1 { font-size: 30px; }
  .complaints-card, .warranties-card { padding: 18px; border-radius: 24px; }
  .complaints-btn, .warranties-btn { width: 100%; min-height: 48px; border-radius: 16px; }
  .complaints-form input, .complaints-form textarea { min-height: 48px; font-size: 16px; }
  .dash-grid { display: block; width: 100%; max-width: 100%; padding: 0 12px 96px; }
  .dash-sidebar { display: none; }
  .dash-main { min-width: 0; width: 100%; display: grid; gap: 14px; }
  .dash-card { margin: 0; padding: 18px; overflow: hidden; border-radius: 24px; box-shadow: 0 16px 42px rgba(7,20,38,.06); }
  .dash-card h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.05; letter-spacing: -.05em; }
  .dash-card h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.1; }
  .s2-form input, .s2-form textarea, .s2-form select { width: 100%; min-height: 48px; box-sizing: border-box; border-radius: 16px; font-size: 16px; }
  .s2-btn { width: 100%; min-height: 48px; margin-top: 8px; border-radius: 16px; }
  .wishlist-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
  .wishlist-item { padding: 14px; border: 1px solid var(--medical-border); border-radius: 22px; background: #fff; box-shadow: 0 12px 32px rgba(7,20,38,.05); }
  .wishlist-link { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 12px; }
  .wishlist-link img { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; background: var(--medical-bg); }
  .wishlist-price { display: block; margin-top: 5px; color: var(--medical-gold-hover); font-size: 14px; font-style: normal; font-weight: 900; }
  .wishlist-remove-form button { width: 100%; min-height: 44px; border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
