:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef3f8;
  --border: #d8e2ee;
  --border-strong: #c6d3e3;
  --text: #132033;
  --muted: #5f7188;
  --muted-2: #7b8ca3;
  --nav: #0f1726;
  --nav-soft: #172234;
  --nav-border: #233147;
  --primary: #2457d6;
  --primary-soft: #ecf2ff;
  --accent: #3d9f7f;
  --success: #238856;
  --success-soft: #e8f7ef;
  --warning: #d98616;
  --warning-soft: #fff2df;
  --danger: #c53d3d;
  --danger-soft: #fff0f0;
  --shadow: 0 14px 40px rgba(15, 23, 38, 0.08);
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

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

a:hover,
a:focus,
a:active {
  text-decoration: none;
}

html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  color: var(--text);
  overflow-x: hidden;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
select, input, button { outline: none; }

#app { min-height: 100%; }
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  transition: grid-template-columns 180ms ease;
}
.app-shell.sidebar-collapsed {
  grid-template-columns: 54px minmax(0, 1fr);
}

.sidebar {
  background: linear-gradient(180deg, var(--nav) 0%, #111c2b 100%);
  border-right: 1px solid var(--nav-border);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  transition: width 180ms ease, padding 180ms ease;
}
.sidebar.collapsed {
  padding-inline: 6px;
  align-items: center;
}
.sidebar-toolbar {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  min-height: 42px;
  padding-inline: 46px;
}
.sidebar-branding {
  display: grid;
  gap: 2px;
  min-width: 0;
  width: 100%;
  text-align: center;
  justify-items: center;
}
.sidebar-toolbar.collapsed-only {
  justify-content: center;
  width: 100%;
}
.sidebar-title {
  margin: 0;
  padding: 0 4px;
  font-size: 0.7rem;
  line-height: 1.22;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8ea1bc;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
}
.sidebar-kicker {
  display: none;
}
.sidebar-toggle {
  position: absolute;
  top: 2px;
  right: 6px;
  width: 36px;
  height: 36px;
  justify-self: end;
  align-self: start;
  margin-top: 0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #cfd8e5;
  font-weight: 700;
  z-index: 2;
}
.sidebar-toggle:hover {
  background: rgba(255,255,255,0.08);
  color: white;
}
.sidebar-section { display: grid; gap: 8px; min-height: 0; }
.sidebar-section-grouped {
  align-content: start;
}
.sidebar-nav {
  display: grid;
  gap: 3px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}
.sidebar-group {
  display: grid;
  gap: 6px;
  padding: 8px 6px 4px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.sidebar-group:first-child {
  border-top: 0;
  padding-top: 2px;
}
.sidebar-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px;
  background: transparent;
  border: 0;
  color: #7f94b5;
  text-align: left;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sidebar-group-toggle:hover {
  color: #b5c4da;
}
.sidebar-group-chevron {
  font-size: 0.9rem;
  line-height: 1;
  color: rgba(198,208,223,0.7);
}
.sidebar-group-items {
  display: grid;
  gap: 4px;
}
.nav-subsection {
  display: grid;
  gap: 3px;
  padding-top: 4px;
}
.nav-subsection-label {
  padding: 0 10px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(198,208,223,0.52);
}
.nav-subsection.active .nav-subsection-label {
  color: rgba(233,239,248,0.78);
}
.nav-subsection-items {
  display: grid;
  gap: 3px;
}
.nav-item {
  width: 100%;
  display: block;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: #c6d0df;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.77rem;
  line-height: 1.18;
  min-height: 34px;
  position: relative;
}
.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 2px;
  border-radius: 999px;
  background: transparent;
}
.nav-item:hover { background: rgba(255,255,255,0.045); color: white; }
.nav-item.active {
  background: rgba(36, 87, 214, 0.12);
  border-color: rgba(89, 134, 255, 0.18);
  color: white;
}
.nav-item.active::before {
  background: #7ea2ff;
}
.nav-item-compact {
  padding-left: 22px;
  font-size: 0.74rem;
  color: #b8c5d8;
}
.nav-item-compact::before {
  left: 12px;
}
.nav-item-text {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar.collapsed .sidebar-title,
.sidebar.collapsed .sidebar-kicker,
.sidebar.collapsed .nav-item-text,
.sidebar.collapsed .sidebar-section,
.sidebar.collapsed .sidebar-branding {
  display: none;
}
.sidebar.collapsed .sidebar-toolbar {
  justify-content: center;
}

.sidebar.collapsed .sidebar-toggle {
  position: static;
  right: auto;
  margin: 0 auto;
}
.sidebar.collapsed .nav-item {
  display: none;
}
.muted-card { display: none; }
.muted-card strong { color: white; display: block; margin-bottom: 6px; }
.muted-card p:last-child { color: #9fb0c9; margin-bottom: 0; }

.main-shell {
  min-width: 0;
  padding: 10px 12px 18px;
  display: grid;
  gap: 10px;
}
.main-shell > * { min-width: 0; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.header-shell {
  padding: 10px 14px 10px;
  display: grid;
  gap: 8px;
}
.header-top-minimal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tighter-header-top {
  min-height: 34px;
}
.minimal-customer-inline {
  display: grid;
  gap: 0;
}
.minimal-customer-inline strong {
  font-size: 0.9rem;
  line-height: 1.05;
}
.page-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.header-copy { min-width: 0; }
.header-copy h2 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 880px;
}
.header-subcopy {
  margin: 2px 0 0;
  max-width: 900px;
  color: var(--muted);
  line-height: 1.36;
  font-size: 0.82rem;
}
.identity-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0;
}
.admin-link-button {
  border: 1px solid var(--border-strong);
  background: white;
  color: var(--text);
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: none;
}
.admin-link-button:hover {
  border-color: #aebfd6;
  background: var(--surface-2);
}
.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.filter-grid {
  display: grid;
  gap: 8px;
}
.filter-grid.customer-filters {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.filter-grid.admin-filters {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.minimal-filter-row {
  padding-top: 2px;
  border-top: 1px solid #f0f4f8;
}
.compact-row {
  gap: 6px;
}
.field {
  display: grid;
  gap: 3px;
}
.field span,
.upload-dropzone span {
  font-size: 0.66rem;
  color: var(--muted);
  font-weight: 600;
}
.field select,
.table-actions input,
.upload-dropzone {
  border: 1px solid var(--border);
  background: white;
  border-radius: 10px;
  min-width: 0;
}
.field select,
.table-actions input {
  height: 34px;
  padding: 0 10px;
  color: var(--text);
}
.compact-filter-field select { height: 30px; border-radius: 8px; font-size: 0.86rem; }

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.section-heading h3 {
  margin: 4px 0 0;
  font-size: 1.08rem;
}
.section-copy {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
  max-width: 880px;
  font-size: 0.88rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.kpi-card {
  padding: 18px;
  min-height: 140px;
}
.kpi-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.kpi-header span:first-child {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 600;
}
.kpi-card strong {
  display: block;
  margin-top: 18px;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.03em;
}
.kpi-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.pill.up { background: var(--success-soft); color: var(--success); }
.pill.neutral { background: var(--warning-soft); color: var(--warning); }
.pill.down { background: var(--danger-soft); color: var(--danger); }

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 14px;
}
.chart-card,
.table-card,
.schedule-card,
.admin-card,
.architecture-card {
  padding: 14px;
}
.chart-svg-shell { margin-top: 16px; position: relative; }
.chart-svg { width: 100%; height: auto; overflow: visible; }
.chart-axis { stroke: #d9e2ee; stroke-width: 1; }
.chart-label { font-size: 10px; fill: #7c8ca3; text-anchor: middle; }
.chart-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-line.purple { stroke: #2457d6; }
.chart-line.green { stroke: #3d9f7f; }
.chart-point { stroke: white; stroke-width: 2; }
.chart-point.purple { fill: #2457d6; }
.chart-point.green { fill: #3d9f7f; }
.chart-point:hover { r: 7; }
.chart-hover { position: absolute; top: 0; left: 0; transform: translate(0, -100%); background: rgba(19, 32, 51, 0.96); color: white; padding: 8px 10px; border-radius: 10px; font-size: 0.74rem; font-weight: 600; pointer-events: none; opacity: 0; transition: opacity 120ms ease; white-space: normal; min-width: 150px; max-width: 176px; line-height: 1.35; z-index: 3; box-shadow: 0 12px 26px rgba(15, 23, 42, 0.24); }
.chart-hover strong { display: block; margin-bottom: 3px; font-size: 0.76rem; }
.chart-hover span { display: block; color: rgba(255,255,255,0.88); }
.chart-hover.visible { opacity: 1; }
.chart-hit-area { fill: transparent; }
.chart-legend {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.legend-dot.purple { background: #2457d6; }
.legend-dot.green { background: #3d9f7f; }

.bar-chart-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.bar-row {
  display: grid;
  grid-template-columns: 1.2fr minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.bar-meta strong { display: block; font-size: 0.88rem; }
.bar-meta span { font-size: 0.84rem; color: var(--muted); }
.bar-track {
  height: 12px;
  background: #edf2f9;
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill { height: 100%; border-radius: inherit; }
.bar-fill.purple { background: linear-gradient(90deg, #2457d6, #5684ff); }
.bar-fill.rose { background: linear-gradient(90deg, #d44a6d, #f17d94); }
.bar-value { font-weight: 700; font-size: 0.85rem; }

.table-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.table-actions {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, max-content);
  gap: 8px;
  align-items: center;
  justify-content: end;
}
.table-actions > * { min-width: 0; }
.table-actions button,
.admin-actions-row button,
.modal-actions button,
.workflow-cta,
.sort-button {
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
}
.table-actions button {
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.table-actions button:hover,
.admin-actions-row button:hover,
.modal-actions button:hover,
.workflow-cta:hover,
.sort-button:hover { border-color: var(--border-strong); }
.modal-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: var(--border);
  background: white;
  color: var(--muted);
}
.modal-actions button:last-child:disabled {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  opacity: 0.38;
}
.admin-actions-row button:first-child,
.modal-actions button:last-child,
.workflow-cta,
.table-actions button:nth-last-child(2) {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.ghost-button,
.table-actions button:first-of-type,
.table-actions button:nth-of-type(2) {
  background: white !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.summary-strip.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mini-card,
.metric-tile,
.inner-card,
.note-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
}
.mini-card,
.metric-tile { padding: 14px; }
.mini-card span,
.metric-tile span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
}
.mini-card strong,
.metric-tile strong {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
}
.mini-card p { margin: 6px 0 0; color: var(--muted); font-size: 0.83rem; line-height: 1.45; }

.table-shell {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: auto;
  background: white;
}
.preview-shell { max-height: 320px; }
.table-shell table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}
.table-shell th,
.table-shell td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #edf1f7;
  font-size: 0.88rem;
  vertical-align: top;
}
.table-shell thead th {
  position: sticky;
  top: 0;
  background: #f8fbff;
  z-index: 1;
}
.table-shell tbody tr:hover { background: #fbfdff; }
.sort-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: left;
}
.sort-button.active { color: var(--primary); }
.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}
.pagination-row { display: flex; align-items: center; gap: 10px; }
.pagination-row button:disabled,
.admin-actions-row button:disabled,
.slot-button:disabled { opacity: 0.5; cursor: not-allowed; }

.schedule-grid,
.admin-grid,
.architecture-grid {
  display: grid;
  gap: 14px;
}
.schedule-grid,
.admin-grid,
.architecture-grid {
  display: grid;
  gap: 14px;
}
.schedule-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
.schedule-grid.full-width { grid-template-columns: minmax(0, 1fr); }
.schedule-grid.with-detail { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.85fr); }
.full-width-card { width: 100%; }
.week-list, .slot-grid { display: none; }
.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}
.schedule-heading-compact h3 { font-size: 1.08rem; }
.compact-calendar-toolbar { margin-top: 10px; }
.calendar-toolbar-left {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}
.calendar-nav {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.compact-field { min-width: 104px; }
.compact-field span { font-size: 0.68rem; }
.slim-button { padding: 8px 10px !important; height: 38px; }
.legend-row { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 0.77rem; }
.legend-row span { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch {
  width: 12px; height: 12px; border-radius: 4px; border: 1px solid rgba(0,0,0,0.05);
}
.calendar-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  user-select: none;
  -webkit-user-select: none;
}
.calendar-dow {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0 6px;
}
.calendar-day {
  min-height: 106px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: white;
  padding: 9px;
  display: grid;
  gap: 8px;
  align-content: start;
  box-shadow: 0 4px 12px rgba(15, 23, 38, 0.04);
  min-width: 0;
  user-select: none;
  -webkit-user-select: none;
}
.calendar-day.selectable { cursor: pointer; }
.calendar-day.selection-active { outline: 2px solid rgba(36, 87, 214, 0.28); background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%); }
.calendar-day.outside { background: #f8fafc; color: #98a7bb; }
.calendar-day.available { background: linear-gradient(180deg, #ffffff 0%, #f4fdf8 100%); border-color: #bfe8d0; }
.calendar-day.booked { background: linear-gradient(180deg, #ffffff 0%, #fff4f4 100%); border-color: #efc1c1; }
.calendar-day.tentative { background: linear-gradient(180deg, #ffffff 0%, #fff9ef 100%); border-color: #f4d4a2; }
.calendar-day.blocked { background: linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%); border-color: #d9e1ec; }
.calendar-day.past { background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%); border-color: #e1e7ef; opacity: 0.92; }
.calendar-day.owned { outline: 2px solid rgba(36, 87, 214, 0.2); }
.day-number {
  display: grid;
  grid-template-columns: minmax(1.2rem, max-content) minmax(0, 1fr);
  align-items: flex-start;
  gap: 6px;
  font-weight: 700;
  font-size: 0.74rem;
  min-width: 0;
  overflow: hidden;
}
.day-number > span:first-child {
  font-size: 0.84rem;
  min-width: 0;
}
.day-chip {
  font-size: 0.62rem;
  padding: 3px 6px;
  border-radius: 999px;
  font-weight: 700;
  justify-self: end;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.day-chip.available { background: var(--success-soft); color: var(--success); }
.day-chip.owned { background: #eaf1ff; color: #2457d6; }
.day-chip.booked { background: var(--danger-soft); color: var(--danger); }
.day-chip.tentative { background: var(--warning-soft); color: var(--warning); }
.day-chip.blocked { background: #edf2f7; color: #5d6d85; }
.day-chip.past { background: #f0f3f7; color: #7b889c; }
.day-notes { display: grid; gap: 6px; }
.day-notes div {
  font-size: 0.69rem;
  color: var(--text);
  line-height: 1.25;
  padding: 8px 9px;
  border-radius: 10px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(19,32,51,0.05);
  min-width: 0;
}
.day-notes strong,
.day-notes small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.day-notes strong { font-size: 0.69rem; }
.day-notes small { color: var(--muted); margin-top: 3px; font-size: 0.64rem; }
.slot-button {
  border: 0;
  background: var(--primary);
  color: white;
  padding: 8px 10px;
  border-radius: 9px;
  font-weight: 700;
  width: 100%;
  font-size: 0.78rem;
}
.workflow-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}
.note-panel {
  padding: 14px;
  margin-top: 14px;
}
.note-panel strong { display: block; margin-bottom: 6px; }
.schedule-detail-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.detail-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: white;
}
.detail-card h4 { margin: 0 0 6px; }
.detail-card p { margin: 0; color: var(--muted); line-height: 1.55; }

.booking-summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.booking-summary-card,
.booking-summary-empty {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
  padding: 12px 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
  overflow: hidden;
}
.booking-summary-card > div:first-child,
.booking-summary-empty > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}
.booking-summary-card.booked { border-color: #efc1c1; background: #fff8f8; }
.booking-summary-card.tentative { border-color: #f4d4a2; background: #fffaf2; }
.booking-summary-card.overdue { border-color: rgba(231, 91, 66, 0.26); background: #fff7f5; }
.booking-summary-card strong,
.booking-summary-empty strong {
  display: -webkit-box;
  font-size: 0.84rem;
  line-height: 1.25;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}
.booking-summary-card p,
.booking-summary-empty p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.booking-summary-label {
  display: block;
  font-size: 0.68rem;
  color: var(--muted-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.booking-summary-meta { display: flex; align-items: flex-start; justify-content: flex-end; }
.booking-status-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}
.booking-status-chip.deposit { background: var(--warning-soft); color: #8a5f14; }
.booking-status-chip.ok { background: var(--success-soft); color: var(--success); }
.booking-status-chip.overdue { background: #fff0f0; color: #b42318; }

.admin-grid { grid-template-columns: 1.35fr 0.85fr; align-items: start; }
.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.step {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  display: flex;
  gap: 10px;
  align-items: center;
}
.step span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.step p { margin: 0; font-size: 0.84rem; color: var(--muted); font-weight: 600; }
.step.active { border-color: #bdd0ff; background: var(--primary-soft); }
.step.active span { background: var(--primary); color: white; border-color: var(--primary); }
.admin-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
  gap: 10px;
  margin-top: 10px;
  align-items: start;
}
.upload-dropzone {
  position: relative;
  min-height: 92px;
  padding: 14px;
  display: grid;
  gap: 4px;
  align-content: start;
}
.upload-dropzone strong { font-size: 0.9rem; line-height: 1.3; }
.upload-dropzone small { color: var(--muted); line-height: 1.4; font-size: 0.82rem; }
.upload-dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.admin-actions-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.validation-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 14px; margin-top: 16px; }
.inner-card { padding: 16px; }
.inner-card h4 { margin: 0 0 12px; }
.banner {
  padding: 11px 12px;
  border-radius: 12px;
  font-weight: 600;
}
.success-banner { background: var(--success-soft); color: var(--success); }
.error-banner { background: var(--danger-soft); color: var(--danger); }
.issue-list { display: grid; gap: 8px; margin-top: 14px; }
.issue-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
}
.issue-row.warning { background: var(--warning-soft); color: #8a5f14; }
.issue-row.error { background: var(--danger-soft); color: var(--danger); }
.issue-row.info { background: #eef4ff; color: var(--primary); }
.issue-row strong { font-size: 0.78rem; }

.architecture-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.architecture-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}
.architecture-card li + li { margin-top: 8px; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 15, 28, 0.55);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 20;
}
.modal-card {
  width: min(520px, 100%);
  background: white;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(15,23,38,0.28);
}
.modal-card h3 { margin: 8px 0 8px; }
.modal-card p { color: var(--muted); }
.modal-message {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  background: var(--warning-soft);
  color: #744f12;
  line-height: 1.6;
  font-weight: 600;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 1280px) {
  .filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .calendar-toolbar, .calendar-toolbar-left { align-items: flex-start; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-grid, .schedule-grid, .admin-grid, .validation-grid, .architecture-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .app-shell.sidebar-collapsed { grid-template-columns: 1fr; }
  .main-shell { padding: 14px; }
  .header-topline, .table-topline, .calendar-toolbar, .calendar-toolbar-left { flex-direction: column; }
  .filter-grid, .admin-form-grid, .summary-strip, .summary-strip.compact, .stepper { grid-template-columns: 1fr; }
  .module-strip { padding-bottom: 6px; }
  .calendar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


@media (max-width: 1280px) {
  .filter-grid.customer-filters,
  .filter-grid.admin-filters {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 900px) {
  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .customer-identity {
    min-width: 0;
    width: 100%;
  }

  .admin-link-button {
    width: 100%;
  }
}

.thin-filter-row { margin-top: 2px; }
body.calendar-dragging { cursor: grabbing; }
body.calendar-dragging * { user-select: none !important; -webkit-user-select: none !important; }


@media (max-width: 900px) {
  .header-top-minimal,
  .page-heading-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-top-actions,
  .admin-link-button {
    width: 100%;
  }

  .booking-summary-strip {
    grid-template-columns: 1fr;
  }
}

.admin-single-card { display: grid; gap: 10px; }
.audit-shell { margin-top: 4px; }
.validation-grid.single-stack { grid-template-columns: 1fr; }
.compact-metrics { margin-top: 10px; }


.header-shell.admin {
  padding: 6px 12px 8px;
  gap: 4px;
}

.header-shell.admin .tighter-header-top {
  min-height: 24px;
  align-items: center;
}

.header-shell.admin .header-copy h2 {
  font-size: 0.92rem;
  line-height: 1.06;
}

.header-shell.admin .header-subcopy {
  font-size: 0.72rem;
  margin-top: 1px;
  max-width: 720px;
  line-height: 1.3;
}

.header-shell.admin .page-heading-row {
  gap: 4px;
}

.header-shell.admin .identity-label {
  font-size: 0.58rem;
}

.header-shell.admin .minimal-customer-inline strong {
  font-size: 0.86rem;
}

.header-shell.admin .admin-link-button {
  height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 0.82rem;
}

.header-shell.admin .minimal-page-row {
  align-items: flex-start;
}

.header-shell.admin .header-copy {
  display: grid;
  gap: 1px;
}

.admin-card .section-heading {
  gap: 10px;
}

.admin-card .section-heading h3 {
  margin-top: 0;
  font-size: 0.98rem;
}

.admin-card .eyebrow {
  font-size: 0.68rem;
}

.admin-card .field span,
.admin-card .upload-dropzone span {
  font-size: 0.64rem;
}

.admin-card .field select {
  height: 38px;
}

.pager-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0 !important;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}

.compact-calendar-toolbar .calendar-nav {
  gap: 6px;
}

.compact-calendar-toolbar .compact-field {
  min-width: 96px;
}

.compact-calendar-toolbar .compact-field select {
  height: 32px;
}

.admin-link-button,
.nav-item,
.sidebar-toggle,
.sort-button {
  text-decoration: none;
}

.sidebar a, .main-shell a, .header-shell a { text-decoration: none !important; }


.header-shell.admin {
  padding: 8px 12px 8px;
  gap: 6px;
}
.header-shell.admin .header-copy h2 {
  font-size: 0.98rem;
}
.header-shell.admin .header-subcopy {
  font-size: 0.76rem;
}
.dataset-source {
  margin: 4px 0 0;
  font-size: 0.72rem;
  color: var(--muted-2);
}
.dataset-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.dataset-notes span {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.7rem;
  color: var(--muted);
}


.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 0;
}
.admin-topbar-inline {
  display: grid;
  gap: 0;
}
.admin-topbar-inline strong {
  font-size: 0.94rem;
  line-height: 1.08;
}
.admin-main-shell {
  gap: 8px;
}
.admin-single-card {
  gap: 8px;
}
.admin-card {
  padding: 14px 16px;
}
.admin-card .section-copy {
  max-width: 760px;
}
.stepper {
  margin-top: 6px;
}
.step {
  padding: 8px 10px;
}
.admin-form-grid {
  margin-top: 8px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 280px;
}
.upload-dropzone {
  min-height: 78px;
  padding: 12px;
}
.admin-actions-row {
  margin-top: 8px;
}
.validation-grid {
  margin-top: 12px;
}
.this-month-button {
  height: 38px;
  padding: 0 12px !important;
  border-radius: 8px;
  font-size: 0.82rem;
  white-space: nowrap;
}
@media (max-width: 1240px) {
  .table-actions {
    grid-template-columns: minmax(220px, 1fr) repeat(2, max-content);
  }
  .table-actions button:last-child {
    grid-column: 3 / 4;
  }
}
@media (max-width: 1100px) {
  .admin-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .upload-dropzone {
    grid-column: 1 / -1;
  }
}
@media (max-width: 900px) {
  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .table-actions {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
  .table-actions button,
  .table-actions input {
    width: 100%;
  }
}


.booking-summary-sku {
  margin-top: 6px !important;
  color: var(--text) !important;
  font-size: 0.76rem !important;
  font-weight: 600;
}

.modal-field {
  margin-top: 14px;
}

.modal-field select {
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 10px;
  background: white;
}

.header-shell.admin {
  padding: 10px 14px;
  gap: 8px;
}

.header-shell.admin .tighter-header-top {
  min-height: 34px;
}

.header-shell.admin .minimal-customer-inline strong {
  font-size: 0.96rem;
}

.header-shell.admin .header-copy h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.header-shell.admin .header-subcopy {
  margin: 4px 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  max-width: 820px;
}

.admin-main-shell {
  gap: 10px;
}

.admin-card {
  padding: 14px 16px;
}

.lifecycle-section,
.exception-section,
.milestone-section {
  padding: 16px;
}

.exception-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.exception-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: var(--surface-2);
}
.exception-card.critical { background: #fff5f5; border-color: #f3c4c4; }
.exception-card.warning { background: #fffaf0; border-color: #f3dcc0; }
.exception-card.info { background: #f5f8ff; border-color: #cfdcff; }
.exception-label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(19,32,51,0.06);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.exception-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.2;
}
.exception-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.lifecycle-section { margin-top: 14px; }
.lifecycle-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.lifecycle-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: var(--surface-2);
}
.lifecycle-card.on-time { border-color: #cfe9dc; }
.lifecycle-card.watch { border-color: #f1dfbd; }
.lifecycle-card.queued { border-color: #dbe4f0; }
.lifecycle-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.lifecycle-kicker {
  display: block;
  color: var(--muted-2);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.lifecycle-topline strong {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
}
.lifecycle-topline p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}
.lifecycle-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}
.lifecycle-meta small { color: var(--muted); font-size: 0.76rem; }
.stage-chip,
.status-badge,
.profile-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}
.stage-chip.on-time,
.status-badge.on-time { background: var(--success-soft); color: var(--success); }
.stage-chip.watch,
.status-badge.at-risk { background: var(--warning-soft); color: #8a5f14; }
.stage-chip.queued,
.status-badge.delayed { background: var(--danger-soft); color: var(--danger); }
.lifecycle-track {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px;
}
.lifecycle-step {
  display: grid;
  gap: 8px;
  justify-items: center;
  position: relative;
  text-align: center;
}
.lifecycle-step::before {
  content: '';
  position: absolute;
  top: 8px;
  left: calc(-50% + 8px);
  width: calc(100% - 16px);
  height: 2px;
  background: var(--border);
}
.lifecycle-step:first-child::before { display: none; }
.lifecycle-step i {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid var(--border-strong);
  background: white;
  position: relative;
  z-index: 1;
}
.lifecycle-step.done::before,
.lifecycle-step.active::before { background: #86aef8; }
.lifecycle-step.done i,
.lifecycle-step.active i { border-color: #5684ff; background: #5684ff; }
.lifecycle-step span {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.25;
}
.lifecycle-step.active span,
.lifecycle-step.done span { color: var(--text); font-weight: 600; }

.milestone-section { margin-top: 14px; }
.milestone-shell {
  margin-top: 14px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.milestone-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: white;
}
.milestone-table th,
.milestone-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf1f7;
  text-align: left;
  vertical-align: top;
  font-size: 0.86rem;
}
.milestone-table th {
  background: #f8fbff;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.milestone-table td strong { display: block; margin-bottom: 4px; }
.milestone-table td span { color: var(--muted); }
.status-badge {
  white-space: nowrap;
}
.status-badge.delayed { background: var(--danger-soft); color: var(--danger); }
.status-badge.on-time { background: var(--success-soft); color: var(--success); }
.status-badge.at-risk { background: var(--warning-soft); color: #8a5f14; }

.admin-tools-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 12px;
  margin-top: 12px;
}
.admin-tool-card {
  display: grid;
  gap: 12px;
}
.admin-tool-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.admin-tool-heading h4 {
  margin: 4px 0 0;
  font-size: 1rem;
}
.profile-chip {
  background: var(--primary-soft);
  color: var(--primary);
}
.profile-block {
  display: grid;
  gap: 8px;
}
.profile-block strong,
.rule-list,
.mapping-tag-list,
.profile-list-inline,
.mapping-form-grid,
.compact-copy { margin: 0; }
.rule-list {
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
  line-height: 1.45;
}
.mapping-tag-list,
.profile-list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mapping-tag-list span,
.profile-mini {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}
.profile-mini.active {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: #c8d8ff;
}
.mapping-form-grid {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1fr) 150px;
  gap: 8px;
  align-items: end;
}
.mapping-form-grid input {
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
}
.mapping-shell {
  margin-top: 0;
}
.small-banner {
  padding: 10px 12px;
  font-size: 0.82rem;
}

@media (max-width: 1280px) {
  .exception-grid,
  .admin-tools-grid {
    grid-template-columns: 1fr;
  }
  .mapping-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .lifecycle-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lifecycle-step::before {
    display: none;
  }
  .lifecycle-topline {
    flex-direction: column;
  }
  .mapping-form-grid {
    grid-template-columns: 1fr;
  }
}



.inventory-rollup-card {
  padding: 16px 18px 18px;
  display: grid;
  gap: 14px;
}

.inventory-rollup-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.inventory-status-stack {
  display: grid;
  gap: 12px;
}

.inventory-status-panel,
.inventory-province-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
  overflow: hidden;
}

.inventory-status-panel > summary,
.inventory-province-card > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.inventory-status-panel > summary::-webkit-details-marker,
.inventory-province-card > summary::-webkit-details-marker {
  display: none;
}

.inventory-status-panel > summary {
  padding: 14px 16px;
}

.inventory-status-copy {
  display: grid;
  gap: 4px;
}

.inventory-status-copy strong {
  font-size: 1.1rem;
  line-height: 1.1;
}

.inventory-status-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  max-width: 780px;
}

.inventory-status-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.inventory-status-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: #eef3ff;
  border: 1px solid #d6e1ff;
  color: #355293;
  font-weight: 700;
  font-size: 0.76rem;
}

.inventory-status-panel.not-expired {
  border-color: #cfe7d8;
  background: #f7fcf9;
}

.inventory-status-panel.not-expired .inventory-status-label {
  background: #e8f7ef;
  color: #1d7c4f;
}

.inventory-status-panel.pending-expiry {
  border-color: #ead7ad;
  background: #fffaf0;
}

.inventory-status-panel.pending-expiry .inventory-status-label {
  background: #fff1d8;
  color: #946109;
}

.inventory-status-panel.expired {
  border-color: #efc3c3;
  background: #fff7f7;
}

.inventory-status-panel.expired .inventory-status-label {
  background: #ffe8e8;
  color: #b23b3b;
}

.inventory-province-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  padding: 0 16px 16px;
}

.inventory-province-card {
  background: white;
}

.inventory-province-card > summary {
  padding: 12px 14px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.inventory-province-card > summary strong {
  font-size: 0.96rem;
}

.inventory-province-card > summary span {
  color: var(--muted);
  font-weight: 700;
}

.inventory-product-list {
  display: grid;
}

.inventory-product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px 14px;
  align-items: start;
  border-top: 1px solid #edf2f8;
}

.inventory-product-row:first-child {
  border-top: 0;
}

.inventory-product-row span {
  color: var(--text);
  line-height: 1.38;
  font-size: 0.88rem;
}

.inventory-product-row strong {
  white-space: nowrap;
  font-size: 0.84rem;
}

@media (max-width: 1080px) {
  .inventory-rollup-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .inventory-rollup-card {
    padding: 14px;
  }

  .inventory-rollup-metrics {
    grid-template-columns: 1fr;
  }

  .inventory-status-panel > summary,
  .inventory-province-card > summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .inventory-product-row {
    grid-template-columns: 1fr;
  }
}

.admin-heading-tight {
  margin-bottom: 2px;
}

.admin-overview-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-overview-strip article,
.published-state-grid > div,
.diff-row {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}

.admin-overview-strip article {
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}

.admin-overview-strip span,
.published-state-grid span {
  color: var(--muted-2);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-overview-strip strong,
.published-state-grid strong {
  font-size: 0.95rem;
  line-height: 1.2;
}

.compact-admin-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr) minmax(280px, 320px);
}

.compact-dropzone {
  min-height: 84px;
}

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

.published-state-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.published-state-grid > div {
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}

.diff-grid {
  margin-bottom: 6px;
}

.diff-sample-list {
  display: grid;
  gap: 8px;
}

.diff-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  padding: 10px 12px;
  align-items: start;
}

.diff-row strong {
  color: var(--text);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.diff-row span {
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

@media (max-width: 1280px) {
  .admin-overview-strip,
  .admin-tools-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .admin-overview-strip,
  .published-state-grid,
  .admin-tools-grid-2,
  .compact-admin-grid {
    grid-template-columns: 1fr;
  }

  .diff-row {
    grid-template-columns: 1fr;
  }
}

.amber-chip {
  background: rgba(191, 125, 13, 0.12);
  color: #9a6809;
}

.history-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #fbfcfd;
}

.history-row strong,
.unresolved-row strong {
  display: block;
  font-size: 13px;
  color: #0f172a;
}

.history-row span,
.unresolved-row span {
  display: block;
  font-size: 12px;
  color: #475569;
  margin-top: 2px;
}

.history-current {
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  padding: 7px 10px;
  border-radius: 999px;
}

.history-rollback {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: white;
  color: #0f172a;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.unresolved-mapping-box {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.unresolved-mapping-box h5 {
  margin: 0 0 10px;
  font-size: 13px;
  color: #0f172a;
}

/* v23 admin cleanup */
.admin-workbench-card {
  gap: 12px;
}

.admin-heading-compact h3 {
  margin-bottom: 4px;
}

.compact-strip {
  gap: 8px;
}

.compact-strip article {
  padding: 10px 12px;
}

.admin-workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.92fr);
  gap: 14px;
  align-items: start;
}

.admin-workbench-main,
.admin-workbench-side,
.admin-support-grid,
.admin-tools-grid,
.admin-tools-grid-2 {
  align-items: start;
}

.admin-workbench-main,
.admin-workbench-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.admin-workbench-side .admin-tool-card,
.admin-support-grid .admin-tool-card {
  height: auto;
}

.compact-stepper {
  margin-top: 0;
}

.compact-stepper .step {
  min-height: 54px;
}

.cleaner-admin-grid {
  margin-top: 0;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(250px, 290px);
  gap: 8px;
}

.cleaner-dropzone {
  min-height: 74px;
  padding: 11px 12px;
}

.cleaner-dropzone strong {
  font-size: 0.88rem;
}

.cleaner-dropzone small {
  font-size: 0.78rem;
  line-height: 1.35;
}

.compact-actions-row {
  margin-top: 0;
}

.compact-validation-grid {
  margin-top: 0;
  gap: 12px;
}

.compact-issue-list {
  margin-top: 10px;
}

.compact-unresolved-box {
  margin-top: 12px;
}

.compact-history-list {
  margin-top: 10px;
}

.compact-preview-card {
  min-width: 0;
}

.compact-preview-shell,
.mapping-shell {
  max-height: 280px;
  overflow: auto;
}

.admin-support-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
}

.admin-support-grid .mapping-shell {
  max-height: 240px;
}

.admin-tool-card {
  gap: 10px;
}

.admin-tool-heading {
  gap: 8px;
}

.admin-tool-heading h4 {
  font-size: 0.98rem;
}

.mapping-form-grid {
  grid-template-columns: 145px minmax(0, 1fr) minmax(0, 1fr) 132px;
  gap: 8px;
}

.mapping-form-grid .workflow-cta {
  width: 100%;
  justify-content: center;
}

.history-list {
  margin-top: 10px;
  max-height: 260px;
  overflow: auto;
  padding-right: 2px;
}

.history-row {
  padding: 10px 12px;
}

.history-row,
.diff-row {
  min-width: 0;
}

.diff-sample-list {
  max-height: 220px;
  overflow: auto;
  padding-right: 2px;
}

.preview-shell table,
.mapping-shell table {
  min-width: 100%;
}

@media (max-width: 1320px) {
  .admin-workbench-grid {
    grid-template-columns: 1fr;
  }
  .admin-support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .cleaner-admin-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cleaner-admin-grid .upload-dropzone {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .compact-strip,
  .cleaner-admin-grid,
  .published-state-grid,
  .mapping-form-grid,
  .stepper {
    grid-template-columns: 1fr;
  }

  .admin-actions-row {
    flex-direction: column;
  }

  .admin-actions-row button {
    width: 100%;
  }
}


/* v24 admin mapping cleanup */
.mapping-form-grid {
  display: grid;
  grid-template-columns: minmax(150px, 180px) minmax(0, 1fr) minmax(0, 1fr) max-content;
  gap: 10px;
  align-items: end;
}

.mapping-form-grid .field {
  min-width: 0;
}

.mapping-form-grid .field input,
.mapping-form-grid .field select {
  width: 100%;
}

.mapping-form-grid .mapping-save-btn,
.mapping-form-grid .workflow-cta {
  width: auto;
  min-width: 152px;
  height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  white-space: nowrap;
  justify-self: end;
  align-self: end;
}

.mapping-shell table th,
.mapping-shell table td {
  white-space: nowrap;
}

.mapping-shell {
  overflow-x: auto;
}

@media (max-width: 1180px) {
  .mapping-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mapping-form-grid .mapping-save-btn,
  .mapping-form-grid .workflow-cta {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .mapping-form-grid {
    grid-template-columns: 1fr;
  }
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.login-shell {
  width: min(920px, 100%);
}

.login-card {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 0;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(198, 211, 227, 0.8);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.login-panel {
  min-height: 560px;
  padding: 32px;
}

.login-form-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.login-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #2f63e8 0%, #2457d6 100%);
  color: white;
  font-weight: 800;
  font-size: 1rem;
}

.login-brand span {
  display: block;
  color: var(--muted-2);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-brand strong {
  display: block;
  font-size: 1.1rem;
}

.login-copy {
  display: grid;
  gap: 8px;
  margin: 28px 0 20px;
}

.login-copy h1 {
  margin: 0;
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  line-height: 1.04;
}

.login-copy p:last-child {
  margin: 0;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.6;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form .field input {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: white;
  padding: 0 16px;
}

.login-form .field input::placeholder { color: #9aa7b8; }
.login-error {
  border: 1px solid rgba(194, 68, 53, 0.22);
  background: #fff6f5;
  color: #a1332c;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}


.login-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.primary-login-button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(180deg, #2f63e8 0%, #2457d6 100%);
  color: white;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(36, 87, 214, 0.25);
}

.login-link.muted {
  color: var(--muted);
  font-weight: 600;
}

.login-footnote {
  color: var(--muted-2);
  font-size: 0.84rem;
}

.login-visual-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #1d4fe1 0%, #2457d6 50%, #17399b 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.login-visual-panel::before,
.login-visual-panel::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
}

.login-visual-panel::before {
  width: 340px;
  height: 340px;
  top: -110px;
  right: -120px;
}

.login-visual-panel::after {
  width: 220px;
  height: 220px;
  bottom: -90px;
  left: -70px;
}

.visual-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  font-size: 0.84rem;
  font-weight: 700;
}

.visual-window {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 470px;
  margin: 34px auto 24px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
}

.visual-topline {
  height: 8px;
  width: 96px;
  border-radius: 999px;
  background: rgba(255,255,255,0.3);
  margin-bottom: 18px;
}

.visual-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 14px;
}

.visual-grid .mini-card {
  border-radius: 18px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.18);
}

.visual-grid .mini-card.tall { min-height: 220px; }
.visual-grid .mini-card.trend { min-height: 100px; }
.visual-grid .mini-card.stat { min-height: 78px; }
.visual-grid .mini-card.chart { min-height: 140px; }

.visual-copy {
  position: relative;
  z-index: 1;
  max-width: 420px;
}

.visual-copy h3 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  line-height: 1.1;
}

.visual-copy p {
  margin: 0;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
}

.alert-pref-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 20px;
}

.alert-channel-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.alert-channel-strip article,
.alert-preview-box {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-2);
  padding: 14px 16px;
}

.alert-channel-strip span,
.alert-preview-box .eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--muted-2);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.alert-channel-strip strong,
.alert-preview-box strong {
  font-size: 0.98rem;
}

.alert-toggle-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.alert-toggle-row,
.alert-channel-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  padding: 16px 18px;
}

.alert-toggle-copy strong,
.alert-channel-option strong {
  display: block;
  margin-bottom: 4px;
}

.alert-toggle-copy p,
.alert-channel-option p,
.alert-preview-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.alert-summary-card {
  display: grid;
  gap: 18px;
  align-content: start;
}

.alert-channel-stack {
  display: grid;
  gap: 12px;
}

.switch {
  position: relative;
  width: 54px;
  min-width: 54px;
  height: 32px;
  display: inline-flex;
}

.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.switch i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d8e2ee;
  transition: background 160ms ease;
}

.switch i::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 8px 18px rgba(15, 23, 38, 0.12);
  transition: transform 160ms ease;
}

.switch input:checked + i { background: linear-gradient(180deg, #2f63e8 0%, #2457d6 100%); }
.switch input:checked + i::after { transform: translateX(22px); }

.booking-summary-panel {
  margin-top: 14px;
}

.booking-summary-table-shell {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  overflow: hidden;
}

.booking-summary-table {
  width: 100%;
  border-collapse: collapse;
}

.booking-summary-table th,
.booking-summary-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  vertical-align: top;
}

.booking-summary-table th {
  color: var(--muted-2);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #fbfdff;
}

.booking-summary-table td strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.35;
}

.booking-summary-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.booking-summary-table tr:last-child td { border-bottom: none; }
.booking-summary-row { cursor: pointer; transition: background 140ms ease; }
.booking-summary-row:hover td { background: #f8fbff; }
.booking-summary-row.active td { background: #eef4ff; }

.booking-detail-panel {
  padding: 22px 22px 24px;
  position: sticky;
  top: 18px;
}

.booking-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.booking-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.booking-detail-card,
.booking-note-box {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 14px 15px;
}

.booking-detail-card span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}

.booking-detail-card strong {
  display: block;
  font-size: 0.94rem;
  line-height: 1.4;
}

.booking-deposit-block {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.booking-deposit-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.deposit-grid { margin-top: 14px; }

.deposit-timeline-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.timeline-step {
  border-radius: 999px;
  padding: 9px 10px;
  text-align: center;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.timeline-step.done,
.timeline-step.active {
  background: #eef4ff;
  color: var(--primary);
  border-color: rgba(36, 87, 214, 0.18);
}

.deposit-detail-copy {
  margin-top: 12px;
}

.booking-note-box {
  margin-top: 12px;
}

.booking-note-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.86rem;
}

.booking-note-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.booking-internal-actions {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.booking-internal-actions button {
  justify-self: start;
}

.booking-status-chip.tentative {
  background: var(--warning-soft);
  color: #8a5f14;
}

.metric-pill.neutral {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 1100px) {
  .login-card,
  .alert-pref-grid { grid-template-columns: 1fr; }
  .login-panel { min-height: auto; }
}

@media (max-width: 760px) {
  .auth-shell { padding: 18px; }
  .login-panel { padding: 24px; }
  .login-actions { flex-direction: column; align-items: stretch; }
  .alert-channel-strip { grid-template-columns: 1fr; }
  .booking-summary-table-shell { overflow-x: auto; }
  .schedule-grid.with-detail { grid-template-columns: 1fr; }
  .booking-detail-grid, .deposit-timeline-row { grid-template-columns: 1fr; }
  .booking-detail-panel { position: static; }
}


.polished-alert-grid {
  gap: 26px;
  align-items: start;
}

.polished-alert-card,
.polished-alert-summary {
  padding: 28px 30px;
}

.alert-heading-block {
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.compact-heading-block {
  padding-bottom: 16px;
}

.polished-channel-strip {
  margin-top: 18px;
  gap: 14px;
}

.polished-channel-strip article,
.polished-preview-box {
  padding: 18px 20px;
  border-radius: 18px;
}

.polished-toggle-list {
  margin-top: 20px;
  gap: 14px;
}

.polished-toggle-row,
.polished-channel-option {
  padding: 20px 22px;
  border-radius: 18px;
}

.polished-toggle-row .alert-toggle-copy strong,
.polished-channel-option strong {
  font-size: 1.06rem;
  margin-bottom: 6px;
}

.polished-toggle-row .alert-toggle-copy p,
.polished-channel-option p,
.polished-preview-box p {
  font-size: 0.97rem;
  line-height: 1.65;
}

.polished-alert-summary {
  gap: 20px;
}

.polished-channel-stack {
  gap: 14px;
}

.polished-preview-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.small-banner {
  margin-top: 18px;
}


.customer-topbar {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.topbar-search {
  flex: 1 1 auto;
  max-width: 620px;
}

.topbar-search input {
  width: 100%;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0 18px;
  font-size: 0.98rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.icon-pill {
  position: relative;
  height: 42px;
  min-width: 42px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d92d20;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.compact-admin-button {
  height: 40px;
  border-radius: 999px;
}

.profile-menu-shell {
  position: relative;
}

.profile-trigger {
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0 12px 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.profile-avatar,
.profile-avatar-large {
  border-radius: 999px;
  background: linear-gradient(135deg, #204fdb, #4d7cff);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.profile-avatar {
  width: 30px;
  height: 30px;
  font-size: 0.78rem;
}

.profile-avatar-large {
  width: 56px;
  height: 56px;
  font-size: 1rem;
}

.profile-meta {
  display: grid;
  text-align: left;
  line-height: 1.05;
}

.profile-meta strong {
  font-size: 0.84rem;
}

.profile-meta small {
  color: var(--muted);
  font-size: 0.72rem;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  padding: 8px;
  display: grid;
  gap: 4px;
  z-index: 20;
}

.profile-dropdown a,
.profile-dropdown button {
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
}

.profile-dropdown a:hover,
.profile-dropdown button:hover {
  background: var(--surface-2);
}

.workspace-header-compact {
  padding-top: 8px;
  padding-bottom: 8px;
}

.workspace-header-compact .header-subcopy {
  max-width: 760px;
}

.unified-filter-row {
  grid-template-columns: 1.15fr repeat(4, minmax(0, 1fr));
}

.workspace-table .table-topline {
  align-items: flex-start;
}

.workspace-table .summary-strip:first-of-type {
  margin-top: 8px;
}

.profile-settings-shell {
  display: grid;
  gap: 10px;
}

.profile-settings-card {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.profile-settings-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 12px;
}

.profile-identity-card {
  display: flex;
  gap: 14px;
  align-items: center;
}

.profile-identity-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}

.profile-identity-card p,
.profile-identity-card span {
  margin: 0;
  color: var(--muted);
}

.profile-detail-card {
  display: grid;
  gap: 12px;
}

.settings-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.settings-list-grid article {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: grid;
  gap: 4px;
}

.settings-list-grid span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.settings-toggle-list {
  display: grid;
  gap: 10px;
}

.settings-toggle-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
}

.profile-settings-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

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

@media (max-width: 900px) {
  .customer-topbar {
    flex-direction: column;
    align-items: stretch;
  }
  .topbar-search {
    max-width: none;
  }
  .topbar-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .unified-filter-row {
    grid-template-columns: 1fr;
  }
}


.admin-header-actions-only {
  justify-content: flex-end;
}
.sidebar-title {
  max-width: 100%;
  font-size: 0.72rem;
}
.customer-topbar {
  padding: 12px 14px;
}
.profile-dropdown {
  width: 240px;
}
.profile-settings-shell {
  gap: 8px;
}
.profile-settings-card {
  padding: 14px;
  gap: 12px;
}
.profile-settings-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 12px;
}
.profile-identity-card {
  align-items: flex-start;
  padding: 14px;
}
.profile-detail-card:last-child {
  grid-column: 1 / -1;
}
.profile-detail-card {
  padding: 14px;
}
.settings-list-grid article {
  min-height: 84px;
}
.compact-profile-toggles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .compact-profile-toggles {
    grid-template-columns: 1fr;
  }
}


.customer-topbar {
  padding: 8px 12px;
  gap: 12px;
}

.topbar-search {
  max-width: 580px;
}

.topbar-search input {
  height: 38px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.icon-pill,
.profile-trigger {
  height: 38px;
}

.profile-trigger {
  padding: 0 10px 0 7px;
  gap: 8px;
}

.profile-avatar {
  width: 28px;
  height: 28px;
  font-size: 0.74rem;
}

.profile-meta strong {
  font-size: 0.86rem;
}

.profile-meta small {
  font-size: 0.7rem;
}

.header-shell.cleaner-header.customer {
  padding: 8px 14px 10px;
  gap: 6px;
}

.header-shell.cleaner-header.customer .header-copy h2,
.filter-header-copy h2 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.15;
}

.header-shell.cleaner-header.customer .header-subcopy,
.filter-header-copy .header-subcopy {
  margin: 2px 0 0;
  font-size: 0.8rem;
  line-height: 1.32;
}

.filter-only-header {
  padding-top: 8px;
  padding-bottom: 8px;
}

.filter-only-header .filter-header-copy {
  display: grid;
  gap: 2px;
  margin-bottom: 6px;
}

.header-no-filters {
  padding-top: 8px;
  padding-bottom: 8px;
}

.header-no-filters .page-heading-row {
  align-items: flex-start;
  min-height: unset;
}

.workspace-header-compact.header-no-filters {
  padding-top: 6px;
  padding-bottom: 6px;
}

.minimal-filter-row {
  padding-top: 4px;
}

.profile-settings-shell {
  gap: 8px;
}

.profile-settings-card {
  padding: 14px;
  gap: 10px;
}

.profile-settings-card .section-heading {
  margin-bottom: 2px;
}

.profile-settings-card .section-copy {
  margin-top: 4px;
  font-size: 0.84rem;
}


/* v34 tighter customer header shell */
.main-shell { gap: 8px; }
.customer-topbar { padding: 6px 12px; gap: 10px; min-height: 0; }
.topbar-search { max-width: 460px; }
.topbar-search input { height: 34px; padding: 0 14px; font-size: 0.9rem; }
.icon-pill, .profile-trigger { height: 34px; }
.icon-pill { min-width: 34px; padding: 0 10px; }
.profile-trigger { padding: 0 8px 0 6px; gap: 7px; }
.profile-avatar { width: 26px; height: 26px; font-size: 0.72rem; }
.profile-meta strong { font-size: 0.84rem; line-height: 1.05; }
.profile-meta small { font-size: 0.69rem; line-height: 1.05; }
.header-shell { padding: 6px 12px 8px; gap: 4px; }
.header-shell.cleaner-header.customer, .workspace-header-compact, .workspace-header-compact.header-no-filters, .filter-only-header, .header-no-filters { padding-top: 6px; padding-bottom: 6px; }
.filter-only-header .filter-header-copy { gap: 1px; margin-bottom: 4px; }
.header-shell.cleaner-header.customer .header-copy h2, .filter-header-copy h2 { font-size: 0.98rem; line-height: 1.1; }
.header-shell.cleaner-header.customer .header-subcopy, .filter-header-copy .header-subcopy { margin: 1px 0 0; font-size: 0.76rem; line-height: 1.28; }
.filter-grid.customer-filters { gap: 6px; }
.minimal-filter-row { padding-top: 2px; }
.field { gap: 2px; }
.field span { font-size: 0.62rem; }
.compact-filter-field select { height: 28px; border-radius: 8px; font-size: 0.84rem; }
.header-shell .page-heading-row { min-height: 0; }
.header-shell .header-copy { display: grid; gap: 1px; }

@media (max-width: 900px) {
  .customer-topbar { padding: 6px 10px; }
  .topbar-search { max-width: none; }
}

/* v35 aggressive customer header compaction */
.customer-topbar.card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 6px 14px !important;
  min-height: 58px !important;
  height: auto !important;
  gap: 12px !important;
}

.customer-topbar .topbar-search {
  flex: 1 1 auto;
  max-width: 530px !important;
}

.customer-topbar .topbar-search input {
  height: 36px !important;
  padding: 0 16px !important;
  font-size: 0.92rem !important;
}

.customer-topbar .topbar-actions {
  align-items: center !important;
  gap: 8px !important;
}

.customer-topbar .icon-pill,
.customer-topbar .profile-trigger {
  height: 36px !important;
}

.customer-topbar .icon-pill {
  min-width: 36px !important;
  padding: 0 10px !important;
}

.customer-topbar .profile-trigger {
  padding: 0 10px 0 6px !important;
  gap: 8px !important;
}

.customer-topbar .profile-avatar {
  width: 28px !important;
  height: 28px !important;
}

.header-shell.cleaner-header.customer.ultra-compact-header {
  padding: 8px 14px 10px !important;
  gap: 6px !important;
}

.header-shell.cleaner-header.customer.ultra-compact-header.filter-only-header {
  padding-bottom: 10px !important;
}

.header-shell.cleaner-header.customer.ultra-compact-header .filter-header-copy {
  display: flex !important;
  align-items: baseline !important;
  gap: 10px !important;
  margin-bottom: 6px !important;
}

.header-shell.cleaner-header.customer.ultra-compact-header .filter-header-copy h2,
.header-shell.cleaner-header.customer.ultra-compact-header .header-copy h2 {
  font-size: 0.98rem !important;
  line-height: 1.1 !important;
  margin: 0 !important;
}

.header-shell.cleaner-header.customer.ultra-compact-header .filter-header-copy .header-subcopy,
.header-shell.cleaner-header.customer.ultra-compact-header .header-subcopy {
  margin: 0 !important;
  font-size: 0.78rem !important;
  line-height: 1.28 !important;
}

.header-shell.cleaner-header.customer.ultra-compact-header .page-heading-row {
  min-height: 0 !important;
}

.header-shell.cleaner-header.customer.ultra-compact-header .header-copy {
  display: grid !important;
  gap: 2px !important;
}

.header-shell.cleaner-header.customer.ultra-compact-header .filter-grid.customer-filters {
  gap: 8px !important;
}

.header-shell.cleaner-header.customer.ultra-compact-header .compact-filter-field {
  gap: 3px !important;
}

.header-shell.cleaner-header.customer.ultra-compact-header .compact-filter-field span {
  font-size: 0.64rem !important;
}

.header-shell.cleaner-header.customer.ultra-compact-header .compact-filter-field select {
  height: 36px !important;
  font-size: 0.9rem !important;
}

.profile-settings-shell {
  margin-top: 0 !important;
}


/* v36 force slim customer top bar */
.main-shell { gap: 8px !important; }
.customer-topbar.card { padding: 4px 12px !important; min-height: 48px !important; height: auto !important; border-radius: 16px !important; }
.customer-topbar.card .topbar-search { max-width: 420px !important; align-self: center !important; }
.customer-topbar.card .topbar-search input { height: 30px !important; padding: 0 14px !important; font-size: 0.88rem !important; }
.customer-topbar.card .topbar-actions { gap: 8px !important; }
.customer-topbar.card .icon-pill, .customer-topbar.card .profile-trigger { height: 32px !important; min-height: 32px !important; }
.customer-topbar.card .icon-pill { min-width: 32px !important; width: 32px !important; padding: 0 !important; }
.customer-topbar.card .profile-trigger { padding: 0 8px 0 5px !important; gap: 6px !important; }
.customer-topbar.card .profile-avatar { width: 24px !important; height: 24px !important; font-size: 0.7rem !important; }
.customer-topbar.card .profile-meta strong { font-size: 0.82rem !important; line-height: 1 !important; }
.customer-topbar.card .profile-meta small { font-size: 0.68rem !important; line-height: 1 !important; }
.customer-topbar.card .notification-badge { min-width: 18px !important; height: 18px !important; top: -6px !important; right: -5px !important; font-size: 0.68rem !important; }
.profile-settings-shell, .profile-settings-card { margin-top: 0 !important; }

.identity-workbench-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
}

.identity-form-card,
.identity-summary-card,
.identity-directory-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.module-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #7386a1;
  font-weight: 700;
}

.module-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.module-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #d6dfec;
  border-radius: 14px;
  background: #fff;
  font-size: 14px;
  color: #20304a;
}

.module-check input {
  width: 16px;
  height: 16px;
}

.identity-list .history-row {
  align-items: flex-start;
}

.identity-row strong {
  display: block;
  margin-bottom: 4px;
}

.identity-row span {
  display: block;
  color: #657795;
}

.identity-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.history-rollback.muted {
  background: #fff;
  color: #5c6d8a;
  border-color: #d6dfec;
}

.identity-table-shell table td,
.identity-table-shell table th {
  white-space: nowrap;
}

.inline-filter-field {
  min-width: 180px;
}

.inline-filter-field select {
  min-width: 180px;
}

@media (max-width: 1100px) {
  .identity-workbench-grid {
    grid-template-columns: 1fr;
  }

  .identity-form-grid,
  .module-checkbox-grid {
    grid-template-columns: 1fr;
  }
}


/* v40 identity access cleanup */
.clean-access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.clean-access-grid .identity-form-card,
.clean-access-grid .identity-summary-card {
  min-width: 0;
}

.help-card {
  margin-top: 14px;
}

.table-actions-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.table-state-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #d6dfec;
  background: #f8fbff;
  color: #5d708d;
  font-size: 0.82rem;
  font-weight: 700;
}
.table-state-pill.inactive {
  background: #f8f2f2;
  border-color: #e8d4d4;
  color: #8a4d4d;
}

.membership-role-select {
  min-width: 160px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #d6dfec;
  background: #fff;
  color: #10233f;
  padding: 0 10px;
  font: inherit;
}

.user-management-actions {
  min-width: 260px;
}

.identity-table-shell .history-rollback[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}


.table-state-pill.active {
  background: #edf4ff;
  color: #2457d6;
  border-color: #c7d8ff;
}

.return-admin-pill {
  height: 32px;
  border-radius: 999px;
  border: 1px solid #c8d7ea;
  background: #fff;
  color: #20304a;
  padding: 0 12px;
  font-weight: 700;
  white-space: nowrap;
}

.return-admin-pill:hover {
  background: #f5f8fd;
}

@media (max-width: 1180px) {
  .clean-access-grid {
    grid-template-columns: 1fr;
  }
}


.identity-side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.identity-access-card .section-copy {
  margin-top: 6px;
}

.compact-module-selector {
  gap: 8px;
}

.module-checkbox-grid-compact {
  grid-template-columns: 1fr;
  gap: 8px;
}

.split-actions-row {
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 1100px) {
  .split-actions-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.notification-menu-shell {
  position: relative;
}

.notification-pill {
  position: relative;
  overflow: visible;
}

.notification-dot {
  position: absolute;
  top: -2px;
  right: -1px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #d83a34;
  box-shadow: 0 0 0 3px #ffffff;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, 82vw);
  background: #ffffff;
  border: 1px solid #d7e2f0;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(11, 22, 46, 0.16);
  padding: 16px;
  z-index: 40;
}

.notification-dropdown-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.notification-dropdown-head h4 {
  margin: 2px 0 0;
  font-size: 1.05rem;
}

.text-action {
  border: 0;
  background: transparent;
  color: #4169e1;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.notification-list {
  display: grid;
  gap: 10px;
  max-height: 440px;
  overflow: auto;
  padding-right: 2px;
}

.notification-row {
  border: 1px solid #d7e2f0;
  border-radius: 16px;
  padding: 12px 12px 10px;
  background: #fbfdff;
}

.notification-row.unread {
  background: #f6f9ff;
  border-color: #c8d8ff;
}

.notification-row.warning {
  border-left: 4px solid #d9a441;
}

.notification-row.success {
  border-left: 4px solid #4f8d61;
}

.notification-row.info {
  border-left: 4px solid #5c78a8;
}

.notification-open {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.notification-row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.notification-row-top strong {
  color: #162238;
  font-size: 0.98rem;
}

.notification-row-top span {
  color: #6a7b97;
  font-size: 0.78rem;
  white-space: nowrap;
}

.notification-row-body {
  display: block;
  color: #556985;
  line-height: 1.45;
  font-size: 0.92rem;
}

.notification-row-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.notification-read-state {
  color: #7f90aa;
  font-size: 0.82rem;
  font-weight: 700;
}


@media (max-width: 900px) {
  .notification-dropdown {
    right: -20px;
    width: min(360px, 92vw);
  }
}


/* v56 executive summary rebuild */
.executive-topbar {
  margin-bottom: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(198, 211, 227, 0.7);
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(246,249,253,0.96) 100%);
  box-shadow: 0 12px 36px rgba(15, 23, 38, 0.06);
}

.executive-topbar-search input {
  height: 44px;
  border-radius: 14px;
  border: 1px solid #d6e0ec;
  background: #f8fbff;
}

.executive-topbar-actions {
  gap: 10px;
}

.executive-notification-pill {
  height: 44px;
  min-width: 140px;
  padding: 0 16px 0 14px;
  border-radius: 14px;
  gap: 10px;
  border: 1px solid #d7e3f0;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
  color: #17304f;
  font-size: 0.9rem;
  font-weight: 700;
}

.executive-notification-pill svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 18px;
}

.executive-profile-trigger {
  min-height: 44px;
  padding-right: 14px;
  border: 1px solid #d7e3f0;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: none;
}

.executive-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.9fr);
  gap: 18px;
  margin-bottom: 18px;
}

.executive-hero-card,
.executive-priority-card,
.executive-kpi-card,
.executive-focus-card,
.executive-signal-card,
.executive-chart-card,
.executive-detail-table-shell .table-card {
  border: 1px solid rgba(198, 211, 227, 0.82);
  box-shadow: 0 14px 36px rgba(15, 23, 38, 0.055);
}

.executive-hero-card {
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(36, 87, 214, 0.10), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.executive-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.executive-hero-copy h1 {
  margin: 6px 0 8px;
  font-size: 2.1rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.executive-hero-text {
  max-width: 760px;
  margin: 0;
  color: #5c6f87;
  font-size: 1rem;
  line-height: 1.65;
}

.executive-hero-side {
  min-width: 260px;
  display: grid;
  gap: 12px;
}

.executive-live-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(36, 87, 214, 0.08);
  color: #204cb8;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.executive-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.executive-meta-grid article,
.executive-priority-stats article {
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(214, 226, 239, 0.95);
}

.executive-meta-grid span,
.executive-priority-stats span,
.executive-focus-tile span,
.executive-kpi-label,
.executive-signal-row span {
  display: block;
  color: #7385a0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.executive-meta-grid strong,
.executive-priority-stats strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  line-height: 1.3;
}

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

.executive-filter-field {
  min-width: 0;
}

.executive-filter-field span {
  color: #6d7f99;
  font-size: 0.79rem;
  font-weight: 700;
}

.executive-filter-field select {
  height: 50px;
  border-radius: 14px;
  border: 1px solid #d7e2ef;
  background: rgba(255,255,255,0.94);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.executive-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.executive-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf4ff;
  color: #23479b;
  font-size: 0.84rem;
  font-weight: 700;
}

.executive-chip small {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.executive-chip.neutral {
  background: #f2f5f9;
  color: #52647d;
}

.executive-priority-card {
  padding: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
}

.compact-section-heading {
  margin-bottom: 12px;
}

.compact-section-heading h3 {
  margin-top: 4px;
  font-size: 1.25rem;
}

.executive-priority-copy {
  margin: 0 0 16px;
  color: #586b84;
  line-height: 1.65;
}

.executive-priority-stats {
  display: grid;
  gap: 10px;
}

.executive-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.executive-kpi-card {
  padding: 20px 20px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.executive-kpi-card strong {
  display: block;
  margin: 16px 0 8px;
  font-size: clamp(2rem, 2.8vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.executive-kpi-card p {
  margin: 0;
  color: #60738c;
  line-height: 1.58;
}

.executive-kpi-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.executive-kpi-delta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
}

.executive-kpi-delta.down {
  background: #fff0ef;
  color: #c44036;
}

.executive-kpi-delta.neutral {
  background: #fff4e3;
  color: #c07b11;
}

.executive-kpi-delta.up {
  background: #e9f7ef;
  color: #228457;
}

.executive-rail-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.executive-focus-card,
.executive-signal-card,
.executive-chart-card {
  padding: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.executive-focus-grid,
.executive-signal-list,
.executive-notification-list {
  display: grid;
  gap: 12px;
}

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

.executive-focus-tile {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #dfe8f2;
  background: #f8fbff;
}

.executive-focus-tile strong {
  display: block;
  margin: 8px 0 8px;
  font-size: 1.08rem;
  line-height: 1.32;
}

.executive-focus-tile p {
  margin: 0;
  color: #61748d;
  line-height: 1.55;
}

.executive-focus-tile.up {
  background: linear-gradient(180deg, #f4f8ff 0%, #eef4ff 100%);
}

.executive-focus-tile.down {
  background: linear-gradient(180deg, #fff9fb 0%, #fff3f5 100%);
}

.executive-signal-row,
.executive-notification-row {
  width: 100%;
  text-align: left;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid #dfe8f2;
  background: #fafcff;
}

.executive-signal-row strong,
.executive-notification-row strong {
  display: block;
  margin: 6px 0 6px;
  font-size: 1rem;
  line-height: 1.35;
}

.executive-signal-row p,
.executive-notification-row span {
  margin: 0;
  color: #5e728a;
  line-height: 1.55;
}

.executive-signal-row.critical {
  background: linear-gradient(180deg, #fff9f8 0%, #fff3f1 100%);
  border-color: #f0d4cf;
}

.executive-signal-row.warning {
  background: linear-gradient(180deg, #fffaf3 0%, #fff6ea 100%);
  border-color: #efdcbc;
}

.executive-signal-row.info {
  background: linear-gradient(180deg, #f7faff 0%, #f1f6ff 100%);
  border-color: #dce7fa;
}

.executive-notification-row {
  display: grid;
  gap: 3px;
}

.executive-notification-row small {
  color: #8192a9;
  font-size: 0.76rem;
  font-weight: 700;
}

.executive-notification-row.unread {
  border-color: #bfd4ff;
  background: linear-gradient(180deg, #f8fbff 0%, #f0f5ff 100%);
}

.executive-chart-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(350px, 0.95fr);
  margin-bottom: 18px;
}

.executive-chart-card .section-copy {
  margin-top: 6px;
}

.executive-detail-table-shell {
  margin-top: 18px;
}

.executive-detail-table-shell .table-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.lifecycle-section,
.executive-detail-table-shell .table-card {
  margin-top: 0;
}

@media (max-width: 1320px) {
  .executive-kpi-grid,
  .executive-focus-grid,
  .executive-filter-grid,
  .executive-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .executive-rail-grid,
  .executive-chart-grid,
  .executive-hero-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .executive-kpi-grid,
  .executive-focus-grid,
  .executive-filter-grid,
  .executive-meta-grid {
    grid-template-columns: 1fr;
  }

  .executive-hero-card,
  .executive-priority-card,
  .executive-focus-card,
  .executive-signal-card,
  .executive-chart-card {
    padding: 18px;
  }

  .executive-hero-top {
    flex-direction: column;
  }

  .executive-hero-copy h1 {
    font-size: 1.6rem;
  }

  .executive-notification-pill {
    min-width: 44px;
    padding-inline: 12px;
  }

  .executive-notification-pill span:last-child {
    display: none;
  }
}

/* v56 topbar specificity overrides */
.customer-topbar.card.executive-topbar {
  padding: 12px 16px !important;
  min-height: 64px !important;
  border-radius: 18px !important;
}

.customer-topbar.card.executive-topbar .topbar-search {
  max-width: 520px !important;
}

.customer-topbar.card.executive-topbar .topbar-search input {
  height: 44px !important;
  padding: 0 16px !important;
  font-size: 0.94rem !important;
}

.customer-topbar.card.executive-topbar .topbar-actions {
  gap: 10px !important;
}

.customer-topbar.card.executive-topbar .executive-notification-pill {
  width: auto !important;
  min-width: 140px !important;
  height: 44px !important;
  padding: 0 16px 0 14px !important;
}

.customer-topbar.card.executive-topbar .executive-profile-trigger {
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 14px 0 6px !important;
  gap: 10px !important;
}

.customer-topbar.card.executive-topbar .profile-avatar {
  width: 30px !important;
  height: 30px !important;
  font-size: 0.78rem !important;
}

.customer-topbar.card.executive-topbar .profile-meta strong {
  font-size: 0.88rem !important;
}

.customer-topbar.card.executive-topbar .profile-meta small {
  font-size: 0.72rem !important;
}

/* === Executive summary redesign v2 === */
.customer-topbar.card.executive-topbar {
  padding: 8px 14px !important;
  min-height: 58px !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,0.9) !important;
  border: 1px solid rgba(205, 218, 233, 0.9) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 38, 0.04) !important;
}

.customer-topbar.card.executive-topbar .topbar-search {
  max-width: 360px !important;
}

.customer-topbar.card.executive-topbar .topbar-search input {
  height: 36px !important;
  border-radius: 12px !important;
  background: #f6f9fc !important;
  border: 1px solid #e3ebf4 !important;
  font-size: 0.9rem !important;
}

.customer-topbar.card.executive-topbar .topbar-actions {
  gap: 10px !important;
}

.customer-topbar.card.executive-topbar .executive-notification-pill,
.customer-topbar.card.executive-topbar .executive-profile-trigger {
  height: 38px !important;
  border-radius: 12px !important;
  border: 1px solid #e3ebf4 !important;
  background: #f8fbfe !important;
  box-shadow: none !important;
}

.customer-topbar.card.executive-topbar .executive-notification-pill {
  width: auto !important;
  min-width: 44px !important;
  padding: 0 12px !important;
}

.customer-topbar.card.executive-topbar .executive-profile-trigger {
  padding: 0 10px 0 6px !important;
}

.customer-topbar.card.executive-topbar .profile-avatar {
  width: 28px !important;
  height: 28px !important;
  background: linear-gradient(135deg, #eef4ff 0%, #dbe7ff 100%) !important;
  color: #2457d6 !important;
}

.executive-brief-card,
.executive-kpi-band,
.executive-watchlist-card,
.executive-snapshot-card,
.executive-chart-card,
.lifecycle-section,
.executive-detail-table-shell .table-card {
  border-radius: 22px;
  border: 1px solid rgba(211, 221, 233, 0.92);
  box-shadow: 0 10px 28px rgba(15, 23, 38, 0.045);
}

.executive-brief-card {
  padding: 18px 20px;
  display: grid;
  gap: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,251,254,0.96) 100%);
}

.executive-brief-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.95fr);
  gap: 22px;
  align-items: start;
}

.executive-brief-copy h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.executive-brief-text {
  margin: 10px 0 0;
  max-width: 760px;
  font-size: 0.98rem;
  line-height: 1.58;
  color: var(--muted);
}

.executive-brief-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.executive-brief-stats article {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(247, 250, 253, 0.94);
  border: 1px solid #e5edf6;
  min-height: 84px;
}

.executive-brief-stats span,
.executive-section-label,
.executive-snapshot-row span,
.executive-activity-row small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7d8ea5;
}

.executive-brief-stats strong {
  display: block;
  margin-top: 10px;
  font-size: 1.15rem;
  line-height: 1.05;
  color: var(--text);
}

.executive-brief-stats small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.executive-brief-toolbar {
  display: grid;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid #edf2f8;
}

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

.executive-filter-field span {
  margin-bottom: 4px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7d8ea5;
}

.executive-filter-field select {
  height: 42px;
  border-radius: 12px;
  background: #f8fbfe;
  border: 1px solid #e1eaf4;
  box-shadow: none;
}

.executive-chip-row.executive-chip-row-compact {
  gap: 8px;
  min-height: auto;
}

.executive-chip {
  padding: 7px 10px;
  background: #f5f8fc;
  border: 1px solid #e2ebf5;
  border-radius: 999px;
  color: #51657f;
}

.executive-chip small {
  color: #8090a5;
}

.executive-toolbar-strip {
  display: grid;
  gap: 10px;
  padding: 4px 2px 16px;
  margin-bottom: 10px;
  border-bottom: 1px solid #edf2f8;
}

.executive-kpi-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 6px 0;
  overflow: hidden;
}

.executive-kpi-band-item {
  padding: 18px 20px;
  min-height: 128px;
  position: relative;
}

.executive-kpi-band-item:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: #ecf1f7;
}

.executive-kpi-band-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.executive-kpi-band-item strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.035em;
}

.executive-kpi-band-item p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 280px;
}

.executive-main-grid,
.executive-secondary-grid {
  display: grid;
  gap: 18px;
}

.executive-main-grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.9fr);
}

.executive-secondary-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.executive-chart-card,
.executive-watchlist-card,
.executive-snapshot-card {
  padding: 22px;
}

.executive-chart-main-card .chart-svg-shell,
.executive-secondary-grid .chart-svg-shell {
  margin-top: 18px;
}

.executive-watchlist-card,
.executive-snapshot-card {
  display: grid;
  gap: 16px;
}

.executive-watchlist-section,
.executive-snapshot-list {
  display: grid;
  gap: 10px;
}

.executive-watchlist-section.notifications {
  padding-top: 12px;
  border-top: 1px solid #edf2f8;
}

.executive-watchlist-row,
.executive-activity-row,
.executive-snapshot-row {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid #e7eef6;
  background: #fbfdff;
}

.executive-watchlist-row strong,
.executive-activity-row strong,
.executive-snapshot-row strong {
  display: block;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--text);
}

.executive-watchlist-row p,
.executive-activity-row span,
.executive-snapshot-row p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.executive-watchlist-row.critical {
  border-color: #f2d7d7;
  background: #fff9f9;
}

.executive-watchlist-row.warning {
  border-color: #f3e2c4;
  background: #fffaf1;
}

.executive-watchlist-row.info {
  border-color: #dae4f3;
  background: #f9fbff;
}

.executive-activity-row {
  cursor: pointer;
}

.executive-activity-row.unread {
  border-color: #dbe6fb;
  background: #f7faff;
}

.executive-activity-row small {
  margin-top: 8px;
}

.executive-snapshot-row strong {
  margin-top: 8px;
}

.executive-snapshot-row p {
  max-width: 90%;
}

.lifecycle-section {
  padding: 22px;
}

.executive-detail-table-shell {
  margin-top: 2px;
}

.executive-detail-table-shell .table-card {
  padding: 22px;
}

.executive-detail-table-shell .table-shell {
  border-radius: 16px;
}

@media (max-width: 1200px) {
  .executive-brief-top,
  .executive-main-grid,
  .executive-secondary-grid {
    grid-template-columns: 1fr;
  }

  .executive-kpi-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .executive-kpi-band-item:nth-child(3)::before,
  .executive-kpi-band-item:nth-child(4)::before {
    display: none;
  }

  .executive-kpi-band-item:nth-child(n+3) {
    border-top: 1px solid #ecf1f7;
  }
}

@media (max-width: 820px) {
  .executive-brief-card,
  .executive-chart-card,
  .executive-watchlist-card,
  .executive-snapshot-card,
  .lifecycle-section,
  .executive-detail-table-shell .table-card {
    padding: 18px;
  }

  .executive-filter-grid,
  .executive-brief-stats,
  .executive-kpi-band {
    grid-template-columns: 1fr;
  }

  .executive-kpi-band-item:not(:first-child)::before {
    display: none;
  }

  .executive-kpi-band-item:not(:first-child) {
    border-top: 1px solid #ecf1f7;
  }

  .executive-brief-copy h1 {
    font-size: 1.65rem;
  }

  .customer-topbar.card.executive-topbar {
    padding: 10px 12px !important;
  }

  .customer-topbar.card.executive-topbar .topbar-search {
    max-width: 100% !important;
  }
}


/* v57 executive summary clean-up */
.executive-toolbar-strip {
  gap: 12px;
  padding: 2px 0 8px;
  margin-bottom: 12px;
  border-bottom: 0;
}

.executive-toolbar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.executive-toolbar-head h3 {
  margin: 4px 0 0;
  font-size: 1rem;
  line-height: 1.1;
}

.executive-toolbar-note {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f5f8fc;
  border: 1px solid #e2ebf5;
  color: #5c7089;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.executive-filter-grid {
  gap: 12px;
}

.executive-filter-field {
  gap: 6px;
}

.executive-filter-field span {
  margin-bottom: 0;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8091a7;
}

.executive-filter-field select {
  height: 46px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #dbe6f2;
  box-shadow: 0 1px 0 rgba(255,255,255,0.9), 0 6px 16px rgba(15, 23, 38, 0.035);
  font-size: 0.98rem;
  padding: 0 42px 0 14px;
}

.executive-main-grid,
.executive-secondary-grid {
  align-items: start;
}

.executive-chart-card,
.executive-watchlist-card,
.executive-snapshot-card,
.executive-kpi-band,
.lifecycle-section,
.executive-detail-table-shell .table-card {
  align-self: start;
}

.executive-chart-main-card .chart-svg-shell {
  margin-top: 14px;
}

.executive-chart-main-card .chart-legend {
  margin-top: 8px;
}

.executive-watchlist-card {
  height: fit-content;
}

@media (max-width: 900px) {
  .executive-toolbar-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .executive-toolbar-note {
    white-space: normal;
  }
}

/* Executive Summary v2 rebuild */
.executive-v2-shell {
  display: grid;
  gap: 16px;
}

.executive-v2-hero-card {
  padding: 20px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 18px;
  border-color: #e3ebf4;
  box-shadow: 0 16px 34px rgba(20, 34, 54, 0.06);
}

.executive-v2-hero-copy h1 {
  margin: 6px 0 10px;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.executive-v2-hero-copy p:last-child {
  margin: 0;
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.5;
}

.executive-v2-hero-meta {
  display: grid;
  gap: 10px;
}

.executive-v2-hero-meta article {
  border: 1px solid #e7eef6;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
  border-radius: 16px;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
}

.executive-v2-hero-meta span,
.executive-v2-kpi-label,
.executive-v2-inline-note {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.executive-v2-hero-meta strong {
  font-size: 1rem;
  line-height: 1.1;
}

.executive-v2-hero-meta small {
  color: var(--muted);
}

.executive-v2-filterbar {
  padding: 16px 18px 18px;
  display: grid;
  gap: 14px;
  border-color: #e6edf6;
  box-shadow: none;
}

.executive-v2-filterbar-head,
.executive-v2-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.executive-v2-panel-head.tight {
  align-items: center;
}

.executive-v2-filterbar-head h3,
.executive-v2-panel-head h3 {
  margin: 4px 0 0;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.executive-v2-export-button {
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #cfdbea;
  background: white;
  color: var(--text);
  font-weight: 700;
}

.executive-v2-export-button:hover {
  background: #f6f9fc;
}

.executive-v2-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.executive-v2-kpi {
  padding: 16px;
  border-color: #e7eef6;
  box-shadow: none;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
}

.executive-v2-kpi strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.executive-v2-kpi p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
  font-size: 0.82rem;
}

.executive-v2-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, 0.85fr);
  gap: 14px;
  align-items: start;
}

.executive-v2-primary-column,
.executive-v2-side-column {
  display: grid;
  gap: 14px;
}

.executive-v2-panel,
.executive-v2-sidecard {
  padding: 18px;
  border-color: #e7eef6;
  box-shadow: none;
}

.executive-v2-panel-hero {
  padding-bottom: 16px;
}

.executive-v2-timeline-list,
.executive-v2-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.executive-v2-timeline-row {
  border: 1px solid #ebf0f6;
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 10px;
  background: #fbfdff;
}

.executive-v2-timeline-copy {
  display: grid;
  gap: 4px;
}

.executive-v2-timeline-copy strong,
.executive-v2-list-item strong,
.executive-v2-action-row strong,
.executive-v2-activity-button strong {
  font-size: 0.94rem;
}

.executive-v2-timeline-copy span,
.executive-v2-list-item p,
.executive-v2-action-row p,
.executive-v2-activity-button span,
.executive-v2-activity-button small {
  color: var(--muted);
}

.executive-v2-timeline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.executive-v2-progress-track {
  height: 8px;
  border-radius: 999px;
  background: #edf3f9;
  overflow: hidden;
}

.executive-v2-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2457d6 0%, #4d7ef5 100%);
}

.executive-v2-stage-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: #eef3f8;
  color: var(--text);
}

.executive-v2-stage-pill.on-time,
.executive-v2-list-item.success {
  background: #eaf7ef;
  color: #1f7a4f;
}

.executive-v2-stage-pill.watch,
.executive-v2-list-item.warning {
  background: #fff5e4;
  color: #a86403;
}

.executive-v2-stage-pill.queued,
.executive-v2-list-item.info {
  background: #edf3ff;
  color: #2457d6;
}

.executive-v2-list-item.danger,
.executive-v2-list-item.error,
.executive-v2-list-item.down {
  background: #fff1f1;
  color: #a62f2f;
}

.executive-v2-list-item {
  border-radius: 14px;
  padding: 13px 14px;
  display: grid;
  gap: 4px;
}

.executive-v2-action-row {
  border-bottom: 1px solid #eef2f6;
  padding-bottom: 10px;
}

.executive-v2-action-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.executive-v2-activity-button {
  width: 100%;
  border: 1px solid #e7eef6;
  background: #fbfdff;
  border-radius: 14px;
  padding: 13px 14px;
  display: grid;
  gap: 4px;
  text-align: left;
}

.executive-v2-activity-button.unread {
  border-color: #d7e4fb;
  background: #f7faff;
}

.executive-v2-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
}

.executive-v2-table {
  width: 100%;
  border-collapse: collapse;
}

.executive-v2-table th,
.executive-v2-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  vertical-align: middle;
}

.executive-v2-table th {
  color: var(--muted-2);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.executive-v2-table td {
  font-size: 0.88rem;
}

.executive-v2-empty {
  border: 1px dashed #d7e1ec;
  border-radius: 14px;
  padding: 16px;
  color: var(--muted);
  background: #fbfdff;
}

@media (max-width: 1280px) {
  .executive-v2-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .executive-v2-hero-card,
  .executive-v2-main-grid {
    grid-template-columns: 1fr;
  }

  .executive-v2-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .executive-v2-filterbar-head,
  .executive-v2-panel-head,
  .executive-v2-timeline-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .executive-v2-kpi-grid {
    grid-template-columns: 1fr;
  }

  .executive-v2-hero-card,
  .executive-v2-panel,
  .executive-v2-sidecard,
  .executive-v2-filterbar {
    padding: 16px;
  }
}


/* Executive Summary v3 premium cleanup */
.executive-v3-shell {
  display: grid;
  gap: 14px;
}

.executive-v3-filterbar,
.executive-v3-panel {
  padding: 16px 18px;
  border-color: #e5ecf5;
  box-shadow: 0 10px 28px rgba(17, 30, 52, 0.045);
}

.executive-v3-filterbar {
  display: grid;
  gap: 12px;
}

.executive-v3-filterbar-top,
.executive-v3-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.executive-v3-userblock {
  display: grid;
  gap: 2px;
}

.executive-v3-userblock strong {
  font-size: 1rem;
  line-height: 1.05;
}

.executive-v3-userblock span,
.executive-v3-refresh {
  color: var(--muted);
  font-size: 0.84rem;
}

.executive-v3-head h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.executive-v3-export-button {
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #d5e0ec;
  background: #fff;
  color: var(--text);
  font-weight: 700;
}

.executive-v3-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.executive-v3-kpi-grid .executive-v2-kpi {
  padding: 16px;
  min-height: 118px;
}

.executive-v3-kpi-grid .executive-v2-kpi-label {
  font-size: 0.7rem;
}

.executive-v3-kpi-grid .executive-v2-kpi p {
  margin-top: 6px;
}

.executive-v3-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.92fr);
  gap: 14px;
  align-items: start;
}

.executive-v3-primary-column,
.executive-v3-side-column {
  display: grid;
  gap: 14px;
  align-content: start;
}

.executive-v3-chart-card .chart-svg-shell {
  margin-top: 10px;
}

.executive-v3-orders-card,
.executive-v3-chart-card,
.executive-v3-sidecard {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.executive-v3-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

.executive-v3-table {
  width: 100%;
  border-collapse: collapse;
}

.executive-v3-table th,
.executive-v3-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  vertical-align: middle;
}

.executive-v3-table th {
  color: var(--muted-2);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.executive-v3-table td {
  font-size: 0.88rem;
}

.executive-v3-stage-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: #eef3f8;
  color: var(--text);
}

.executive-v3-stage-pill.on-time { background: #eaf7ef; color: #1f7a4f; }
.executive-v3-stage-pill.watch { background: #fff5e4; color: #a86403; }
.executive-v3-stage-pill.queued { background: #edf3ff; color: #2457d6; }

.executive-v3-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.executive-v3-alert,
.executive-v3-activity {
  width: 100%;
  border-radius: 16px;
  padding: 16px 16px 15px;
  display: grid;
  gap: 6px;
  text-align: left;
}

.executive-v3-alert {
  border: 1px solid #ebeef3;
  background: #f8fafc;
}

.executive-v3-alert strong,
.executive-v3-activity strong {
  font-size: 0.93rem;
  line-height: 1.25;
}

.executive-v3-alert p,
.executive-v3-activity p,
.executive-v3-activity small {
  margin: 0;
  color: var(--muted);
}

.executive-v3-alert.critical {
  background: #fff3ee;
  border-color: #f3d8ca;
}

.executive-v3-alert.warning {
  background: #f8eedf;
  border-color: #ecdec8;
}

.executive-v3-alert.info {
  background: #f3f7fc;
  border-color: #e1e9f3;
}

.executive-v3-activity {
  border: 1px solid #e6edf6;
  background: #fbfdff;
}

.executive-v3-activity.unread {
  border-color: #d7e4fb;
  background: #f7faff;
}

.executive-v3-empty {
  border: 1px dashed #d7e1ec;
  border-radius: 14px;
  padding: 16px;
  color: var(--muted);
  background: #fbfdff;
}

@media (max-width: 1280px) {
  .executive-v3-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .executive-v3-main-grid,
  .executive-v3-kpi-grid {
    grid-template-columns: 1fr;
  }

  .executive-v3-filterbar-top,
  .executive-v3-head {
    flex-direction: column;
    align-items: flex-start;
  }
}


.po-tracker-shell {
  display: grid;
  gap: 14px;
}

.po-tracker-intro {
  padding: 18px 18px 16px;
  border: 1px solid rgba(198, 211, 227, 0.72);
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 100%);
  box-shadow: 0 20px 48px rgba(15, 23, 38, 0.05);
}

.po-tracker-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.po-tracker-topline h2 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.po-metric-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.po-metric-card {
  padding: 14px 14px 13px;
  border-radius: 14px;
  border: 1px solid rgba(198, 211, 227, 0.75);
  background: rgba(255,255,255,0.82);
}

.po-metric-card span {
  display: block;
  color: var(--muted-2);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.po-metric-card strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.po-metric-card.success {
  background: linear-gradient(180deg, #f8fdf9 0%, #eef9f2 100%);
  border-color: #d6eadc;
}

.po-metric-card.info {
  background: linear-gradient(180deg, #f9fbff 0%, #eef3ff 100%);
  border-color: #d9e2fb;
}

.po-metric-card.warning {
  background: linear-gradient(180deg, #fffaf3 0%, #fff3e1 100%);
  border-color: #f1dfbd;
}

.compact-heading {
  margin-bottom: 2px;
}

.po-tracker-shell .lifecycle-section,
.po-tracker-shell .table-card {
  margin-top: 0;
  border: 1px solid rgba(198, 211, 227, 0.74);
  box-shadow: 0 20px 48px rgba(15, 23, 38, 0.045);
}

.po-tracker-shell .lifecycle-section {
  padding-top: 18px;
}

.po-tracker-shell .lifecycle-grid {
  gap: 10px;
}

.po-tracker-shell .lifecycle-card {
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border-color: rgba(198, 211, 227, 0.75);
}

.po-tracker-shell .lifecycle-card.on-time {
  box-shadow: inset 0 0 0 1px rgba(35, 136, 86, 0.08);
}

.po-tracker-shell .lifecycle-card.watch,
.po-tracker-shell .lifecycle-card.queued {
  box-shadow: inset 0 0 0 1px rgba(217, 134, 22, 0.08);
}

.po-tracker-shell .lifecycle-topline strong {
  font-size: 1.08rem;
}

.po-tracker-shell .lifecycle-track {
  gap: 10px;
}

.po-tracker-shell .table-card {
  padding: 18px;
}

.po-tracker-shell .table-topline {
  margin-bottom: 12px;
}

.po-tracker-shell .table-shell {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(216, 226, 238, 0.95);
  background: #fff;
}

.po-tracker-shell .table-shell table thead th {
  background: #f7f9fc;
}

.po-tracker-shell .table-shell table tbody tr:nth-child(even) {
  background: #fbfcfe;
}

@media (max-width: 1200px) {
  .po-metric-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .po-metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .po-tracker-topline h2 {
    font-size: 1.45rem;
  }
}


/* v5 production scheduling cleanup */
.schedule-heading-compact {
  align-items: flex-start;
  gap: 10px;
}

.schedule-heading-compact h3 {
  font-size: 0.96rem;
  letter-spacing: -0.01em;
}

.compact-legend {
  gap: 10px;
  font-size: 0.74rem;
}

.compact-calendar-toolbar {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.booking-summary-panel {
  margin-top: 12px;
}

.booking-summary-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.booking-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.booking-summary-card:hover {
  border-color: rgba(47, 99, 232, 0.18);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transform: translateY(-1px);
}

.booking-summary-card.active {
  border-color: rgba(47, 99, 232, 0.32);
  background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
}

.booking-summary-copy {
  min-width: 0;
}

.booking-summary-copy strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.25;
}

.booking-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.8rem;
}

.booking-summary-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.booking-summary-meta span + span::before {
  content: "•";
  color: #94a3b8;
  margin-right: 4px;
}

.booking-summary-chips {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.calendar-grid {
  margin-top: 8px;
  gap: 6px;
}

.calendar-day {
  min-height: 90px;
  border-radius: 10px;
}

.day-notes strong {
  font-size: 0.78rem;
}

.day-notes small {
  font-size: 0.7rem;
}

@media (max-width: 1180px) {
  .booking-summary-rail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .booking-summary-card {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .booking-summary-chips {
    justify-content: flex-start;
  }
}


/* Production scheduling refresh */
.schedule-grid-refined {
  display: block;
}

.schedule-card-refined {
  padding: 18px 18px 20px;
}

.refined-calendar-toolbar {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.refined-calendar-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.calendar-month-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fbfdff;
}

.refined-select-field {
  min-width: 112px;
}

.refined-select-field select,
.refined-calendar-button,
.calendar-month-pill .pager-button {
  border-radius: 12px;
}

.calendar-grid {
  margin-top: 12px;
  gap: 8px;
}

.calendar-dow {
  padding: 0 4px;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.calendar-day {
  min-height: 78px;
  border-radius: 16px;
  padding: 8px;
  gap: 6px;
  box-shadow: none;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.calendar-day:hover {
  transform: translateY(-1px);
}

.calendar-day.outside {
  background: #f8fafc;
  border-color: rgba(201, 212, 227, 0.8);
}

.calendar-day.available {
  background: #fcfffd;
  border-color: rgba(160, 222, 187, 0.95);
}

.calendar-day.booked {
  background: #fff8f8;
  border-color: rgba(237, 193, 193, 0.95);
}

.calendar-day.tentative {
  background: #fffaf1;
  border-color: rgba(239, 202, 141, 0.95);
}

.calendar-day.overdue {
  background: #fff5f2;
  border-color: rgba(231, 91, 66, 0.34);
}

.calendar-day.blocked,
.calendar-day.past {
  background: #fafcff;
}

.day-number {
  gap: 4px;
  font-size: 0.72rem;
}

.day-number > span:first-child {
  font-size: 0.8rem;
}

.day-chip {
  font-size: 0.58rem;
  padding: 3px 7px;
}

.day-notes {
  gap: 4px;
}

.day-notes div {
  padding: 7px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
}

.day-notes strong {
  font-size: 0.72rem;
}

.day-notes small {
  font-size: 0.64rem;
  margin-top: 2px;
}

.booking-dialog-backdrop {
  z-index: 35;
}

.booking-dialog-card {
  width: min(760px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: 24px;
  border-radius: 24px;
}

.booking-dialog-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.booking-dialog-copy {
  margin-top: 6px;
}

.booking-detail-grid-dialog {
  margin-top: 14px;
}

.booking-deposit-block-dialog {
  margin-top: 16px;
}

.booking-timeline-row-dialog {
  margin-top: 14px;
}

@media (max-width: 900px) {
  .refined-calendar-nav {
    align-items: stretch;
  }

  .calendar-month-pill {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .booking-dialog-topbar {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-day {
    min-height: 86px;
  }

  .booking-dialog-card {
    padding: 18px;
    border-radius: 20px;
  }
}


.request-dialog-card {
  width: min(920px, calc(100vw - 32px));
}
.request-dialog-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.dialog-close-button {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
.dialog-close-button:hover {
  border-color: rgba(37, 99, 235, 0.24);
  transform: translateY(-1px);
}
.request-dialog-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f6fb 100%);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.request-intro-copy strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.98rem;
}
.request-intro-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.request-intro-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.request-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.request-lines-shell {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}
.request-line-row {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(120px, 160px) minmax(170px, 200px) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fbfdff;
}
.request-line-row > * {
  min-width: 0;
}
.request-line-row .field {
  min-width: 0;
}
.request-line-row .field select,
.request-line-row .field input {
  width: 100%;
}
.request-line-metric {
  min-height: 64px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
  display: grid;
  align-content: center;
  gap: 4px;
}
.request-line-metric span,
.request-line-metric small {
  color: var(--muted);
}
.request-line-metric strong {
  font-size: 1rem;
  line-height: 1.1;
}
.request-line-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.request-line-button {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.request-line-button.danger {
  color: #991b1b;
}
.request-line-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.request-pricing-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.request-acknowledgement {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
}
.request-acknowledgement input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex: 0 0 auto;
}
.request-acknowledgement span {
  color: var(--text);
  line-height: 1.55;
  font-size: 0.95rem;
}
.request-line-review {
  margin-top: 16px;
}
.request-line-review-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.request-line-review-card {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fbfdff;
  display: grid;
  gap: 4px;
}
.request-line-review-card span,
.request-line-review-card small {
  color: var(--muted);
}
.request-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.request-pricing-card {
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fbfdff;
  display: grid;
  gap: 6px;
}
.request-pricing-card span,
.request-pricing-card small {
  color: var(--muted);
}
.request-pricing-card strong {
  font-size: 1.05rem;
  line-height: 1.1;
}
.request-flow-note {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.request-flow-note > div {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  gap: 4px;
}
.request-flow-note span {
  font-size: 0.67rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.request-flow-note strong {
  font-size: 0.9rem;
  line-height: 1.25;
}
@media (max-width: 900px) {
  .request-dialog-intro,
  .request-dialog-topbar {
    flex-direction: column;
  }
  .request-intro-badges {
    justify-content: flex-start;
  }
  .request-pricing-grid,
  .request-flow-note {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .request-line-row {
    grid-template-columns: 1fr;
  }
  .request-line-actions {
    justify-content: flex-end;
  }
}
@media (max-width: 640px) {
  .request-form-grid {
    grid-template-columns: 1fr;
  }
  .request-pricing-grid-compact {
    grid-template-columns: 1fr;
  }
}


@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&display=swap');

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(249, 248, 253, 0.92), rgba(245, 244, 250, 0.98)),
    linear-gradient(rgba(61,30,110,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,30,110,0.05) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
}

.login-shell-premium {
  width: min(1440px, calc(100vw - 48px));
}

.login-card.login-stage-card {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(400px, 0.58fr);
  min-height: calc(100vh - 48px);
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(61,30,110,0.09);
  background: rgba(255,255,255,0.88);
  box-shadow: 0 24px 72px rgba(40,20,80,0.10);
  backdrop-filter: blur(18px);
}

.login-stage-panel {
  padding: 48px 52px;
}

.login-stage-hero {
  background: linear-gradient(180deg, #faf8fd 0%, #f7f5fb 100%);
  border-right: 1px solid rgba(61,30,110,0.08);
  display: flex;
  flex-direction: column;
}

.login-stage-auth {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255,255,255,0.62);
}

.login-stage-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.login-brand-stage {
  align-items: center;
  gap: 18px;
}

.login-mark-stage {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 1.15rem;
  background: linear-gradient(180deg, #4c267f 0%, #3d1e6e 100%);
  box-shadow: 0 12px 28px rgba(76,38,127,0.18);
}

.login-brand-stage span {
  color: rgba(61,30,110,0.58);
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.login-brand-stage strong {
  color: #1a1528;
  font-size: 1.12rem;
  line-height: 1.08;
}

.login-stage-copy-wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 42px;
  width: min(100%, 760px);
  max-width: 760px;
  margin: 0 auto;
  padding-inline: 18px;
}

.login-slide-stage {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-slide-copy {
  width: 100%;
  max-width: 680px;
}

.login-slide-copy-fade {
  animation: loginStageFade 640ms ease;
}

.login-slide-line1,
.login-slide-line2 {
  margin: 0;
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-size: clamp(3.9rem, 7vw, 6.8rem);
  color: #1a1528;
}

.login-slide-line2 {
  color: #5a2fa0;
  font-style: italic;
}

.login-feature-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(100%, 620px);
  max-width: 620px;
  margin: 0 auto;
}

.login-feature-row {
  display: flex;
  align-items: center;
  gap: 15px;
  color: rgba(61,30,110,0.40);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
}

.login-feature-icon {
  width: 22px;
  text-align: center;
  color: rgba(90,47,160,0.52);
  font-size: 0.92rem;
}

.login-auth-copy-stage h2 {
  margin: 0 0 12px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 3.65rem;
  font-weight: 400;
  line-height: 0.94;
  color: #1a1528;
}

.login-auth-copy-stage p {
  margin: 0;
  color: rgba(61,30,110,0.56);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.96rem;
  letter-spacing: 0.04em;
}

.login-divider {
  height: 1px;
  margin: 26px 0 28px;
  background: linear-gradient(90deg, transparent, rgba(61,30,110,0.12) 20%, rgba(61,30,110,0.12) 80%, transparent);
}

.login-access-list,
.login-access-list-stage {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
}

.login-access-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 22px 24px;
  border-radius: 24px;
  text-align: left;
  cursor: pointer;
  background: rgba(243,238,250,0.95);
  border: 1px solid rgba(61,30,110,0.14);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.login-access-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(76,38,127,0.12);
}

.login-access-tile.active {
  background: linear-gradient(135deg, #4c267f 0%, #6a36b8 100%);
  border-color: rgba(122,79,223,0.68);
  box-shadow: 0 0 0 5px rgba(135,90,236,0.34), 0 16px 34px rgba(76,38,127,0.20);
}

.login-access-tile.active .login-access-meta strong,
.login-access-tile.active .login-access-meta small,
.login-access-tile.active .login-access-icon,
.login-access-tile.active .login-access-arrow {
  color: #fff;
}

.login-access-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(61,30,110,0.08);
  color: #4c267f;
}

.login-access-tile.active .login-access-icon {
  background: rgba(255,255,255,0.14);
}

.login-access-tile:focus-visible {
  outline: 2px solid rgba(106,54,184,0.34);
  outline-offset: 3px;
}

.login-access-meta {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.login-access-meta strong,
.login-access-meta small {
  display: block;
  font-family: 'Courier New', Courier, monospace;
}

.login-access-meta strong {
  font-size: 1.08rem;
  color: #1a1528;
  line-height: 1.1;
}

.login-access-meta small {
  color: rgba(61,30,110,0.54);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.login-access-arrow {
  flex-shrink: 0;
  color: rgba(61,30,110,0.52);
  font-size: 2rem;
  line-height: 1;
}

.login-error-stage {
  margin-top: 16px;
}

.login-auth-note {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  color: rgba(61,30,110,0.56);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.86rem;
  line-height: 1.55;
}

.login-auth-note-icon {
  color: rgba(61,30,110,0.50);
  font-size: 1rem;
  line-height: 1.4;
}

.login-auth-note strong {
  display: block;
  color: rgba(61,30,110,0.72);
  font-weight: 400;
}

.login-auth-note p {
  margin: 4px 0 0;
}

.login-auth-footer-stage {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(61,30,110,0.08);
}

.login-auth-footer-stage p {
  margin: 0;
  color: rgba(61,30,110,0.56);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.83rem;
  line-height: 1.65;
}

.login-auth-links {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(61,30,110,0.34);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82rem;
}

.login-auth-links button {
  border: 0;
  background: transparent;
  padding: 0;
  color: rgba(61,30,110,0.62);
  font-family: inherit;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-auth-links button:hover {
  color: #4c267f;
}

.login-form-stage,
.login-actions-stage,
.primary-login-button {
  display: none;
}

@keyframes loginStageFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1180px) {
  .mapping-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mapping-form-grid .mapping-save-btn,
  .mapping-form-grid .workflow-cta {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .mapping-form-grid {
    grid-template-columns: 1fr;
  }
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.login-shell {
  width: min(920px, 100%);
}

.login-card {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 0;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(198, 211, 227, 0.8);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.login-panel {
  min-height: 560px;
  padding: 32px;
}

.login-form-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.login-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #2f63e8 0%, #2457d6 100%);
  color: white;
  font-weight: 800;
  font-size: 1rem;
}

.login-brand span {
  display: block;
  color: var(--muted-2);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-brand strong {
  display: block;
  font-size: 1.1rem;
}

.login-copy {
  display: grid;
  gap: 8px;
  margin: 28px 0 20px;
}

.login-copy h1 {
  margin: 0;
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  line-height: 1.04;
}

.login-copy p:last-child {
  margin: 0;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.6;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form .field input {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: white;
  padding: 0 16px;
}

.login-form .field input::placeholder { color: #9aa7b8; }
.login-error {
  border: 1px solid rgba(194, 68, 53, 0.22);
  background: #fff6f5;
  color: #a1332c;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}


.login-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.primary-login-button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(180deg, #2f63e8 0%, #2457d6 100%);
  color: white;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(36, 87, 214, 0.25);
}

.login-link.muted {
  color: var(--muted);
  font-weight: 600;
}

.login-footnote {
  color: var(--muted-2);
  font-size: 0.84rem;
}

.login-visual-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #1d4fe1 0%, #2457d6 50%, #17399b 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.login-visual-panel::before,
.login-visual-panel::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
}

.login-visual-panel::before {
  width: 340px;
  height: 340px;
  top: -110px;
  right: -120px;
}

.login-visual-panel::after {
  width: 220px;
  height: 220px;
  bottom: -90px;
  left: -70px;
}

.visual-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  font-size: 0.84rem;
  font-weight: 700;
}

.visual-window {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 470px;
  margin: 34px auto 24px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
}

.visual-topline {
  height: 8px;
  width: 96px;
  border-radius: 999px;
  background: rgba(255,255,255,0.3);
  margin-bottom: 18px;
}

.visual-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 14px;
}

.visual-grid .mini-card {
  border-radius: 18px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.18);
}

.visual-grid .mini-card.tall { min-height: 220px; }
.visual-grid .mini-card.trend { min-height: 100px; }
.visual-grid .mini-card.stat { min-height: 78px; }
.visual-grid .mini-card.chart { min-height: 140px; }

.visual-copy {
  position: relative;
  z-index: 1;
  max-width: 420px;
}

.visual-copy h3 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  line-height: 1.1;
}

.visual-copy p {
  margin: 0;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
}

.alert-pref-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 20px;
}

.alert-channel-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.alert-channel-strip article,
.alert-preview-box {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-2);
  padding: 14px 16px;
}

.alert-channel-strip span,
.alert-preview-box .eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--muted-2);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.alert-channel-strip strong,
.alert-preview-box strong {
  font-size: 0.98rem;
}

.alert-toggle-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.alert-toggle-row,
.alert-channel-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  padding: 16px 18px;
}

.alert-toggle-copy strong,
.alert-channel-option strong {
  display: block;
  margin-bottom: 4px;
}

.alert-toggle-copy p,
.alert-channel-option p,
.alert-preview-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.alert-summary-card {
  display: grid;
  gap: 18px;
  align-content: start;
}

.alert-channel-stack {
  display: grid;
  gap: 12px;
}

.switch {
  position: relative;
  width: 54px;
  min-width: 54px;
  height: 32px;
  display: inline-flex;
}

.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.switch i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d8e2ee;
  transition: background 160ms ease;
}

.switch i::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 8px 18px rgba(15, 23, 38, 0.12);
  transition: transform 160ms ease;
}

.switch input:checked + i { background: linear-gradient(180deg, #2f63e8 0%, #2457d6 100%); }
.switch input:checked + i::after { transform: translateX(22px); }

.booking-summary-panel {
  margin-top: 14px;
}

.booking-summary-table-shell {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  overflow: hidden;
}

.booking-summary-table {
  width: 100%;
  border-collapse: collapse;
}

.booking-summary-table th,
.booking-summary-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  vertical-align: top;
}

.booking-summary-table th {
  color: var(--muted-2);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #fbfdff;
}

.booking-summary-table td strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.35;
}

.booking-summary-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.booking-summary-table tr:last-child td { border-bottom: none; }
.booking-summary-row { cursor: pointer; transition: background 140ms ease; }
.booking-summary-row:hover td { background: #f8fbff; }
.booking-summary-row.active td { background: #eef4ff; }

.booking-detail-panel {
  padding: 22px 22px 24px;
  position: sticky;
  top: 18px;
}

.booking-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.booking-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.booking-detail-card,
.booking-note-box {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 14px 15px;
}

.booking-detail-card span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}

.booking-detail-card strong {
  display: block;
  font-size: 0.94rem;
  line-height: 1.4;
}

.booking-deposit-block {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.booking-deposit-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.deposit-grid { margin-top: 14px; }

.deposit-timeline-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.timeline-step {
  border-radius: 999px;
  padding: 9px 10px;
  text-align: center;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.timeline-step.done,
.timeline-step.active {
  background: #eef4ff;
  color: var(--primary);
  border-color: rgba(36, 87, 214, 0.18);
}

.deposit-detail-copy {
  margin-top: 12px;
}

.booking-note-box {
  margin-top: 12px;
}

.booking-note-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.86rem;
}

.booking-note-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.booking-internal-actions {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.booking-internal-actions button {
  justify-self: start;
}

.booking-status-chip.tentative {
  background: var(--warning-soft);
  color: #8a5f14;
}

.metric-pill.neutral {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 1100px) {
  .login-card,
  .alert-pref-grid { grid-template-columns: 1fr; }
  .login-panel { min-height: auto; }
}

@media (max-width: 760px) {
  .auth-shell { padding: 18px; }
  .login-panel { padding: 24px; }
  .login-actions { flex-direction: column; align-items: stretch; }
  .alert-channel-strip { grid-template-columns: 1fr; }
  .booking-summary-table-shell { overflow-x: auto; }
  .schedule-grid.with-detail { grid-template-columns: 1fr; }
  .booking-detail-grid, .deposit-timeline-row { grid-template-columns: 1fr; }
  .booking-detail-panel { position: static; }
}


.polished-alert-grid {
  gap: 26px;
  align-items: start;
}

.polished-alert-card,
.polished-alert-summary {
  padding: 28px 30px;
}

.alert-heading-block {
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.compact-heading-block {
  padding-bottom: 16px;
}

.polished-channel-strip {
  margin-top: 18px;
  gap: 14px;
}

.polished-channel-strip article,
.polished-preview-box {
  padding: 18px 20px;
  border-radius: 18px;
}

.polished-toggle-list {
  margin-top: 20px;
  gap: 14px;
}

.polished-toggle-row,
.polished-channel-option {
  padding: 20px 22px;
  border-radius: 18px;
}

.polished-toggle-row .alert-toggle-copy strong,
.polished-channel-option strong {
  font-size: 1.06rem;
  margin-bottom: 6px;
}

.polished-toggle-row .alert-toggle-copy p,
.polished-channel-option p,
.polished-preview-box p {
  font-size: 0.97rem;
  line-height: 1.65;
}

.polished-alert-summary {
  gap: 20px;
}

.polished-channel-stack {
  gap: 14px;
}

.polished-preview-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.small-banner {
  margin-top: 18px;
}


.customer-topbar {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.topbar-search {
  flex: 1 1 auto;
  max-width: 620px;
}

.topbar-search input {
  width: 100%;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0 18px;
  font-size: 0.98rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.icon-pill {
  position: relative;
  height: 42px;
  min-width: 42px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d92d20;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.compact-admin-button {
  height: 40px;
  border-radius: 999px;
}

.profile-menu-shell {
  position: relative;
}

.profile-trigger {
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0 12px 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.profile-avatar,
.profile-avatar-large {
  border-radius: 999px;
  background: linear-gradient(135deg, #204fdb, #4d7cff);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.profile-avatar {
  width: 30px;
  height: 30px;
  font-size: 0.78rem;
}

.profile-avatar-large {
  width: 56px;
  height: 56px;
  font-size: 1rem;
}

.profile-meta {
  display: grid;
  text-align: left;
  line-height: 1.05;
}

.profile-meta strong {
  font-size: 0.84rem;
}

.profile-meta small {
  color: var(--muted);
  font-size: 0.72rem;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  padding: 8px;
  display: grid;
  gap: 4px;
  z-index: 20;
}

.profile-dropdown a,
.profile-dropdown button {
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
}

.profile-dropdown a:hover,
.profile-dropdown button:hover {
  background: var(--surface-2);
}

.workspace-header-compact {
  padding-top: 8px;
  padding-bottom: 8px;
}

.workspace-header-compact .header-subcopy {
  max-width: 760px;
}

.unified-filter-row {
  grid-template-columns: 1.15fr repeat(4, minmax(0, 1fr));
}

.workspace-table .table-topline {
  align-items: flex-start;
}

.workspace-table .summary-strip:first-of-type {
  margin-top: 8px;
}

.profile-settings-shell {
  display: grid;
  gap: 10px;
}

.profile-settings-card {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.profile-settings-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 12px;
}

.profile-identity-card {
  display: flex;
  gap: 14px;
  align-items: center;
}

.profile-identity-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}

.profile-identity-card p,
.profile-identity-card span {
  margin: 0;
  color: var(--muted);
}

.profile-detail-card {
  display: grid;
  gap: 12px;
}

.settings-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.settings-list-grid article {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: grid;
  gap: 4px;
}

.settings-list-grid span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.settings-toggle-list {
  display: grid;
  gap: 10px;
}

.settings-toggle-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
}

.profile-settings-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

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

@media (max-width: 900px) {
  .customer-topbar {
    flex-direction: column;
    align-items: stretch;
  }
  .topbar-search {
    max-width: none;
  }
  .topbar-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .unified-filter-row {
    grid-template-columns: 1fr;
  }
}


.admin-header-actions-only {
  justify-content: flex-end;
}
.sidebar-title {
  max-width: 100%;
  font-size: 0.72rem;
}
.customer-topbar {
  padding: 12px 14px;
}
.profile-dropdown {
  width: 240px;
}
.profile-settings-shell {
  gap: 8px;
}
.profile-settings-card {
  padding: 14px;
  gap: 12px;
}
.profile-settings-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 12px;
}
.profile-identity-card {
  align-items: flex-start;
  padding: 14px;
}
.profile-detail-card:last-child {
  grid-column: 1 / -1;
}
.profile-detail-card {
  padding: 14px;
}
.settings-list-grid article {
  min-height: 84px;
}
.compact-profile-toggles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .compact-profile-toggles {
    grid-template-columns: 1fr;
  }
}


.customer-topbar {
  padding: 8px 12px;
  gap: 12px;
}

.topbar-search {
  max-width: 580px;
}

.topbar-search input {
  height: 38px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.icon-pill,
.profile-trigger {
  height: 38px;
}

.profile-trigger {
  padding: 0 10px 0 7px;
  gap: 8px;
}

.profile-avatar {
  width: 28px;
  height: 28px;
  font-size: 0.74rem;
}

.profile-meta strong {
  font-size: 0.86rem;
}

.profile-meta small {
  font-size: 0.7rem;
}

.header-shell.cleaner-header.customer {
  padding: 8px 14px 10px;
  gap: 6px;
}

.header-shell.cleaner-header.customer .header-copy h2,
.filter-header-copy h2 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.15;
}

.header-shell.cleaner-header.customer .header-subcopy,
.filter-header-copy .header-subcopy {
  margin: 2px 0 0;
  font-size: 0.8rem;
  line-height: 1.32;
}

.filter-only-header {
  padding-top: 8px;
  padding-bottom: 8px;
}

.filter-only-header .filter-header-copy {
  display: grid;
  gap: 2px;
  margin-bottom: 6px;
}

.header-no-filters {
  padding-top: 8px;
  padding-bottom: 8px;
}

.header-no-filters .page-heading-row {
  align-items: flex-start;
  min-height: unset;
}

.workspace-header-compact.header-no-filters {
  padding-top: 6px;
  padding-bottom: 6px;
}

.minimal-filter-row {
  padding-top: 4px;
}

.profile-settings-shell {
  gap: 8px;
}

.profile-settings-card {
  padding: 14px;
  gap: 10px;
}

.profile-settings-card .section-heading {
  margin-bottom: 2px;
}

.profile-settings-card .section-copy {
  margin-top: 4px;
  font-size: 0.84rem;
}


/* v34 tighter customer header shell */
.main-shell { gap: 8px; }
.customer-topbar { padding: 6px 12px; gap: 10px; min-height: 0; }
.topbar-search { max-width: 460px; }
.topbar-search input { height: 34px; padding: 0 14px; font-size: 0.9rem; }
.icon-pill, .profile-trigger { height: 34px; }
.icon-pill { min-width: 34px; padding: 0 10px; }
.profile-trigger { padding: 0 8px 0 6px; gap: 7px; }
.profile-avatar { width: 26px; height: 26px; font-size: 0.72rem; }
.profile-meta strong { font-size: 0.84rem; line-height: 1.05; }
.profile-meta small { font-size: 0.69rem; line-height: 1.05; }
.header-shell { padding: 6px 12px 8px; gap: 4px; }
.header-shell.cleaner-header.customer, .workspace-header-compact, .workspace-header-compact.header-no-filters, .filter-only-header, .header-no-filters { padding-top: 6px; padding-bottom: 6px; }
.filter-only-header .filter-header-copy { gap: 1px; margin-bottom: 4px; }
.header-shell.cleaner-header.customer .header-copy h2, .filter-header-copy h2 { font-size: 0.98rem; line-height: 1.1; }
.header-shell.cleaner-header.customer .header-subcopy, .filter-header-copy .header-subcopy { margin: 1px 0 0; font-size: 0.76rem; line-height: 1.28; }
.filter-grid.customer-filters { gap: 6px; }
.minimal-filter-row { padding-top: 2px; }
.field { gap: 2px; }
.field span { font-size: 0.62rem; }
.compact-filter-field select { height: 28px; border-radius: 8px; font-size: 0.84rem; }
.header-shell .page-heading-row { min-height: 0; }
.header-shell .header-copy { display: grid; gap: 1px; }

@media (max-width: 900px) {
  .customer-topbar { padding: 6px 10px; }
  .topbar-search { max-width: none; }
}

/* v35 aggressive customer header compaction */
.customer-topbar.card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 6px 14px !important;
  min-height: 58px !important;
  height: auto !important;
  gap: 12px !important;
}

.customer-topbar .topbar-search {
  flex: 1 1 auto;
  max-width: 530px !important;
}

.customer-topbar .topbar-search input {
  height: 36px !important;
  padding: 0 16px !important;
  font-size: 0.92rem !important;
}

.customer-topbar .topbar-actions {
  align-items: center !important;
  gap: 8px !important;
}

.customer-topbar .icon-pill,
.customer-topbar .profile-trigger {
  height: 36px !important;
}

.customer-topbar .icon-pill {
  min-width: 36px !important;
  padding: 0 10px !important;
}

.customer-topbar .profile-trigger {
  padding: 0 10px 0 6px !important;
  gap: 8px !important;
}

.customer-topbar .profile-avatar {
  width: 28px !important;
  height: 28px !important;
}

.header-shell.cleaner-header.customer.ultra-compact-header {
  padding: 8px 14px 10px !important;
  gap: 6px !important;
}

.header-shell.cleaner-header.customer.ultra-compact-header.filter-only-header {
  padding-bottom: 10px !important;
}

.header-shell.cleaner-header.customer.ultra-compact-header .filter-header-copy {
  display: flex !important;
  align-items: baseline !important;
  gap: 10px !important;
  margin-bottom: 6px !important;
}

.header-shell.cleaner-header.customer.ultra-compact-header .filter-header-copy h2,
.header-shell.cleaner-header.customer.ultra-compact-header .header-copy h2 {
  font-size: 0.98rem !important;
  line-height: 1.1 !important;
  margin: 0 !important;
}

.header-shell.cleaner-header.customer.ultra-compact-header .filter-header-copy .header-subcopy,
.header-shell.cleaner-header.customer.ultra-compact-header .header-subcopy {
  margin: 0 !important;
  font-size: 0.78rem !important;
  line-height: 1.28 !important;
}

.header-shell.cleaner-header.customer.ultra-compact-header .page-heading-row {
  min-height: 0 !important;
}

.header-shell.cleaner-header.customer.ultra-compact-header .header-copy {
  display: grid !important;
  gap: 2px !important;
}

.header-shell.cleaner-header.customer.ultra-compact-header .filter-grid.customer-filters {
  gap: 8px !important;
}

.header-shell.cleaner-header.customer.ultra-compact-header .compact-filter-field {
  gap: 3px !important;
}

.header-shell.cleaner-header.customer.ultra-compact-header .compact-filter-field span {
  font-size: 0.64rem !important;
}

.header-shell.cleaner-header.customer.ultra-compact-header .compact-filter-field select {
  height: 36px !important;
  font-size: 0.9rem !important;
}

.profile-settings-shell {
  margin-top: 0 !important;
}


/* v36 force slim customer top bar */
.main-shell { gap: 8px !important; }
.customer-topbar.card { padding: 4px 12px !important; min-height: 48px !important; height: auto !important; border-radius: 16px !important; }
.customer-topbar.card .topbar-search { max-width: 420px !important; align-self: center !important; }
.customer-topbar.card .topbar-search input { height: 30px !important; padding: 0 14px !important; font-size: 0.88rem !important; }
.customer-topbar.card .topbar-actions { gap: 8px !important; }
.customer-topbar.card .icon-pill, .customer-topbar.card .profile-trigger { height: 32px !important; min-height: 32px !important; }
.customer-topbar.card .icon-pill { min-width: 32px !important; width: 32px !important; padding: 0 !important; }
.customer-topbar.card .profile-trigger { padding: 0 8px 0 5px !important; gap: 6px !important; }
.customer-topbar.card .profile-avatar { width: 24px !important; height: 24px !important; font-size: 0.7rem !important; }
.customer-topbar.card .profile-meta strong { font-size: 0.82rem !important; line-height: 1 !important; }
.customer-topbar.card .profile-meta small { font-size: 0.68rem !important; line-height: 1 !important; }
.customer-topbar.card .notification-badge { min-width: 18px !important; height: 18px !important; top: -6px !important; right: -5px !important; font-size: 0.68rem !important; }
.profile-settings-shell, .profile-settings-card { margin-top: 0 !important; }

.identity-workbench-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
}

.identity-form-card,
.identity-summary-card,
.identity-directory-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.module-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #7386a1;
  font-weight: 700;
}

.module-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.module-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #d6dfec;
  border-radius: 14px;
  background: #fff;
  font-size: 14px;
  color: #20304a;
}

.module-check input {
  width: 16px;
  height: 16px;
}

.identity-list .history-row {
  align-items: flex-start;
}

.identity-row strong {
  display: block;
  margin-bottom: 4px;
}

.identity-row span {
  display: block;
  color: #657795;
}

.identity-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.history-rollback.muted {
  background: #fff;
  color: #5c6d8a;
  border-color: #d6dfec;
}

.identity-table-shell table td,
.identity-table-shell table th {
  white-space: nowrap;
}

.inline-filter-field {
  min-width: 180px;
}

.inline-filter-field select {
  min-width: 180px;
}

@media (max-width: 1100px) {
  .identity-workbench-grid {
    grid-template-columns: 1fr;
  }

  .identity-form-grid,
  .module-checkbox-grid {
    grid-template-columns: 1fr;
  }
}


/* v40 identity access cleanup */
.clean-access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.clean-access-grid .identity-form-card,
.clean-access-grid .identity-summary-card {
  min-width: 0;
}

.help-card {
  margin-top: 14px;
}

.table-actions-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.table-state-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #d6dfec;
  background: #f8fbff;
  color: #5d708d;
  font-size: 0.82rem;
  font-weight: 700;
}
.table-state-pill.inactive {
  background: #f8f2f2;
  border-color: #e8d4d4;
  color: #8a4d4d;
}

.membership-role-select {
  min-width: 160px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #d6dfec;
  background: #fff;
  color: #10233f;
  padding: 0 10px;
  font: inherit;
}

.user-management-actions {
  min-width: 260px;
}

.identity-table-shell .history-rollback[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}


.table-state-pill.active {
  background: #edf4ff;
  color: #2457d6;
  border-color: #c7d8ff;
}

.return-admin-pill {
  height: 32px;
  border-radius: 999px;
  border: 1px solid #c8d7ea;
  background: #fff;
  color: #20304a;
  padding: 0 12px;
  font-weight: 700;
  white-space: nowrap;
}

.return-admin-pill:hover {
  background: #f5f8fd;
}

@media (max-width: 1180px) {
  .clean-access-grid {
    grid-template-columns: 1fr;
  }
}


.identity-side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.identity-access-card .section-copy {
  margin-top: 6px;
}

.compact-module-selector {
  gap: 8px;
}

.module-checkbox-grid-compact {
  grid-template-columns: 1fr;
  gap: 8px;
}

.split-actions-row {
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 1100px) {
  .split-actions-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.notification-menu-shell {
  position: relative;
}

.notification-pill {
  position: relative;
  overflow: visible;
}

.notification-dot {
  position: absolute;
  top: -2px;
  right: -1px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #d83a34;
  box-shadow: 0 0 0 3px #ffffff;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, 82vw);
  background: #ffffff;
  border: 1px solid #d7e2f0;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(11, 22, 46, 0.16);
  padding: 16px;
  z-index: 40;
}

.notification-dropdown-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.notification-dropdown-head h4 {
  margin: 2px 0 0;
  font-size: 1.05rem;
}

.text-action {
  border: 0;
  background: transparent;
  color: #4169e1;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.notification-list {
  display: grid;
  gap: 10px;
  max-height: 440px;
  overflow: auto;
  padding-right: 2px;
}

.notification-row {
  border: 1px solid #d7e2f0;
  border-radius: 16px;
  padding: 12px 12px 10px;
  background: #fbfdff;
}

.notification-row.unread {
  background: #f6f9ff;
  border-color: #c8d8ff;
}

.notification-row.warning {
  border-left: 4px solid #d9a441;
}

.notification-row.success {
  border-left: 4px solid #4f8d61;
}

.notification-row.info {
  border-left: 4px solid #5c78a8;
}

.notification-open {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.notification-row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.notification-row-top strong {
  color: #162238;
  font-size: 0.98rem;
}

.notification-row-top span {
  color: #6a7b97;
  font-size: 0.78rem;
  white-space: nowrap;
}

.notification-row-body {
  display: block;
  color: #556985;
  line-height: 1.45;
  font-size: 0.92rem;
}

.notification-row-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.notification-read-state {
  color: #7f90aa;
  font-size: 0.82rem;
  font-weight: 700;
}


@media (max-width: 900px) {
  .notification-dropdown {
    right: -20px;
    width: min(360px, 92vw);
  }
}


/* v56 executive summary rebuild */
.executive-topbar {
  margin-bottom: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(198, 211, 227, 0.7);
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(246,249,253,0.96) 100%);
  box-shadow: 0 12px 36px rgba(15, 23, 38, 0.06);
}

.executive-topbar-search input {
  height: 44px;
  border-radius: 14px;
  border: 1px solid #d6e0ec;
  background: #f8fbff;
}

.executive-topbar-actions {
  gap: 10px;
}

.executive-notification-pill {
  height: 44px;
  min-width: 140px;
  padding: 0 16px 0 14px;
  border-radius: 14px;
  gap: 10px;
  border: 1px solid #d7e3f0;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
  color: #17304f;
  font-size: 0.9rem;
  font-weight: 700;
}

.executive-notification-pill svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 18px;
}

.executive-profile-trigger {
  min-height: 44px;
  padding-right: 14px;
  border: 1px solid #d7e3f0;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: none;
}

.executive-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.9fr);
  gap: 18px;
  margin-bottom: 18px;
}

.executive-hero-card,
.executive-priority-card,
.executive-kpi-card,
.executive-focus-card,
.executive-signal-card,
.executive-chart-card,
.executive-detail-table-shell .table-card {
  border: 1px solid rgba(198, 211, 227, 0.82);
  box-shadow: 0 14px 36px rgba(15, 23, 38, 0.055);
}

.executive-hero-card {
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(36, 87, 214, 0.10), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.executive-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.executive-hero-copy h1 {
  margin: 6px 0 8px;
  font-size: 2.1rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.executive-hero-text {
  max-width: 760px;
  margin: 0;
  color: #5c6f87;
  font-size: 1rem;
  line-height: 1.65;
}

.executive-hero-side {
  min-width: 260px;
  display: grid;
  gap: 12px;
}

.executive-live-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(36, 87, 214, 0.08);
  color: #204cb8;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.executive-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.executive-meta-grid article,
.executive-priority-stats article {
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(214, 226, 239, 0.95);
}

.executive-meta-grid span,
.executive-priority-stats span,
.executive-focus-tile span,
.executive-kpi-label,
.executive-signal-row span {
  display: block;
  color: #7385a0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.executive-meta-grid strong,
.executive-priority-stats strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  line-height: 1.3;
}

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

.executive-filter-field {
  min-width: 0;
}

.executive-filter-field span {
  color: #6d7f99;
  font-size: 0.79rem;
  font-weight: 700;
}

.executive-filter-field select {
  height: 50px;
  border-radius: 14px;
  border: 1px solid #d7e2ef;
  background: rgba(255,255,255,0.94);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.executive-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.executive-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf4ff;
  color: #23479b;
  font-size: 0.84rem;
  font-weight: 700;
}

.executive-chip small {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.executive-chip.neutral {
  background: #f2f5f9;
  color: #52647d;
}

.executive-priority-card {
  padding: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
}

.compact-section-heading {
  margin-bottom: 12px;
}

.compact-section-heading h3 {
  margin-top: 4px;
  font-size: 1.25rem;
}

.executive-priority-copy {
  margin: 0 0 16px;
  color: #586b84;
  line-height: 1.65;
}

.executive-priority-stats {
  display: grid;
  gap: 10px;
}

.executive-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.executive-kpi-card {
  padding: 20px 20px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.executive-kpi-card strong {
  display: block;
  margin: 16px 0 8px;
  font-size: clamp(2rem, 2.8vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.executive-kpi-card p {
  margin: 0;
  color: #60738c;
  line-height: 1.58;
}

.executive-kpi-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.executive-kpi-delta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
}

.executive-kpi-delta.down {
  background: #fff0ef;
  color: #c44036;
}

.executive-kpi-delta.neutral {
  background: #fff4e3;
  color: #c07b11;
}

.executive-kpi-delta.up {
  background: #e9f7ef;
  color: #228457;
}

.executive-rail-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.executive-focus-card,
.executive-signal-card,
.executive-chart-card {
  padding: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.executive-focus-grid,
.executive-signal-list,
.executive-notification-list {
  display: grid;
  gap: 12px;
}

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

.executive-focus-tile {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #dfe8f2;
  background: #f8fbff;
}

.executive-focus-tile strong {
  display: block;
  margin: 8px 0 8px;
  font-size: 1.08rem;
  line-height: 1.32;
}

.executive-focus-tile p {
  margin: 0;
  color: #61748d;
  line-height: 1.55;
}

.executive-focus-tile.up {
  background: linear-gradient(180deg, #f4f8ff 0%, #eef4ff 100%);
}

.executive-focus-tile.down {
  background: linear-gradient(180deg, #fff9fb 0%, #fff3f5 100%);
}

.executive-signal-row,
.executive-notification-row {
  width: 100%;
  text-align: left;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid #dfe8f2;
  background: #fafcff;
}

.executive-signal-row strong,
.executive-notification-row strong {
  display: block;
  margin: 6px 0 6px;
  font-size: 1rem;
  line-height: 1.35;
}

.executive-signal-row p,
.executive-notification-row span {
  margin: 0;
  color: #5e728a;
  line-height: 1.55;
}

.executive-signal-row.critical {
  background: linear-gradient(180deg, #fff9f8 0%, #fff3f1 100%);
  border-color: #f0d4cf;
}

.executive-signal-row.warning {
  background: linear-gradient(180deg, #fffaf3 0%, #fff6ea 100%);
  border-color: #efdcbc;
}

.executive-signal-row.info {
  background: linear-gradient(180deg, #f7faff 0%, #f1f6ff 100%);
  border-color: #dce7fa;
}

.executive-notification-row {
  display: grid;
  gap: 3px;
}

.executive-notification-row small {
  color: #8192a9;
  font-size: 0.76rem;
  font-weight: 700;
}

.executive-notification-row.unread {
  border-color: #bfd4ff;
  background: linear-gradient(180deg, #f8fbff 0%, #f0f5ff 100%);
}

.executive-chart-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(350px, 0.95fr);
  margin-bottom: 18px;
}

.executive-chart-card .section-copy {
  margin-top: 6px;
}

.executive-detail-table-shell {
  margin-top: 18px;
}

.executive-detail-table-shell .table-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.lifecycle-section,
.executive-detail-table-shell .table-card {
  margin-top: 0;
}

@media (max-width: 1320px) {
  .executive-kpi-grid,
  .executive-focus-grid,
  .executive-filter-grid,
  .executive-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .executive-rail-grid,
  .executive-chart-grid,
  .executive-hero-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .executive-kpi-grid,
  .executive-focus-grid,
  .executive-filter-grid,
  .executive-meta-grid {
    grid-template-columns: 1fr;
  }

  .executive-hero-card,
  .executive-priority-card,
  .executive-focus-card,
  .executive-signal-card,
  .executive-chart-card {
    padding: 18px;
  }

  .executive-hero-top {
    flex-direction: column;
  }

  .executive-hero-copy h1 {
    font-size: 1.6rem;
  }

  .executive-notification-pill {
    min-width: 44px;
    padding-inline: 12px;
  }

  .executive-notification-pill span:last-child {
    display: none;
  }
}

/* v56 topbar specificity overrides */
.customer-topbar.card.executive-topbar {
  padding: 12px 16px !important;
  min-height: 64px !important;
  border-radius: 18px !important;
}

.customer-topbar.card.executive-topbar .topbar-search {
  max-width: 520px !important;
}

.customer-topbar.card.executive-topbar .topbar-search input {
  height: 44px !important;
  padding: 0 16px !important;
  font-size: 0.94rem !important;
}

.customer-topbar.card.executive-topbar .topbar-actions {
  gap: 10px !important;
}

.customer-topbar.card.executive-topbar .executive-notification-pill {
  width: auto !important;
  min-width: 140px !important;
  height: 44px !important;
  padding: 0 16px 0 14px !important;
}

.customer-topbar.card.executive-topbar .executive-profile-trigger {
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 14px 0 6px !important;
  gap: 10px !important;
}

.customer-topbar.card.executive-topbar .profile-avatar {
  width: 30px !important;
  height: 30px !important;
  font-size: 0.78rem !important;
}

.customer-topbar.card.executive-topbar .profile-meta strong {
  font-size: 0.88rem !important;
}

.customer-topbar.card.executive-topbar .profile-meta small {
  font-size: 0.72rem !important;
}

/* === Executive summary redesign v2 === */
.customer-topbar.card.executive-topbar {
  padding: 8px 14px !important;
  min-height: 58px !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,0.9) !important;
  border: 1px solid rgba(205, 218, 233, 0.9) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 38, 0.04) !important;
}

.customer-topbar.card.executive-topbar .topbar-search {
  max-width: 360px !important;
}

.customer-topbar.card.executive-topbar .topbar-search input {
  height: 36px !important;
  border-radius: 12px !important;
  background: #f6f9fc !important;
  border: 1px solid #e3ebf4 !important;
  font-size: 0.9rem !important;
}

.customer-topbar.card.executive-topbar .topbar-actions {
  gap: 10px !important;
}

.customer-topbar.card.executive-topbar .executive-notification-pill,
.customer-topbar.card.executive-topbar .executive-profile-trigger {
  height: 38px !important;
  border-radius: 12px !important;
  border: 1px solid #e3ebf4 !important;
  background: #f8fbfe !important;
  box-shadow: none !important;
}

.customer-topbar.card.executive-topbar .executive-notification-pill {
  width: auto !important;
  min-width: 44px !important;
  padding: 0 12px !important;
}

.customer-topbar.card.executive-topbar .executive-profile-trigger {
  padding: 0 10px 0 6px !important;
}

.customer-topbar.card.executive-topbar .profile-avatar {
  width: 28px !important;
  height: 28px !important;
  background: linear-gradient(135deg, #eef4ff 0%, #dbe7ff 100%) !important;
  color: #2457d6 !important;
}

.executive-brief-card,
.executive-kpi-band,
.executive-watchlist-card,
.executive-snapshot-card,
.executive-chart-card,
.lifecycle-section,
.executive-detail-table-shell .table-card {
  border-radius: 22px;
  border: 1px solid rgba(211, 221, 233, 0.92);
  box-shadow: 0 10px 28px rgba(15, 23, 38, 0.045);
}

.executive-brief-card {
  padding: 22px 24px;
  display: grid;
  gap: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,251,254,0.96) 100%);
}

.executive-brief-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.95fr);
  gap: 22px;
  align-items: start;
}

.executive-brief-copy h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.executive-brief-text {
  margin: 10px 0 0;
  max-width: 760px;
  font-size: 0.98rem;
  line-height: 1.58;
  color: var(--muted);
}

.executive-brief-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.executive-brief-stats article {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(247, 250, 253, 0.94);
  border: 1px solid #e5edf6;
  min-height: 84px;
}

.executive-brief-stats span,
.executive-section-label,
.executive-snapshot-row span,
.executive-activity-row small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7d8ea5;
}

.executive-brief-stats strong {
  display: block;
  margin-top: 10px;
  font-size: 1.15rem;
  line-height: 1.05;
  color: var(--text);
}

.executive-brief-stats small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.executive-brief-toolbar {
  display: grid;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid #edf2f8;
}

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

.executive-filter-field span {
  margin-bottom: 4px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7d8ea5;
}

.executive-filter-field select {
  height: 42px;
  border-radius: 12px;
  background: #f8fbfe;
  border: 1px solid #e1eaf4;
  box-shadow: none;
}

.executive-chip-row.executive-chip-row-compact {
  gap: 8px;
  min-height: auto;
}

.executive-chip {
  padding: 7px 10px;
  background: #f5f8fc;
  border: 1px solid #e2ebf5;
  border-radius: 999px;
  color: #51657f;
}

.executive-chip small {
  color: #8090a5;
}

.executive-toolbar-strip {
  display: grid;
  gap: 10px;
  padding: 4px 2px 16px;
  margin-bottom: 10px;
  border-bottom: 1px solid #edf2f8;
}

.executive-kpi-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 6px 0;
  overflow: hidden;
}

.executive-kpi-band-item {
  padding: 18px 20px;
  min-height: 128px;
  position: relative;
}

.executive-kpi-band-item:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: #ecf1f7;
}

.executive-kpi-band-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.executive-kpi-band-item strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.035em;
}

.executive-kpi-band-item p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 280px;
}

.executive-main-grid,
.executive-secondary-grid {
  display: grid;
  gap: 18px;
}

.executive-main-grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.9fr);
}

.executive-secondary-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.executive-chart-card,
.executive-watchlist-card,
.executive-snapshot-card {
  padding: 22px;
}

.executive-chart-main-card .chart-svg-shell,
.executive-secondary-grid .chart-svg-shell {
  margin-top: 18px;
}

.executive-watchlist-card,
.executive-snapshot-card {
  display: grid;
  gap: 16px;
}

.executive-watchlist-section,
.executive-snapshot-list {
  display: grid;
  gap: 10px;
}

.executive-watchlist-section.notifications {
  padding-top: 12px;
  border-top: 1px solid #edf2f8;
}

.executive-watchlist-row,
.executive-activity-row,
.executive-snapshot-row {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid #e7eef6;
  background: #fbfdff;
}

.executive-watchlist-row strong,
.executive-activity-row strong,
.executive-snapshot-row strong {
  display: block;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--text);
}

.executive-watchlist-row p,
.executive-activity-row span,
.executive-snapshot-row p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.executive-watchlist-row.critical {
  border-color: #f2d7d7;
  background: #fff9f9;
}

.executive-watchlist-row.warning {
  border-color: #f3e2c4;
  background: #fffaf1;
}

.executive-watchlist-row.info {
  border-color: #dae4f3;
  background: #f9fbff;
}

.executive-activity-row {
  cursor: pointer;
}

.executive-activity-row.unread {
  border-color: #dbe6fb;
  background: #f7faff;
}

.executive-activity-row small {
  margin-top: 8px;
}

.executive-snapshot-row strong {
  margin-top: 8px;
}

.executive-snapshot-row p {
  max-width: 90%;
}

.lifecycle-section {
  padding: 22px;
}

.executive-detail-table-shell {
  margin-top: 2px;
}

.executive-detail-table-shell .table-card {
  padding: 22px;
}

.executive-detail-table-shell .table-shell {
  border-radius: 16px;
}

@media (max-width: 1200px) {
  .executive-brief-top,
  .executive-main-grid,
  .executive-secondary-grid {
    grid-template-columns: 1fr;
  }

  .executive-kpi-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .executive-kpi-band-item:nth-child(3)::before,
  .executive-kpi-band-item:nth-child(4)::before {
    display: none;
  }

  .executive-kpi-band-item:nth-child(n+3) {
    border-top: 1px solid #ecf1f7;
  }
}

@media (max-width: 820px) {
  .executive-brief-card,
  .executive-chart-card,
  .executive-watchlist-card,
  .executive-snapshot-card,
  .lifecycle-section,
  .executive-detail-table-shell .table-card {
    padding: 18px;
  }

  .executive-filter-grid,
  .executive-brief-stats,
  .executive-kpi-band {
    grid-template-columns: 1fr;
  }

  .executive-kpi-band-item:not(:first-child)::before {
    display: none;
  }

  .executive-kpi-band-item:not(:first-child) {
    border-top: 1px solid #ecf1f7;
  }

  .executive-brief-copy h1 {
    font-size: 1.65rem;
  }

  .customer-topbar.card.executive-topbar {
    padding: 10px 12px !important;
  }

  .customer-topbar.card.executive-topbar .topbar-search {
    max-width: 100% !important;
  }
}


/* v57 executive summary clean-up */
.executive-toolbar-strip {
  gap: 12px;
  padding: 2px 0 8px;
  margin-bottom: 12px;
  border-bottom: 0;
}

.executive-toolbar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.executive-toolbar-head h3 {
  margin: 4px 0 0;
  font-size: 1rem;
  line-height: 1.1;
}

.executive-toolbar-note {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f5f8fc;
  border: 1px solid #e2ebf5;
  color: #5c7089;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.executive-filter-grid {
  gap: 12px;
}

.executive-filter-field {
  gap: 6px;
}

.executive-filter-field span {
  margin-bottom: 0;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8091a7;
}

.executive-filter-field select {
  height: 46px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #dbe6f2;
  box-shadow: 0 1px 0 rgba(255,255,255,0.9), 0 6px 16px rgba(15, 23, 38, 0.035);
  font-size: 0.98rem;
  padding: 0 42px 0 14px;
}

.executive-main-grid,
.executive-secondary-grid {
  align-items: start;
}

.executive-chart-card,
.executive-watchlist-card,
.executive-snapshot-card,
.executive-kpi-band,
.lifecycle-section,
.executive-detail-table-shell .table-card {
  align-self: start;
}

.executive-chart-main-card .chart-svg-shell {
  margin-top: 14px;
}

.executive-chart-main-card .chart-legend {
  margin-top: 8px;
}

.executive-watchlist-card {
  height: fit-content;
}

@media (max-width: 900px) {
  .executive-toolbar-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .executive-toolbar-note {
    white-space: normal;
  }
}

/* Executive Summary v2 rebuild */
.executive-v2-shell {
  display: grid;
  gap: 16px;
}

.executive-v2-hero-card {
  padding: 20px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 18px;
  border-color: #e3ebf4;
  box-shadow: 0 16px 34px rgba(20, 34, 54, 0.06);
}

.executive-v2-hero-copy h1 {
  margin: 6px 0 10px;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.executive-v2-hero-copy p:last-child {
  margin: 0;
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.5;
}

.executive-v2-hero-meta {
  display: grid;
  gap: 10px;
}

.executive-v2-hero-meta article {
  border: 1px solid #e7eef6;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
  border-radius: 16px;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
}

.executive-v2-hero-meta span,
.executive-v2-kpi-label,
.executive-v2-inline-note {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.executive-v2-hero-meta strong {
  font-size: 1rem;
  line-height: 1.1;
}

.executive-v2-hero-meta small {
  color: var(--muted);
}

.executive-v2-filterbar {
  padding: 16px 18px 18px;
  display: grid;
  gap: 14px;
  border-color: #e6edf6;
  box-shadow: none;
}

.executive-v2-filterbar-head,
.executive-v2-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.executive-v2-panel-head.tight {
  align-items: center;
}

.executive-v2-filterbar-head h3,
.executive-v2-panel-head h3 {
  margin: 4px 0 0;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.executive-v2-export-button {
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #cfdbea;
  background: white;
  color: var(--text);
  font-weight: 700;
}

.executive-v2-export-button:hover {
  background: #f6f9fc;
}

.executive-v2-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.executive-v2-kpi {
  padding: 16px;
  border-color: #e7eef6;
  box-shadow: none;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
}

.executive-v2-kpi strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.executive-v2-kpi p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
  font-size: 0.82rem;
}

.executive-v2-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, 0.85fr);
  gap: 14px;
  align-items: start;
}

.executive-v2-primary-column,
.executive-v2-side-column {
  display: grid;
  gap: 14px;
}

.executive-v2-panel,
.executive-v2-sidecard {
  padding: 18px;
  border-color: #e7eef6;
  box-shadow: none;
}

.executive-v2-panel-hero {
  padding-bottom: 16px;
}

.executive-v2-timeline-list,
.executive-v2-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.executive-v2-timeline-row {
  border: 1px solid #ebf0f6;
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 10px;
  background: #fbfdff;
}

.executive-v2-timeline-copy {
  display: grid;
  gap: 4px;
}

.executive-v2-timeline-copy strong,
.executive-v2-list-item strong,
.executive-v2-action-row strong,
.executive-v2-activity-button strong {
  font-size: 0.94rem;
}

.executive-v2-timeline-copy span,
.executive-v2-list-item p,
.executive-v2-action-row p,
.executive-v2-activity-button span,
.executive-v2-activity-button small {
  color: var(--muted);
}

.executive-v2-timeline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.executive-v2-progress-track {
  height: 8px;
  border-radius: 999px;
  background: #edf3f9;
  overflow: hidden;
}

.executive-v2-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2457d6 0%, #4d7ef5 100%);
}

.executive-v2-stage-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: #eef3f8;
  color: var(--text);
}

.executive-v2-stage-pill.on-time,
.executive-v2-list-item.success {
  background: #eaf7ef;
  color: #1f7a4f;
}

.executive-v2-stage-pill.watch,
.executive-v2-list-item.warning {
  background: #fff5e4;
  color: #a86403;
}

.executive-v2-stage-pill.queued,
.executive-v2-list-item.info {
  background: #edf3ff;
  color: #2457d6;
}

.executive-v2-list-item.danger,
.executive-v2-list-item.error,
.executive-v2-list-item.down {
  background: #fff1f1;
  color: #a62f2f;
}

.executive-v2-list-item {
  border-radius: 14px;
  padding: 13px 14px;
  display: grid;
  gap: 4px;
}

.executive-v2-action-row {
  border-bottom: 1px solid #eef2f6;
  padding-bottom: 10px;
}

.executive-v2-action-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.executive-v2-activity-button {
  width: 100%;
  border: 1px solid #e7eef6;
  background: #fbfdff;
  border-radius: 14px;
  padding: 13px 14px;
  display: grid;
  gap: 4px;
  text-align: left;
}

.executive-v2-activity-button.unread {
  border-color: #d7e4fb;
  background: #f7faff;
}

.executive-v2-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
}

.executive-v2-table {
  width: 100%;
  border-collapse: collapse;
}

.executive-v2-table th,
.executive-v2-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  vertical-align: middle;
}

.executive-v2-table th {
  color: var(--muted-2);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.executive-v2-table td {
  font-size: 0.88rem;
}

.executive-v2-empty {
  border: 1px dashed #d7e1ec;
  border-radius: 14px;
  padding: 16px;
  color: var(--muted);
  background: #fbfdff;
}

@media (max-width: 1280px) {
  .executive-v2-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .executive-v2-hero-card,
  .executive-v2-main-grid {
    grid-template-columns: 1fr;
  }

  .executive-v2-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .executive-v2-filterbar-head,
  .executive-v2-panel-head,
  .executive-v2-timeline-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .executive-v2-kpi-grid {
    grid-template-columns: 1fr;
  }

  .executive-v2-hero-card,
  .executive-v2-panel,
  .executive-v2-sidecard,
  .executive-v2-filterbar {
    padding: 16px;
  }
}


/* Executive Summary v3 premium cleanup */
.executive-v3-shell {
  display: grid;
  gap: 14px;
}

.executive-v3-filterbar,
.executive-v3-panel {
  padding: 16px 18px;
  border-color: #e5ecf5;
  box-shadow: 0 10px 28px rgba(17, 30, 52, 0.045);
}

.executive-v3-filterbar {
  display: grid;
  gap: 12px;
}

.executive-v3-filterbar-top,
.executive-v3-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.executive-v3-userblock {
  display: grid;
  gap: 2px;
}

.executive-v3-userblock strong {
  font-size: 1rem;
  line-height: 1.05;
}

.executive-v3-userblock span,
.executive-v3-refresh {
  color: var(--muted);
  font-size: 0.84rem;
}

.executive-v3-head h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.executive-v3-export-button {
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #d5e0ec;
  background: #fff;
  color: var(--text);
  font-weight: 700;
}

.executive-v3-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.executive-v3-kpi-grid .executive-v2-kpi {
  padding: 16px;
  min-height: 118px;
}

.executive-v3-kpi-grid .executive-v2-kpi-label {
  font-size: 0.7rem;
}

.executive-v3-kpi-grid .executive-v2-kpi p {
  margin-top: 6px;
}

.executive-v3-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.92fr);
  gap: 14px;
  align-items: start;
}

.executive-v3-primary-column,
.executive-v3-side-column {
  display: grid;
  gap: 14px;
  align-content: start;
}

.executive-v3-chart-card .chart-svg-shell {
  margin-top: 10px;
}

.executive-v3-orders-card,
.executive-v3-chart-card,
.executive-v3-sidecard {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.executive-v3-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

.executive-v3-table {
  width: 100%;
  border-collapse: collapse;
}

.executive-v3-table th,
.executive-v3-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  vertical-align: middle;
}

.executive-v3-table th {
  color: var(--muted-2);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.executive-v3-table td {
  font-size: 0.88rem;
}

.executive-v3-stage-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: #eef3f8;
  color: var(--text);
}

.executive-v3-stage-pill.on-time { background: #eaf7ef; color: #1f7a4f; }
.executive-v3-stage-pill.watch { background: #fff5e4; color: #a86403; }
.executive-v3-stage-pill.queued { background: #edf3ff; color: #2457d6; }

.executive-v3-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.executive-v3-alert,
.executive-v3-activity {
  width: 100%;
  border-radius: 16px;
  padding: 16px 16px 15px;
  display: grid;
  gap: 6px;
  text-align: left;
}

.executive-v3-alert {
  border: 1px solid #ebeef3;
  background: #f8fafc;
}

.executive-v3-alert strong,
.executive-v3-activity strong {
  font-size: 0.93rem;
  line-height: 1.25;
}

.executive-v3-alert p,
.executive-v3-activity p,
.executive-v3-activity small {
  margin: 0;
  color: var(--muted);
}

.executive-v3-alert.critical {
  background: #fff3ee;
  border-color: #f3d8ca;
}

.executive-v3-alert.warning {
  background: #f8eedf;
  border-color: #ecdec8;
}

.executive-v3-alert.info {
  background: #f3f7fc;
  border-color: #e1e9f3;
}

.executive-v3-activity {
  border: 1px solid #e6edf6;
  background: #fbfdff;
}

.executive-v3-activity.unread {
  border-color: #d7e4fb;
  background: #f7faff;
}

.executive-v3-empty {
  border: 1px dashed #d7e1ec;
  border-radius: 14px;
  padding: 16px;
  color: var(--muted);
  background: #fbfdff;
}

@media (max-width: 1280px) {
  .executive-v3-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .executive-v3-main-grid,
  .executive-v3-kpi-grid {
    grid-template-columns: 1fr;
  }

  .executive-v3-filterbar-top,
  .executive-v3-head {
    flex-direction: column;
    align-items: flex-start;
  }
}


.po-tracker-shell {
  display: grid;
  gap: 14px;
}

.po-tracker-intro {
  padding: 18px 18px 16px;
  border: 1px solid rgba(198, 211, 227, 0.72);
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 100%);
  box-shadow: 0 20px 48px rgba(15, 23, 38, 0.05);
}

.po-tracker-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.po-tracker-topline h2 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.po-metric-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.po-metric-card {
  padding: 14px 14px 13px;
  border-radius: 14px;
  border: 1px solid rgba(198, 211, 227, 0.75);
  background: rgba(255,255,255,0.82);
}

.po-metric-card span {
  display: block;
  color: var(--muted-2);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.po-metric-card strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.po-metric-card.success {
  background: linear-gradient(180deg, #f8fdf9 0%, #eef9f2 100%);
  border-color: #d6eadc;
}

.po-metric-card.info {
  background: linear-gradient(180deg, #f9fbff 0%, #eef3ff 100%);
  border-color: #d9e2fb;
}

.po-metric-card.warning {
  background: linear-gradient(180deg, #fffaf3 0%, #fff3e1 100%);
  border-color: #f1dfbd;
}

.compact-heading {
  margin-bottom: 2px;
}

.po-tracker-shell .lifecycle-section,
.po-tracker-shell .table-card {
  margin-top: 0;
  border: 1px solid rgba(198, 211, 227, 0.74);
  box-shadow: 0 20px 48px rgba(15, 23, 38, 0.045);
}

.po-tracker-shell .lifecycle-section {
  padding-top: 18px;
}

.po-tracker-shell .lifecycle-grid {
  gap: 10px;
}

.po-tracker-shell .lifecycle-card {
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border-color: rgba(198, 211, 227, 0.75);
}

.po-tracker-shell .lifecycle-card.on-time {
  box-shadow: inset 0 0 0 1px rgba(35, 136, 86, 0.08);
}

.po-tracker-shell .lifecycle-card.watch,
.po-tracker-shell .lifecycle-card.queued {
  box-shadow: inset 0 0 0 1px rgba(217, 134, 22, 0.08);
}

.po-tracker-shell .lifecycle-topline strong {
  font-size: 1.08rem;
}

.po-tracker-shell .lifecycle-track {
  gap: 10px;
}

.po-tracker-shell .table-card {
  padding: 18px;
}

.po-tracker-shell .table-topline {
  margin-bottom: 12px;
}

.po-tracker-shell .table-shell {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(216, 226, 238, 0.95);
  background: #fff;
}

.po-tracker-shell .table-shell table thead th {
  background: #f7f9fc;
}

.po-tracker-shell .table-shell table tbody tr:nth-child(even) {
  background: #fbfcfe;
}

@media (max-width: 1200px) {
  .po-metric-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .po-metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .po-tracker-topline h2 {
    font-size: 1.45rem;
  }
}


/* v5 production scheduling cleanup */
.schedule-heading-compact {
  align-items: flex-start;
  gap: 10px;
}

.schedule-heading-compact h3 {
  font-size: 0.96rem;
  letter-spacing: -0.01em;
}

.compact-legend {
  gap: 10px;
  font-size: 0.74rem;
}

.compact-calendar-toolbar {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.booking-summary-panel {
  margin-top: 12px;
}

.booking-summary-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.booking-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.booking-summary-card:hover {
  border-color: rgba(47, 99, 232, 0.18);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transform: translateY(-1px);
}

.booking-summary-card.active {
  border-color: rgba(47, 99, 232, 0.32);
  background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
}

.booking-summary-copy {
  min-width: 0;
}

.booking-summary-copy strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.25;
}

.booking-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.8rem;
}

.booking-summary-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.booking-summary-meta span + span::before {
  content: "•";
  color: #94a3b8;
  margin-right: 4px;
}

.booking-summary-chips {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.calendar-grid {
  margin-top: 8px;
  gap: 6px;
}

.calendar-day {
  min-height: 90px;
  border-radius: 10px;
}

.day-notes strong {
  font-size: 0.78rem;
}

.day-notes small {
  font-size: 0.7rem;
}

@media (max-width: 1180px) {
  .booking-summary-rail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .booking-summary-card {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .booking-summary-chips {
    justify-content: flex-start;
  }
}


/* Production scheduling refresh */
.schedule-grid-refined {
  display: block;
}

.schedule-card-refined {
  padding: 18px 18px 20px;
}

.refined-calendar-toolbar {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.refined-calendar-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.calendar-month-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fbfdff;
}

.refined-select-field {
  min-width: 112px;
}

.refined-select-field select,
.refined-calendar-button,
.calendar-month-pill .pager-button {
  border-radius: 12px;
}

.calendar-grid {
  margin-top: 12px;
  gap: 8px;
}

.calendar-dow {
  padding: 0 4px;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.calendar-day {
  min-height: 78px;
  border-radius: 16px;
  padding: 8px;
  gap: 6px;
  box-shadow: none;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.calendar-day:hover {
  transform: translateY(-1px);
}

.calendar-day.outside {
  background: #f8fafc;
  border-color: rgba(201, 212, 227, 0.8);
}

.calendar-day.available {
  background: #fcfffd;
  border-color: rgba(160, 222, 187, 0.95);
}

.calendar-day.booked {
  background: #fff8f8;
  border-color: rgba(237, 193, 193, 0.95);
}

.calendar-day.tentative {
  background: #fffaf1;
  border-color: rgba(239, 202, 141, 0.95);
}

.calendar-day.overdue {
  background: #fff5f2;
  border-color: rgba(231, 91, 66, 0.34);
}

.calendar-day.blocked,
.calendar-day.past {
  background: #fafcff;
}

.day-number {
  gap: 4px;
  font-size: 0.72rem;
}

.day-number > span:first-child {
  font-size: 0.8rem;
}

.day-chip {
  font-size: 0.58rem;
  padding: 3px 7px;
}

.day-notes {
  gap: 4px;
}

.day-notes div {
  padding: 7px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
}

.day-notes strong {
  font-size: 0.72rem;
}

.day-notes small {
  font-size: 0.64rem;
  margin-top: 2px;
}

.booking-dialog-backdrop {
  z-index: 35;
}

.booking-dialog-card {
  width: min(760px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: 24px;
  border-radius: 24px;
}

.booking-dialog-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.booking-dialog-copy {
  margin-top: 6px;
}

.booking-detail-grid-dialog {
  margin-top: 14px;
}

.booking-deposit-block-dialog {
  margin-top: 16px;
}

.booking-timeline-row-dialog {
  margin-top: 14px;
}

@media (max-width: 900px) {
  .refined-calendar-nav {
    align-items: stretch;
  }

  .calendar-month-pill {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .booking-dialog-topbar {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-day {
    min-height: 86px;
  }

  .booking-dialog-card {
    padding: 18px;
    border-radius: 20px;
  }
}


.request-dialog-card {
  width: min(920px, calc(100vw - 32px));
}
.request-dialog-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.dialog-close-button {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
.dialog-close-button:hover {
  border-color: rgba(37, 99, 235, 0.24);
  transform: translateY(-1px);
}
.request-dialog-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f6fb 100%);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.request-intro-copy strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.98rem;
}
.request-intro-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.request-intro-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.request-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.request-lines-shell {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}
.request-line-row {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(120px, 160px) minmax(170px, 200px) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fbfdff;
}
.request-line-row > * {
  min-width: 0;
}
.request-line-row .field {
  min-width: 0;
}
.request-line-row .field select,
.request-line-row .field input {
  width: 100%;
}
.request-line-metric {
  min-height: 64px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
  display: grid;
  align-content: center;
  gap: 4px;
}
.request-line-metric span,
.request-line-metric small {
  color: var(--muted);
}
.request-line-metric strong {
  font-size: 1rem;
  line-height: 1.1;
}
.request-line-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.request-line-button {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.request-line-button.danger {
  color: #991b1b;
}
.request-line-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.request-pricing-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.request-line-review {
  margin-top: 16px;
}
.request-line-review-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.request-line-review-card {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fbfdff;
  display: grid;
  gap: 4px;
}
.request-line-review-card span,
.request-line-review-card small {
  color: var(--muted);
}
.request-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.request-pricing-card {
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fbfdff;
  display: grid;
  gap: 6px;
}
.request-pricing-card span,
.request-pricing-card small {
  color: var(--muted);
}
.request-pricing-card strong {
  font-size: 1.05rem;
  line-height: 1.1;
}
.request-flow-note {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.request-flow-note > div {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  gap: 4px;
}
.request-flow-note span {
  font-size: 0.67rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.request-flow-note strong {
  font-size: 0.9rem;
  line-height: 1.25;
}
@media (max-width: 900px) {
  .request-dialog-intro,
  .request-dialog-topbar {
    flex-direction: column;
  }
  .request-intro-badges {
    justify-content: flex-start;
  }
  .request-pricing-grid,
  .request-flow-note {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .request-line-row {
    grid-template-columns: 1fr;
  }
  .request-line-actions {
    justify-content: flex-end;
  }
}
@media (max-width: 640px) {
  .request-form-grid {
    grid-template-columns: 1fr;
  }
  .request-pricing-grid-compact {
    grid-template-columns: 1fr;
  }
}


@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&display=swap');

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(249,248,253,0.92), rgba(245,244,250,0.98)),
    linear-gradient(rgba(61,30,110,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,30,110,0.05) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
}

.login-shell-premium {
  width: min(1520px, calc(100vw - 52px));
}

.login-card.login-stage-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(420px, 0.62fr);
  min-height: calc(100vh - 52px);
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(61,30,110,0.10);
  background: rgba(255,255,255,0.84);
  box-shadow: 0 32px 90px rgba(40,20,80,0.12);
  backdrop-filter: blur(20px);
}

.login-stage-panel {
  padding: 54px 58px;
}

.login-stage-hero {
  background: linear-gradient(180deg, #faf8fd 0%, #f7f5fb 100%);
  border-right: 1px solid rgba(61,30,110,0.08);
  display: flex;
  flex-direction: column;
}

.login-stage-auth {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255,255,255,0.58);
}

.login-stage-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.login-brand-stage {
  align-items: center;
  gap: 18px;
}

.login-mark-stage {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 1.15rem;
  background: linear-gradient(180deg, #4c267f 0%, #3d1e6e 100%);
  box-shadow: 0 12px 28px rgba(76,38,127,0.18);
}

.login-brand-stage span {
  color: rgba(61,30,110,0.58);
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.login-brand-stage strong {
  color: #1a1528;
  font-size: 1.12rem;
  line-height: 1.08;
}

.login-stage-copy-wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 46px;
  max-width: 860px;
}

.login-slide-stage {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.login-slide-copy {
  width: 100%;
  max-width: 680px;
}

.login-slide-copy-fade {
  animation: loginStageFade 640ms ease;
}

.login-slide-line1,
.login-slide-line2 {
  margin: 0;
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-size: clamp(4.9rem, 8.6vw, 8.2rem);
  color: #1a1528;
}

.login-slide-line2 {
  color: #5a2fa0;
  font-style: italic;
}

.login-feature-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 620px;
}

.login-feature-row {
  display: flex;
  align-items: center;
  gap: 15px;
  color: rgba(61,30,110,0.40);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
}

.login-feature-icon {
  width: 22px;
  text-align: center;
  color: rgba(90,47,160,0.52);
  font-size: 0.92rem;
}

.login-auth-copy-stage h2 {
  margin: 0 0 12px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 4.2rem;
  font-weight: 400;
  line-height: 0.94;
  color: #1a1528;
}

.login-auth-copy-stage p {
  margin: 0;
  color: rgba(61,30,110,0.56);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.96rem;
  letter-spacing: 0.04em;
}

.login-divider {
  height: 1px;
  margin: 26px 0 28px;
  background: linear-gradient(90deg, transparent, rgba(61,30,110,0.12) 20%, rgba(61,30,110,0.12) 80%, transparent);
}

.login-access-list,
.login-access-list-stage {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
}

.login-access-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 22px 24px;
  border-radius: 24px;
  text-align: left;
  cursor: pointer;
  background: rgba(243,238,250,0.95);
  border: 1px solid rgba(61,30,110,0.14);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.login-access-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(76,38,127,0.12);
}

.login-access-tile.active {
  background: linear-gradient(135deg, #4c267f 0%, #6a36b8 100%);
  border-color: rgba(122,79,223,0.68);
  box-shadow: 0 0 0 5px rgba(135,90,236,0.34), 0 16px 34px rgba(76,38,127,0.20);
}

.login-access-tile.active .login-access-meta strong,
.login-access-tile.active .login-access-meta small,
.login-access-tile.active .login-access-icon,
.login-access-tile.active .login-access-arrow {
  color: #fff;
}

.login-access-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(61,30,110,0.08);
  color: #4c267f;
}

.login-access-tile.active .login-access-icon {
  background: rgba(255,255,255,0.14);
}

.login-access-tile:focus-visible {
  outline: 2px solid rgba(106,54,184,0.34);
  outline-offset: 3px;
}

.login-access-meta {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.login-access-meta strong,
.login-access-meta small {
  display: block;
  font-family: 'Courier New', Courier, monospace;
}

.login-access-meta strong {
  font-size: 1.24rem;
  color: #1a1528;
  line-height: 1.1;
}

.login-access-meta small {
  color: rgba(61,30,110,0.54);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.login-access-arrow {
  flex-shrink: 0;
  color: rgba(61,30,110,0.52);
  font-size: 2rem;
  line-height: 1;
}

.login-error-stage {
  margin-top: 16px;
}

.login-auth-note {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  color: rgba(61,30,110,0.56);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.86rem;
  line-height: 1.55;
}

.login-auth-note-icon {
  color: rgba(61,30,110,0.50);
  font-size: 1rem;
  line-height: 1.4;
}

.login-auth-note strong {
  display: block;
  color: rgba(61,30,110,0.72);
  font-weight: 400;
}

.login-auth-note p {
  margin: 4px 0 0;
}

.login-auth-footer-stage {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(61,30,110,0.08);
}

.login-auth-footer-stage p {
  margin: 0;
  color: rgba(61,30,110,0.56);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.83rem;
  line-height: 1.65;
}

.login-auth-links {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(61,30,110,0.34);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82rem;
}

.login-auth-links button {
  border: 0;
  background: transparent;
  padding: 0;
  color: rgba(61,30,110,0.62);
  font-family: inherit;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-auth-links button:hover {
  color: #4c267f;
}

.login-form-stage,
.login-actions-stage,
.primary-login-button {
  display: none;
}

@keyframes loginStageFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1180px) {
  .login-card.login-stage-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .login-stage-hero {
    border-right: none;
    border-bottom: 1px solid rgba(61,30,110,0.08);
  }

  .login-stage-copy-wrap {
    max-width: none;
  }

  .login-slide-stage {
    min-height: 220px;
  }
}

@media (max-width: 760px) {
  .auth-shell {
    padding: 16px;
  }

  .login-shell-premium {
    width: min(100%, calc(100vw - 32px));
  }

  .login-card.login-stage-card {
    min-height: calc(100vh - 32px);
    border-radius: 24px;
  }

  .login-stage-panel {
    padding: 28px 22px;
  }

  .login-slide-stage {
    min-height: 190px;
  }

  .login-slide-line1,
  .login-slide-line2 {
    font-size: clamp(2.8rem, 12vw, 4.6rem);
  }

  .login-auth-copy-stage h2 {
    font-size: 2.7rem;
  }

  .login-access-tile {
    padding: 18px 18px;
    border-radius: 20px;
  }

  .login-access-meta strong {
    font-size: 1.05rem;
  }

  .login-access-meta small {
    font-size: 0.76rem;
  }
}


/* === Final login screen sizing override === */
.auth-shell {
  min-height: 100vh !important;
  height: 100vh !important;
  padding: 24px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  background:
    linear-gradient(180deg, rgba(249,248,253,0.96), rgba(245,244,250,0.98)),
    linear-gradient(rgba(61,30,110,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,30,110,0.05) 1px, transparent 1px) !important;
  background-size: auto, 72px 72px, 72px 72px !important;
}

.login-shell-premium {
  width: min(100%, 100vw - 48px) !important;
  height: 100% !important;
}

.login-card.login-stage-card {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  grid-template-columns: minmax(0, 1fr) 430px !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  background: rgba(255,255,255,0.9) !important;
  border: 1px solid rgba(61,30,110,0.09) !important;
  box-shadow: 0 18px 48px rgba(40,20,80,0.10) !important;
}

.login-stage-panel {
  padding: 56px 58px !important;
}

.login-stage-hero {
  display: grid !important;
  grid-template-rows: auto 1fr auto !important;
  background: linear-gradient(180deg, #faf8fd 0%, #f7f5fb 100%) !important;
}

.login-stage-topbar {
  align-items: flex-start !important;
}

.login-mark-stage {
  display: grid !important;
  place-items: center !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 14px !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 1.12rem !important;
  line-height: 1 !important;
}

.login-brand-stage {
  gap: 16px !important;
}

.login-brand-stage span {
  font-size: 0.86rem !important;
  letter-spacing: 0.16em !important;
}

.login-brand-stage strong {
  font-size: 1rem !important;
}

.login-stage-copy-wrap {
  max-width: 760px !important;
  gap: 36px !important;
  justify-content: center !important;
  align-self: stretch !important;
}

.login-slide-stage {
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.login-slide-copy {
  max-width: 780px !important;
}

.login-slide-copy-fade {
  animation: loginStageSoftFade 560ms ease !important;
}

.login-slide-line1,
.login-slide-line2 {
  font-size: clamp(4.2rem, 5.4vw, 6.4rem) !important;
  line-height: 0.92 !important;
  letter-spacing: -0.04em !important;
}

.login-slide-line2 {
  margin-top: 6px !important;
}

.login-feature-stack {
  gap: 14px !important;
  max-width: 540px !important;
  margin-top: auto !important;
}

.login-feature-row {
  font-size: 0.93rem !important;
  color: rgba(61,30,110,0.34) !important;
}

.login-feature-icon {
  font-size: 0.84rem !important;
}

.login-stage-auth {
  justify-content: center !important;
  padding: 56px 40px !important;
  background: rgba(255,255,255,0.72) !important;
}

.login-auth-copy-stage h2 {
  font-size: 3.25rem !important;
  line-height: 0.94 !important;
  margin-bottom: 8px !important;
}

.login-auth-copy-stage p {
  font-size: 0.92rem !important;
}

.login-divider {
  margin: 22px 0 24px !important;
}

.login-access-list-stage {
  gap: 16px !important;
}

.login-access-tile {
  padding: 20px 22px !important;
  border-radius: 22px !important;
}

.login-access-icon {
  width: 52px !important;
  height: 52px !important;
  border-radius: 16px !important;
}

.login-access-meta strong {
  font-size: 0.88rem !important;
}

.login-access-meta small {
  font-size: 0.72rem !important;
  line-height: 1.35 !important;
}

.login-access-arrow {
  font-size: 2rem !important;
}

.login-auth-note {
  margin-top: 18px !important;
  padding-top: 18px !important;
}

.login-auth-footer-stage {
  margin-top: 18px !important;
  padding-top: 18px !important;
}

.login-auth-footer-stage p,
.login-auth-links,
.login-auth-links button {
  font-size: 0.8rem !important;
}

@keyframes loginStageSoftFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1360px) {
  .login-card.login-stage-card {
    grid-template-columns: minmax(0, 1fr) 400px !important;
  }
  .login-slide-line1,
  .login-slide-line2 {
    font-size: clamp(3.8rem, 5vw, 5.6rem) !important;
  }
}

@media (max-width: 1180px) {
  .auth-shell {
    padding: 18px !important;
    overflow: auto !important;
    height: auto !important;
    min-height: 100vh !important;
  }
  .login-card.login-stage-card {
    height: auto !important;
    min-height: calc(100vh - 36px) !important;
    grid-template-columns: 1fr !important;
  }
  .login-stage-auth {
    padding: 34px 26px !important;
  }
}

@media (max-width: 760px) {
  .login-slide-line1,
  .login-slide-line2 {
    font-size: clamp(2.8rem, 12vw, 4.6rem) !important;
  }
}

/* v10 login alignment fix */
.auth-shell {
  min-height: 100vh !important;
  height: 100vh !important;
  padding: 8px !important;
  overflow: hidden !important;
  align-items: stretch !important;
}

.login-shell-premium {
  width: 100% !important;
  height: 100% !important;
}

.login-card.login-stage-card {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  grid-template-columns: minmax(0, 1fr) 392px !important;
  border-radius: 30px !important;
  overflow: hidden !important;
  background: rgba(255,255,255,0.92) !important;
  border: 1px solid rgba(61,30,110,0.08) !important;
  box-shadow: 0 18px 42px rgba(40,20,80,0.08) !important;
}

.login-stage-panel {
  padding: 52px 56px !important;
}

.login-stage-hero {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  background: linear-gradient(180deg, #faf8fd 0%, #f8f6fb 100%) !important;
}

.login-stage-topbar {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
}

.login-theme-chip {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(61,30,110,0.08) !important;
  background: rgba(255,255,255,0.6) !important;
  color: rgba(61,30,110,0.45) !important;
  font-size: 18px !important;
  line-height: 1 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85) !important;
  pointer-events: none !important;
}

.login-brand-stage {
  gap: 14px !important;
}

.login-mark-stage {
  width: 40px !important;
  height: 40px !important;
  border-radius: 0 !important;
  background: #43204b !important;
  color: #fff !important;
  font-size: 8px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  box-shadow: none !important;
}

.login-brand-stage span {
  font-size: 0.78rem !important;
  letter-spacing: 0.2em !important;
  color: #8f7aa8 !important;
}

.login-brand-stage strong {
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  color: #1a1528 !important;
}

.login-stage-copy-wrap {
  flex: 1 1 auto !important;
  width: min(100%, 760px) !important;
  max-width: 760px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 46px !important;
  padding: 12px 0 12px !important;
}

.login-slide-stage {
  min-height: 250px !important;
  width: 100% !important;
  display: flex !important;
  align-items: flex-start !important;
}

.login-slide-copy {
  max-width: 560px !important;
}

.login-slide-copy-fade {
  animation: loginStageSoftFade 420ms ease-out !important;
  will-change: opacity, transform !important;
}

.login-slide-line1,
.login-slide-line2 {
  font-size: clamp(4.2rem, 4.85vw, 5.8rem) !important;
  line-height: 0.92 !important;
  letter-spacing: -0.045em !important;
  margin: 0 !important;
  max-width: 100% !important;
}

.login-slide-line2 {
  margin-top: 6px !important;
  color: #6738b4 !important;
}

.login-feature-stack {
  width: 100% !important;
  max-width: 520px !important;
  margin-top: 0 !important;
  gap: 12px !important;
}

.login-feature-row {
  font-size: 0.84rem !important;
  line-height: 1.25 !important;
  color: rgba(61,30,110,0.32) !important;
}

.login-feature-icon {
  width: 14px !important;
  font-size: 0.78rem !important;
}

.login-stage-auth {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: stretch !important;
  padding: 54px 40px !important;
  background: rgba(255,255,255,0.76) !important;
}

.login-auth-copy-stage h2 {
  font-size: 3.05rem !important;
  line-height: 0.96 !important;
  margin: 0 0 10px !important;
}

.login-auth-copy-stage p {
  font-size: 0.84rem !important;
  letter-spacing: 0.08em !important;
  margin: 0 !important;
}

.login-divider {
  margin: 26px 0 24px !important;
}

.login-access-list-stage {
  gap: 14px !important;
}

.login-access-tile {
  padding: 18px 20px !important;
  border-radius: 22px !important;
}

.login-access-icon {
  width: 52px !important;
  height: 52px !important;
  border-radius: 16px !important;
}

.login-access-meta strong {
  font-size: 0.86rem !important;
}

.login-access-meta small {
  font-size: 0.72rem !important;
  line-height: 1.35 !important;
}

.login-access-arrow {
  font-size: 1.95rem !important;
}

.login-auth-footer-stage {
  margin-top: 16px !important;
  padding-top: 18px !important;
}

.login-auth-footer-stage p,
.login-auth-links,
.login-auth-links button {
  font-size: 0.78rem !important;
}

.login-auth-links {
  gap: 10px !important;
}

@keyframes loginStageSoftFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1400px) {
  .login-card.login-stage-card {
    grid-template-columns: minmax(0, 1fr) 378px !important;
  }
  .login-slide-line1,
  .login-slide-line2 {
    font-size: clamp(3.8rem, 4.5vw, 5.2rem) !important;
  }
}

@media (max-width: 1180px) {
  .auth-shell {
    height: auto !important;
    min-height: 100vh !important;
    overflow: auto !important;
    padding: 14px !important;
  }
  .login-card.login-stage-card {
    height: auto !important;
    min-height: calc(100vh - 28px) !important;
    grid-template-columns: 1fr !important;
  }
  .login-stage-panel,
  .login-stage-auth {
    padding: 34px 26px !important;
  }
  .login-stage-copy-wrap {
    width: 100% !important;
  }
}


/* login match ref v11 */
.login-theme-chip,
.login-brand-stage {
  display: none !important;
}

.login-shell-premium {
  width: calc(100vw - 20px) !important;
  height: calc(100vh - 20px) !important;
  max-width: none !important;
}

.login-card.login-stage-card {
  min-height: calc(100vh - 20px) !important;
  height: calc(100vh - 20px) !important;
  grid-template-columns: minmax(0, 1fr) 398px !important;
  border-radius: 30px !important;
}

.login-stage-panel {
  padding: 52px 46px !important;
}

.login-stage-hero {
  justify-content: center !important;
}

.login-stage-copy-wrap {
  width: min(100%, 640px) !important;
  max-width: 640px !important;
  margin: 0 auto !important;
  padding-inline: 0 !important;
  gap: 30px !important;
  justify-content: center !important;
}

.login-stage-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-bottom: 6px;
}

.login-stage-logo-image {
  width: 38px;
  height: 38px;
  display: block;
  object-fit: contain;
}

.login-slide-stage {
  min-height: 240px !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

.login-slide-copy {
  max-width: 620px !important;
}

.login-slide-copy-fade {
  animation: loginStageSoftFade 900ms cubic-bezier(0.22, 1, 0.36, 1) !important;
  will-change: opacity, transform;
}

.login-slide-line1,
.login-slide-line2 {
  font-size: clamp(3.35rem, 5.6vw, 5.3rem) !important;
  line-height: 0.92 !important;
  letter-spacing: -0.04em !important;
}

.login-feature-stack {
  width: min(100%, 560px) !important;
  max-width: 560px !important;
  margin: 0 !important;
  gap: 12px !important;
}

.login-feature-row {
  font-size: 0.92rem !important;
  color: rgba(61,30,110,0.34) !important;
}

.login-feature-icon {
  color: rgba(90,47,160,0.46) !important;
}

.login-stage-auth {
  padding: 48px 38px !important;
}

.login-auth-copy-stage h2 {
  font-size: 3.2rem !important;
  line-height: 0.95 !important;
  margin-bottom: 10px !important;
}

.login-auth-copy-stage p {
  font-size: 0.93rem !important;
}

.login-divider {
  margin: 22px 0 24px !important;
}

.login-access-list-stage {
  gap: 16px !important;
}

.login-access-tile {
  padding: 20px 22px !important;
  border-radius: 22px !important;
}

.login-access-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
}

.login-access-meta strong {
  font-size: 0.92rem !important;
}

.login-access-meta small {
  font-size: 0.74rem !important;
  line-height: 1.45 !important;
}

.login-auth-footer-stage {
  margin-top: 22px !important;
}

.login-auth-footer-stage p,
.login-auth-links,
.login-auth-links button {
  font-size: 0.82rem !important;
}

@keyframes loginStageSoftFade {
  0% { opacity: 0; transform: translateY(10px); filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@media (max-width: 1360px) {
  .login-card.login-stage-card {
    grid-template-columns: minmax(0, 1fr) 380px !important;
  }
  .login-slide-line1,
  .login-slide-line2 {
    font-size: clamp(3.15rem, 5vw, 4.8rem) !important;
  }
}

@media (max-width: 1180px) {
  .login-shell-premium {
    width: calc(100vw - 16px) !important;
    height: auto !important;
  }
  .login-card.login-stage-card {
    grid-template-columns: 1fr !important;
    min-height: calc(100vh - 16px) !important;
    height: auto !important;
  }
  .login-stage-panel,
  .login-stage-auth {
    padding: 30px 26px !important;
  }
  .login-stage-copy-wrap {
    width: 100% !important;
  }
}


.modal-card.request-dialog-card {
  max-height: calc(100vh - 40px);
  overflow: auto;
  overscroll-behavior: contain;
}

.request-dialog-card .modal-actions {
  position: sticky;
  bottom: 0;
  padding-top: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 24px);
}

.app-toast-shell {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  pointer-events: none;
}

.app-toast {
  min-width: 280px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.96);
  color: #fff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255,255,255,0.12);
  font-weight: 700;
  line-height: 1.4;
  animation: toastSlideIn 220ms ease;
}

.app-toast.success {
  background: linear-gradient(135deg, #163c2f 0%, #1f6a50 100%);
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .modal-card.request-dialog-card {
    max-height: calc(100vh - 24px);
  }

  .app-toast-shell {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .app-toast {
    min-width: 0;
    width: 100%;
    max-width: none;
  }
}

/* Executive Summary active order dialog */
.executive-v3-order-row {
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.executive-v3-order-row:hover {
  background: rgba(62, 108, 255, 0.05);
}
.executive-order-dialog-backdrop {
  z-index: 60;
}
.executive-order-dialog-card {
  width: min(760px, calc(100vw - 32px));
  padding: 24px;
  border-radius: 24px;
}
.executive-order-dialog-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.executive-order-dialog-topbar h3 {
  margin: 6px 0 0;
  font-size: 1.7rem;
  line-height: 1.15;
}
.executive-order-dialog-copy {
  margin: 8px 0 0;
}
.executive-order-dialog-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.executive-order-mini-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: #fbfcfe;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.executive-order-mini-card span {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.executive-order-mini-card strong {
  font-size: 1.1rem;
  line-height: 1.2;
}
.executive-order-dialog-steps {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background: #ffffff;
}
.executive-order-dialog-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.executive-order-dialog-section-head span {
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.executive-order-dialog-section-head small {
  color: var(--muted);
  font-size: 0.9rem;
}
.executive-order-step-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.executive-order-step-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(82, 120, 255, 0.06);
  border: 1px solid rgba(82, 120, 255, 0.12);
}
.executive-order-step-index {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #4e7bff;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  flex: 0 0 auto;
}
.executive-order-step-chip strong {
  font-size: 0.98rem;
  line-height: 1.3;
}

@media (max-width: 820px) {
  .executive-order-dialog-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .executive-order-step-list {
    grid-template-columns: 1fr;
  }
}

/* --- Login screen final alignment v17 --- */
.auth-shell {
  min-height: 100vh !important;
  padding: 8px !important;
  overflow: hidden !important;
  background:
    linear-gradient(180deg, rgba(249,248,253,0.96), rgba(246,245,250,0.98)),
    linear-gradient(rgba(61,30,110,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,30,110,0.045) 1px, transparent 1px) !important;
  background-size: auto, 72px 72px, 72px 72px !important;
}

.login-shell-premium {
  width: calc(100vw - 16px) !important;
  height: calc(100vh - 16px) !important;
  max-width: none !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
}

.login-card.login-stage-card {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  grid-template-columns: minmax(0, 1fr) 420px !important;
  border-radius: 32px !important;
  overflow: hidden !important;
  border: 1px solid rgba(61,30,110,0.08) !important;
  background: rgba(255,255,255,0.88) !important;
  box-shadow: 0 22px 64px rgba(40,20,80,0.10) !important;
}

.login-stage-panel {
  padding: 0 !important;
}

.login-stage-hero {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(180deg, #faf9fd 0%, #f7f5fb 100%) !important;
  border-right: 1px solid rgba(61,30,110,0.08) !important;
}

.login-stage-copy-wrap {
  width: min(100%, 760px) !important;
  max-width: 760px !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 54px 68px 54px !important;
  display: grid !important;
  grid-template-rows: auto 1fr auto !important;
  align-items: stretch !important;
  justify-items: start !important;
  gap: 0 !important;
}

.login-stage-logo {
  width: 100% !important;
  justify-content: flex-start !important;
  align-items: center !important;
  margin: 0 0 24px !important;
}

.login-stage-logo-image {
  width: 42px !important;
  height: 42px !important;
  object-fit: contain !important;
  display: block !important;
}

.login-slide-stage {
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.login-slide-copy {
  width: 100% !important;
  max-width: 600px !important;
}

.login-slide-copy-fade {
  animation: loginStageCalmFade 1200ms cubic-bezier(0.22, 1, 0.36, 1) !important;
  will-change: opacity, transform !important;
}

.login-slide-line1,
.login-slide-line2 {
  font-size: clamp(3.55rem, 5.2vw, 5.2rem) !important;
  line-height: 0.92 !important;
  letter-spacing: -0.048em !important;
  margin: 0 !important;
}

.login-slide-line2 {
  margin-top: 10px !important;
}

.login-feature-stack {
  width: min(100%, 520px) !important;
  max-width: 520px !important;
  margin: 0 !important;
  padding-left: 6px !important;
  align-self: end !important;
  gap: 12px !important;
}

.login-feature-row {
  font-size: 0.90rem !important;
  color: rgba(61,30,110,0.34) !important;
}

.login-feature-icon {
  color: rgba(90,47,160,0.44) !important;
}

.login-stage-auth {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: stretch !important;
  padding: 54px 38px !important;
  background: rgba(255,255,255,0.70) !important;
}

.login-auth-copy-stage,
.login-divider,
.login-access-list-stage,
.login-error-stage,
.login-auth-footer-stage {
  width: 100% !important;
  max-width: 352px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.login-auth-copy-stage h2 {
  font-size: 3rem !important;
  line-height: 0.95 !important;
  margin: 0 0 10px !important;
}

.login-auth-copy-stage p {
  font-size: 0.94rem !important;
  letter-spacing: 0.04em !important;
}

.login-divider {
  margin: 22px auto 24px !important;
}

.login-access-list-stage {
  gap: 14px !important;
}

.login-access-tile {
  padding: 18px 20px !important;
  border-radius: 22px !important;
}

.login-access-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
}

.login-access-meta strong {
  font-size: 0.96rem !important;
}

.login-access-meta small {
  font-size: 0.78rem !important;
  line-height: 1.42 !important;
}

.login-access-arrow {
  font-size: 2rem !important;
}

.login-auth-footer-stage {
  margin-top: 18px !important;
  padding-top: 18px !important;
}

.login-auth-footer-stage p,
.login-auth-links,
.login-auth-links button {
  font-size: 0.82rem !important;
}

@keyframes loginStageCalmFade {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1440px) {
  .login-card.login-stage-card {
    grid-template-columns: minmax(0, 1fr) 404px !important;
  }
  .login-stage-copy-wrap {
    max-width: 700px !important;
    padding: 50px 58px !important;
  }
  .login-slide-line1,
  .login-slide-line2 {
    font-size: clamp(3.3rem, 4.9vw, 4.85rem) !important;
  }
}

@media (max-width: 1180px) {
  .auth-shell {
    overflow: auto !important;
  }
  .login-shell-premium {
    width: calc(100vw - 16px) !important;
    height: auto !important;
  }
  .login-card.login-stage-card {
    grid-template-columns: 1fr !important;
    min-height: calc(100vh - 16px) !important;
    height: auto !important;
  }
  .login-stage-copy-wrap {
    padding: 34px 28px !important;
    gap: 26px !important;
  }
  .login-stage-auth {
    padding: 32px 24px !important;
  }
  .login-auth-copy-stage,
  .login-divider,
  .login-access-list-stage,
  .login-error-stage,
  .login-auth-footer-stage {
    max-width: none !important;
  }
}

.login-busy-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(123, 92, 255, 0.18);
  background: rgba(123, 92, 255, 0.08);
}

.login-busy-spinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(123, 92, 255, 0.22);
  border-top-color: rgba(123, 92, 255, 0.9);
  flex: 0 0 18px;
  animation: loginSpin 0.8s linear infinite;
}

.login-busy-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.login-busy-copy strong {
  font-size: 0.95rem;
  line-height: 1.35;
  color: #171327;
}

.login-busy-copy small {
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(23, 19, 39, 0.72);
}

@keyframes loginSpin {
  to {
    transform: rotate(360deg);
  }
}


/* v58 topbar consistency lock */
.customer-topbar.card.executive-topbar.topbar-standardized {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 8px 14px !important;
  min-height: 58px !important;
  height: auto !important;
}

.customer-topbar.card.executive-topbar.topbar-standardized .topbar-search {
  flex: 0 1 360px !important;
  max-width: 360px !important;
  align-self: center !important;
}

.customer-topbar.card.executive-topbar.topbar-standardized .topbar-search input {
  height: 36px !important;
}

.customer-topbar.card.executive-topbar.topbar-standardized .topbar-actions {
  margin-left: auto !important;
  align-self: center !important;
}

.customer-topbar.card.executive-topbar.topbar-standardized.topbar-view-provincial-sales {
  min-height: 58px !important;
}

@media (max-width: 900px) {
  .customer-topbar.card.executive-topbar.topbar-standardized {
    padding: 10px 12px !important;
  }

  .customer-topbar.card.executive-topbar.topbar-standardized .topbar-search {
    flex: 1 1 auto !important;
    max-width: 100% !important;
  }
}


/* v60 provincial sales topbar hard lock */
.customer-topbar.card.executive-topbar.topbar-standardized.topbar-view-provincial-sales {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  padding: 6px 14px !important;
  min-height: 54px !important;
  height: 54px !important;
  max-height: 54px !important;
  overflow: hidden !important;
}

.customer-topbar.card.executive-topbar.topbar-standardized.topbar-view-provincial-sales .topbar-search,
.customer-topbar.card.executive-topbar.topbar-standardized.topbar-view-provincial-sales .topbar-actions {
  align-self: center !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.customer-topbar.card.executive-topbar.topbar-standardized.topbar-view-provincial-sales .topbar-search {
  flex: 0 1 360px !important;
  max-width: 360px !important;
}

.customer-topbar.card.executive-topbar.topbar-standardized.topbar-view-provincial-sales .topbar-search input {
  height: 34px !important;
}

.customer-topbar.card.executive-topbar.topbar-standardized.topbar-view-provincial-sales .executive-notification-pill,
.customer-topbar.card.executive-topbar.topbar-standardized.topbar-view-provincial-sales .executive-profile-trigger {
  height: 34px !important;
  min-height: 34px !important;
}


/* v61 customer topbar uniform lock */
.customer-topbar.card.executive-topbar.topbar-standardized {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  padding: 6px 14px !important;
  min-height: 54px !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.customer-topbar.card.executive-topbar.topbar-standardized .topbar-search,
.customer-topbar.card.executive-topbar.topbar-standardized .topbar-actions {
  align-self: center !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.customer-topbar.card.executive-topbar.topbar-standardized .topbar-search {
  flex: 0 1 360px !important;
  max-width: 360px !important;
}

.customer-topbar.card.executive-topbar.topbar-standardized .topbar-search input {
  height: 36px !important;
}

.customer-topbar.card.executive-topbar.topbar-standardized .topbar-actions {
  margin-left: auto !important;
  gap: 10px !important;
}

.customer-topbar.card.executive-topbar.topbar-standardized .executive-notification-pill,
.customer-topbar.card.executive-topbar.topbar-standardized .executive-profile-trigger {
  height: 38px !important;
  min-height: 38px !important;
}

@media (max-width: 900px) {
  .customer-topbar.card.executive-topbar.topbar-standardized {
    padding: 8px 12px !important;
    flex-wrap: wrap !important;
  }

  .customer-topbar.card.executive-topbar.topbar-standardized .topbar-search {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
}


/* v62 isolated slim customer topbar */
.customer-topbar.card.customer-topbar-slim {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  padding: 10px 14px !important;
  min-height: 68px !important;
  height: auto !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(246,249,253,0.96) 100%) !important;
  border: 1px solid rgba(198, 211, 227, 0.7) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 38, 0.04) !important;
}

.customer-topbar.card.customer-topbar-slim .topbar-search {
  flex: 0 1 360px !important;
  max-width: 360px !important;
  align-self: center !important;
}

.customer-topbar.card.customer-topbar-slim .topbar-search input {
  width: 100% !important;
  height: 40px !important;
  padding: 0 16px !important;
  border-radius: 14px !important;
  border: 1px solid #d6e0ec !important;
  background: #f8fbff !important;
  font-size: 0.92rem !important;
}

.customer-topbar.card.customer-topbar-slim .topbar-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-left: auto !important;
}

.customer-topbar.card.customer-topbar-slim .executive-notification-pill,
.customer-topbar.card.customer-topbar-slim .executive-profile-trigger,
.customer-topbar.card.customer-topbar-slim .return-admin-pill {
  min-height: 40px !important;
  height: 40px !important;
  border-radius: 14px !important;
}

.customer-topbar.card.customer-topbar-slim .executive-notification-pill {
  min-width: 44px !important;
  padding: 0 14px !important;
}

.customer-topbar.card.customer-topbar-slim .executive-profile-trigger {
  padding: 0 10px 0 6px !important;
  gap: 8px !important;
}

.customer-topbar.card.customer-topbar-slim .profile-avatar {
  width: 28px !important;
  height: 28px !important;
}

@media (max-width: 900px) {
  .customer-topbar.card.customer-topbar-slim {
    padding: 10px 12px !important;
    flex-wrap: wrap !important;
  }

  .customer-topbar.card.customer-topbar-slim .topbar-search {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
}


/* v13 customer utility bar hard reset */
.customer-utility-shell {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 12px 16px !important;
  margin-bottom: 10px !important;
  min-height: 74px !important;
  width: 100% !important;
  border: 1px solid rgba(198, 211, 227, 0.72) !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(246,249,253,0.96) 100%) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 38, 0.04) !important;
  box-sizing: border-box !important;
}

.customer-utility-search {
  flex: 0 1 360px !important;
  max-width: 360px !important;
  min-width: 220px !important;
}

.customer-utility-search input {
  width: 100% !important;
  height: 42px !important;
  padding: 0 18px !important;
  border-radius: 14px !important;
  border: 1px solid #d6e0ec !important;
  background: #f8fbff !important;
  font-size: 0.94rem !important;
  box-sizing: border-box !important;
}

.customer-utility-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-left: auto !important;
  flex-wrap: nowrap !important;
}

.customer-utility-menu-shell {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}

.customer-utility-notification,
.customer-utility-profile,
.customer-utility-return {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
  border: 1px solid #d7e3f0 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%) !important;
  box-shadow: none !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.customer-utility-notification {
  width: auto !important;
  min-width: 144px !important;
  padding: 0 16px 0 14px !important;
  gap: 10px !important;
  color: #17304f !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
}

.customer-utility-notification svg {
  width: 18px !important;
  height: 18px !important;
  fill: currentColor !important;
  flex: 0 0 18px !important;
}

.customer-utility-profile {
  width: auto !important;
  min-width: 230px !important;
  justify-content: flex-start !important;
  padding: 0 14px 0 8px !important;
  gap: 10px !important;
}

.customer-utility-profile .profile-avatar {
  width: 30px !important;
  height: 30px !important;
  flex: 0 0 30px !important;
}

.customer-utility-profile .profile-meta {
  display: grid !important;
  gap: 2px !important;
  min-width: 0 !important;
}

.customer-utility-profile .profile-meta strong,
.customer-utility-profile .profile-meta small {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.customer-utility-notification .notification-badge {
  min-width: 18px !important;
  height: 18px !important;
  top: -6px !important;
  right: -6px !important;
  font-size: 0.68rem !important;
}

@media (max-width: 980px) {
  .customer-utility-shell {
    flex-wrap: wrap !important;
    align-items: stretch !important;
  }

  .customer-utility-search {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }

  .customer-utility-actions {
    width: 100% !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
  }
}

/* v14 definitive customer utility bar lock */
[data-role="customer-utility-bar"] {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  width: 100% !important;
  height: 76px !important;
  min-height: 76px !important;
  max-height: 76px !important;
  padding: 0 20px !important;
  margin: 0 0 10px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}
[data-role="customer-utility-bar"] > * {
  margin: 0 !important;
  align-self: center !important;
}
[data-role="customer-utility-bar"] .customer-utility-actions,
[data-role="customer-utility-bar"] .customer-utility-menu-shell {
  flex: 0 0 auto !important;
}
[data-role="customer-utility-bar"] .customer-utility-notification {
  min-width: 168px !important;
}
[data-role="customer-utility-bar"] .customer-utility-profile {
  min-width: 292px !important;
}
@media (max-width: 980px) {
  [data-role="customer-utility-bar"] {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 12px 16px !important;
    flex-wrap: wrap !important;
  }
  [data-role="customer-utility-bar"] .customer-utility-search {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  [data-role="customer-utility-bar"] .customer-utility-actions {
    width: 100% !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
  }
}


/* v15 admin/customer role-aware portal chrome */
.admin-header-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-customer-switcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
}

.admin-customer-switcher span {
  font-size: 0.84rem;
  color: var(--muted);
  white-space: nowrap;
}

.admin-customer-switcher select {
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--text);
  min-width: 220px;
  height: 40px;
  padding-right: 18px;
  outline: none;
  cursor: pointer;
}

.clean-profile-dropdown {
  min-width: 290px;
  padding: 10px;
}

.profile-dropdown-account {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 16px;
  background: #f8fbff;
}

.profile-dropdown-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-dropdown-account strong {
  font-size: 1rem;
  line-height: 1.2;
  color: var(--text);
}

.profile-dropdown-email,
.profile-dropdown-role {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--muted);
}

.profile-dropdown-links {
  display: grid;
  gap: 4px;
}

.app-shell.schedule-admin-palette .calendar-day.tentative {
  background: linear-gradient(180deg, #ffffff 0%, #fff9ef 100%);
  border-color: #f4d4a2;
}

.app-shell.schedule-admin-palette .day-chip.tentative,
.app-shell.schedule-admin-palette .booking-status-chip.tentative {
  background: var(--warning-soft);
  color: var(--warning);
}

.app-shell.schedule-admin-palette .booking-summary-card.tentative {
  border-color: #f4d4a2;
  background: #fffaf2;
}

.app-shell.schedule-customer-palette .calendar-day.tentative {
  background: linear-gradient(180deg, #ffffff 0%, #fff4f4 100%);
  border-color: #efc1c1;
}

.app-shell.schedule-customer-palette .day-chip.tentative,
.app-shell.schedule-customer-palette .booking-status-chip.tentative {
  background: var(--danger-soft);
  color: var(--danger);
}

.app-shell.schedule-customer-palette .booking-summary-card.tentative {
  border-color: #efc1c1;
  background: #fff6f6;
}

@media (max-width: 900px) {
  .admin-header-top-actions {
    justify-content: flex-start;
  }

  .admin-customer-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .admin-customer-switcher select {
    min-width: 0;
    flex: 1 1 auto;
  }
}


/* v16 admin header refinement */
.admin-header-shell-refined {
  padding: 12px 18px;
}

.admin-page-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-page-heading-row .header-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.admin-customer-switcher.refined-admin-switcher {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #d9e3f0;
  border-radius: 16px;
  background: #fbfdff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.admin-customer-switcher.refined-admin-switcher span {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.admin-customer-switcher.refined-admin-switcher select {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  min-width: 230px;
  height: 44px;
  padding-right: 24px;
}

.admin-customer-switcher.refined-admin-switcher select:focus {
  outline: none;
}

.admin-customer-switcher-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.admin-customer-enter {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(19, 32, 51, 0.12);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.admin-customer-enter:hover {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.admin-customer-enter:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .admin-page-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-heading-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-customer-switcher.refined-admin-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .admin-customer-switcher-control {
    width: 100%;
  }

  .admin-customer-switcher.refined-admin-switcher select {
    min-width: 0;
    flex: 1 1 auto;
  }
}
