:root {
  color-scheme: dark;
  --bg: #10181f;
  --surface: #18232d;
  --surface-raised: #1e2c37;
  --input: #101a23;
  --border: #30404c;
  --border-soft: #253540;
  --text: #edf2f5;
  --muted: #a8b8c4;
  --accent: #70d8c0;
  --accent-hover: #95e5d3;
  --accent-dark: #102d28;
  --amber: #efbd64;
  --error: #ffb4b4;
  --radius: 18px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button, input {
  font: inherit;
}

button, a, summary {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

img {
  max-width: 100%;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  line-height: 1.25;
  font-weight: 600;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(32px, 3.7vw, 44px);
  letter-spacing: -0.035em;
}

h2 {
  font-size: 23px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

p {
  margin-bottom: 18px;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: 0.55;
  cursor: default;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

::selection {
  background: #3e756b;
  color: #fff;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.5;
  margin-bottom: 16px;
}

.status-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(112, 216, 192, 0.0705882353);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  padding: 14px 22px;
  color: var(--bg);
  background: var(--amber);
  z-index: 100;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  border-bottom: 1px solid var(--border-soft);
  background: #121c24;
}

.header-inner {
  max-width: 1280px;
  min-height: 88px;
  margin: auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-height: 48px;
}

.brand img {
  width: 150px;
  height: auto;
}

.brand-tag {
  color: var(--amber);
  border: 1px solid #6b573a;
  border-radius: 5px;
  padding: 1px 6px 2px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.09em;
}

.header-caption {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}

.pharmacy-identity {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  min-width: 0;
  overflow-wrap: anywhere;
}

.partner-logo {
  max-height: 42px;
  max-width: 100px;
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-link {
  color: var(--muted);
  min-height: 48px;
  padding: 11px 15px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
}

.nav-link.is-active {
  color: var(--accent);
  background: rgba(112, 216, 192, 0.0509803922);
}

.nav-link:hover {
  background: var(--surface-raised);
}

.logout-form {
  margin: 0 0 0 7px;
  padding-left: 14px;
  border-left: 1px solid var(--border);
}

.main-shell {
  max-width: 1280px;
  min-height: calc(100svh - 177px);
  padding: 48px 40px 64px;
  margin: auto;
}

.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 0 28px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  font-size: 12px;
  color: #93a6b5;
}

.footer-dot {
  color: var(--accent);
  padding: 0 6px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.button {
  min-height: 54px;
  padding: 13px 23px;
  border: 1px solid transparent;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
  transition: background-color 0.15s, border-color 0.15s;
}

.button-primary {
  background: var(--accent);
  color: #102720;
}

.button-primary:hover {
  background: var(--accent-hover);
  color: #102720;
}

.button-secondary {
  background: var(--surface-raised);
  border-color: var(--border);
  color: var(--text);
}

.button-secondary:hover {
  background: #293c49;
  color: white;
  border-color: #526a7b;
}

.button-full {
  width: 100%;
}

.button-small {
  min-height: 48px;
  padding: 10px 15px;
  font-size: 14px;
}

.icon-button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--muted);
  flex-shrink: 0;
}

.icon-button:hover {
  background: var(--surface-raised);
  color: var(--text);
}

.feature-icon, .panel-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border: 1px solid #37594f;
  background: #203830;
  border-radius: 12px;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.panel-symbol {
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  border-color: var(--border);
  background: var(--surface-raised);
  color: var(--amber);
}

.panel-symbol svg {
  width: 26px;
  height: 26px;
}

.login-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
  padding: 32px 0 22px;
}

.login-intro h1 {
  font-size: clamp(34px, 3.9vw, 48px);
  line-height: 1.18;
  margin: 24px 0;
}

.login-intro h1 span {
  color: var(--muted);
}

.intro-copy {
  color: var(--muted);
  font-size: 18px;
  max-width: 485px;
}

.intro-features {
  display: grid;
  gap: 24px;
  margin: 38px 0;
}

.intro-features > div {
  display: flex;
  align-items: center;
  gap: 17px;
}

.intro-features strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 3px;
}

.intro-features small {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

.intro-note {
  display: flex;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 13px;
  max-width: 440px;
}

.intro-note svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--amber);
}

.intro-note p {
  margin: 0;
}

.login-panel {
  padding: 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1019607843);
}

.login-panel .eyebrow {
  color: var(--muted);
  margin-bottom: 8px;
}

.login-panel h2 {
  font-size: 30px;
  margin-bottom: 12px;
}

.login-panel > p {
  font-size: 15px;
  margin-bottom: 28px;
}

.form-field {
  margin-bottom: 22px;
  min-width: 0;
}

label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 9px;
}

.form-control {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid #3b4e5e;
  background: var(--input);
  color: var(--text);
  outline-offset: 3px;
  font-size: 17px;
  line-height: 1.5;
  transition: border-color 0.15s;
}

.form-control::placeholder {
  color: #8b9daa;
  opacity: 1;
}

.form-control:hover {
  border-color: #597284;
}

.form-control:focus {
  border-color: var(--accent);
}

.form-control[readonly] {
  color: var(--muted);
  background: #202c35;
}

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--input) inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 58px;
}

.password-toggle {
  position: absolute;
  right: 5px;
  top: 4px;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover, .password-toggle[aria-pressed=true] {
  color: var(--accent);
  background: rgba(112, 216, 192, 0.0509803922);
}

.field-help {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 9px 0 0;
  line-height: 1.6;
}

.field-error {
  display: block;
  color: var(--error);
  margin-top: 7px;
  font-size: 14px;
}

.field-error:empty {
  display: none;
}

.input-validation-error, .form-control[aria-invalid=true] {
  border-color: var(--error);
}

.validation-summary-valid {
  display: none;
}

.validation-summary-errors {
  color: var(--error);
  background: #412c32;
  border: 1px solid #80535c;
  border-radius: 10px;
  margin-bottom: 24px;
  padding: 16px 20px;
  font-size: 15px;
}

.validation-summary ul {
  padding-left: 18px;
  margin: 0;
}

.form-footnote {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  margin: 24px 0 0 !important;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.page-heading {
  margin-bottom: 32px;
}

.page-heading p {
  margin-bottom: 0;
  font-size: 17px;
}

.heading-with-action, .search-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.page-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  color: var(--accent);
  background: rgba(112, 216, 192, 0.031372549);
  border: 1px solid #2b4944;
  border-radius: 22px;
  transform: rotate(-5deg);
  margin-right: 8px;
}

.page-emblem svg {
  width: 36px;
  height: 36px;
}

.search-panel {
  padding: 27px 30px;
  border-top: 2px solid #548b7e;
}

.search-panel label {
  font-size: 16px;
  margin-bottom: 12px;
}

.search-controls {
  display: flex;
  gap: 12px;
}

.search-controls > .button {
  min-width: 158px;
  min-height: 64px;
  font-size: 17px;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search-input-wrap > svg {
  position: absolute;
  top: 21px;
  left: 19px;
  color: #8fa6b6;
}

.search-input-wrap input {
  padding: 16px 58px 16px 54px;
  min-height: 64px;
  font-size: 18px;
}

.search-input-wrap input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  position: absolute;
  right: 8px;
  top: 8px;
  border: 0;
}

.search-panel .field-help {
  margin-top: 14px;
}

.search-guide {
  margin: 52px 0 38px;
}

.guide-heading .eyebrow {
  color: #96abae;
  margin-bottom: 9px;
}

.guide-heading h2 {
  font-size: 24px;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.guide-steps li {
  display: flex;
  gap: 17px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.step-number {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 26px;
}

.guide-steps h3 {
  font-size: 18px;
}

.guide-steps p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.info-strip {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  color: var(--muted);
  background: #17242a;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 18px 22px;
  margin-top: 30px;
}

.info-strip > svg {
  color: var(--accent);
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.info-strip p {
  font-size: 14px;
  margin: 0;
}

.results-panel {
  margin-top: 28px;
  overflow: hidden;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 23px 28px;
  border-bottom: 1px solid var(--border);
}

.section-heading h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  font-size: 21px;
}

.section-heading p {
  font-size: 14px;
  margin: 6px 0 0;
}

.section-heading h2 svg {
  color: var(--accent);
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-raised);
  border: 1px solid #3b4c59;
  color: var(--muted);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: normal;
}

.text-link, .back-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.text-link {
  flex-shrink: 0;
}

.back-link {
  margin: -12px 0 24px;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  table-layout: fixed;
}

.data-table th {
  color: var(--muted);
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.04em;
  font-weight: 500;
  background: #14202a;
  padding: 15px 20px;
}

.data-table th:first-child {
  width: 42%;
  padding-left: 28px;
}

.data-table th:nth-child(2) {
  width: 24%;
}

.data-table th:nth-child(3) {
  width: 14%;
}

.data-table th:last-child {
  width: 20%;
  padding-right: 28px;
}

.data-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-soft);
  overflow-wrap: anywhere;
  color: #c5d1d9;
}

.data-table td:first-child {
  padding-left: 28px;
}

.data-table td:last-child {
  padding-right: 28px;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #20303b;
}

.product-link {
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 6px 0;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.45;
}

.product-link svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.price-cell {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}

td.price-cell {
  color: var(--text);
  font-weight: 600;
}

.badge {
  display: inline-block;
  color: #c3d1dc;
  background: #273743;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 12px;
  line-height: 1.5;
}

.badge-accent {
  background: #23463d;
  color: #a4e8d9;
}

.pagination-bar {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}

.pagination {
  display: flex;
  gap: 6px;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--muted);
  font-size: 15px;
}

.page-link.is-current {
  color: var(--accent-dark);
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}

.page-link:hover:not(.is-current) {
  color: var(--text);
  background: var(--surface-raised);
}

.empty-state {
  padding: 52px 32px;
  text-align: center;
}

.empty-state .feature-icon {
  margin-bottom: 22px;
}

.empty-state h3 {
  font-size: 22px;
}

.empty-state p {
  color: var(--muted);
  max-width: 480px;
  margin: 12px auto 0;
  font-size: 16px;
}

.price-legend {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

.price-legend summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 14px 2px;
  cursor: pointer;
  list-style: none;
}

.price-legend summary::-webkit-details-marker {
  display: none;
}

.price-legend[open] summary svg {
  transform: rotate(180deg);
}

.legend-content {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.legend-content p {
  margin-bottom: 10px;
}

.legend-content dl {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  margin-bottom: 0;
}

.legend-content dt {
  color: var(--text);
}

.legend-content dd {
  margin: 0;
}

.notice {
  display: flex;
  gap: 12px;
  padding: 18px 22px;
  border-radius: 10px;
  margin: 24px 0;
  align-items: flex-start;
}

.notice-error {
  background: #38292f;
  border: 1px solid #79505a;
  color: var(--error);
}

.notice-success {
  color: #adedd7;
  background: #204234;
  border: 1px solid #3a745b;
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(220px, 1fr);
  gap: 40px;
  align-items: start;
}

.editor-panel {
  padding: 32px;
}

.editor-panel h2 {
  margin-bottom: 26px;
  font-size: 21px;
}

.editor-panel > .notice {
  margin-top: 0;
}

.form-section-heading {
  border-top: 1px solid var(--border);
  margin-top: 30px;
  padding-top: 28px;
}

.form-section-heading h2 {
  margin-bottom: 10px;
}

.form-section-heading p {
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form-actions {
  display: flex;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.editor-aside {
  padding-top: 22px;
}

.editor-aside .feature-icon {
  margin-bottom: 24px;
}

.editor-aside h2 {
  font-size: 20px;
}

.editor-aside p {
  font-size: 15px;
  color: var(--muted);
}

.user-table th:first-child {
  width: 30%;
}

.user-table th:nth-child(2) {
  width: 24%;
}

.user-table th:nth-child(3) {
  width: 23%;
}

.user-table th:last-child {
  width: 23%;
}

.product-title {
  max-width: 950px;
  overflow-wrap: anywhere;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 28px;
  align-items: start;
}

.product-main {
  min-width: 0;
}

.product-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 26px 28px;
  margin-bottom: 24px;
  gap: 24px;
  font-size: 16px;
}

.product-facts > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.fact-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.product-facts strong {
  font-weight: 500;
}

.product-sidebar {
  position: sticky;
  top: 24px;
}

.sidebar-panel {
  padding: 26px;
}

.sidebar-panel .feature-icon {
  margin-bottom: 22px;
}

.sidebar-panel h2 {
  font-size: 22px;
}

.sidebar-panel p {
  font-size: 15px;
}

.sidebar-panel .button {
  font-size: 15px;
  padding-inline: 14px;
}

.sidebar-note {
  display: flex;
  gap: 12px;
  padding: 24px 4px;
  color: var(--muted);
}

.sidebar-note svg {
  color: var(--amber);
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.sidebar-note p {
  font-size: 13px;
  margin: 0;
}

.reading-controls {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.reading-controls .icon-button {
  font-size: 15px;
}

.leaflet-panel {
  overflow: hidden;
}

.leaflet-content {
  padding: 28px;
  font-size: 18px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  overflow-x: auto;
}

.leaflet-content[data-text-size="0"] {
  font-size: 16px;
}

.leaflet-content[data-text-size="2"] {
  font-size: 22px;
}

.leaflet-content[data-text-size="3"] {
  font-size: 26px;
}

.leaflet-content h1, .leaflet-content h2, .leaflet-content h3, .leaflet-content h4 {
  margin: 1.6em 0 0.8em;
  color: var(--text);
  font-size: 1.2em;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.leaflet-content > :first-child {
  margin-top: 0;
}

.leaflet-content p, .leaflet-content li {
  color: #d0dae1;
}

.leaflet-content a {
  text-decoration: underline;
}

.leaflet-content ul, .leaflet-content ol {
  padding-left: 1.5em;
}

.leaflet-content table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}

.leaflet-content td, .leaflet-content th {
  border: 1px solid var(--border);
  padding: 10px;
}

.packages-panel {
  margin-top: 24px;
  overflow: hidden;
}

.package-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 16px;
}

.package-list li {
  padding: 18px 28px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.package-list li:last-child {
  border-bottom: 0;
}

.selected-package {
  background: rgba(112, 216, 192, 0.031372549);
}

.selected-product {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 26px 30px;
  border: 1px solid #3a6257;
  border-left: 3px solid var(--accent);
  background: #1a302e;
  border-radius: 12px;
  margin-bottom: 28px;
}

.selected-product .eyebrow {
  font-size: 11px;
  margin-bottom: 8px;
}

.selected-product h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.selected-product p {
  color: #b2c9c4;
  margin: 0;
  font-size: 15px;
}

.bottom-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}

.error-panel {
  max-width: 680px;
  margin: 40px auto;
  padding: 44px;
  text-align: center;
}

.error-panel .eyebrow {
  justify-content: center;
}

.error-panel .feature-icon {
  margin-bottom: 24px;
}

.error-panel h1 {
  font-size: 32px;
}

.error-panel code {
  overflow-wrap: anywhere;
}

@media (min-width: 1400px) {
  .login-layout {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}
@media (max-width: 1100px) {
  .header-inner {
    padding-inline: 28px;
    gap: 20px;
  }
  .main-shell {
    padding: 36px 28px 48px;
  }
  .site-footer {
    margin-inline: 28px;
  }
  .login-layout {
    gap: 36px;
  }
  .login-panel {
    padding: 30px;
  }
  .pharmacy-identity {
    font-size: 12px;
  }
  .product-layout {
    grid-template-columns: minmax(0, 1fr) 245px;
    gap: 20px;
  }
  .sidebar-panel {
    padding: 22px;
  }
  .data-table th, .data-table td {
    padding-inline: 14px;
  }
  .editor-layout {
    gap: 28px;
  }
}
@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 8px 20px;
    padding-block: 12px;
  }
  .pharmacy-identity {
    order: 3;
    flex-basis: 100%;
    padding-bottom: 5px;
    font-size: 13px;
  }
  .partner-logo {
    max-height: 28px;
  }
  .login-layout {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: auto;
    gap: 30px;
    padding-top: 6px;
  }
  .login-intro h1 {
    font-size: 38px;
    margin: 16px 0;
  }
  .intro-copy {
    font-size: 16px;
    max-width: none;
    margin-bottom: 0;
  }
  .intro-features, .intro-note {
    display: none;
  }
  .login-panel {
    padding: 32px;
  }
  .login-panel .panel-symbol {
    float: right;
    width: 48px;
    height: 48px;
    margin: 0;
  }
  .page-emblem {
    display: none;
  }
  .guide-steps {
    gap: 22px;
  }
  .guide-steps li {
    flex-direction: column;
    gap: 10px;
  }
  .product-layout {
    grid-template-columns: 1fr;
  }
  .product-sidebar {
    order: -1;
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .sidebar-panel {
    padding: 0;
    border: 0;
    background: transparent;
  }
  .sidebar-panel .feature-icon, .sidebar-panel h2, .sidebar-panel p, .sidebar-note {
    display: none;
  }
  .sidebar-panel .button {
    font-size: 16px;
  }
  .product-sidebar > .button {
    align-self: end;
  }
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .editor-aside {
    display: none;
  }
  .user-table th:first-child {
    width: 28%;
  }
  .user-table th:nth-child(2), .user-table th:nth-child(3), .user-table th:last-child {
    width: 24%;
  }
  .site-footer {
    flex-direction: column;
    gap: 6px;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .header-inner {
    padding: 12px 20px;
    gap: 8px 14px;
  }
  .brand img {
    width: 122px;
  }
  .brand-tag {
    font-size: 9px;
  }
  .header-caption {
    display: none;
  }
  .header-nav {
    order: 2;
    flex-basis: 100%;
    margin-left: 0;
    gap: 2px;
  }
  .pharmacy-identity {
    order: 0;
    flex-basis: auto;
    margin-left: auto;
    max-width: 45%;
  }
  .nav-link {
    font-size: 12px;
    padding-inline: 8px;
  }
  .logout-form {
    margin-left: auto;
    padding-left: 6px;
  }
  .logout-form .icon-button {
    border: 0;
  }
  .main-shell {
    padding: 28px 20px 40px;
  }
  .site-footer {
    margin-inline: 20px;
    font-size: 11px;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
  h1 {
    font-size: 32px;
  }
  .page-heading p {
    font-size: 15px;
  }
  .login-intro h1 {
    font-size: 34px;
  }
  .login-panel {
    padding: 26px 22px;
  }
  .login-panel h2 {
    font-size: 27px;
  }
  .search-panel {
    padding: 22px;
  }
  .search-controls {
    flex-direction: column;
  }
  .search-controls > .button {
    min-height: 56px;
  }
  .search-input-wrap input {
    font-size: 16px;
    padding-left: 46px;
  }
  .search-input-wrap > svg {
    left: 15px;
  }
  .guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .guide-steps li {
    flex-direction: row;
    gap: 20px;
  }
  .search-guide {
    margin-top: 34px;
  }
  .guide-heading h2 {
    font-size: 22px;
  }
  .section-heading {
    padding: 20px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .section-heading h2 {
    font-size: 19px;
  }
  .data-table, .data-table tbody {
    display: block;
  }
  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .data-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px;
    gap: 10px 20px;
  }
  .data-table tbody tr:last-child {
    border-bottom: 0;
  }
  .data-table td, .data-table td:first-child, .data-table td:last-child {
    border: 0;
    padding: 0;
    font-size: 14px;
  }
  .data-table td:first-child, .data-table td:last-child {
    grid-column: 1/-1;
  }
  .data-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
    margin-bottom: 3px;
    text-align: left;
  }
  .data-table td:first-child::before {
    display: none;
  }
  .data-table td.price-cell {
    text-align: left !important;
  }
  .product-link {
    min-height: 52px;
    font-size: 17px;
  }
  .pagination-bar {
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  .pagination {
    gap: 4px;
    flex-wrap: wrap;
  }
  .pagination .page-link, .pagination .icon-button {
    min-width: 44px;
    width: 44px;
    min-height: 48px;
  }
  .heading-with-action {
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
  }
  .editor-panel {
    padding: 24px 20px;
  }
  .form-actions {
    flex-direction: column;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-actions .button {
    width: 100%;
  }
  .product-facts {
    padding: 24px;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .leaflet-content {
    padding: 24px;
  }
  .product-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar-panel {
    grid-row: auto;
  }
  .package-list li {
    padding-inline: 20px;
  }
  .selected-product {
    padding: 22px;
    gap: 16px;
  }
  .selected-product .feature-icon {
    display: none;
  }
  .bottom-actions {
    flex-direction: column;
  }
  .notice {
    font-size: 15px;
    padding: 18px;
  }
  .info-strip {
    padding: 18px;
  }
  .empty-state {
    padding: 40px 24px;
  }
  .error-panel {
    padding: 30px 22px;
    margin-top: 15px;
  }
}
@media (max-width: 380px) {
  .header-nav {
    flex-basis: 100%;
    margin-left: 0;
  }
  .pharmacy-identity {
    order: 0;
  }
  .pagination {
    gap: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}