:root {
  color-scheme: light;
  --bg: #f8f9fa;
  --surface: #ffffff;
  --surface-low: #f1f4f6;
  --surface-high: #e8edf2;
  --surface-accent: #dae2ff;
  --surface-accent-strong: #0c56d0;
  --surface-success: #e9f8f1;
  --surface-warning: #fff6de;
  --surface-danger: #fee2e2;
  --border: #dbe4e7;
  --border-strong: #abb3b7;
  --text: #2b3437;
  --text-soft: #586064;
  --text-faint: #7c878c;
  --primary: #0c56d0;
  --primary-dark: #004aba;
  --primary-text: #f8f7ff;
  --secondary: #536073;
  --accent: #615b77;
  --danger: #9f403d;
  --danger-strong: #b91c1c;
  --success: #14805a;
  --warning: #946200;
  --shadow-sm: 0 8px 24px rgba(43, 52, 55, 0.05);
  --shadow-md: 0 16px 40px rgba(43, 52, 55, 0.08);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --sidebar-width: 272px;
  --topbar-height: 64px;
  --control-height: 48px;
  --control-padding-x: 1rem;
  --control-padding-y: 0.85rem;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Pretendard", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl {
  margin-top: 0;
}

p:last-child,
ul:last-child,
ol:last-child,
dl:last-child {
  margin-bottom: 0;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  line-height: 1.35;
  letter-spacing: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  background: var(--bg);
}

.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: var(--sidebar-width);
  height: 100vh;
  padding: 1.5rem 1rem 1rem;
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.35rem 0.45rem 0.8rem;
}

.app-brand-mark {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 0.9rem;
  background: var(--primary);
  color: var(--primary-text);
  box-shadow: 0 10px 20px rgba(12, 86, 208, 0.18);
}

.app-brand-mark .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 20;
}

.app-brand-title {
  margin-bottom: 0.15rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.app-brand-subtitle {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-faint);
}

.app-nav {
  display: grid;
  gap: 0.25rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 44px;
  padding: 0.72rem 0.9rem;
  border-radius: 14px;
  color: var(--secondary);
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-item .material-symbols-outlined {
  font-size: 1.2rem;
}

.nav-item:hover {
  background: var(--surface-low);
  color: var(--text);
}

.nav-item.active {
  background: #edf3ff;
  color: var(--primary);
}

.nav-item.active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 20;
}

.nav-item-disabled {
  opacity: 0.55;
  cursor: default;
}

.nav-item-disabled:hover {
  background: transparent;
  color: var(--secondary);
}

.app-sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 0.85rem;
}

.sidebar-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 48px;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: #12181f;
  color: white;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.sidebar-primary-action:hover {
  opacity: 0.94;
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem;
  background: var(--surface-low);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.sidebar-user-avatar,
.topbar-user-avatar {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--surface-accent);
  color: var(--primary);
  font-weight: 800;
}

.sidebar-user-copy,
.topbar-user-copy {
  min-width: 0;
}

.sidebar-user-name,
.topbar-user-copy strong {
  display: block;
  margin: 0;
  font-weight: 700;
  font-size: 0.92rem;
}

.sidebar-user-meta,
.topbar-user-copy span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.76rem;
  color: var(--text-soft);
}

.sidebar-logout-form {
  margin: 0;
}

.app-main {
  margin-left: calc(var(--sidebar-width) + 18px);
  min-height: 100vh;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  min-height: var(--topbar-height);
  padding: 0 2rem;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(171, 179, 183, 0.22);
  backdrop-filter: blur(14px);
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: min(100%, 420px);
  padding: 0.8rem 1rem;
  background: var(--surface-low);
  border: 1px solid rgba(171, 179, 183, 0.2);
  border-radius: 16px;
  color: var(--text-soft);
}

.topbar-search input {
  border: none;
  background: transparent;
  padding: 0;
  width: 100%;
  outline: none;
  color: var(--text);
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.content {
  padding: 2rem;
}

.page-alert {
  margin-bottom: 1.25rem;
}

.page-header {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.page-header.split {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.page-header h2 {
  margin-bottom: 0.32rem;
  font-size: clamp(1.68rem, 1.85vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-header > div > .muted {
  max-width: 760px;
}

.page-header-card,
.panel,
.stat-card,
.summary-card {
  background: var(--surface);
  border: 1px solid rgba(171, 179, 183, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.2rem;
}

.page-header > *,
.page-header-card > *,
.panel > *,
.dashboard-layout > *,
.form-layout > *,
.detail-layout > *,
.side-stack > *,
.stack > *,
.contact-summary-stack > *,
.stats-grid > *,
.summary-grid > *,
.grid.two-up > *,
.form-row > *,
.filter-grid > *,
.filter-grid-wide > *,
.audit-filter-grid > *,
.compact-banner-metrics > *,
.inline-link-cluster > *,
.context-banner > *,
.context-banner-grid > *,
.info-card-grid > *,
.info-card-grid-two-up > *,
.signup-form-grid > *,
.activity-editor-body > *,
.activity-editor-grid > *,
.pricing-summary-list-tight > *,
.pricing-highlight-card > *,
.pricing-highlight-metrics > * {
  min-width: 0;
}

.panel.narrow {
  max-width: 920px;
}

.panel.compact-note,
.page-header-card.compact-note {
  max-width: 420px;
}

.panel-heading,
.feedback-header,
.actions,
.info-row,
.alert-title-row,
.context-banner-title-row,
.key-value-row,
.auth-meta-row,
.auth-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.panel-heading > *,
.feedback-header > *,
.actions > *,
.filter-actions > *,
.info-row > *,
.alert-title-row > *,
.context-banner-title-row > *,
.key-value-row > *,
.auth-meta-row > *,
.auth-footer-inner > *,
.topbar-right-cluster > *,
.topbar-context-row > * {
  min-width: 0;
}

.panel-heading {
  margin-bottom: 1rem;
}

.panel-heading.vertical-start,
.compact-panel-heading {
  align-items: flex-start;
}

.dashboard-layout,
.form-layout,
.detail-layout {
  display: grid;
  gap: 1.25rem;
}

.dashboard-layout {
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  align-items: start;
}

.form-layout {
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.9fr);
  align-items: start;
}

.detail-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
  align-items: start;
  margin-bottom: 1rem;
}

.side-stack,
.stack,
.contact-summary-stack {
  display: grid;
  gap: 1rem;
}

.compact-stack {
  gap: 0.8rem;
}

.stats-grid,
.summary-grid,
.grid.two-up {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-grid.seven-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-grid.summary-grid-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-summary-grid {
  margin-bottom: 1.25rem;
}

.grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card,
.summary-card {
  display: grid;
  gap: 0.45rem;
  min-height: 110px;
}

.stat-card span,
.summary-card span {
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-card strong,
.summary-card strong {
  font-size: clamp(1.18rem, 1.45vw, 1.65rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.stat-card p,
.summary-card p {
  margin: 0;
}

.stat-card.primary,
.summary-card.primary {
  background: linear-gradient(180deg, rgba(218, 226, 255, 0.8), #ffffff 100%);
}

.stat-card.danger,
.summary-card.danger {
  background: linear-gradient(180deg, rgba(254, 226, 226, 0.82), #ffffff 100%);
}

.stat-card.dark,
.emphasis-panel {
  background: #12181f;
  color: white;
  border-color: #12181f;
}

.stat-card.dark span,
.stat-card.dark p,
.emphasis-panel p,
.emphasis-panel .label {
  color: rgba(255, 255, 255, 0.7);
}

.emphasis-panel h3,
.emphasis-panel strong {
  color: white;
}

.total-emphasis-card h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  letter-spacing: -0.04em;
}

.compact-key-values {
  gap: 0.85rem;
}

.table-wrap {
  overflow-x: auto;
}

.compact-table-wrap table {
  min-width: 520px;
}

.table-wrap table {
  min-width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.95rem 0.75rem;
  border-bottom: 1px solid rgba(171, 179, 183, 0.2);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tbody tr:hover {
  background: rgba(241, 244, 246, 0.58);
}

.compact-history-table th,
.compact-history-table td {
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}

label {
  display: grid;
  gap: 0.48rem;
  font-size: 0.94rem;
  font-weight: 650;
  color: var(--text);
  min-width: 0;
}

input,
select,
textarea {
  width: 100%;
  min-height: var(--control-height);
  padding: var(--control-padding-y) var(--control-padding-x);
  border: 1px solid rgba(171, 179, 183, 0.35);
  border-radius: 14px;
  background: var(--surface-low);
  color: var(--text);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(12, 86, 208, 0.45);
  box-shadow: 0 0 0 4px rgba(12, 86, 208, 0.08);
  background: var(--surface);
}

input[readonly] {
  color: var(--text-soft);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  max-width: 100%;
  min-height: var(--control-height);
  padding: 0.78rem var(--control-padding-x);
  border: none;
  border-radius: 14px;
  background: var(--primary);
  color: var(--primary-text);
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
  transition: transform 140ms ease, opacity 140ms ease, background 140ms ease, color 140ms ease;
}

button .material-symbols-outlined,
.button-link .material-symbols-outlined {
  flex: 0 0 auto;
}

button:hover,
.button-link:hover {
  opacity: 0.95;
}

button:active,
.button-link:active {
  transform: translateY(1px);
}

.button-link.secondary,
button.secondary,
.sidebar-logout-form button {
  background: var(--surface-low);
  color: var(--text);
  border: 1px solid rgba(171, 179, 183, 0.28);
}

.button-link.danger,
button.danger {
  background: var(--surface-danger);
  color: var(--danger);
}

.button-link.button-disabled,
.button-disabled {
  opacity: 0.65;
  pointer-events: none;
}

.button-full {
  width: 100%;
}

.form-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-row.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.filter-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.filter-grid-wide {
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(140px, 1fr));
}

.filter-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  min-width: 0;
}

.checkbox-inline input,
.auth-checkbox input {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.eyebrow {
  margin-bottom: 0.45rem;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.muted {
  color: var(--text-soft);
}

.small {
  font-size: 0.9rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(218, 226, 255, 0.62);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
}

.pill.accent {
  background: rgba(97, 91, 119, 0.12);
  color: var(--accent);
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.timeline-groups {
  display: grid;
  gap: 1.2rem;
}

.feedback-list {
  display: grid;
  gap: 0.9rem;
}

.timeline-group {
  display: grid;
  gap: 1rem;
}

.feedback-item,
.contact-summary-card {
  border: 1px solid rgba(171, 179, 183, 0.25);
  border-radius: 18px;
  padding: 1rem 1.05rem;
  background: linear-gradient(180deg, rgba(241, 244, 246, 0.45), rgba(255, 255, 255, 0.92));
}

.feedback-header {
  align-items: flex-start;
}

.timeline-group h4 {
  margin: 0;
  padding-left: 0.05rem;
  font-size: 0.95rem;
  font-weight: 800;
}

.timeline-item.order.promo,
.timeline-item.promo,
.callout-accent,
.contact-card-primary {
  border-color: rgba(12, 86, 208, 0.18);
  background: linear-gradient(180deg, rgba(218, 226, 255, 0.5), rgba(255, 255, 255, 0.96));
}

.pricing-summary-list,
.key-value-list,
.contact-meta-list,
.compact-banner-metrics,
.inline-link-cluster,
.indicator-pair,
.row-action-group {
  display: grid;
  gap: 0.75rem;
}

.info-row {
  align-items: flex-start;
}

.info-row span,
.key-value-row .label,
.context-banner-grid .label {
  min-width: 112px;
  color: var(--text-soft);
}

.callout {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(171, 179, 183, 0.24);
  background: linear-gradient(180deg, var(--surface-warning), rgba(255, 255, 255, 0.95));
  color: var(--warning);
}

.subtle-callout {
  margin-top: 1rem;
  background: linear-gradient(180deg, rgba(241, 244, 246, 0.75), rgba(255, 255, 255, 0.98));
  color: var(--text);
}

.section-footnote {
  margin-top: 0.8rem;
}

.alert {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(239, 68, 68, 0.25);
  background: rgba(254, 226, 226, 0.68);
  color: var(--danger-strong);
}

.alert-success {
  border-color: rgba(20, 128, 90, 0.24);
  background: rgba(233, 248, 241, 0.9);
  color: var(--success);
}

.alert ul {
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
}

.alert p {
  margin: 0.4rem 0 0;
}

.inline-alert,
.compact-info {
  margin-bottom: 1rem;
}

.promo-note,
.compact-promo-banner {
  background: linear-gradient(180deg, rgba(218, 226, 255, 0.36), rgba(255, 255, 255, 0.94));
}

.compact-promo-banner {
  max-width: 360px;
}

.compact-banner-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.compact-banner-metrics span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.field-help {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-soft);
}

.field-error {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--danger-strong);
}

.signup-note-list {
  margin: 0.55rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.35rem;
}

.signup-panel {
  max-width: 980px;
}

.signup-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.1rem;
}

.signup-field {
  align-content: start;
}

.signup-field > span em {
  font-style: normal;
  color: var(--danger-strong);
}

.signup-field.has-error input,
.signup-field.has-error select,
.signup-field.has-error textarea {
  border-color: rgba(239, 68, 68, 0.86);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
  background: #fff7f7;
}

.signup-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.25rem;
}

.signup-actions .button-link {
  min-width: 180px;
  justify-content: center;
}

.success-panel {
  margin-top: 1rem;
  max-width: 980px;
  border-color: rgba(20, 128, 90, 0.22);
  background: linear-gradient(180deg, rgba(233, 248, 241, 0.88), rgba(255, 255, 255, 0.98));
}

.section-divider {
  padding-top: 0.4rem;
  border-top: 1px solid rgba(171, 179, 183, 0.18);
}

.section-divider-soft {
  padding-top: 0;
  border-top: none;
}

.section-divider h3,
.section-divider h4,
.section-divider p {
  margin-bottom: 0.25rem;
}

.compact-actions {
  gap: 0.75rem;
}

.stacked-actions,
.header-action-stack,
.quick-action-grid {
  display: grid;
  gap: 0.65rem;
}

.page-section-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.page-section-title .material-symbols-outlined,
.section-icon {
  color: var(--primary);
}

.audit-filter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1rem;
}

.audit-filter-grid > label {
  display: grid;
  align-content: start;
  gap: 0.38rem;
}

.audit-filter-grid > label > input,
.audit-filter-grid > label > select {
  min-height: 48px;
}

.audit-filter-grid > label .field-help {
  min-height: 1.1rem;
}

.field-help-placeholder {
  visibility: hidden;
}

.audit-filter-actions {
  align-items: flex-end;
}

.audit-filter-button-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.audit-filter-button-group .button-link,
.audit-filter-button-group button {
  min-width: 116px;
  min-height: 46px;
  padding: 0.85rem 1rem;
}

.audit-log-table {
  min-width: 1040px;
  table-layout: fixed;
}

.audit-log-table .audit-col-time {
  width: 15%;
}

.audit-log-table .audit-col-actor {
  width: 18%;
}

.audit-log-table .audit-col-action {
  width: 16%;
}

.audit-log-table .audit-col-target {
  width: 24%;
}

.audit-log-table .audit-col-status {
  width: 27%;
}

.audit-cell-stack {
  display: grid;
  gap: 0.35rem;
}

.audit-request-path {
  display: inline-block;
  max-width: 100%;
  padding: 0.35rem 0.5rem;
  border-radius: 10px;
  background: rgba(241, 244, 246, 0.9);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.79rem;
  line-height: 1.45;
  word-break: break-all;
}

.audit-change-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.audit-change-item {
  display: grid;
  gap: 0.3rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(171, 179, 183, 0.22);
  border-radius: 14px;
  background: rgba(248, 249, 250, 0.92);
}

.audit-change-field {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.audit-change-values {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  line-height: 1.5;
}

.audit-change-before,
.audit-change-after {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: rgba(218, 226, 255, 0.45);
}

.audit-change-before {
  background: rgba(241, 244, 246, 0.95);
  color: var(--text-soft);
}

.audit-change-after {
  background: rgba(233, 248, 241, 0.9);
  color: var(--success);
}

.audit-change-arrow {
  color: var(--text-faint);
  font-weight: 800;
}

.quick-action-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(171, 179, 183, 0.24);
  border-radius: 16px;
  background: var(--surface);
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}

.quick-action-link:hover {
  background: var(--surface-low);
}

.inline-link-cluster {
  margin-top: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-links-muted a,
.compact-links-muted span {
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 600;
}

.compact-links-muted .compact-link-nowrap {
  font-size: 0.76rem;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.key-value-row {
  align-items: flex-start;
}

.helper-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--text-soft);
  display: grid;
  gap: 0.45rem;
}

.table-empty,
.history-empty {
  color: var(--text-soft);
}

.context-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.8fr);
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(12, 86, 208, 0.12);
  background: linear-gradient(180deg, rgba(218, 226, 255, 0.58), rgba(255, 255, 255, 0.96));
}

.context-banner-empty {
  border-style: dashed;
  background: linear-gradient(180deg, rgba(241, 244, 246, 0.85), rgba(255, 255, 255, 0.98));
}

.context-banner-main,
.context-banner-side {
  display: grid;
  gap: 0.9rem;
}

.context-banner-title-row strong {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.context-banner-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.order-context-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.context-banner-grid span,
.context-banner-grid strong {
  display: block;
}

.context-banner-grid strong,
.context-banner-side strong {
  font-size: 0.96rem;
}

.info-card-grid {
  margin-bottom: 0.75rem;
}

.info-card-grid-two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.key-value-row-wide {
  grid-column: 1 / -1;
}

.inline-section-heading {
  gap: 0.9rem;
}

.inline-edit-trigger {
  overflow-wrap: anywhere;
}

.inline-section-read,
.inline-section-edit {
  gap: 1rem;
}

.inline-section-edit {
  display: none;
}

.inline-section.is-editing .inline-section-read {
  display: none;
}

.inline-section.is-editing .inline-section-edit {
  display: grid;
}

.inline-edit-note {
  margin-top: 0;
}

.pricing-panel .panel-heading > a {
  color: var(--primary);
  font-weight: 700;
}

.pricing-summary-list-tight {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.pricing-summary-list-tight .info-row {
  min-height: 100%;
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(171, 179, 183, 0.22);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(241, 244, 246, 0.55), rgba(255, 255, 255, 0.94));
}

.pricing-summary-list-tight .info-row span {
  min-width: 0;
  font-size: 0.8rem;
  font-weight: 700;
}

.pricing-summary-list-tight .info-row strong {
  min-width: 0;
  font-size: 0.96rem;
  line-height: 1.45;
  text-align: right;
  word-break: normal;
  overflow-wrap: anywhere;
}

.pricing-highlight-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.95fr);
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1.15rem 1.2rem;
  border-radius: 20px;
  border: 1px solid rgba(171, 179, 183, 0.24);
  background: linear-gradient(180deg, rgba(255, 246, 222, 0.92), rgba(255, 255, 255, 0.98));
}

.pricing-highlight-copy {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.pricing-highlight-copy strong {
  display: block;
  font-size: 1rem;
  line-height: 1.55;
  word-break: normal;
  overflow-wrap: anywhere;
}

.pricing-highlight-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.pricing-highlight-metrics > div {
  min-width: 0;
  padding: 0.8rem 0.85rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(171, 179, 183, 0.18);
}

.pricing-highlight-metrics span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.pricing-highlight-metrics strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--text);
  word-break: normal;
  overflow-wrap: anywhere;
}

.contacts-editor-list {
  display: grid;
  gap: 0.9rem;
}

.contact-editor-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(171, 179, 183, 0.25);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(241, 244, 246, 0.45), rgba(255, 255, 255, 0.96));
}

.contact-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.contact-delete-button {
  min-width: 96px;
}

.contact-editor-card.is-marked-for-delete {
  border-style: dashed;
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(180deg, rgba(254, 226, 226, 0.7), rgba(255, 255, 255, 0.96));
}

.contact-editor-card.is-marked-for-delete .contact-delete-note {
  color: var(--danger);
}

.contact-delete-note {
  margin: -0.15rem 0 0;
}

.contact-editor-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.inline-editor {
  margin-top: 1rem;
  border: 1px solid rgba(171, 179, 183, 0.24);
  border-radius: 18px;
  background: rgba(248, 249, 250, 0.9);
}

.inline-editor[open] {
  background: rgba(255, 255, 255, 0.98);
}

.inline-editor summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.05rem;
  font-weight: 750;
}

.inline-editor summary::-webkit-details-marker {
  display: none;
}

.inline-editor summary::after {
  content: "+";
  float: right;
  color: var(--primary);
}

.inline-editor[open] summary::after {
  content: "−";
}

.inline-editor > :not(summary) {
  padding: 0 1.05rem 1.05rem;
}

.inline-editor-spaced {
  margin-top: 1.2rem;
}

.activity-editor {
  border-radius: 22px;
  border: 1px solid rgba(171, 179, 183, 0.22);
  background: linear-gradient(180deg, rgba(241, 244, 246, 0.52), rgba(255, 255, 255, 0.98));
  box-shadow: var(--shadow-sm);
}

.activity-editor[open] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.94));
}

.activity-editor summary {
  position: relative;
  padding: 1.2rem 4.2rem 1.2rem 1.2rem;
}

.activity-editor summary::after {
  position: absolute;
  top: 1.15rem;
  right: 1.2rem;
  float: none;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(218, 226, 255, 0.9);
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 800;
}

.activity-editor > :not(summary) {
  padding: 0 1.2rem 1.2rem;
}

.activity-editor-summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.activity-editor-summary-copy {
  display: grid;
  gap: 0.45rem;
}

.activity-editor-summary-copy strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.activity-editor-eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.activity-editor-summary-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.activity-editor-body {
  display: grid;
  grid-template-columns: minmax(250px, 0.85fr) minmax(0, 1.15fr);
  gap: 1rem;
  align-items: start;
}

.activity-editor-form {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.activity-editor-top-row {
  grid-template-columns: minmax(220px, 0.95fr) minmax(180px, 0.72fr);
}

.activity-editor-callout {
  margin-top: 0;
  padding: 1.05rem 1.1rem;
  border-radius: 20px;
}

.activity-editor-callout-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  font-weight: 800;
}

.activity-editor-callout-title .material-symbols-outlined {
  font-size: 1.1rem;
  color: var(--primary);
}

.activity-editor-callout p {
  font-size: 0.92rem;
  line-height: 1.6;
}

.activity-editor-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.activity-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.activity-editor-grid label {
  height: 100%;
}

.activity-editor-grid textarea,
.activity-editor-grid input {
  background: var(--surface);
}

.activity-editor-grid textarea {
  min-height: 180px;
}

.activity-editor-actions {
  justify-content: flex-end;
}

.contact-meta-list span {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.inline-form-end {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.compact-inline-form {
  margin-top: 0.8rem;
}

.history-tabs-panel {
  margin-bottom: 1rem;
}

.history-tabs input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.history-tab-labels {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.history-tab-labels label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(171, 179, 183, 0.24);
  background: var(--surface-low);
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

#detail-tab-samples:checked ~ .history-tab-labels label[for="detail-tab-samples"],
#detail-tab-orders:checked ~ .history-tab-labels label[for="detail-tab-orders"],
#detail-tab-feedback:checked ~ .history-tab-labels label[for="detail-tab-feedback"],
#detail-tab-activities:checked ~ .history-tab-labels label[for="detail-tab-activities"] {
  background: #edf3ff;
  border-color: rgba(12, 86, 208, 0.22);
  color: var(--primary);
}

.history-tab-panel {
  display: none;
}

#detail-tab-samples:checked ~ .history-tab-panels .history-samples-panel,
#detail-tab-orders:checked ~ .history-tab-panels .history-orders-panel,
#detail-tab-feedback:checked ~ .history-tab-panels .history-feedback-panel,
#detail-tab-activities:checked ~ .history-tab-panels .history-activities-panel {
  display: block;
}

.mini-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(171, 179, 183, 0.14);
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 800;
}

.mini-indicator.is-active {
  background: rgba(12, 86, 208, 0.12);
  color: var(--primary);
}

.indicator-pair {
  gap: 0.45rem;
}

.row-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.row-action-group a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: var(--surface-low);
  color: var(--primary);
}

.row-action-group a:hover {
  background: #edf3ff;
}

.filter-inline-panel {
  margin-bottom: 1rem;
}

.filter-inline-form {
  display: grid;
  gap: 1rem;
}

/* Auth */
.auth-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.auth-shell {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-brand {
  margin-bottom: 2rem;
  text-align: center;
}

.auth-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.auth-brand-mark {
  color: var(--primary);
  font-size: 2.4rem;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 28;
}

.auth-brand h1 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.auth-brand p {
  margin: 0;
  color: var(--text-soft);
}

.auth-card {
  width: 100%;
  padding: 2.4rem;
  background: var(--surface);
  border: 1px solid rgba(171, 179, 183, 0.2);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.auth-card-error {
  border-color: rgba(239, 68, 68, 0.35);
}

.auth-card .eyebrow,
.auth-card h2 {
  text-align: center;
}

.auth-card h2 {
  margin-bottom: 0.35rem;
  font-size: 1.45rem;
  font-weight: 800;
}

.auth-subtitle {
  margin-bottom: 1.5rem;
  color: var(--text-soft);
}

.auth-form {
  display: grid;
  gap: 1.15rem;
}

.auth-form label {
  gap: 0.45rem;
}

.auth-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.auth-input {
  height: 50px;
  background: var(--surface-low);
  border: 1px solid transparent;
}

.auth-input.error {
  border-color: rgba(239, 68, 68, 0.9);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-soft);
}

.auth-link {
  color: var(--primary);
  font-weight: 600;
}

.auth-submit {
  height: 50px;
  margin-top: 0.15rem;
}

.auth-error {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid #ef4444;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.95rem;
  font-weight: 600;
}

.auth-support {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 1rem;
  color: var(--text-soft);
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.6;
}

.auth-support-warning {
  color: var(--warning);
}

.auth-footer {
  border-top: 1px solid rgba(171, 179, 183, 0.16);
  padding: 1.6rem 2rem 2rem;
}

.auth-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-soft);
}

.auth-footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.auth-footer-links a {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: rgba(171, 179, 183, 0.45);
}

@media (max-width: 1380px) {
  .stats-grid.seven-up,
  .summary-grid.summary-grid-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .context-banner,
  .order-context-grid {
    grid-template-columns: 1fr;
  }

  .context-banner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .dashboard-layout,
  .form-layout,
  .grid.two-up,
  .summary-grid,
  .summary-grid.summary-grid-wide,
  .filter-grid,
  .stats-grid,
  .stats-grid.seven-up,
  .form-row,
  .form-row.three-up,
  .page-header.split,
  .signup-form-grid,
  .context-banner,
  .context-banner-grid,
  .compact-banner-metrics,
  .inline-link-cluster,
  .activity-editor-grid,
  .activity-editor-body,
  .activity-editor-top-row,
  .info-card-grid-two-up,
  .pricing-summary-list-tight,
  .pricing-highlight-card,
  .pricing-highlight-metrics {
    grid-template-columns: 1fr;
  }

  .page-header.split {
    display: grid;
  }
}

@media (max-width: 980px) {
  .app-sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .app-main {
    margin-left: 0;
  }

  .app-topbar {
    position: static;
    padding: 1rem;
    min-height: auto;
    justify-content: flex-end;
  }

  .content {
    padding: 1rem;
  }

  .topbar-user {
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  .page-header h2 {
    font-size: 1.7rem;
  }

  .panel,
  .page-header-card,
  .stat-card,
  .summary-card,
  .auth-card {
    padding: 1.1rem;
  }

  .actions,
  .panel-heading,
  .filter-actions,
  .auth-meta-row,
  .auth-footer-inner,
  .info-row,
  .context-banner-title-row,
  .key-value-row,
  .history-tab-labels,
  .activity-editor-summary,
  .contact-editor-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .button-link,
  button,
  .sidebar-primary-action {
    width: 100%;
  }

  .stacked-actions,
  .quick-action-grid,
  .header-action-stack {
    width: 100%;
  }

  .row-action-group {
    width: 100%;
  }

  th,
  td {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }

  .auth-main {
    padding: 1.5rem 1rem;
  }

  .auth-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}


/* shell refresh: jinja visual consolidation */
.crm-shell-body {
  background:
    radial-gradient(circle at top left, rgba(12, 86, 208, 0.08), transparent 24%),
    radial-gradient(circle at bottom right, rgba(97, 91, 119, 0.08), transparent 18%),
    var(--bg);
}

.crm-shell-frame {
  position: relative;
  isolation: isolate;
}

.crm-shell-frame::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(248, 249, 250, 0.94), rgba(248, 249, 250, 0.88)),
    radial-gradient(circle at top left, rgba(12, 86, 208, 0.08), transparent 24%);
  pointer-events: none;
  z-index: -1;
}

.crm-sidebar {
  width: 272px;
  padding: 1.25rem 1rem 1rem;
  background: rgba(255, 255, 255, 0.82);
  border-right: 1px solid rgba(171, 179, 183, 0.18);
  backdrop-filter: blur(18px);
}

.sidebar-status-card {
  display: grid;
  gap: 0.34rem;
  padding: 1rem;
  border: 1px solid rgba(12, 86, 208, 0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(218, 226, 255, 0.54), rgba(255, 255, 255, 0.96));
  box-shadow: 0 16px 30px rgba(12, 86, 208, 0.06);
}

.sidebar-status-kicker,
.nav-group-label,
.topbar-context-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-status-kicker,
.nav-group-label {
  color: var(--text-faint);
}

.sidebar-status-card strong {
  font-size: 0.96rem;
  line-height: 1.28;
  letter-spacing: -0.018em;
}

.sidebar-status-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.46;
}

.app-nav-group {
  display: grid;
  gap: 0.55rem;
}

.app-nav-group-secondary {
  margin-top: -0.35rem;
}

.nav-item {
  justify-content: space-between;
  min-height: 54px;
  padding: 0.8rem 0.9rem;
  border-radius: 18px;
}

.nav-item-main {
  display: flex;
  align-items: center;
  gap: 0.78rem;
  min-width: 0;
}

.nav-item-copy {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.nav-item-copy > span {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.22;
  color: currentColor;
}

.nav-item-copy small {
  font-size: 0.72rem;
  line-height: 1.28;
  color: var(--text-faint);
}

.nav-item.active .nav-item-copy small,
.nav-item:hover .nav-item-copy small {
  color: currentColor;
}

.nav-item-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.5rem;
  padding: 0.18rem 0.46rem;
  border-radius: 999px;
  background: rgba(171, 179, 183, 0.14);
  color: var(--text-faint);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.nav-item.active .nav-item-badge {
  background: rgba(12, 86, 208, 0.12);
  color: var(--primary);
}

.sidebar-user-card-elevated {
  background: linear-gradient(180deg, rgba(241, 244, 246, 0.95), rgba(255, 255, 255, 0.98));
}

.crm-main {
  min-width: 0;
}

.crm-topbar {
  justify-content: space-between;
  align-items: flex-start;
  min-height: var(--topbar-height);
  padding: 1.15rem 2rem 1rem 2.6rem;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(171, 179, 183, 0.16);
  backdrop-filter: blur(18px);
}

.topbar-context {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  padding-left: 0.35rem;
}

.topbar-context-kicker {
  color: var(--primary);
}

.topbar-context-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.topbar-context-title {
  margin: 0;
  font-size: clamp(1.34rem, 1.5vw, 1.64rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.topbar-context-meta {
  margin: 0;
  max-width: 760px;
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.52;
}

.topbar-chip-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.topbar-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.65rem;
  padding: 0.18rem 0.56rem;
  border-radius: 999px;
  background: rgba(218, 226, 255, 0.56);
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.topbar-right-cluster {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.6rem;
  flex: 0 0 auto;
  max-width: 100%;
}

.topbar-user-card {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(171, 179, 183, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 24px rgba(43, 52, 55, 0.05);
}

.topbar-user-copy {
  display: grid;
  gap: 0;
  align-items: center;
  justify-items: start;
  text-align: left;
}

.topbar-user-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.topbar-user-copy strong {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.topbar-logout-form {
  margin: 0;
}

.topbar-logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  padding: 0.1rem 0.58rem;
  border: 1px solid rgba(12, 86, 208, 0.14);
  border-radius: 999px;
  background: rgba(12, 86, 208, 0.08);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
}

.topbar-logout-button:hover {
  background: rgba(12, 86, 208, 0.14);
  color: var(--primary-dark);
  text-decoration: none;
}

.crm-content {
  padding: 1.25rem 1.6rem 1.8rem 2.25rem;
  background: transparent;
}

.content-shell {
  max-width: 1440px;
  margin: 0 auto;
}

@media (max-width: 1366px) {
  .crm-topbar {
    flex-direction: column;
  }

  .topbar-right-cluster {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 1280px) {
  .filter-grid,
  .filter-grid-wide,
  .audit-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-actions,
  .panel-heading,
  .actions {
    align-items: flex-start;
  }
}

@media (max-width: 980px) {
  .crm-sidebar {
    width: 100%;
    padding-top: 1rem;
  }

  .crm-topbar {
    padding: 1rem;
  }

  .crm-content {
    padding: 1rem;
  }
}

@media (max-width: 720px) {
  .sidebar-status-card,
  .topbar-user-card {
    padding: 0.9rem;
  }

  .topbar-right-cluster,
  .topbar-actions,
  .topbar-context-row {
    width: 100%;
  }

  .topbar-actions .button-link,
  .topbar-shortcut-button {
    width: 100%;
  }
}


/* desktop density pass: local-only compactness tuning */
@media (min-width: 1121px) {
  :root {
    --sidebar-width: 256px;
    --topbar-height: 60px;
    --control-height: 44px;
    --control-padding-x: 0.92rem;
    --control-padding-y: 0.74rem;
  }

  body .app-sidebar {
    gap: 1.35rem;
    padding: 1.2rem 0.9rem 0.9rem;
  }

  body .app-brand {
    gap: 0.75rem;
    padding: 0.22rem 0.35rem 0.68rem;
  }

  body .sidebar-primary-action {
    min-height: 44px;
    padding: 0.78rem 0.9rem;
    border-radius: 15px;
  }

  body .app-main {
    margin-left: calc(var(--sidebar-width) + 14px);
  }

  body .crm-sidebar {
    width: var(--sidebar-width);
    padding: 1.05rem 0.9rem 0.9rem;
  }

  body .sidebar-status-card,
  body .sidebar-user-card,
  body .topbar-user-card {
    border-radius: 18px;
  }

  body .sidebar-status-card {
    padding: 0.9rem;
  }

  body .nav-item {
    min-height: 50px;
    padding: 0.72rem 0.8rem;
    border-radius: 16px;
  }

  body .nav-item-copy > span {
    font-size: 0.88rem;
  }

  body .nav-item-copy small {
    font-size: 0.7rem;
    line-height: 1.24;
  }

  body .nav-item-badge {
    min-height: 1.4rem;
    padding: 0.16rem 0.42rem;
  }

  body .crm-topbar {
    min-height: var(--topbar-height);
    padding: 0.95rem 1.6rem 0.85rem 1.95rem;
    gap: 0.85rem;
  }

  body .topbar-context {
    gap: 0.22rem;
    padding-left: 0.15rem;
  }

  body .topbar-context-row {
    gap: 0.72rem;
  }

  body .topbar-context-title {
    font-size: clamp(1.26rem, 1.35vw, 1.52rem);
  }

  body .topbar-context-meta {
    max-width: 700px;
    font-size: 0.8rem;
    line-height: 1.46;
  }

  body .topbar-chip-row {
    gap: 0.38rem;
  }

  body .topbar-chip {
    min-height: 1.55rem;
    padding: 0.14rem 0.5rem;
    font-size: 0.64rem;
  }

  body .topbar-right-cluster {
    gap: 0.5rem;
  }

  body .topbar-user-card {
    gap: 0.65rem;
    padding: 0.5rem 0.72rem;
  }

  body .topbar-user-copy strong {
    font-size: 0.84rem;
  }

  body .topbar-logout-button {
    min-height: 1.8rem;
    padding: 0.08rem 0.54rem;
    font-size: 0.7rem;
  }

  body .content,
  body .crm-content {
    padding: 1rem 1.35rem 1.5rem 1.75rem;
  }

  body .content-shell {
    max-width: 1480px;
  }

  body label {
    gap: 0.4rem;
    font-size: 0.9rem;
  }

  body .small {
    font-size: 0.84rem;
  }

  body .page-alert,
  body .detail-summary-grid,
  body .filter-inline-panel,
  body .section-footnote,
  body .inline-link-cluster {
    margin-bottom: 1rem;
  }

  body .page-header {
    gap: 0.65rem;
    margin-bottom: 1rem;
  }

  body .page-header h2 {
    margin-bottom: 0.24rem;
    font-size: clamp(1.52rem, 1.68vw, 1.92rem);
  }

  body .page-header-card,
  body .panel,
  body .stat-card,
  body .summary-card {
    padding: 1.05rem;
    border-radius: 20px;
  }

  body .panel-heading,
  body .feedback-header,
  body .actions,
  body .info-row,
  body .alert-title-row,
  body .context-banner-title-row,
  body .key-value-row,
  body .auth-meta-row,
  body .auth-footer-inner,
  body .topbar-context-row {
    gap: 0.8rem;
  }

  body .panel-heading,
  body .page-section-title {
    margin-bottom: 0.85rem;
  }

  body .dashboard-layout,
  body .form-layout,
  body .detail-layout {
    gap: 1rem;
  }

  body .side-stack,
  body .stack,
  body .contact-summary-stack,
  body .feedback-list,
  body .timeline-groups,
  body .timeline-group,
  body .pricing-summary-list,
  body .key-value-list,
  body .contact-meta-list,
  body .compact-banner-metrics,
  body .indicator-pair,
  body .row-action-group,
  body .compact-actions {
    gap: 0.75rem;
  }

  body .stats-grid,
  body .summary-grid,
  body .grid.two-up {
    gap: 0.75rem;
    margin-bottom: 0.8rem;
  }

  body .summary-card {
    min-height: 100px;
    gap: 0.35rem;
  }

  body .summary-card span,
  body .stat-card span,
  body .eyebrow {
    font-size: 0.72rem;
  }

  body .summary-card strong,
  body .stat-card strong {
    font-size: clamp(1.1rem, 1.3vw, 1.5rem);
  }

  body .pill {
    padding: 0.34rem 0.62rem;
    font-size: 0.78rem;
  }

  body .feedback-item,
  body .contact-summary-card,
  body .callout,
  body .alert {
    padding: 0.9rem 0.95rem;
    border-radius: 16px;
  }

  body .pricing-summary-list-tight .info-row,
  body .pricing-highlight-card,
  body .pricing-highlight-metrics > div,
  body .contact-editor-card,
  body .context-banner {
    border-radius: 16px;
  }

  body .pricing-summary-list-tight .info-row,
  body .pricing-highlight-metrics > div {
    padding: 0.78rem 0.82rem;
  }

  body .pricing-highlight-card {
    gap: 0.85rem;
    padding: 1rem 1.05rem;
  }

  body .context-banner {
    gap: 0.85rem;
    padding: 1rem 1.05rem;
    margin-bottom: 0.95rem;
    border-radius: 20px;
  }

  body .hospital-list-page {
    gap: 1.25rem;
  }

  body .hospital-list-page .hospital-list-header {
    gap: 0.85rem 1rem;
  }

  body .hospital-list-page .hospital-list-heading h1 {
    font-size: clamp(1.62rem, 1.72vw, 1.84rem);
  }

  body .hospital-list-page .hospital-list-heading p {
    margin-top: 0.35rem;
    font-size: 0.88rem;
  }

  body .hospital-list-page .hospital-list-header-actions,
  body .hospital-list-page .hospital-list-stats {
    gap: 0.7rem;
  }

  body .hospital-list-page .hospital-list-header-action {
    min-height: 2.55rem;
    padding: 0.65rem 0.95rem;
    border-radius: 0.9rem;
    font-size: 0.84rem;
  }

  body .hospital-list-page .hospital-list-header-action.is-primary {
    box-shadow: 0 12px 24px rgba(12, 86, 208, 0.14);
  }

  body .hospital-list-page .hospital-list-stat-card {
    min-height: 6.9rem;
    gap: 0.85rem;
    padding: 1.05rem 1.1rem;
  }

  body .hospital-list-page .hospital-list-stat-copy p {
    font-size: 0.68rem;
  }

  body .hospital-list-page .hospital-list-stat-copy h2 {
    font-size: clamp(1.42rem, 1.5vw, 1.76rem);
  }

  body .hospital-list-page .hospital-list-stat-copy h2 span {
    font-size: 0.88rem;
  }

  body .hospital-list-page .hospital-list-stat-caption {
    font-size: 0.76rem;
  }

  body .hospital-list-page .hospital-list-stat-icon {
    width: 2.7rem;
    height: 2.7rem;
  }

  body .hospital-list-page .hospital-list-filter-form {
    gap: 0.85rem;
    padding: 0.88rem;
  }

  body .hospital-list-page .hospital-list-filter-main {
    gap: 0.65rem;
  }

  body .hospital-list-page .hospital-list-search-field,
  body .hospital-list-page .hospital-list-select-field {
    min-height: 2.6rem;
    border-radius: 0.9rem;
  }

  body .hospital-list-page .hospital-list-search-field input,
  body .hospital-list-page .hospital-list-select-field select {
    font-size: 0.84rem;
  }

  body .hospital-list-page .hospital-list-search-field input {
    padding: 0.72rem 0.9rem 0.72rem 2.45rem;
  }

  body .hospital-list-page .hospital-list-table th,
  body .hospital-list-page .hospital-list-table td {
    padding: 0.86rem 0.88rem;
  }

  body .hospital-list-page .hospital-list-name-link,
  body .hospital-list-page .hospital-list-contact-name {
    font-size: 0.88rem;
  }

  body .hospital-list-page .hospital-list-note,
  body .hospital-list-page .hospital-list-contact-subline,
  body .hospital-list-page .hospital-list-activity-title,
  body .hospital-list-page .hospital-list-activity-meta,
  body .hospital-list-page .hospital-list-empty,
  body .hospital-list-page .hospital-list-filter-meta,
  body .hospital-list-page .hospital-list-pagination p {
    font-size: 0.76rem;
  }

  body .hospital-list-page .hospital-list-status-pill {
    min-width: 5rem;
    padding: 0.34rem 0.68rem;
    font-size: 0.68rem;
  }

  body .hospital-list-page .hospital-list-followup-badge {
    padding: 0.3rem 0.55rem;
    font-size: 0.72rem;
  }

  body .hospital-list-page .hospital-list-actions a,
  body .hospital-list-page .hospital-list-pagination-arrow,
  body .hospital-list-page .hospital-list-pagination-page {
    width: 1.85rem;
    height: 1.85rem;
  }

  body .hospital-list-page .hospital-list-pagination {
    padding: 0.9rem 1.2rem 1rem;
  }

  body .hospital-detail-page {
    gap: 1.2rem;
  }

  body .hospital-detail-page .stitch-hero {
    gap: 1.15rem;
    padding: 1.55rem;
    border-radius: 22px;
    box-shadow: 0 14px 30px rgba(12, 86, 208, 0.15);
  }

  body .hospital-detail-page .hero-pill-row-top {
    margin-bottom: 0.7rem;
  }

  body .hospital-detail-page .hero-pill {
    min-height: 1.8rem;
    padding: 0.34rem 0.68rem;
    font-size: 0.72rem;
  }

  body .hospital-detail-page .hospital-hero-main {
    gap: 0.75rem;
  }

  body .hospital-detail-page .hospital-hero h1 {
    font-size: clamp(1.78rem, 2.1vw, 2.22rem);
  }

  body .hospital-detail-page .hospital-hero-meta {
    gap: 0.55rem 0.85rem;
    margin-top: 0.75rem;
  }

  body .hospital-detail-page .hospital-hero-meta span {
    font-size: 0.8rem;
  }

  body .hospital-detail-page .hero-action-button {
    min-height: 2.55rem;
    padding: 0.68rem 0.92rem;
    border-radius: 0.9rem;
    font-size: 0.82rem;
  }

  body .hospital-detail-page .stitch-summary-grid {
    gap: 0.85rem;
  }

  body .hospital-detail-page .stitch-summary-card {
    border-radius: 16px;
  }

  body .hospital-detail-page .timeline-pagination,
  body .hospital-detail-page .recent-order-pagination {
    margin-top: 0.35rem;
  }

  body .sample-form-page {
    max-width: 1180px;
    padding-bottom: 5.3rem;
  }

  body .sample-form-page .sample-page-header {
    gap: 1rem;
    margin-bottom: 1rem;
  }

  body .sample-form-page .sample-page-subcopy {
    font-size: 0.88rem;
    line-height: 1.48;
  }

  body .sample-form-page .sample-header-actions,
  body .sample-form-page .sample-form-stack,
  body .sample-form-page .sample-side-stack {
    gap: 0.85rem;
  }

  body .sample-form-page .sample-header-button {
    min-height: 38px;
    min-width: 92px;
    padding-inline: 0.82rem;
    font-size: 0.78rem;
  }

  body .sample-form-page .sample-context-banner {
    gap: 0.75rem;
    padding: 0.8rem 0.92rem;
    margin-bottom: 1rem;
  }

  body .sample-form-page .sample-context-main {
    gap: 0.8rem;
  }

  body .sample-form-page .sample-context-mark {
    width: 2.45rem;
    height: 2.45rem;
    flex-basis: 2.45rem;
  }

  body .sample-form-page .sample-context-title-row strong,
  body .sample-form-page .sample-tip-title,
  body .sample-form-page .sample-record-copy strong,
  body .sample-form-page .sample-side-heading h3,
  body .sample-form-page .sample-rail-title h3 {
    font-size: 0.86rem;
  }

  body .sample-form-page .sample-context-meta,
  body .sample-form-page .sample-context-tip p,
  body .sample-form-page .sample-record-copy span:last-child,
  body .sample-form-page .sample-guide-list p,
  body .sample-form-page .sample-guide-list span,
  body .sample-form-page .sample-panel-footer a,
  body .sample-form-page .sample-history-table th,
  body .sample-form-page .sample-history-table td,
  body .sample-form-page .sample-history-empty-copy p {
    font-size: 0.75rem;
  }

  body .sample-form-page .sample-context-tip {
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    border-radius: 13px;
  }

  body .sample-form-page .sample-form-layout {
    gap: 0.95rem;
  }

  body .sample-form-page .sample-form-card,
  body .sample-form-page .sample-marketing-card {
    border-radius: 16px;
  }

  body .sample-form-page .sample-form-card {
    gap: 0.85rem;
    padding: 1rem;
  }

  body .sample-form-page .sample-section-heading {
    gap: 0.6rem;
  }

  body .sample-form-page .sample-section-heading h3 {
    font-size: 0.9rem;
  }

  body .sample-form-page .sample-fields-grid,
  body .sample-form-page .sample-fields-grid-dense {
    gap: 0.72rem 0.8rem;
  }

  body .sample-form-page .sample-field {
    gap: 0.32rem;
    padding: 0.72rem 0.78rem;
    border-radius: 14px;
    font-size: 0.84rem;
  }

  body .sample-form-page .sample-field-label,
  body .sample-form-page .sample-record-label {
    font-size: 0.64rem;
  }

  body .sample-form-page .sample-field input,
  body .sample-form-page .sample-field select,
  body .sample-form-page .sample-field textarea,
  body .sample-form-page .sample-search-option {
    font-size: 0.8rem;
  }

  body .sample-form-page .sample-field textarea {
    min-height: 112px;
  }

  body .sample-form-page .sample-field .field-help {
    min-height: 1rem;
    font-size: 0.74rem;
  }

  body .sample-form-page .sample-record-card {
    gap: 0.75rem;
    padding: 0.82rem 0.88rem;
    border-radius: 14px;
  }

  body .sample-form-page .sample-record-avatar {
    width: 2.1rem;
    height: 2.1rem;
  }

  body .sample-form-page .sample-side-heading,
  body .sample-form-page .sample-rail-title {
    padding: 0.9rem 0.9rem 0.8rem;
  }

  body .sample-form-page .sample-guide-list {
    gap: 0.85rem;
    padding: 0 0.9rem 1rem;
  }

  body .sample-form-page .sample-history-empty {
    min-height: 190px;
    padding: 0.9rem;
  }

  body .sample-form-page .sample-marketing-card {
    padding: 0.82rem 0.84rem;
    box-shadow: 0 14px 28px rgba(12, 86, 208, 0.18);
  }

  body .sample-form-page .sample-marketing-card h3 {
    font-size: 0.92rem;
  }

  body .sample-form-page .sample-marketing-card p,
  body .sample-form-page .sample-marketing-button,
  body .sample-form-page .sample-bottom-note {
    font-size: 0.74rem;
  }

  body .sample-form-page .sample-bottom-bar {
    gap: 0.7rem;
    margin-top: 0.9rem;
    padding: 0.64rem 0.78rem calc(0.64rem + env(safe-area-inset-bottom, 0px));
    border-radius: 16px 16px 0 0;
  }

  body .sample-form-page .sample-bottom-actions {
    gap: 0.65rem;
  }

  body .sample-form-page .sample-bottom-actions .button-link,
  body .sample-form-page .sample-bottom-actions button {
    min-height: 40px;
    min-width: 116px;
    padding-inline: 0.95rem;
    border-radius: 13px;
    font-size: 0.8rem;
  }

  body .order-form-page {
    max-width: 1188px;
    padding-bottom: 5.5rem;
  }

  body .order-form-page .order-page-header {
    gap: 1rem;
    margin-bottom: 1.05rem;
  }

  body .order-form-page .order-page-subcopy {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  body .order-form-page .order-header-actions,
  body .order-form-page .order-form-stack,
  body .order-form-page .order-rail {
    gap: 0.85rem;
  }

  body .order-form-page .order-header-button {
    min-height: 38px;
    min-width: 92px;
    padding-inline: 0.82rem;
    font-size: 0.78rem;
  }

  body .order-form-page .order-context-banner {
    gap: 0.75rem;
    padding: 0.84rem 0.92rem;
    margin-bottom: 1rem;
  }

  body .order-form-page .order-context-main,
  body .order-form-page .order-context-stats {
    gap: 0.8rem;
  }

  body .order-form-page .order-context-hospital,
  body .order-form-page .order-toggle-copy {
    gap: 0.8rem;
  }

  body .order-form-page .order-context-mark {
    width: 2.45rem;
    height: 2.45rem;
    flex-basis: 2.45rem;
    border-radius: 14px;
  }

  body .order-form-page .order-context-title-row strong,
  body .order-form-page .order-toggle-title,
  body .order-form-page .order-record-copy strong,
  body .order-form-page .order-rail-title h3,
  body .order-form-page .order-history-heading h3 {
    font-size: 0.88rem;
  }

  body .order-form-page .order-context-stats strong,
  body .order-form-page .order-context-side strong,
  body .order-form-page .order-note-sidecopy strong {
    font-size: 0.86rem;
  }

  body .order-form-page .order-context-meta-row,
  body .order-form-page .order-context-stats span:last-child,
  body .order-form-page .order-context-side p,
  body .order-form-page .order-toggle-copy p,
  body .order-form-page .order-history-detail,
  body .order-form-page .order-history-meta,
  body .order-form-page .order-history-title,
  body .order-form-page .order-history-empty p,
  body .order-form-page .order-inline-link,
  body .order-form-page .order-page-eyebrow,
  body .order-form-page .order-record-copy span:last-child {
    font-size: 0.75rem;
  }

  body .order-form-page .order-context-stats > div,
  body .order-form-page .order-context-side {
    padding: 0.82rem 0.88rem;
    border-radius: 16px;
  }

  body .order-form-page .order-main-grid {
    gap: 0.95rem;
  }

  body .order-form-page .order-form-card,
  body .order-form-page .order-rail-panel,
  body .order-form-page .order-total-card {
    border-radius: 18px;
  }

  body .order-form-page .order-form-card {
    gap: 0.85rem;
    padding: 1rem;
  }

  body .order-form-page .order-section-heading {
    gap: 0.62rem;
  }

  body .order-form-page .order-section-heading h3 {
    font-size: 0.9rem;
  }

  body .order-form-page .order-fields-grid,
  body .order-form-page .order-date-grid {
    gap: 0.72rem 0.8rem;
  }

  body .order-form-page .order-field-card {
    gap: 0.34rem;
    padding: 0.74rem 0.8rem;
    border-radius: 15px;
  }

  body .order-form-page .order-field-label,
  body .order-form-page .order-record-label,
  body .order-form-page .order-context-label,
  body .order-form-page .order-context-side-label {
    font-size: 0.64rem;
  }

  body .order-form-page .order-field-card input,
  body .order-form-page .order-field-card select,
  body .order-form-page .order-field-card textarea,
  body .order-form-page .order-note-surface input,
  body .order-form-page .order-search-option,
  body .order-form-page .order-status-option,
  body .order-form-page .order-choice-pill,
  body .order-form-page .order-amount-row {
    font-size: 0.8rem;
  }

  body .order-form-page .order-field-card textarea {
    min-height: 108px;
  }

  body .order-form-page .order-note-surface,
  body .order-form-page .order-amount-summary,
  body .order-form-page .order-toggle-card,
  body .order-form-page .order-record-card,
  body .order-form-page .order-history-heading {
    padding: 0.88rem 0.92rem;
    border-radius: 16px;
  }

  body .order-form-page .order-toggle-card,
  body .order-form-page .order-choice-group,
  body .order-form-page .order-total-meta,
  body .order-form-page .order-pricing-list {
    gap: 0.75rem;
  }

  body .order-form-page .order-choice-pill,
  body .order-form-page .order-status-option {
    min-height: 2.35rem;
    padding: 0.62rem 0.82rem;
    border-radius: 13px;
  }

  body .order-form-page .order-record-avatar,
  body .order-form-page .order-toggle-mark,
  body .order-form-page .order-history-icon {
    width: 2.1rem;
    height: 2.1rem;
    flex-basis: 2.1rem;
  }

  body .order-form-page .order-rail {
    top: calc(var(--topbar-height) + 1rem);
  }

  body .order-form-page .order-total-card {
    padding: 0.95rem;
    box-shadow: 0 14px 24px rgba(12, 86, 208, 0.14);
  }

  body .order-form-page .order-total-card h3 {
    font-size: clamp(1.48rem, 1.62vw, 1.9rem);
  }

  body .order-form-page .order-total-eyebrow,
  body .order-form-page .order-total-meta span,
  body .order-form-page .order-rail-actions button,
  body .order-form-page .order-rail-actions .button-link {
    font-size: 0.76rem;
  }

  body .order-form-page .order-rail-actions button,
  body .order-form-page .order-rail-actions .button-link {
    min-height: 40px;
    border-radius: 13px;
  }

  body.auth-page-showcase .auth-main-showcase {
    padding: clamp(0.9rem, 3.2vw, 1.8rem) 1.1rem 1.2rem;
  }

  body.auth-page-showcase .auth-layout-showcase {
    width: min(1140px, 100%);
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 390px);
    gap: 1rem;
  }

  body.auth-page-showcase .auth-showcase-panel,
  body.auth-page-showcase .auth-card-showcase {
    box-shadow: 0 18px 36px rgba(43, 52, 55, 0.07);
  }

  body.auth-page-showcase .auth-showcase-panel {
    gap: 1.2rem;
    padding: 1.55rem;
    border-radius: 28px;
  }

  body.auth-page-showcase .auth-showcase-brand {
    gap: 0.8rem;
  }

  body.auth-page-showcase .auth-showcase-mark {
    width: 2.95rem;
    height: 2.95rem;
    border-radius: 1rem;
  }

  body.auth-page-showcase .auth-showcase-brand h1 {
    font-size: clamp(1.62rem, 1.9vw, 2.02rem);
  }

  body.auth-page-showcase .auth-showcase-copy {
    gap: 0.6rem;
  }

  body.auth-page-showcase .auth-showcase-copy h2 {
    font-size: clamp(1.8rem, 2.25vw, 2.45rem);
  }

  body.auth-page-showcase .auth-showcase-copy p:last-child,
  body.auth-page-showcase .auth-showcase-grid p,
  body.auth-page-showcase .auth-showcase-note p,
  body.auth-page-showcase .auth-subtitle,
  body.auth-page-showcase .auth-support-inline p {
    font-size: 0.86rem;
    line-height: 1.52;
  }

  body.auth-page-showcase .auth-showcase-grid {
    gap: 0.8rem;
  }

  body.auth-page-showcase .auth-showcase-grid article {
    gap: 0.42rem;
    padding: 0.88rem;
    border-radius: 18px;
  }

  body.auth-page-showcase .auth-showcase-grid strong,
  body.auth-page-showcase .auth-showcase-note strong {
    font-size: 0.88rem;
  }

  body.auth-page-showcase .auth-showcase-note {
    gap: 0.8rem;
    padding: 0.9rem 0.95rem;
    border-radius: 18px;
  }

  body.auth-page-showcase .auth-card-showcase {
    gap: 0.95rem;
    padding: 1.7rem;
    border-radius: 24px;
  }

  body.auth-page-showcase .auth-card-head h2 {
    margin-bottom: 0.28rem;
  }

  body.auth-page-showcase .auth-form-showcase,
  body.auth-page-showcase .auth-actions-showcase {
    gap: 0.8rem;
  }

  body.auth-page-showcase .auth-input,
  body.auth-page-showcase .auth-submit-showcase {
    min-height: 44px;
  }

  body.auth-page-showcase .auth-submit-showcase {
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(12, 86, 208, 0.14);
  }

  body.auth-page-showcase .auth-footer-showcase {
    padding: 0 1.1rem 1.2rem;
  }

  body.auth-page-showcase .auth-footer-minimal {
    width: min(1140px, 100%);
    gap: 0.75rem 1rem;
  }
}

@media (min-width: 1280px) and (max-width: 1366px) {
  body .sample-form-page .sample-context-banner {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 290px);
  }

  body .sample-form-page .sample-form-layout {
    grid-template-columns: minmax(0, 1.72fr) minmax(240px, 0.78fr);
  }

  body .order-form-page .order-context-banner {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 285px);
  }

  body .order-form-page .order-main-grid {
    grid-template-columns: minmax(0, 1.72fr) minmax(240px, 0.78fr);
  }

  body .hospital-detail-page .stitch-layout-grid {
    grid-template-columns: minmax(0, 1.34fr) minmax(280px, 0.8fr);
  }
}
