:root {
  --bg: #0b0f12;
  --bg-soft: #131a1f;
  --panel: rgba(19, 26, 31, 0.78);
  --panel-strong: #11161b;
  --stroke: rgba(255, 255, 255, 0.1);
  --text: #f5f4ef;
  --muted: #a6b0b8;
  --red: #1e90ff;
  --gold: #00bfff;
  --steel: #4f6f82;
  --green: #5fb97a;
  --danger: #ef6262;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(30, 144, 255, 0.12), transparent 25%),
    radial-gradient(circle at bottom right, rgba(79, 111, 130, 0.28), transparent 20%),
    linear-gradient(145deg, #07090b 0%, #10171c 48%, #0a0f12 100%);
  font-family: 'Manrope', sans-serif;
}

body.dashboard-settings-open {
  overflow: hidden;
}

.landing-body {
  overflow-x: hidden;
}

.landing-shell,
.app-shell,
.resp-shell,
.resp-chat-shell {
  position: relative;
  z-index: 1;
}

.landing-sleep-button:hover {
  transform: translateY(-2px);
  background: rgba(8, 10, 14, 0.72);
}

.landing-sleep-kicker {
  display: none;
}

.landing-sleep-kicker::before,
.landing-sleep-kicker::after {
  content: '';
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 173, 0.85), transparent);
}

.landing-sleep-button strong {
  max-width: none;
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-shadow: none;
}

.landing-sleep-copy {
  display: none;
}

.landing-sleep-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 230, 201, 0.88);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 95%);
  transition: opacity 0.55s ease;
}

.landing-body.is-sleeping::before {
  opacity: 0;
}

h1,
h2,
h3,
.preview-head,
.brand-kicker,
.sidebar-title {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.03em;
  margin: 0;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

button,
input,
textarea {
  font: inherit;
}

.landing-shell,
.app-shell {
  position: relative;
  z-index: 1;
}

.landing-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px;
}

.landing-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 36px;
}

.brand-lockup,
.resp-heading {
  display: grid;
  gap: 10px;
}

.site-logo {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.site-logo-small {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-bottom: 4px;
}

.brand-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  color: #ffd8b0;
  text-transform: uppercase;
}

.brand-kicker::before {
  content: '';
  width: 40px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.landing-topbar h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.95;
  max-width: 680px;
}

.landing-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 24px;
}

.panel-glass,
.panel-solid {
  border: 1px solid var(--stroke);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.panel-glass {
  background: linear-gradient(180deg, rgba(16, 22, 27, 0.92), rgba(11, 15, 18, 0.78));
  backdrop-filter: blur(18px);
}

.panel-solid {
  background: linear-gradient(180deg, rgba(17, 22, 27, 0.98), rgba(11, 15, 18, 0.98));
}

.hero-panel,
.preview-panel {
  padding: 32px;
}

.hero-panel {
  display: grid;
  gap: 28px;
}

.hero-copy h2 {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 0.96;
  max-width: 720px;
  margin: 10px 0 16px;
}

.hero-copy p {
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e0c3a2;
}

.hero-actions,
.sidebar-actions,
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  cursor: pointer;
}

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

.button.primary {
  color: #fff6ef;
  background: linear-gradient(135deg, var(--red), #f16032);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.button.discord {
  color: #eef5ff;
  background: linear-gradient(135deg, #6cb6ff, #3d8dff);
  border-color: rgba(156, 207, 255, 0.28);
  box-shadow: 0 14px 34px rgba(61, 141, 255, 0.18);
}

.button.discord svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.button.ghost {
  color: var(--text);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
}

.button.full {
  width: 100%;
}

.hero-metrics,
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.metric-card,
.metric-tile {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-card {
  min-height: 180px;
}

.metric-card strong,
.metric-tile strong {
  display: block;
  font-size: 2rem;
  color: var(--text);
  margin: 14px 0 10px;
}

.metric-card.accent-red {
  background: linear-gradient(180deg, rgba(215, 40, 40, 0.22), rgba(215, 40, 40, 0.08));
}

.metric-card.accent-gold {
  background: linear-gradient(180deg, rgba(215, 166, 60, 0.22), rgba(215, 166, 60, 0.08));
}

.metric-card.accent-steel {
  background: linear-gradient(180deg, rgba(79, 111, 130, 0.24), rgba(79, 111, 130, 0.08));
}

.preview-panel {
  display: grid;
  gap: 24px;
}

.panel-heading h3 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  line-height: 0.95;
  margin-top: 10px;
}

.table-preview {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(8, 11, 14, 0.92), rgba(11, 15, 18, 0.98));
}

.preview-head {
  padding: 22px;
  font-size: 2.2rem;
  text-align: center;
  background: linear-gradient(180deg, #d50000, #a20000);
}

.preview-columns,
.preview-row {
  display: grid;
  grid-template-columns: repeat(11, minmax(60px, 1fr));
}

.preview-columns span,
.preview-row::before,
.preview-row::after {
  padding: 16px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.78rem;
}

.preview-columns span:nth-child(1),
.preview-columns span:nth-child(2) {
  background: #d98a36;
  color: #130d05;
}

.preview-columns span:nth-child(5) {
  background: #4a79c4;
}

.preview-columns span:nth-child(6) {
  background: #d4ae16;
  color: #1a1609;
}

.preview-columns span:nth-child(7) {
  background: #ee00ff;
}

.preview-columns span:nth-child(8),
.preview-columns span:nth-child(9),
.preview-columns span:nth-child(10),
.preview-columns span:nth-child(11) {
  background: #6e9659;
  color: #0b1106;
}

.preview-row {
  min-height: 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.preview-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 22px;
}

.preview-summary div {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-summary span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.preview-summary strong {
  font-size: 1.3rem;
}

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

.feature-strip article {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-strip span {
  display: block;
  margin-bottom: 10px;
  font-size: 1.15rem;
  font-weight: 800;
}

.landing-alert {
  margin-top: 24px;
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(239, 98, 98, 0.2), rgba(215, 40, 40, 0.1));
  border: 1px solid rgba(239, 98, 98, 0.42);
  box-shadow: 0 18px 40px rgba(215, 40, 40, 0.14);
}

.landing-alert strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #ffe5e5;
}

.landing-alert span {
  color: #ffd4d4;
  line-height: 1.55;
}

.landing-shell {
  max-width: 1480px;
  padding: 28px 32px 40px;
}

.landing-topbar {
  align-items: flex-end;
  margin-bottom: 22px;
}

.landing-intro {
  max-width: 760px;
  margin-top: 14px;
  font-size: 1rem;
}

.landing-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d9e0e6;
}

.landing-main {
  display: grid;
  gap: 24px;
}

.welcome-stage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  padding: 28px;
  overflow: hidden;
  position: relative;
}

.welcome-stage::after {
  content: '';
  position: absolute;
  inset: auto -120px -120px auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(215, 166, 60, 0.2), transparent 65%);
  pointer-events: none;
}

.welcome-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 18px;
}

.welcome-copy h2 {
  font-size: clamp(3.4rem, 6vw, 5.8rem);
  line-height: 0.9;
  margin: 0;
}

.welcome-copy p {
  max-width: 700px;
  font-size: 1.02rem;
}

.welcome-ribbon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.garage-visual-card {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.garage-visual-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 12, 0.08) 0%, rgba(6, 8, 12, 0.2) 38%, rgba(6, 8, 12, 0.92) 100%);
  pointer-events: none;
}

.garage-visual-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.garage-visual-copy {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.garage-visual-copy strong {
  display: block;
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: 0.04em;
  line-height: 0.92;
}

.garage-visual-copy p {
  max-width: 580px;
  color: rgba(245, 244, 239, 0.84);
}

.ribbon-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ribbon-card span,
.welcome-band-item span,
.dock-card p,
.signal-line span,
.org-heading p,
.step-card p,
.experience-card li {
  color: var(--muted);
}

.ribbon-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.15rem;
}

.signal-column {
  display: grid;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.signal-card {
  padding: 20px;
}

.signal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.signal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.signal-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #4dd17b;
  box-shadow: 0 0 18px rgba(77, 209, 123, 0.85);
}

.signal-status {
  color: #f6c15e;
  letter-spacing: 0.08em;
}

.signal-board {
  display: grid;
  gap: 12px;
}

.signal-line {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.signal-line strong,
.dock-card strong,
.welcome-band-item strong,
.org-node h4,
.step-card h4,
.experience-card h3 {
  display: block;
  margin: 0;
}

.service-dock {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dock-card {
  min-height: 160px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dock-index,
.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(215, 40, 40, 0.18);
  color: #ffd9d9;
  font-weight: 800;
  margin-bottom: 16px;
}

.dock-card strong {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.welcome-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.welcome-band-item {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.welcome-band-item strong {
  margin-top: 8px;
  font-size: 1.2rem;
}

.org-section {
  padding: 28px;
  display: grid;
  gap: 24px;
}

.org-meta,
.org-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.org-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
}

.org-heading h3,
.access-copy h3 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.92;
  margin-top: 10px;
}

.org-heading p {
  max-width: 520px;
}

.org-groups {
  display: grid;
  gap: 18px;
}

.org-group {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.org-group.is-loading {
  background: linear-gradient(180deg, rgba(79, 111, 130, 0.12), rgba(255, 255, 255, 0.03));
}

.org-group-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 18px;
}

.org-group-heading h4 {
  font-size: 2rem;
  line-height: 0.95;
  margin-top: 10px;
}

.org-group-heading p,
.org-loading-copy,
.org-member-empty,
.org-member span,
.org-role-label {
  color: var(--muted);
}

.org-group-heading p {
  max-width: 560px;
}

.org-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.org-role-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 16px;
}

.org-role-card.accent-lead {
  background: linear-gradient(180deg, rgba(215, 40, 40, 0.16), rgba(255, 255, 255, 0.03));
}

.org-role-card.accent-support {
  background: linear-gradient(180deg, rgba(79, 111, 130, 0.18), rgba(255, 255, 255, 0.03));
}

.org-role-card.accent-manager {
  background: linear-gradient(180deg, rgba(215, 166, 60, 0.18), rgba(255, 255, 255, 0.03));
}

.org-role-card.accent-crew {
  background: linear-gradient(180deg, rgba(95, 185, 122, 0.15), rgba(255, 255, 255, 0.03));
}

.org-role-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.org-role-head strong {
  display: block;
  font-size: 1.25rem;
  margin-top: 6px;
}

.org-member-list {
  display: grid;
  gap: 10px;
}

.org-member {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.org-member img {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.org-member strong {
  display: block;
  margin-bottom: 4px;
}

.org-member-empty {
  min-height: 96px;
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 18px;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.org-chart {
  display: grid;
  gap: 16px;
}

.org-layer {
  display: grid;
  gap: 16px;
}

.org-layer-top {
  justify-content: center;
}

.org-layer-top .org-node {
  max-width: 460px;
}

.org-layer-middle {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.org-node {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 170px;
}

.org-node-lead {
  background: linear-gradient(180deg, rgba(215, 40, 40, 0.18), rgba(215, 166, 60, 0.1));
}

.org-node-employee {
  background: linear-gradient(180deg, rgba(79, 111, 130, 0.16), rgba(255, 255, 255, 0.03));
}

.org-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.org-node h4 {
  font-size: 1.55rem;
  margin-bottom: 10px;
}

.org-node p {
  color: var(--muted);
}

.org-connector {
  width: 2px;
  height: 34px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(215, 166, 60, 0.8), rgba(255, 255, 255, 0.1));
}

.org-connector.split {
  position: relative;
}

.org-connector.split::before,
.org-connector.split::after {
  content: '';
  position: absolute;
  top: 14px;
  width: 180px;
  height: 2px;
  background: rgba(215, 166, 60, 0.4);
}

.org-connector.split::before {
  right: 2px;
}

.org-connector.split::after {
  left: 2px;
}

.legend-chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.experience-card {
  padding: 26px;
}

.experience-card h3 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 0.95;
  margin: 12px 0 18px;
}

.landing-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.access-stage {
  padding: 28px;
  display: grid;
  gap: 22px;
}

.discord-landing-shell {
  max-width: 1080px;
}

.discord-hero {
  display: grid;
  gap: 28px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.discord-hero::after {
  content: '';
  position: absolute;
  inset: auto -120px -120px auto;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(61, 141, 255, 0.22), transparent 68%);
  pointer-events: none;
}

.discord-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.discord-hero-copy h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.92;
}

.discord-hero-copy p {
  max-width: 760px;
}

.discord-cta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 18px;
}

.discord-cta-card,
.discord-copy-card {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 16px;
}

.discord-cta-card .button.discord {
  min-height: 64px;
  font-size: 1.02rem;
}

.discord-copy-link {
  display: block;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(10, 18, 28, 0.72);
  border: 1px solid rgba(108, 182, 255, 0.24);
  color: #dbe9ff;
  font-weight: 800;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.5;
  word-break: break-all;
}

.discord-feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.discord-feature-band article {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.discord-feature-band strong {
  display: block;
  margin: 8px 0 6px;
}

.access-copy {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.access-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.step-card h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.app-shell {
  max-width: 1760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
}

.sidebar {
  position: sticky;
  top: 28px;
  height: calc(100vh - 56px);
  padding: 30px;
  display: grid;
  align-content: start;
  gap: 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.sidebar-title {
  font-size: 3.1rem;
  line-height: 0.95;
  margin: 10px 0 12px;
}

.sidebar-copy {
  max-width: 280px;
}

.user-chip {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.user-chip img,
.avatar-skeleton {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.user-chip strong,
.resp-employee-card strong {
  display: block;
  margin-bottom: 4px;
}

.user-chip span,
.resp-employee-card span,
.metric-card p,
.metric-tile p {
  color: var(--muted);
  font-size: 0.92rem;
}

.workspace {
  min-width: 0;
  display: grid;
  gap: 24px;
}

.hero-banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  padding: 32px 34px;
}

.hero-banner-main {
  display: grid;
  gap: 10px;
}

.hero-banner h2 {
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 0.96;
  margin: 10px 0 12px;
}

.hero-banner-aside {
  display: grid;
  gap: 14px;
  justify-items: end;
}

.board-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-settings-trigger {
  min-width: 220px;
}

.status-badge,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
}

.status-badge.red {
  background: rgba(215, 40, 40, 0.16);
}

.status-badge.gold {
  background: rgba(215, 166, 60, 0.18);
}

.status-badge.slate {
  background: rgba(79, 111, 130, 0.24);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.prime-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 30px 32px;
  overflow: hidden;
}

.prime-panel.is-obscured {
  cursor: pointer;
  user-select: none;
}

.prime-panel.is-obscured > * {
  filter: blur(12px);
  opacity: 0.52;
  transition: filter 0.16s ease, opacity 0.16s ease;
}

.prime-panel.is-obscured .prime-panel-value {
  filter: blur(20px);
  opacity: 0.24;
}

.prime-panel.is-obscured::after {
  content: 'Maintiens appuye pour afficher';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #f3dfb4;
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.38), rgba(8, 10, 14, 0.56));
  backdrop-filter: blur(8px);
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.prime-panel.is-obscured.is-pressed > * {
  filter: none;
  opacity: 1;
}

.prime-panel.is-obscured.is-pressed::after {
  opacity: 0;
}

.prime-panel.is-obscured:focus-visible {
  outline: 2px solid rgba(215, 166, 60, 0.72);
  outline-offset: 3px;
}

.prime-panel h3 {
  margin: 8px 0 10px;
  font-size: 2rem;
  line-height: 0.95;
}

.prime-panel p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
}

.prime-panel-value {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: right;
}

.prime-panel-lock {
  position: absolute;
  right: 22px;
  bottom: 12px;
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.prime-panel.locked {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  border-color: rgba(255, 255, 255, 0.08);
}

.prime-panel.locked .prime-panel-value {
  color: rgba(255, 255, 255, 0.46);
}

.form-panel,
.board-panel {
  padding: 32px;
}

.dashboard-settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
}

.dashboard-settings-overlay[hidden] {
  display: none;
}

.dashboard-settings-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 10, 0.74);
  backdrop-filter: blur(12px);
}

.dashboard-settings-modal {
  position: relative;
  width: min(720px, 100%);
  max-height: min(860px, calc(100vh - 32px));
  padding: 24px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 16px;
  overflow: hidden;
}

.dashboard-settings-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-settings-head h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  margin: 10px 0 8px;
}

.dashboard-settings-stack {
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
  overscroll-behavior: contain;
  align-content: start;
}

.dashboard-settings-stack::-webkit-scrollbar {
  width: 10px;
}

.dashboard-settings-stack::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(215, 166, 60, 0.28);
}

.dashboard-settings-stack::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-setting-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.dashboard-setting-card:hover {
  transform: translateY(-1px);
  border-color: rgba(215, 166, 60, 0.26);
}

.dashboard-setting-card-select {
  align-items: stretch;
}

.dashboard-setting-card:has(.dashboard-setting-input:checked) {
  border-color: rgba(215, 166, 60, 0.5);
  background: linear-gradient(135deg, rgba(215, 166, 60, 0.14), rgba(255, 255, 255, 0.04));
}

.dashboard-setting-copy {
  display: grid;
  gap: 6px;
}

.dashboard-setting-copy strong {
  display: block;
  font-size: 1rem;
}

.dashboard-setting-copy p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.5;
}

.dashboard-setting-field {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 220px;
}

.dashboard-setting-select {
  width: 100%;
  min-height: 50px;
  padding: 0 48px 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.06);
  background-image: linear-gradient(45deg, transparent 50%, #e7d2aa 50%), linear-gradient(135deg, #e7d2aa 50%, transparent 50%);
  background-position: calc(100% - 24px) calc(50% - 3px), calc(100% - 18px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  color: var(--text);
  appearance: none;
}

.dashboard-setting-select:focus {
  outline: none;
  border-color: rgba(215, 166, 60, 0.58);
  box-shadow: 0 0 0 4px rgba(215, 166, 60, 0.12);
}

.dashboard-setting-select option {
  background: #0b0f12;
  color: var(--text);
}

.dashboard-setting-switch {
  position: relative;
  width: 62px;
  height: 36px;
  display: inline-flex;
}

.dashboard-setting-input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.dashboard-setting-slider {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-setting-slider::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f5f4ef;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
  transition: transform 0.18s ease, background 0.18s ease;
}

.dashboard-setting-input:checked + .dashboard-setting-slider {
  border-color: rgba(215, 166, 60, 0.52);
  background: linear-gradient(135deg, var(--gold), #f2c55b);
  box-shadow: 0 10px 22px rgba(215, 166, 60, 0.22);
}

.dashboard-setting-input:checked + .dashboard-setting-slider::after {
  transform: translateX(26px);
  background: #1d140a;
}

.dashboard-setting-input:focus-visible + .dashboard-setting-slider {
  outline: 2px solid rgba(215, 166, 60, 0.72);
  outline-offset: 3px;
}

.dashboard-settings-note {
  padding: 14px 16px;
  border-radius: 22px;
  display: grid;
  gap: 4px;
}

.dashboard-settings-note strong {
  font-size: 1rem;
}

.dashboard-settings-note p,
.dashboard-settings-summary,
.dashboard-settings-storage-copy {
  margin: 0;
}

.dashboard-settings-summary,
.dashboard-settings-storage-copy {
  color: var(--muted);
}

.manual-invoice-warning-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
}

.manual-invoice-warning-overlay[hidden] {
  display: none;
}

.manual-invoice-warning-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(241, 96, 50, 0.18), transparent 42%),
    rgba(3, 6, 10, 0.78);
  backdrop-filter: blur(12px);
}

.manual-invoice-warning-modal {
  position: relative;
  width: min(620px, 100%);
  padding: 28px;
  display: grid;
  gap: 18px;
  border: 1px solid rgba(241, 96, 50, 0.24);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.manual-invoice-warning-head {
  display: grid;
  gap: 10px;
}

.manual-invoice-warning-head h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.94;
}

.manual-invoice-warning-body {
  display: grid;
  gap: 16px;
}

.manual-invoice-warning-body p {
  margin: 0;
}

.manual-invoice-warning-amount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 64px;
  padding: 0 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(237, 66, 69, 0.16), rgba(241, 96, 50, 0.12));
  border: 1px solid rgba(241, 96, 50, 0.28);
  color: #ffd4c8;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.05em;
}

.manual-invoice-warning-note {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(241, 96, 50, 0.08), rgba(255, 255, 255, 0.03));
}

.manual-invoice-warning-note strong,
.manual-invoice-warning-note p {
  margin: 0;
}

.manual-invoice-warning-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

body.manual-invoice-warning-open {
  overflow: hidden;
}

@media (min-width: 1080px) {
  .dashboard-settings-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-setting-card-select {
    grid-column: span 2;
  }
}

.rib-panel {
  padding: 32px;
}

.sidebar-rib {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 24px;
}

.board-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.is-hidden {
  display: none !important;
}

.button:disabled,
.mini-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

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

.rib-heading {
  align-items: center;
}

.sidebar-rib .rib-heading {
  flex-direction: column;
  align-items: stretch;
}

.sidebar-rib .section-heading h2 {
  font-size: 1.8rem;
}

.sidebar-rib .section-copy {
  max-width: none;
}

.service-table tbody tr.archived-row {
  background: rgba(255, 255, 255, 0.015);
}

.service-table tbody tr.archived-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.table-section-row td {
  padding: 14px 16px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #efd7a0;
  background: rgba(215, 166, 60, 0.12);
}

.archive-note {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(215, 166, 60, 0.12);
  border: 1px solid rgba(215, 166, 60, 0.28);
  color: #f3dfb4;
  font-size: 0.84rem;
}

.section-heading h2 {
  font-size: 2.4rem;
  line-height: 0.95;
}

.section-copy {
  max-width: 540px;
}

.entry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

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

.quick-fill-row {
  display: flex;
  justify-content: flex-start;
}

.rib-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.rib-form-sidebar {
  grid-template-columns: 1fr;
}

.rib-form-sidebar .field-span-4 {
  grid-column: 1;
}

.entry-form label {
  display: grid;
  gap: 10px;
}

.entry-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.entry-form label span {
  font-size: 0.9rem;
  color: #d8e0e5;
}

.entry-form fieldset legend {
  margin-bottom: 10px;
  padding: 0;
  font-size: 0.9rem;
  color: #d8e0e5;
}

.entry-form input,
.entry-form select,
.entry-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.entry-form input,
.entry-form select {
  min-height: 58px;
}

.entry-form textarea {
  min-height: 160px;
  resize: vertical;
}

.rib-form input,
.rib-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.rib-form input:focus,
.rib-form textarea:focus {
  outline: none;
  border-color: rgba(215, 166, 60, 0.58);
  box-shadow: 0 0 0 4px rgba(215, 166, 60, 0.12);
}

.rib-form input {
  min-height: 58px;
}

.rib-form textarea {
  min-height: 136px;
  resize: vertical;
  font-family: "Manrope", sans-serif;
}

.rib-form-sidebar input,
.rib-form-sidebar textarea {
  font-size: 1rem;
}

.rib-compact-field {
  max-width: 168px;
}

.rib-compact-field input {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

.entry-form input:focus,
.entry-form select:focus,
.entry-form textarea:focus {
  outline: none;
  border-color: rgba(215, 166, 60, 0.58);
  box-shadow: 0 0 0 4px rgba(215, 166, 60, 0.12);
}

.entry-form select {
  appearance: none;
  color-scheme: dark;
  background-image: linear-gradient(45deg, transparent 50%, #e7d2aa 50%), linear-gradient(135deg, #e7d2aa 50%, transparent 50%);
  background-position: calc(100% - 24px) calc(50% - 3px), calc(100% - 18px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.entry-form select option,
.entry-form select optgroup {
  background: #0b0f12;
  color: var(--text);
}

.customer-picker-field {
  position: relative;
}

.customer-picker-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.customer-picker-meta strong {
  font-size: 0.92rem;
  color: #d8e0e5;
  cursor: pointer;
}

.customer-picker-meta strong:hover {
  color: #ffd37d;
}

.customer-search-results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: 280px;
  overflow: auto;
  padding: 10px;
}

.customer-search-item {
  width: 100%;
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.customer-search-item:hover {
  transform: translateY(-1px);
  border-color: rgba(215, 166, 60, 0.28);
  background: rgba(215, 166, 60, 0.08);
}

.customer-search-item.is-selected {
  border-color: rgba(95, 185, 122, 0.3);
  background: rgba(95, 185, 122, 0.12);
}

.customer-search-item strong,
.customer-search-item span {
  margin: 0;
}

.customer-search-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.customer-search-empty {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.col-span-2,
.field-span-2 {
  grid-column: span 2;
}

.field-span-4 {
  grid-column: 1 / -1;
}

.toggle-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.manual-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.manual-category-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  cursor: pointer;
}

.manual-category-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.manual-category-card span {
  position: relative;
  z-index: 1;
  font-weight: 700;
}

.manual-category-card:has(input:checked) {
  border-color: rgba(215, 166, 60, 0.5);
  background: linear-gradient(135deg, rgba(215, 166, 60, 0.24), rgba(215, 40, 40, 0.18));
}

.rib-help {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.rib-help summary {
  cursor: pointer;
  font-weight: 800;
  color: #f0d79c;
}

.rib-help-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.sidebar-rib .rib-help {
  margin-top: 0;
}

.split-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.split-tile {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.split-tile span {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
}

.split-tile strong {
  display: block;
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.split-tile p {
  font-size: 0.9rem;
}

.toggle-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  cursor: pointer;
}

.toggle-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.toggle-card span {
  position: relative;
  z-index: 1;
  font-weight: 800;
}

.toggle-card:has(input:checked) {
  border-color: rgba(215, 166, 60, 0.5);
  background: linear-gradient(135deg, rgba(215, 166, 60, 0.24), rgba(215, 40, 40, 0.18));
}

.table-wrap {
  overflow-x: auto;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.service-table {
  width: 100%;
  min-width: 1280px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.02);
}

.service-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 14px;
  text-align: left;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #121212;
  background: linear-gradient(180deg, #d9b054, #b2831b);
}

.service-table tbody td {
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}

.service-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.app-body[data-dashboard-density='compact'] .service-table thead th {
  padding: 10px 12px;
  font-size: 0.78rem;
}

.app-body[data-dashboard-density='compact'] .service-table tbody td {
  padding: 12px;
}

.app-body[data-dashboard-density='compact'] .vehicle-cell {
  gap: 4px;
}

.app-body[data-dashboard-density='compact'] .vehicle-cell span {
  font-size: 0.82rem;
}

.app-body[data-dashboard-density='compact'] .mini-button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.8rem;
}

.vehicle-cell {
  display: grid;
  gap: 6px;
}

.vehicle-cell span {
  color: var(--muted);
  font-size: 0.9rem;
}

.pill.yes {
  background: rgba(95, 185, 122, 0.18);
  color: #dbffe6;
}

.pill.warning {
  background: rgba(255, 161, 74, 0.18);
  color: #ffe3c2;
}

.pill.no {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

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

.mini-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

.mini-button.danger {
  background: rgba(239, 98, 98, 0.12);
  border-color: rgba(239, 98, 98, 0.32);
}

.empty-state {
  margin-top: 18px;
  padding: 20px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.form-feedback {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
}

.form-feedback.success {
  color: #e6ffed;
  background: rgba(95, 185, 122, 0.15);
  border: 1px solid rgba(95, 185, 122, 0.32);
}

.form-feedback.error {
  color: #ffe6e6;
  background: rgba(239, 98, 98, 0.15);
  border: 1px solid rgba(239, 98, 98, 0.32);
}

.form-feedback.warning {
  color: #fff2cf;
  background: rgba(254, 231, 92, 0.14);
  border: 1px solid rgba(254, 231, 92, 0.28);
}

.resp-shell {
  max-width: 1760px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
  padding: 28px;
}

.resp-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 30px 32px;
}

.resp-heading h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.92;
  margin: 10px 0 14px;
}

.resp-heading p {
  max-width: 760px;
}

.resp-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.resp-overview {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.client-discord-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  padding: 24px;
}

.client-discord-gate-overlay[hidden] {
  display: none;
}

.client-discord-gate-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(88, 101, 242, 0.18), transparent 42%),
    rgba(3, 6, 10, 0.8);
  backdrop-filter: blur(12px);
}

.client-discord-gate-modal {
  position: relative;
  width: min(680px, 100%);
  padding: 28px;
  display: grid;
  gap: 18px;
  border: 1px solid rgba(88, 101, 242, 0.24);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.client-discord-gate-head {
  display: grid;
  gap: 10px;
}

.client-discord-gate-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
}

.client-discord-gate-body {
  display: grid;
  gap: 16px;
}

.client-discord-gate-body p {
  margin: 0;
}

.client-discord-gate-note {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(88, 101, 242, 0.09), rgba(255, 255, 255, 0.03));
}

.client-discord-gate-note strong,
.client-discord-gate-note p {
  margin: 0;
}

.client-discord-gate-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-login-choice-overlay {
  position: fixed;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  padding: 24px;
}

.landing-login-choice-overlay[hidden] {
  display: none;
}

.landing-login-choice-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(215, 166, 60, 0.18), transparent 42%),
    rgba(3, 6, 10, 0.82);
  backdrop-filter: blur(12px);
}

.landing-login-choice-modal {
  position: relative;
  width: min(760px, 100%);
  padding: 30px;
  display: grid;
  gap: 20px;
  border: 1px solid rgba(215, 166, 60, 0.22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.landing-login-choice-head {
  display: grid;
  gap: 10px;
}

.landing-login-choice-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
}

.landing-login-choice-head p {
  margin: 0;
  max-width: 620px;
}

.landing-login-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.landing-login-choice-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.landing-login-choice-card:hover {
  transform: translateY(-2px);
  border-color: rgba(215, 166, 60, 0.28);
  background: linear-gradient(180deg, rgba(215, 166, 60, 0.1), rgba(255, 255, 255, 0.03));
}

.landing-login-choice-kicker {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e0c3a2;
}

.landing-login-choice-card strong,
.landing-login-choice-card p {
  margin: 0;
}

.landing-login-choice-card strong {
  font-size: 1.35rem;
}

.landing-login-choice-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

body.client-discord-gate-open {
  overflow: hidden;
}

.resp-hero {
  padding: 32px;
  display: grid;
  gap: 18px;
}

.resp-hero h2 {
  font-size: clamp(2.8rem, 4vw, 4.4rem);
  line-height: 0.93;
  margin: 0;
}

.resp-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.resp-directory {
  padding: 32px;
}

.resp-directory-head {
  align-items: center;
}

.resp-toolbar {
  display: grid;
  gap: 12px;
  grid-auto-flow: column;
  justify-content: end;
  align-items: center;
}

.resp-search {
  min-width: 320px;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.resp-search:focus {
  outline: none;
  border-color: rgba(215, 166, 60, 0.58);
  box-shadow: 0 0 0 4px rgba(215, 166, 60, 0.12);
}

.locked-input {
  cursor: not-allowed;
  border-color: rgba(215, 166, 60, 0.24);
  background: rgba(215, 166, 60, 0.08);
}

.compact-metric-tile {
  min-height: 0;
  padding: 18px;
}

.customer-loyalty-panel {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 22px 24px 24px;
}

.customer-loyalty-panel .section-heading.compact {
  align-items: center;
  margin-bottom: 0;
}

.customer-loyalty-panel .section-heading.compact > div {
  display: grid;
  gap: 6px;
}

.customer-loyalty-grid,
.client-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.reward-toggle {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(215, 166, 60, 0.22);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.reward-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.reward-toggle span {
  color: var(--text);
  line-height: 1.4;
  font-weight: 600;
}

.reward-toggle:has(input:checked) {
  border-color: rgba(215, 166, 60, 0.56);
  background: linear-gradient(135deg, rgba(255, 247, 220, 0.9), rgba(255, 255, 255, 0.18));
}

.reward-toggle input {
  appearance: none;
  -webkit-appearance: none;
  width: 46px;
  height: 26px;
  margin: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.reward-toggle input::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.18s ease, background 0.18s ease;
}

.reward-toggle input:hover {
  transform: translateY(-1px);
}

.reward-toggle input:checked {
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, var(--gold), #f2c55b);
  box-shadow: 0 8px 18px rgba(215, 166, 60, 0.24);
}

.reward-toggle input:checked::after {
  transform: translateX(20px);
  background: #1f1710;
}

.reward-toggle input:focus-visible {
  outline: 2px solid rgba(215, 166, 60, 0.72);
  outline-offset: 3px;
}

.reward-help {
  color: var(--muted);
}

.loyalty-admin-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  border-color: rgba(79, 111, 130, 0.24);
  background: linear-gradient(180deg, rgba(16, 22, 27, 0.82), rgba(11, 15, 18, 0.72));
}

.loyalty-admin-heading {
  align-items: center;
}

.loyalty-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 14px;
}

.loyalty-adjustment-history {
  display: grid;
  gap: 10px;
}

.loyalty-adjustment-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
}

.loyalty-adjustment-item strong {
  display: block;
  margin-bottom: 4px;
}

.loyalty-adjustment-item span {
  color: var(--muted);
  white-space: nowrap;
  font-size: 0.92rem;
}

.loyalty-adjustment-empty {
  color: var(--muted);
}

.loyalty-page-shell {
  max-width: 1760px;
}

.loyalty-page-overview {
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
}

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

.loyalty-page-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.loyalty-directory-panel,
.loyalty-selected-panel,
.loyalty-placeholder,
.loyalty-recap-panel,
.loyalty-notes-panel,
.loyalty-adjust-panel,
.loyalty-history-panel {
  padding: 22px;
}

.loyalty-directory-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 18px;
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
}

.loyalty-directory-toolbar {
  justify-content: stretch;
}

.loyalty-customer-list {
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
  overscroll-behavior: contain;
}

.loyalty-customer-list::-webkit-scrollbar {
  width: 10px;
}

.loyalty-customer-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(215, 166, 60, 0.28);
}

.loyalty-customer-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.loyalty-customer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.loyalty-customer-card:hover {
  transform: translateY(-1px);
  border-color: rgba(215, 166, 60, 0.3);
}

.loyalty-customer-card.selected {
  border-color: rgba(215, 166, 60, 0.52);
  background: linear-gradient(135deg, rgba(215, 166, 60, 0.14), rgba(255, 255, 255, 0.05));
}

.loyalty-customer-card strong,
.loyalty-customer-card span {
  display: block;
}

.loyalty-customer-card span {
  color: var(--muted);
  margin-top: 4px;
}

.loyalty-customer-card-meta {
  text-align: right;
}

.loyalty-main {
  display: grid;
  gap: 22px;
}

.loyalty-selected-panel,
.loyalty-placeholder {
  display: grid;
  gap: 22px;
}

.loyalty-selected-head {
  align-items: center;
}

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

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

.loyalty-notes-panel {
  display: grid;
  gap: 16px;
}

.loyalty-notes-field {
  display: grid;
  gap: 8px;
}

.loyalty-notes-field span {
  color: var(--text);
  font-weight: 700;
}

.loyalty-notes-field textarea {
  width: 100%;
  min-height: 140px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  resize: vertical;
}

.loyalty-notes-field textarea::placeholder {
  color: rgba(166, 176, 184, 0.72);
}

.loyalty-notes-field textarea:focus {
  outline: none;
  border-color: rgba(215, 166, 60, 0.58);
  box-shadow: 0 0 0 4px rgba(215, 166, 60, 0.12);
}

.loyalty-adjust-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 14px;
}

.loyalty-adjust-grid label {
  display: grid;
  gap: 8px;
}

.loyalty-adjust-grid label span {
  color: var(--text);
  font-weight: 700;
}

.loyalty-adjust-grid input {
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.loyalty-adjust-grid input::placeholder {
  color: rgba(166, 176, 184, 0.72);
}

.loyalty-adjust-grid input:focus {
  outline: none;
  border-color: rgba(215, 166, 60, 0.58);
  box-shadow: 0 0 0 4px rgba(215, 166, 60, 0.12);
}

.loyalty-adjust-actions {
  margin-top: 2px;
}

.loyalty-history-list {
  display: grid;
  gap: 12px;
}

.loyalty-history-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 18px;
}

.loyalty-history-item strong {
  display: block;
  margin-bottom: 4px;
}

.loyalty-history-meta {
  display: grid;
  gap: 6px;
  justify-items: end;
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.loyalty-entries-panel {
  display: grid;
  gap: 18px;
}

.loyalty-entries-table-wrap {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.loyalty-entries-table tbody td:nth-child(5),
.loyalty-entries-table tbody td:nth-child(6),
.loyalty-entries-table tbody td:nth-child(7) {
  white-space: nowrap;
}

.inline-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.client-shell {
  padding-bottom: 32px;
}

.client-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  margin-top: 24px;
}

.client-profile-card,
.client-summary-card {
  padding: 24px;
}

.client-referral-card {
  grid-column: 1 / -1;
  padding: 24px;
  display: grid;
  gap: 18px;
}

.client-referral-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
}

.client-referral-code-card {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.client-referral-code-card strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: #f3dfb4;
}

.client-referral-code-card p {
  margin: 0;
}

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

.client-referral-form {
  margin-top: 4px;
}

.client-profile-form {
  margin-top: 18px;
}

.client-history-grid {
  margin-top: 24px;
}

.client-history-table {
  min-width: 980px;
}

@media (max-width: 980px) {
  .client-referral-grid {
    grid-template-columns: 1fr;
  }

  .client-referral-summary {
    grid-template-columns: 1fr;
  }
}

.resp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.resp-employee-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.resp-employee-card:hover {
  transform: translateY(-2px);
  border-color: rgba(215, 166, 60, 0.34);
  background: linear-gradient(180deg, rgba(215, 166, 60, 0.09), rgba(255, 255, 255, 0.03));
}

.resp-employee-card.archived {
  border-color: rgba(79, 111, 130, 0.28);
  background: linear-gradient(180deg, rgba(79, 111, 130, 0.12), rgba(255, 255, 255, 0.03));
}

.resp-employee-card.archived:hover {
  border-color: rgba(79, 111, 130, 0.42);
  background: linear-gradient(180deg, rgba(79, 111, 130, 0.18), rgba(255, 255, 255, 0.04));
}

.resp-employee-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.resp-employee-head img {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  object-fit: cover;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.resp-employee-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.resp-employee-stats article {
  padding: 14px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.resp-employee-stats article span {
  display: block;
  margin-bottom: 8px;
}

.resp-employee-stats article strong {
  font-size: 1.05rem;
  margin: 0;
}

.resp-employee-meta {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
}

.resp-employee-meta strong {
  margin: 0;
  font-size: 1rem;
}

.resp-employee-meta span {
  color: var(--muted);
}

.resp-employee-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
}

.resp-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.resp-card-actions .button {
  min-width: 160px;
}

.resp-quotas-panel {
  display: grid;
  gap: 20px;
}

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

.resp-quota-card {
  display: grid;
  gap: 12px;
}

.resp-quota-card-foot {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.resp-quota-card-foot span {
  color: var(--muted);
}

.resp-quota-card-foot strong {
  margin: 0;
  font-size: 1rem;
}

.resp-quotas-table-wrap {
  margin-top: 0;
}

.resp-quotas-table {
  min-width: 1180px;
}

.resp-quota-progress {
  display: grid;
  gap: 8px;
}

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

.resp-ems-table {
  min-width: 1380px;
}

.resp-quota-progress strong {
  font-size: 1rem;
}

.resp-quota-foot {
  font-size: 0.82rem;
  color: var(--muted);
}

.resp-chat-shell {
  position: relative;
  z-index: 1;
  max-width: 1680px;
  margin: 0 auto;
  padding: 24px;
}

.resp-chat-topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding: 22px 24px;
  margin-bottom: 22px;
}

.resp-chat-brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.resp-chat-brand h1 {
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 0.95;
}

.resp-chat-brand p {
  margin-top: 10px;
  max-width: 760px;
}

.resp-chat-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}

.resp-chat-layout {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.resp-chat-main {
  display: grid;
  gap: 22px;
}

.resp-chat-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 24px;
}

.resp-chat-profile,
.resp-chat-summary-card,
.resp-chat-compose-card,
.resp-chat-thread-card {
  padding: 22px;
}

.resp-chat-profile {
  display: grid;
  gap: 18px;
}

.resp-chat-profile-head {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.resp-chat-profile-head img {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.resp-chat-profile-head h2 {
  font-size: 2rem;
  line-height: 0.95;
  margin-top: 8px;
}

.resp-chat-profile-head p {
  margin-top: 6px;
}

.resp-chat-profile-meta {
  display: grid;
  gap: 10px;
}

.resp-chat-profile-meta article,
.resp-chat-summary-grid article {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.resp-chat-profile-meta span,
.resp-chat-summary-grid span,
.resp-chat-message-head span,
.resp-chat-attachment span {
  color: var(--muted);
}

.resp-chat-profile-meta strong,
.resp-chat-summary-grid strong {
  display: block;
  margin-top: 6px;
}

.resp-chat-rib-value {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.35rem;
  color: #f3dfb4;
}

.resp-chat-sidebar-actions {
  display: grid;
  gap: 10px;
}

.resp-chat-summary-grid {
  display: grid;
  gap: 12px;
}

.resp-chat-summary-grid strong {
  font-size: 1.14rem;
  margin: 6px 0 8px;
}

.resp-chat-summary-grid p {
  margin: 0;
}

.resp-chat-compose-card {
  display: grid;
  gap: 18px;
}

.resp-chat-form-top {
  display: flex;
  gap: 16px;
  align-items: start;
}

.resp-chat-weekly-absence-card {
  flex: 1;
  min-height: 104px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  display: grid;
  gap: 8px;
}

.resp-chat-weekly-absence-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.resp-chat-weekly-absence-card strong {
  display: block;
  margin: 0;
  font-size: 1.45rem;
  color: #f5f4ef;
}

.resp-chat-weekly-absence-card p {
  margin: 0;
}

.resp-chat-weekly-absence-card.has-absence {
  border-color: rgba(215, 166, 60, 0.28);
  background: linear-gradient(180deg, rgba(215, 166, 60, 0.14), rgba(255, 255, 255, 0.03));
}

.resp-chat-weekly-absence-card.has-absence strong {
  color: #f3dfb4;
}

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

.resp-chat-field {
  display: grid;
  gap: 10px;
}

.resp-chat-field-compact {
  max-width: 360px;
}

.resp-chat-field-wide {
  width: 100%;
}

.resp-chat-field > span {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #e8d6b2;
}

.resp-chat-form input,
.resp-chat-form select,
.resp-chat-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.resp-chat-form input,
.resp-chat-form select {
  min-height: 58px;
}

.resp-chat-form textarea {
  min-height: 220px;
  resize: vertical;
  line-height: 1.6;
  font-family: "Manrope", sans-serif;
}

.resp-chat-form input::placeholder,
.resp-chat-form textarea::placeholder {
  color: rgba(245, 244, 239, 0.48);
}

.resp-chat-form input:focus,
.resp-chat-form select:focus,
.resp-chat-form textarea:focus {
  outline: none;
  border-color: rgba(215, 166, 60, 0.58);
  box-shadow: 0 0 0 4px rgba(215, 166, 60, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.resp-chat-form select {
  appearance: none;
  padding-right: 54px;
  background-image: linear-gradient(45deg, transparent 50%, #e7d2aa 50%), linear-gradient(135deg, #e7d2aa 50%, transparent 50%);
  background-position: calc(100% - 24px) calc(50% - 3px), calc(100% - 18px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.resp-chat-form input[readonly] {
  color: #f3e0b5;
  background: linear-gradient(180deg, rgba(215, 166, 60, 0.12), rgba(255, 255, 255, 0.03));
  border-color: rgba(215, 166, 60, 0.24);
}

.resp-chat-form input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  border-radius: 6px;
  accent-color: var(--gold);
  box-shadow: none;
}

.resp-chat-form input[type="file"] {
  padding: 12px 14px;
}

.resp-chat-form input[type="file"]::file-selector-button {
  margin-right: 12px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
}

.resp-chat-weekly-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.resp-chat-form-actions {
  display: flex;
  justify-content: flex-start;
}

.resp-chat-form-actions .button {
  min-width: 320px;
}

.resp-chat-thread-card {
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
}

.resp-chat-thread-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.resp-chat-thread-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.resp-chat-thread {
  min-height: 0;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 14px;
  padding-right: 8px;
}

.resp-chat-thread::-webkit-scrollbar {
  width: 10px;
}

.resp-chat-thread::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.resp-chat-message {
  max-width: min(76%, 860px);
  padding: 18px 20px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 12px;
}

.resp-chat-message.outbound {
  margin-left: auto;
  background: linear-gradient(180deg, rgba(215, 166, 60, 0.18), rgba(255, 255, 255, 0.04));
  border-color: rgba(215, 166, 60, 0.28);
  box-shadow: 0 18px 44px rgba(215, 166, 60, 0.08);
}

.resp-chat-message.inbound {
  margin-right: auto;
  background: linear-gradient(180deg, rgba(79, 111, 130, 0.18), rgba(255, 255, 255, 0.04));
  border-color: rgba(79, 111, 130, 0.28);
  box-shadow: 0 18px 44px rgba(79, 111, 130, 0.08);
}

.resp-chat-message-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.resp-chat-message-head strong {
  display: block;
  margin-bottom: 4px;
}

.resp-chat-message-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.resp-chat-message p {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
}

.resp-chat-attachment {
  display: grid;
  gap: 10px;
}

.resp-chat-attachment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #f3dfb4;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.resp-chat-attachment img {
  width: 100%;
  max-width: 420px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.resp-conversation {
  display: grid;
  gap: 20px;
}

.resp-conversation-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.resp-conversation-head h2 {
  margin: 0;
}

.resp-conversation-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.resp-conversation-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.resp-conversation-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.resp-conversation-summary article {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.resp-conversation-summary span,
.resp-message-meta span,
.resp-message-attachment span {
  color: var(--muted);
}

.resp-conversation-summary strong {
  display: block;
  margin: 6px 0 8px;
  font-size: 1.18rem;
}

.resp-conversation-summary p {
  margin: 0;
}

.resp-conversation-thread {
  display: grid;
  gap: 14px;
  max-height: 720px;
  padding-right: 8px;
  overflow-y: auto;
}

.resp-conversation-thread::-webkit-scrollbar {
  width: 10px;
}

.resp-conversation-thread::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.resp-message-bubble {
  max-width: min(78%, 760px);
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 10px;
}

.resp-message-bubble.outbound {
  margin-left: auto;
  background: linear-gradient(180deg, rgba(215, 166, 60, 0.14), rgba(255, 255, 255, 0.04));
  border-color: rgba(215, 166, 60, 0.24);
}

.resp-message-bubble.inbound {
  margin-right: auto;
  background: linear-gradient(180deg, rgba(79, 111, 130, 0.16), rgba(255, 255, 255, 0.04));
  border-color: rgba(79, 111, 130, 0.26);
}

.resp-message-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.resp-message-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resp-message-bubble p {
  margin: 0;
  line-height: 1.55;
  white-space: normal;
}

.resp-message-attachment {
  display: grid;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.resp-message-attachment img {
  width: 100%;
  max-width: 360px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  object-fit: cover;
}

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

.resp-weekly-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
}

.checkbox-field label {
  margin: 0;
}

@media (max-width: 1220px) {
  .welcome-stage,
  .org-role-grid,
  .org-layer-middle,
  .org-layer-bottom,
  .experience-grid,
  .access-steps,
  .content-grid,
  .resp-overview,
  .resp-grid,
  .app-shell {
    grid-template-columns: 1fr;
  }

  .service-dock,
  .welcome-band,
  .welcome-ribbon,
  .discord-feature-band,
  .resp-metrics,
  .resp-chat-layout,
  .resp-quota-summary,
  .resp-conversation-summary,
  .resp-employee-stats,
  .entry-form-wide,
  .loyalty-admin-grid,
  .loyalty-page-overview,
  .loyalty-page-summary,
  .loyalty-page-layout,
  .loyalty-detail-grid,
  .loyalty-adjust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resp-chat-layout {
    grid-template-columns: 1fr;
  }

  .resp-chat-sidebar {
    position: static;
  }

  .loyalty-directory-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .org-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .org-group-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .sidebar {
    position: static;
    height: auto;
    overflow-y: visible;
    overscroll-behavior: auto;
  }

  .resp-topbar,
  .resp-directory-head,
  .loyalty-selected-head {
    flex-direction: column;
    align-items: stretch;
  }

  .resp-toolbar {
    grid-auto-flow: row;
    justify-content: stretch;
  }

  .resp-search {
    min-width: 0;
  }

  .discord-cta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .landing-shell,
  .app-shell,
  .resp-shell,
  .resp-chat-shell {
    padding: 16px;
  }

  .landing-topbar,
  .landing-actions,
  .hero-banner,
  .dashboard-settings-head,
  .section-heading,
  .resp-topbar,
  .resp-actions,
  .resp-chat-topbar,
  .resp-chat-brand,
  .resp-directory-head,
  .resp-conversation-head,
  .resp-employee-head,
  .resp-employee-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-banner-aside {
    width: 100%;
    justify-items: stretch;
  }

  .dashboard-settings-trigger,
  .dashboard-settings-close {
    width: 100%;
  }

  .dashboard-setting-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 15px;
  }

  .dashboard-setting-switch {
    justify-self: start;
  }

  .dashboard-setting-field {
    min-width: 0;
    justify-content: stretch;
  }

  .dashboard-settings-overlay {
    place-items: start center;
    padding: 12px;
  }

  .dashboard-settings-modal {
    width: min(100%, 100%);
    max-height: calc(100vh - 24px);
    padding: 18px;
    gap: 12px;
  }

  .dashboard-settings-head {
    padding-bottom: 8px;
  }

  .dashboard-settings-head h3 {
    margin: 8px 0 6px;
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .dashboard-settings-stack {
    gap: 10px;
    padding-right: 2px;
  }

  .dashboard-setting-copy p {
    font-size: 0.92rem;
  }

  .dashboard-settings-note,
  .dashboard-settings-summary,
  .dashboard-settings-storage-copy {
    font-size: 0.92rem;
  }

  .hero-metrics,
  .metrics-grid,
  .service-dock,
  .welcome-band,
  .welcome-ribbon,
  .split-preview,
  .prime-panel,
  .resp-metrics,
  .resp-grid,
  .resp-quota-summary,

  .landing-login-choice-overlay {
    padding: 14px;
  }

  .landing-login-choice-modal {
    padding: 20px;
  }

  .landing-login-choice-grid {
    grid-template-columns: 1fr;
  }

  .landing-login-choice-actions .button {
    width: 100%;
  }
  .resp-conversation-summary,
  .resp-employee-stats,
  .resp-chat-summary-grid,
  .resp-weekly-fields,
  .toggle-group,
  .preview-summary,
  .loyalty-page-overview,
  .loyalty-page-summary,
  .loyalty-page-layout,
  .loyalty-detail-grid,
  .loyalty-adjust-grid {
    grid-template-columns: 1fr;
  }

  .loyalty-history-item,
  .loyalty-customer-card {
    grid-template-columns: 1fr;
  }

  .loyalty-customer-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .loyalty-history-meta {
    justify-items: start;
    white-space: normal;
  }

  .landing-nav {
    width: 100%;
  }

  .landing-nav a,
  .landing-actions .button {
    width: 100%;
  }

  .customer-picker-meta {
    align-items: stretch;
  }

  .customer-picker-meta .mini-button {
    width: 100%;
  }

  .landing-sleep-overlay {
    padding: 18px;
  }

  .landing-sleep-button {
    width: 100%;
    gap: 10px;
    padding: 12px 14px;
  }

  .welcome-stage,
  .org-section,
  .access-stage,
  .discord-hero,
  .experience-card {
    padding: 22px;
  }

  .garage-visual-card {
    min-height: 280px;
  }

  .garage-visual-copy {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

  .welcome-copy h2 {
    font-size: clamp(2.7rem, 12vw, 4.2rem);
  }

  .garage-visual-copy strong {
    font-size: clamp(1.9rem, 8vw, 2.7rem);
  }

  .org-connector.split::before,
  .org-connector.split::after {
    display: none;
  }

  .entry-form {
    grid-template-columns: 1fr;
  }

  .resp-employee-head {
    grid-template-columns: 1fr;
  }

  .resp-chat-profile-head {
    grid-template-columns: 1fr;
  }

  .resp-chat-thread-card {
    min-height: auto;
  }

  .resp-chat-thread {
    max-height: none;
  }

  .resp-chat-form-top,
  .resp-chat-form-actions {
    flex-direction: column;
  }

  .resp-chat-field-compact,
  .resp-chat-form-actions .button {
    max-width: none;
    width: 100%;
  }

  .resp-message-bubble {
    max-width: 100%;
  }

  .resp-message-meta,
  .resp-chat-thread-head,
  .resp-chat-topbar-actions,
  .resp-chat-message-head,
  .resp-chat-message-badges,
  .resp-card-actions,
  .resp-conversation-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .resp-chat-message {
    max-width: 100%;
  }

  .resp-card-actions .button {
    width: 100%;
  }

  .col-span-2,
  .field-span-2,
  .field-span-4 {
    grid-column: span 1;
  }

  .preview-columns,
  .preview-row {
    grid-template-columns: repeat(11, minmax(92px, 1fr));
  }
}

@media (max-width: 640px) {
  body::before {
    background-size: 42px 42px;
  }

  .app-shell,
  .resp-shell,
  .resp-chat-shell,
  .landing-shell {
    padding: 12px;
    gap: 14px;
  }

  .sidebar,
  .hero-banner,
  .prime-panel,
  .form-panel,
  .board-panel,
  .rib-panel,
  .resp-topbar,
  .resp-hero,
  .resp-directory,
  .resp-chat-topbar,
  .resp-chat-profile,
  .resp-chat-summary-card,
  .resp-chat-compose-card,
  .resp-chat-thread-card,
  .loyalty-directory-panel,
  .loyalty-selected-panel,
  .loyalty-placeholder,
  .loyalty-recap-panel,
  .loyalty-notes-panel,
  .loyalty-adjust-panel,
  .loyalty-history-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .sidebar {
    gap: 18px;
  }

  .sidebar-title {
    font-size: 2.4rem;
  }

  .hero-banner h2,
  .section-heading h2,
  .resp-heading h1,
  .resp-hero h2,
  .resp-chat-brand h1,
  .resp-chat-profile-head h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .brand-kicker,
  .eyebrow {
    letter-spacing: 0.08em;
  }

  .landing-sleep-chip {
    min-height: 24px;
    inset: 0;
    display: block;
    font-size: 0.66rem;
    transform: scale(1.03);
  }

  .landing-sleep-button {
    gap: 12px;
  }

  .user-chip img {
    transform: scale(1);
  }

  .resp-employee-head img,
  .resp-chat-profile-head img {
    width: 52px;
    height: 52px;
    transform: scale(1.06);
    border-radius: 16px;
  }

  .landing-body > :not(.landing-showcase):not(.landing-sleep-overlay) {
    position: relative;
    z-index: 1;
    transition: opacity 0.55s ease, transform 0.55s ease, filter 0.55s ease;
  }

  .landing-body.is-sleeping > :not(.landing-showcase):not(.landing-sleep-overlay) {
    filter: blur(0.6px);
  }

  .resp-actions,
  .resp-toolbar,
  .resp-conversation-actions,
  .resp-card-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .sidebar-actions .button,
  .form-actions .button,
  .board-toolbar .button,
  .resp-actions .button,
  .resp-toolbar .button,
  .resp-chat-topbar-actions .button,
  .resp-conversation-actions .button,
  .resp-card-actions .button,
  .resp-chat-form-actions .button {
    width: 100%;
    min-width: 0;
  }

  .button,
  .resp-search,
  .entry-form input,
  .entry-form select,
  .rib-form input,
  .resp-chat-form input,
  .resp-chat-form select {
    min-height: 52px;
  }

  .board-badges,
  .resp-chat-thread-badges,
  .resp-message-badges,
  .resp-chat-message-badges {
    justify-content: flex-start;
  }

  .status-badge,
  .pill {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.84rem;
  }

  .prime-panel {
    gap: 14px;
  }

  .prime-panel-value {
    text-align: left;
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .prime-panel-lock {
    display: none;
  }

  .metrics-grid,
  .customer-loyalty-grid,
  .client-summary-grid,
  .resp-ems-summary,
  .resp-chat-weekly-fields,
  .manual-category-grid,
  .resp-weekly-fields {
    grid-template-columns: 1fr;
  }

  .metric-card,
  .metric-tile,
  .compact-metric-tile,
  .split-tile,
  .resp-employee-stats article,
  .resp-chat-profile-meta article,
  .resp-chat-summary-grid article,
  .resp-conversation-summary article {
    padding: 16px;
    border-radius: 18px;
  }

  .metric-card strong,
  .metric-tile strong,
  .prime-panel-value,
  .split-tile strong {
    letter-spacing: -0.02em;
  }

  .entry-form,
  .rib-form,
  .resp-chat-form,
  .resp-conversation-form,
  .loyalty-adjust-grid,
  .loyalty-detail-grid,
  .loyalty-admin-grid {
    gap: 14px;
  }

  .entry-form label span,
  .entry-form fieldset legend,
  .resp-chat-field > span {
    font-size: 0.88rem;
  }

  .toggle-card,
  .manual-category-card,
  .reward-toggle,
  .checkbox-field {
    min-height: 56px;
    padding: 14px 16px;
  }

  .table-wrap {
    border-radius: 18px;
    margin-inline: -4px;
    overflow-x: visible;
    border: 0;
    -webkit-overflow-scrolling: touch;
  }

  .service-table {
    min-width: 0;
    display: block;
    background: transparent;
  }

  .service-table thead {
    display: none;
  }

  .service-table tbody {
    display: grid;
    gap: 14px;
  }

  .service-table tbody tr {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
  }

  .service-table tbody tr.archived-row {
    background: rgba(79, 111, 130, 0.12);
  }

  .service-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .table-section-row {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .table-section-row td {
    display: block;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(215, 166, 60, 0.12);
    border: 1px solid rgba(215, 166, 60, 0.2);
  }

  .service-table thead th,
  .service-table tbody td {
    display: grid;
    grid-template-columns: minmax(110px, 0.95fr) minmax(0, 1.05fr);
    gap: 10px;
    align-items: start;
    padding: 0;
    border: 0;
    white-space: normal;
    word-break: break-word;
  }

  .service-table tbody td::before {
    content: attr(data-label);
    color: #f0d79c;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.35;
  }

  .service-table tbody td:last-child {
    grid-template-columns: 1fr;
  }

  .vehicle-cell {
    gap: 4px;
  }

  .vehicle-cell strong,
  .vehicle-cell span {
    overflow-wrap: anywhere;
  }

  .row-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mini-button {
    width: 100%;
    min-height: 32px;
  }

  .resp-employee-card,
  .resp-message-bubble,
  .resp-chat-message {
    padding: 16px;
    border-radius: 20px;
  }

  .resp-employee-foot,
  .resp-message-meta,
  .resp-chat-thread-head,
  .resp-chat-message-head,
  .resp-conversation-head,
  .section-heading,
  .hero-banner,
  .resp-topbar,
  .resp-chat-topbar {
    gap: 12px;
  }

  .resp-chat-thread,
  .resp-conversation-thread,
  .loyalty-customer-list {
    padding-right: 0;
  }

  .resp-chat-message,
  .resp-message-bubble {
    max-width: 100%;
  }

  .resp-search,
  .resp-chat-field-compact,
  .rib-compact-field {
    max-width: none;
    min-width: 0;
  }

  .reward-help,
  .section-copy,
  .sidebar-copy,
  .resp-heading p,
  .resp-chat-brand p,
  .garage-visual-copy p {
    font-size: 0.95rem;
  }
}

dialog {
  border: 0;
  border-radius: 1rem;
  background: var(--panel-strong);
  color: var(--text);
  padding: 0;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.resp-modal-content {
  padding: 2rem;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
}

.resp-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--stroke);
}

.resp-modal-head h2 {
  margin: 0;
  font-size: 1.5rem;
}

.resp-modal-head button {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  border-radius: 0.5rem;
  transition: all 150ms ease;
}

.resp-modal-head button:hover {
  color: var(--text);
  background: var(--panel);
}
}