@import url('https://fonts.googleapis.com/css2?family=Goldman:wght@400;700&family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&family=Inter:wght@400;500;600;700;800;900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #dbeafe;
  --ink: #0f172a;
  --muted: #64748b;
  --subtle: #94a3b8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --success: #16a34a;
  --warning: #d97706;
  --error: #dc2626;
  --sidebar: #0a0f1e;
  --font-display: 'Google Sans', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --radius-sm: 7px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 16px 50px rgba(15, 23, 42, 0.12), 0 2px 10px rgba(15, 23, 42, 0.06);
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface-3);
  -webkit-font-smoothing: antialiased;
}

body.client-modal-open {
  overflow: hidden;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.client_boot_loader {
  align-items: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(37, 99, 235, 0.18), transparent 16rem),
    linear-gradient(145deg, #07101f 0%, #0d1424 52%, #111827 100%);
  color: #f8fafc;
  display: grid;
  align-content: center;
  gap: 1.25rem;
  inset: 0;
  justify-items: center;
  min-height: 100dvh;
  padding: 2rem;
  position: fixed;
  text-align: center;
  transition: opacity 420ms ease, visibility 420ms ease;
  z-index: 9999;
}

.client_boot_loader.is_done {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.client_boot_logo {
  display: block;
  filter: drop-shadow(0 20px 42px rgba(37, 99, 235, 0.22));
  height: auto;
  width: clamp(7.5rem, 24vw, 10rem);
}

.client_boot_mark {
  display: grid;
  height: 3.6rem;
  place-items: center;
  position: relative;
  width: 3.6rem;
}

.client_boot_mark::before {
  border-radius: 999px;
  content: '';
  position: absolute;
}

.client_boot_mark::before {
  animation: clientBootSpin 0.82s linear infinite;
  border: 4px solid rgba(255, 255, 255, 0.18);
  border-top-color: #ffffff;
  border-right-color: rgba(255, 255, 255, 0.84);
  inset: 0;
}

.client_boot_text {
  display: grid;
}

.client_boot_text span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.client_booting #login_screen,
.client_booting #dashboard_screen {
  opacity: 0;
  pointer-events: none;
}

.client_route_ready #login_screen,
.client_route_ready #dashboard_screen {
  animation: clientRouteIn 380ms ease both;
}

@keyframes clientBootSpin {
  to { transform: rotate(360deg); }
}

@keyframes clientRouteIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.login_shell {
  min-height: 100dvh;
  display: grid;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 80% 0%, rgba(37,99,235,0.24), transparent 32%),
    linear-gradient(160deg, #0a0f1e 0%, #111827 64%, #172554 100%);
  overflow: hidden;
}

.client_auth_layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  animation: clientAuthContentEnter 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.client_auth_access_panel {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 28px;
  height: 100dvh;
  min-height: 0;
  padding: 0 clamp(34px, 5vw, 72px);
  overflow-y: auto;
}

.client_auth_brand {
  position: static;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  color: #fff;
  text-decoration: none;
}

.client_auth_brand img {
  width: 136px;
  height: auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.client_auth_brand span {
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 6px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.client_auth_mobile_value {
  display: none;
}

.login_card {
  width: 100%;
  max-width: 440px;
  margin: 0;
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.client_auth_mode_toggle {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 6px;
  margin-bottom: 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
}

.client_auth_mode_toggle::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(33.333% - 4px);
  height: calc(100% - 12px);
  border-radius: 10px;
  background: rgba(30,41,59,0.96);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 22px rgba(2,6,23,0.22);
  transition: transform 0.2s ease;
}

.login_shell[data-login-mode="email"] .client_auth_mode_toggle::before {
  transform: translateX(100%);
}

.login_shell[data-login-mode="access_code"] .client_auth_mode_toggle::before {
  transform: translateX(200%);
}

.client_auth_mode_toggle button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(226,232,240,0.52);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: color 0.2s ease;
}

.client_auth_mode_toggle button.active {
  color: rgba(255,255,255,0.9);
}

.client_auth_icon,
.client_auth_icon svg {
  width: 16px;
  height: 16px;
}

.client_auth_icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.client_auth_panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(15,23,42,0.16);
}

.client_auth_panel_bg {
  position: absolute;
  right: -58px;
  bottom: -68px;
  z-index: 0;
  width: 245px;
  height: 245px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.login_shell[data-login-mode="phone"] .client_auth_panel_bg-phone,
.login_shell[data-login-mode="email"] .client_auth_panel_bg-email,
.login_shell[data-login-mode="access_code"] .client_auth_panel_bg-code {
  opacity: 0.055;
}

.login_step {
  display: none;
}

.login_step.active {
  display: block;
}

h1, h2 {
  font-family: var(--font-display);
  color: var(--ink);
}

.client_auth_card_head,
.client_auth_form {
  position: relative;
  z-index: 1;
}

.client_auth_card_head {
  margin: 0;
  padding: 28px 28px 12px;
  background: transparent;
  animation: clientAuthPanelSlide 0.2s ease;
}

.client_auth_card_head span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login_step h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 33px;
  line-height: 1.02;
}

.login_copy {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.centered { text-align: center; }

.client_auth_form {
  display: grid;
  gap: 16px;
  padding: 10px 28px 28px;
  background: transparent;
  animation: clientAuthPanelSlide 0.2s ease;
}

.login_method_panel {
  display: block;
}

.login_method_panel[hidden] {
  display: none;
}

.client_auth_feature_panel {
  position: relative;
  display: grid;
  align-content: center;
  gap: 52px;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  padding: clamp(46px, 6vw, 84px);
  overflow: hidden;
  border-radius: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(37,99,235,0.28), transparent 34%),
    linear-gradient(155deg, rgba(15,23,42,0.72), rgba(10,15,30,0.92));
  box-shadow: inset 1px 0 0 rgba(255,255,255,0.05);
  contain: layout paint;
  transform: translateZ(0);
}

.client_auth_feature_panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 20%, rgba(37,99,235,0.26), transparent 34%),
    linear-gradient(150deg, rgba(255,255,255,0.08), transparent 45%);
  pointer-events: none;
}

.client_auth_feature_copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  max-width: 420px;
}

.client_auth_feature_copy span {
  color: #93b4ff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.client_auth_feature_copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
}

.client_auth_feature_copy p {
  margin: 0;
  color: rgba(226,232,240,0.72);
  font-size: 16px;
  line-height: 1.5;
}

.client_auth_feature_wheel {
  position: relative;
  z-index: 1;
  height: 300px;
  overflow: hidden;
  contain: layout paint;
  perspective: 900px;
  transform: translateZ(0);
}

.client_auth_feature_wheel::before,
.client_auth_feature_wheel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 88px;
  pointer-events: none;
}

.client_auth_feature_wheel::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(10,15,30,0.96), rgba(10,15,30,0));
}

.client_auth_feature_wheel::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(10,15,30,0.96), rgba(10,15,30,0));
}

.client_auth_feature_wheel span {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(147,180,255,0.28);
  border-radius: 12px;
  background: rgba(15,23,42,0.42);
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  animation: clientAuthFeatureCycle 10s linear infinite;
}

.client_auth_feature_wheel svg {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #93b4ff;
}

.client_auth_feature_wheel span:nth-child(1) { animation-delay: -0s; }
.client_auth_feature_wheel span:nth-child(2) { animation-delay: -2s; }
.client_auth_feature_wheel span:nth-child(3) { animation-delay: -4s; }
.client_auth_feature_wheel span:nth-child(4) { animation-delay: -6s; }
.client_auth_feature_wheel span:nth-child(5) { animation-delay: -8s; }

@keyframes clientAuthFeatureCycle {
  0% { opacity: 0; transform: translate3d(0, 155px, -120px) rotateX(-18deg) scale(0.88); }
  12% { opacity: 0.3; transform: translate3d(0, 104px, -86px) rotateX(-12deg) scale(0.92); }
  34% { opacity: 0.72; transform: translate3d(0, 38px, -34px) rotateX(-5deg) scale(0.97); }
  50% { opacity: 1; transform: translate3d(0, -24px, 0) rotateX(0deg) scale(1); }
  66% { opacity: 0.72; transform: translate3d(0, -86px, -34px) rotateX(5deg) scale(0.97); }
  88% { opacity: 0.3; transform: translate3d(0, -152px, -86px) rotateX(12deg) scale(0.92); }
  100% { opacity: 0; transform: translate3d(0, -203px, -120px) rotateX(18deg) scale(0.88); }
}

@keyframes clientAuthPanelSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes clientAuthContentEnter {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

.login_notice {
  display: grid;
  gap: 4px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--blue);
  background: #f1f5ff;
  color: var(--muted);
  font-size: 14px;
}

.login_notice strong,
.login_notice span {
  display: block;
}

.login_notice strong {
  color: var(--ink);
}

.field {
  display: block;
  margin-bottom: 18px;
  max-width: 100%;
  min-width: 0;
}

.field > span:not(.client_code_grid) {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  max-width: 100%;
  min-width: 0;
  width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  padding: 13px 14px;
  outline: none;
  font-size: 18px;
  line-height: 1.35;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field textarea { resize: vertical; min-height: 130px; }

.form_row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

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

.date_quick_btn {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.86rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.date_quick_btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.date_custom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  padding: 0.55rem 0.65rem;
}

.date_custom span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}

.date_custom input {
  min-height: 38px;
  padding: 0.45rem 0.55rem;
  background: #fff;
}

.date_helper {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 102, 232, 0.12);
}

.client_code_label {
  display: grid;
  gap: 12px;
}

.field .client_code_grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.field .client_code_box {
  aspect-ratio: 1;
  min-height: 54px;
  padding: 0;
  border-radius: 10px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
}

.form_error {
  min-height: 20px;
  margin: -4px 0 12px;
  color: var(--error);
  font-size: 13px;
  font-weight: 800;
}

.primary_btn,
.secondary_btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 120ms ease;
}

.primary_btn {
  width: 100%;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 20px rgba(37,99,235,0.18);
}

.primary_btn:hover { background: var(--blue-dark); }
.primary_btn:active, .secondary_btn:active { transform: scale(0.99); }

.primary_btn:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
  box-shadow: none;
}

.secondary_btn {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
}

.warranty_action_btn {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}

.warranty_action_btn:hover {
  background: #ffedd5;
  border-color: #fb923c;
}

.text_btn {
  appearance: none;
  border-radius: 7px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
}

.spinner {
  width: 42px;
  height: 42px;
  margin: 24px auto;
  border: 4px solid #dbeafe;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

button {
  position: relative;
}

.button_spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.68s linear infinite;
}

.modal button.is-loading,
.modal button.is-modal-click-loading {
  pointer-events: none;
}

.modal button.is-loading:not(.new_action_option),
.modal button.is-modal-click-loading:not(.new_action_option) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.modal button.is-modal-click-loading:not(.new_action_option)::after {
  content: "";
  width: 1em;
  height: 1em;
  margin-left: 0.5rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.68s linear infinite;
}

@media (max-width: 960px) {
  .login_shell {
    min-height: 100dvh;
    overflow-y: auto;
  }

  .client_auth_layout {
    grid-template-columns: 1fr;
    width: min(440px, 100%);
    height: auto;
    min-height: 0;
    margin: 0 auto;
    overflow: visible;
  }

  .client_auth_access_panel {
    place-content: start center;
    gap: 22px;
    width: 100%;
    height: auto;
    min-height: 100dvh;
    padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
    overflow: visible;
  }

  .client_auth_brand img {
    width: 126px;
  }

  .client_auth_mobile_value {
    display: grid;
    gap: 13px;
    width: 100%;
    color: rgba(226,232,240,0.74);
    text-align: center;
  }

  .client_auth_mobile_value p {
    max-width: 360px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.45;
  }

  .client_auth_mobile_feature_rail {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
  }

  .client_auth_mobile_feature_track {
    display: flex;
    width: max-content;
    animation: clientAuthMobileMarquee 15s linear infinite;
    will-change: transform;
  }

  .client_auth_mobile_feature_group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 10px;
  }

  .client_auth_mobile_feature_group span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid rgba(147,180,255,0.18);
    border-radius: 999px;
    background: rgba(15,23,42,0.38);
    color: rgba(255,255,255,0.84);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
  }

  .client_auth_mobile_feature_group svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: #93b4ff;
  }

  .login_card {
    max-width: 100%;
  }

  .client_auth_feature_panel {
    display: none;
  }
}

@media (max-width: 560px) {
  .client_auth_access_panel {
    padding-left: 14px;
    padding-right: 14px;
  }

  .login_step h2 {
    font-size: 30px;
  }

  .client_auth_card_head {
    padding: 26px 22px 12px;
  }

  .client_auth_form {
    padding: 10px 22px 24px;
  }

  .client_auth_mode_toggle button {
    gap: 5px;
    font-size: 13px;
  }

  .client_auth_icon,
  .client_auth_icon svg {
    width: 14px;
    height: 14px;
  }
}

@keyframes clientAuthMobileMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.client_app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  background: var(--surface-3);
}

.sidebar {
  width: 260px;
  min-width: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 0;
  padding: 20px 16px;
  background:
    radial-gradient(circle at 80% 0%, rgba(37,99,235,0.24), transparent 32%),
    linear-gradient(160deg, #0a0f1e 0%, #111827 64%, #172554 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 0;
}

.sidebar_scrim {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0;
  border-bottom: 0;
}

.brand img {
  width: 136px;
  height: auto;
  filter: none;
  object-fit: contain;
}

.brand span {
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 6px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.client_identity {
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
}

.client_name {
  overflow: hidden;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client_email {
  margin-top: 0.25rem;
  overflow: hidden;
  color: rgba(255,255,255,0.52);
  font-size: 0.76rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side_nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0;
}

.side_nav_item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  border: 0;
  border-radius: var(--radius-sm);
  min-height: 42px;
  padding: 0 12px;
  color: rgba(255,255,255,0.68);
  background: transparent;
  text-align: left;
  font-weight: 700;
  transition: background 0.16s ease, color 0.16s ease;
}

.side_nav_item strong {
  min-width: 1.45rem;
  height: 1.45rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 0.73rem;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.72);
}

.side_nav_item.active,
.side_nav_item:hover {
  color: #fff;
  background: rgba(255,255,255,0.09);
}

.side_nav_item.active strong,
.side_nav_item:hover strong {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.logout_btn {
  min-height: 38px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.06);
  font-weight: 800;
  transition: background 0.16s ease, color 0.16s ease;
}

.logout_btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.content {
  min-width: 0;
  padding: 26px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 0 0 24px;
  padding: 0;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.topbar > div:not(.topbar_actions) {
  min-width: 0;
}

.topbar_actions {
  margin-left: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.topbar_actions .secondary_btn,
.topbar_actions .primary_btn {
  min-height: 40px;
  padding: 0 14px;
  width: auto;
}

.new_menu_btn {
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.new_menu_btn:active,
.new_menu_btn.is-pressed {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 5px 12px rgba(37,99,235,0.18);
}

.new_menu_btn.is-open {
  background: var(--blue-dark);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.16), 0 12px 24px rgba(37,99,235,0.22);
}

.new_menu_btn.is-open .new_button_icon {
  transform: rotate(45deg);
}

.new_button_icon {
  display: inline-grid;
  height: 20px;
  place-items: center;
  transition: transform 0.16s ease;
  width: 20px;
}

.new_button_icon svg,
.new_action_icon svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.mobile_menu {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.mobile_menu span {
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.view { display: none; }

.view.active {
  display: block;
  animation: clientViewRise 0.18s ease;
}

@keyframes clientViewRise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.metric {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  min-height: 98px;
  padding: 1rem;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin: 0.45rem 0 0;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
}

.section_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 16px;
}

.section_head h2 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.1;
}

.section_title_row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.section_label {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 0.28rem;
  text-transform: uppercase;
}

.section_head.compact {
  margin-bottom: 0.65rem;
}

.section_head.compact .secondary_btn {
  min-height: 38px;
  padding: 0.55rem 0.85rem;
}

.active_requests_section {
  margin-bottom: 1.25rem;
}

.jobs_section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem;
}

.support_shell {
  display: grid;
  gap: 1rem;
}

.support_hero,
.support_form_card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.support_hero {
  overflow: hidden;
  padding: 1.15rem;
  position: relative;
}

.support_hero::after {
  background:
    radial-gradient(circle at center, rgba(37, 99, 235, 0.12), transparent 64%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent);
  border-radius: 999px;
  content: '';
  height: 9rem;
  position: absolute;
  right: -3rem;
  top: -4.5rem;
  width: 9rem;
}

.support_hero h2 {
  font-size: clamp(1.85rem, 3vw, 2.8rem);
  line-height: 1.02;
  margin: 0;
}

.support_hero p:not(.section_label) {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  margin-top: 0.65rem;
  max-width: 46rem;
}

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

.support_contact_card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  color: var(--ink);
  display: grid;
  gap: 0.2rem 0.85rem;
  grid-template-columns: 54px minmax(0, 1fr);
  min-height: 96px;
  padding: 0.85rem;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.support_contact_card:hover {
  border-color: rgba(37,99,235,0.34);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.support_contact_icon {
  align-self: stretch;
  background: #eff6ff;
  border-radius: var(--radius);
  color: var(--blue);
  display: grid;
  grid-row: span 2;
  place-items: center;
}

.support_contact_icon svg {
  fill: none;
  height: 24px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 24px;
}

.support_contact_card strong {
  align-self: end;
  font-size: 1.02rem;
  font-weight: 850;
  line-height: 1.1;
}

.support_contact_card small {
  align-self: start;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
}

.support_form_card,
.support_tickets_card {
  padding: 1rem;
}

.support_form_grid {
  display: grid;
  gap: 0.85rem;
}

.support_tickets_card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.support_ticket_layout {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(210px, 0.75fr) minmax(0, 1.25fr);
}

.support_ticket_list {
  display: grid;
  gap: 0.55rem;
}

.support_ticket_item {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  display: flex;
  gap: 0.7rem;
  justify-content: space-between;
  min-height: 74px;
  padding: 0.75rem;
  text-align: left;
}

.support_ticket_item.active {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.32);
}

.support_ticket_item span {
  min-width: 0;
}

.support_ticket_item strong,
.support_ticket_item small {
  display: block;
}

.support_ticket_item strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
}

.support_ticket_item small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support_thread_panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  min-height: 360px;
  overflow: hidden;
}

.support_ticket_thread {
  max-height: 420px;
  overflow-y: auto;
  padding: 0.85rem;
}

.support_thread_head {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin: -0.85rem -0.85rem 0.85rem;
  padding: 0.85rem;
}

.support_thread_head strong,
.support_thread_head span {
  display: block;
}

.support_thread_head strong {
  font-weight: 850;
}

.support_thread_head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  margin-top: 0.2rem;
}

.support_message_stack {
  display: grid;
  gap: 0.65rem;
}

.support_message {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  max-width: 88%;
  padding: 0.75rem;
}

.support_message.client {
  background: var(--surface-2);
}

.support_message.pro {
  background: #eff6ff;
  border-color: #bfdbfe;
  margin-left: auto;
}

.support_message strong,
.support_message span {
  display: block;
}

.support_message strong {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
}

.support_message p {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  margin-top: 0.25rem;
  white-space: pre-wrap;
}

.support_message span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  margin-top: 0.35rem;
}

.support_reply_box {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem;
}

.support_reply_box textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  min-height: 96px;
  padding: 0.85rem;
  resize: vertical;
  width: 100%;
}

.jobs_section_head {
  margin-bottom: 0;
}

.service_requests_list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.service_request_card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow: hidden;
  padding: 1.1rem;
  position: relative;
}

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

.service_request_title_group {
  min-width: 0;
  padding-top: 0.1rem;
}

.service_request_kicker {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.service_request_title {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 850;
  line-height: 1.15;
}

.service_request_body {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.78rem;
}

.service_request_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service_request_meta span {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 800;
  min-height: 30px;
  padding: 0 0.7rem;
}

.service_request_status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.service_request_actions {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding-top: 0.05rem;
}

.service_request_actions > span {
  margin-right: auto;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.service_request_action_buttons {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 0.55rem;
  justify-content: flex-end;
}

.service_request_date {
  color: var(--muted);
}

.service_request_actions .small_btn {
  min-height: 40px;
}

.job_filter_button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  display: inline-flex;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0 0.85rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}

.job_filter_button:hover {
  border-color: rgba(37,99,235,0.34);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.job_filter_button:active {
  transform: scale(0.99);
}

.job_filter_button svg {
  fill: none;
  height: 1.05rem;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 1.05rem;
}

.job_filter_button span {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.job_filter_grid {
  display: grid;
  gap: 0.7rem;
}

.job_filter_option {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 0.18rem 0.75rem;
  grid-template-columns: 52px minmax(0, 1fr);
  min-height: 96px;
  padding: 0.8rem;
  text-align: left;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.job_filter_option:hover {
  border-color: rgba(37,99,235,0.36);
  box-shadow: 0 12px 28px rgba(15,23,42,0.1);
  transform: translateY(-1px);
}

.job_filter_option.active {
  background: #eff6ff;
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue), 0 14px 30px rgba(37,99,235,0.12);
}

.job_filter_option strong,
.job_filter_option small {
  display: block;
}

.job_filter_option strong {
  align-self: end;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.1;
}

.job_filter_option small {
  align-self: start;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.34;
}

.job_search_bar {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0;
  padding: 0.85rem;
  position: relative;
}

.job_search_bar label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.job_search_input_wrap {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.job_search_input_wrap input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  min-height: 42px;
  padding: 0.68rem 0.78rem;
  width: 100%;
}

.job_search_input_wrap input:focus {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.14);
  outline: 0;
}

.job_search_input_wrap button {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--blue);
  font-weight: 800;
  min-height: 42px;
  padding: 0 0.85rem;
}

.job_search_input_wrap button[hidden] {
  display: none;
}

.job_search_results {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
  display: grid;
  gap: 0.35rem;
  left: 0.85rem;
  max-height: min(420px, 58vh);
  overflow-y: auto;
  padding: 0.45rem;
  position: absolute;
  right: 0.85rem;
  top: calc(100% - 0.35rem);
  z-index: 30;
}

.job_search_results[hidden] {
  display: none;
}

.job_search_result {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--ink);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  padding: 0.55rem;
  text-align: left;
  width: 100%;
}

.job_search_result:hover,
.job_search_result:focus-visible {
  background: var(--surface-2);
  outline: 0;
}

.job_search_thumb {
  align-items: center;
  background: #eaf1ff;
  border: 1px solid #d7e4f8;
  border-radius: var(--radius-sm);
  color: var(--muted);
  display: flex;
  height: 3.35rem;
  justify-content: center;
  overflow: hidden;
  width: 4.6rem;
}

.job_search_thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.job_search_thumb span {
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.job_search_result_body {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.job_search_result_body strong,
.job_search_result_body span,
.job_search_result_body small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job_search_result_body strong {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
}

.job_search_result_body span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.job_search_result_body small,
.job_search_empty {
  color: var(--subtle);
  font-size: 0.74rem;
  font-weight: 700;
}

.job_search_empty {
  padding: 0.9rem;
}

.jobs_list,
.issues_list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.issue_card,
.empty_state {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.job_card {
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  overflow: hidden;
  padding: 0.95rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.job_card:hover {
  border-color: rgba(37,99,235,0.28);
  box-shadow: 0 10px 26px rgba(15,23,42,0.1);
  transform: translateY(-1px);
}

.job_card:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.16), 0 10px 26px rgba(15,23,42,0.1);
  outline: 0;
}

.job_card_main {
  display: grid;
  gap: 0.72rem;
  min-width: 0;
}

.job_card_header {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.job_title_group {
  min-width: 0;
}

.job_title {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 850;
  line-height: 1.18;
}

.job_subtitle {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  margin-top: 0.22rem;
  text-transform: capitalize;
}

.job_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.55rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.pill.complete { background: #dcfce7; color: #166534; }
.pill.active { background: var(--blue-soft); color: #1e40af; }
.pill.warning { background: #fef3c7; color: #92400e; }

.invoice_meta {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.invoice_status,
.invoice_total {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  min-height: 2.05rem;
  padding: 0.35rem 0.75rem;
}

.invoice_status {
  gap: 0.38rem;
}

.invoice_status svg {
  fill: none;
  flex: 0 0 auto;
  height: 0.95rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  width: 0.95rem;
}

.invoice_status.paid {
  background: #dcfce7;
  color: #166534;
}

.invoice_status.open {
  background: #fef3c7;
  color: #92400e;
}

.invoice_total {
  background: var(--blue-soft);
  color: var(--blue);
}

.job_actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: flex-end;
}

.small_btn {
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  gap: 0.38rem;
  justify-content: center;
  min-height: 38px;
  padding: 0 0.8rem;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
}

.small_btn svg {
  fill: none;
  flex: 0 0 auto;
  height: 1rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 1rem;
}

.small_btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.small_btn:active {
  transform: scale(0.98);
}

.small_btn.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.small_btn.danger {
  background: #fff;
  border-color: #fecaca;
  color: #b91c1c;
}

.small_btn.danger:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}

.small_btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.empty_state {
  padding: 1.5rem;
  color: var(--muted);
  text-align: center;
}

.issue_card {
  padding: 1rem;
}

.issue_card_head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}

.issue_card_badges {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.issue_card strong { color: var(--ink); }
.issue_card p { color: var(--muted); line-height: 1.55; font-size: 0.92rem; }

.issue_card_actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.9rem;
}

.issue_schedule_panel {
  margin: 0.9rem 0;
  padding: 0.9rem;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-left: 4px solid var(--blue);
}

.issue_schedule_panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

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

.issue_schedule_grid div {
  background: #fff;
  border: 1px solid #dbe4f0;
  min-width: 0;
  padding: 0.75rem;
}

.issue_schedule_grid span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.issue_schedule_grid strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
}

.issue_schedule_ref strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.issue_schedule_job_card {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  margin: 0.75rem 0 0;
  padding: 0.85rem;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.issue_schedule_job_card:hover,
.issue_schedule_job_card:focus-visible {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.issue_schedule_job_card__icon {
  align-items: center;
  background: var(--blue-soft);
  border-radius: var(--radius-sm);
  color: var(--blue);
  display: inline-flex;
  flex: 0 0 auto;
  height: 2.45rem;
  justify-content: center;
  width: 2.45rem;
}

.issue_schedule_job_card__icon svg {
  fill: none;
  height: 1.2rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
  width: 1.2rem;
}

.issue_schedule_job_card__body,
.issue_schedule_job_card__meta,
.issue_schedule_job_card strong,
.issue_schedule_job_card small {
  display: block;
  min-width: 0;
}

.issue_schedule_job_card__body {
  flex: 1 1 auto;
}

.issue_schedule_job_card__meta {
  align-items: flex-end;
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 0.32rem;
  text-align: right;
}

.issue_schedule_job_card strong {
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.issue_schedule_job_card small {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.issue_schedule_job_card .pill {
  flex: 0 0 auto;
  font-style: normal;
  margin: 0;
}

@media (max-width: 680px) {
  .issue_schedule_job_card {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .issue_schedule_job_card__meta {
    align-items: flex-start;
    flex: 1 1 100%;
    margin-left: calc(2.45rem + 0.8rem);
    text-align: left;
  }
}

.warranty_timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 0.85rem;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.warranty_timeline.large {
  margin-top: 0;
}

.warranty_timeline_step {
  position: relative;
  min-height: 76px;
  padding: 0.8rem 0.75rem 0.78rem 1.45rem;
  border-right: 1px solid var(--border);
}

.warranty_timeline_step:last-child {
  border-right: 0;
}

.warranty_timeline_step > span {
  position: absolute;
  top: 0.95rem;
  left: 0.65rem;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--subtle);
}

.warranty_timeline_step.done > span,
.warranty_timeline_step.active > span {
  background: var(--success);
}

.warranty_timeline_step.expired > span,
.warranty_timeline.expired .warranty_timeline_step.expired > span {
  background: var(--warning);
}

.warranty_timeline_step strong {
  display: block;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.25;
}

.warranty_timeline_step small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.3;
  margin-top: 0.25rem;
}

.warranty_timeline.expired {
  background: #fffbeb;
  border-color: #fde68a;
}

.warranty_timeline.expired .warranty_timeline_step {
  border-color: #fde68a;
}

.client_detail_block {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem;
  margin-bottom: 1rem;
}

.client_detail_block__head {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.client_detail_block__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.client_detail_block__head h3 {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.client_detail_block__head span {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

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

.client_photo_tile {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.client_photo_tile:hover,
.client_photo_tile:focus {
  border-color: var(--blue);
  box-shadow: 0 12px 28px rgba(37,99,235,0.12);
  outline: none;
  transform: translateY(-1px);
}

.client_photo_tile img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-3);
}

.client_photo_tile span,
.client_photo_tile small {
  display: block;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.client_photo_tile span {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  padding-top: 0.65rem;
}

.client_photo_tile small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  padding-bottom: 0.7rem;
  padding-top: 0.18rem;
}

.vehicle_warranty_actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.vehicle_warranty_actions .pill,
.vehicle_warranty_actions .small_btn {
  min-height: 38px;
}

.vehicle_warranty_actions .issue_flagged_pill {
  border-radius: var(--radius-sm);
}

.client_doc_list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.client_doc_list a {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--blue);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0.65rem 0.8rem;
  text-decoration: none;
}

.inline_photo_gallery {
  margin-top: 0.8rem;
}

.inline_photo_gallery > strong {
  color: var(--ink);
  display: block;
  font-size: 0.82rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.issue_timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 0.9rem;
}

.issue_timeline_step {
  color: var(--subtle);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.issue_timeline_step span {
  display: block;
  height: 4px;
  margin-bottom: 0.35rem;
  background: var(--border);
}

.issue_timeline_step.active span {
  background: var(--blue);
}

.issue_timeline_step.active {
  color: var(--ink);
}

.warranty_context {
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--muted);
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.warranty_context--expired {
  background: #fffbeb;
  border-color: #fde68a;
  border-left-color: var(--warning);
  color: #92400e;
}

.vehicle_picker_list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.vehicle_picker_item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  padding: 0.85rem;
}

.vehicle_picker_item strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
}

.vehicle_picker_item span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15,23,42,0.58);
  overscroll-behavior: contain;
  z-index: 40;
}

.modal.open { display: flex; }

.modal_panel {
  width: min(100%, 520px);
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.modal_panel.wide { width: min(100%, 800px); }
.modal_panel.service_quote_panel { width: min(100%, 780px); }
.modal_panel.new_action_panel { width: min(100%, 560px); }
.modal_panel.confirm_panel { width: min(100%, 520px); }

.modal_head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.modal_head h2 { font-size: 1.45rem; }

.modal_pill {
  align-items: center;
  background: var(--blue);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  line-height: 1;
  min-height: 1.45rem;
  padding: 0.34rem 0.66rem;
}

.modal_pill.danger {
  background: #dc2626;
}

.modal_intro {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin-top: 0.28rem;
}

.icon_btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
}

.modal_body {
  max-height: calc(100vh - 120px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1.35rem;
}

.confirm_actions {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}

.danger_btn {
  background: #dc2626;
  box-shadow: 0 10px 20px rgba(220,38,38,0.16);
}

.danger_btn:hover {
  background: #b91c1c;
}

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

.new_action_option {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 0.18rem 0.75rem;
  grid-template-columns: 52px minmax(0, 1fr);
  min-height: 104px;
  padding: 0.8rem;
  text-align: left;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.new_action_option:hover {
  border-color: rgba(37,99,235,0.36);
  box-shadow: 0 12px 28px rgba(15,23,42,0.1);
  transform: translateY(-1px);
}

.new_action_option.warranty_option:hover {
  border-color: rgba(234, 88, 12, 0.42);
}

.new_action_option:disabled {
  background: var(--surface-2);
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.new_action_option:disabled:hover {
  border-color: var(--border);
  box-shadow: none;
}

.new_action_option.is-loading,
.new_action_option.is-modal-click-loading {
  cursor: wait;
  transform: none;
}

.new_action_option.is-loading .new_action_icon,
.new_action_option.is-loading strong,
.new_action_option.is-loading small,
.new_action_option.is-modal-click-loading .new_action_icon,
.new_action_option.is-modal-click-loading strong,
.new_action_option.is-modal-click-loading small {
  opacity: 0.34;
}

.new_action_option.is-loading::after,
.new_action_option.is-modal-click-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid rgba(37,99,235,0.18);
  border-top-color: var(--blue);
  border-right-color: var(--blue);
  border-radius: 999px;
  animation: spin 0.68s linear infinite;
}

.new_action_icon {
  align-self: stretch;
  background: #eff6ff;
  border-radius: var(--radius);
  color: var(--blue);
  display: grid;
  grid-row: span 2;
  place-items: center;
}

.new_action_option.warranty_option .new_action_icon {
  background: #fff7ed;
  color: #ea580c;
}

.new_action_icon svg {
  height: 24px;
  width: 24px;
}

.new_action_option strong,
.new_action_option small {
  display: block;
}

.new_action_option strong {
  align-self: end;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.1;
}

.new_action_option small {
  align-self: start;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.34;
}

.service_quote_flow {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service_step {
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 98% 0%, rgba(37,99,235,0.08), transparent 42%),
    var(--surface);
  padding: 1.1rem;
}

.service_step_head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.service_step_head > strong {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.service_step_head h3 {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.service_step_head p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
  margin-top: 0.15rem;
}

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

.plan_grid {
  margin-top: 0.9rem;
}

.address_choice,
.plan_card,
.choice_btn {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink);
  text-align: left;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.address_choice,
.plan_card {
  min-height: 92px;
  padding: 0.95rem;
}

.address_choice span,
.plan_card span,
.service_quote_preview span {
  display: block;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.address_choice strong,
.plan_card strong {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.35;
  margin-top: 0.35rem;
}

.plan_card small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
  margin-top: 0.32rem;
}

.address_choice.active,
.plan_card.active,
.choice_btn.active {
  background: #eff6ff;
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.address_choice:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.choice_grid {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0;
}

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

.choice_btn {
  min-height: 46px;
  padding: 0.72rem;
  text-align: center;
  font-weight: 900;
}

.service_select_wrap,
.service_address_search {
  max-width: 100%;
  min-width: 0;
  position: relative;
}

.service_select_wrap select,
.service_address_search input {
  appearance: none;
  max-width: 100%;
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95));
  border: 1.5px solid #dbe5f0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
  color: var(--ink);
  font-weight: 800;
  min-height: 54px;
  padding: 0.88rem 2.75rem 0.88rem 0.95rem;
}

.service_select_wrap::after {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #64748b;
  content: '';
  pointer-events: none;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.service_select_wrap select:focus,
.service_address_search input:focus {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}

.service_address_dropdown {
  background: #fff;
  border: 1px solid #dbe5f0;
  box-shadow: 0 18px 44px rgba(15,23,42,0.14);
  display: none;
  left: 0;
  max-height: 260px;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 80;
}

.service_address_dropdown.open {
  display: block;
}

.service_address_option {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  display: block;
  padding: 0.82rem 0.95rem;
  text-align: left;
  width: 100%;
}

.service_address_option:hover,
.service_address_option:focus {
  background: #eff6ff;
  outline: none;
}

.service_address_option strong,
.service_address_option span {
  display: block;
}

.service_address_option strong {
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.service_address_option span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 0.18rem;
  text-transform: none;
  letter-spacing: 0;
}

.condition_checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  margin-top: 0.9rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.condition_checks label {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.service_quote_preview {
  margin-top: 0.95rem;
  padding: 1.1rem;
  color: #fff;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(96,165,250,0.28), transparent 48%),
    linear-gradient(135deg, #0f172a, #17233d 58%, #1d4ed8);
}

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

.service_quote_preview span {
  color: #93b4ff;
}

.service_quote_preview__right {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  text-align: right;
}

.service_vehicle_badge {
  border: 1px solid rgba(147,180,255,0.36);
  color: #dbeafe !important;
  display: inline-flex !important;
  padding: 0.34rem 0.58rem;
}

.service_quote_preview strong {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.service_quote_preview p {
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  line-height: 1.45;
  margin-top: 0.55rem;
}

.detail_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.detail_item {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.detail_item span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.history_list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.visit_history_item,
.vehicle_restoration_item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
}

.vehicle_restoration_item {
  margin-top: 0.75rem;
}

.visit_history_item h3,
.vehicle_restoration_item h3 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.visit_history_item p,
.vehicle_restoration_item p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.restoration_process {
  margin-top: 0.75rem;
  padding: 0.8rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.07), rgba(255, 255, 255, 0.92));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.restoration_process__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.restoration_process__head span {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.restoration_process__head strong {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.restoration_process__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.restoration_process__steps span {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.24rem 0.5rem;
  background: #fff;
  border: 1px solid rgba(191, 219, 254, 0.95);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.photo_links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.photo_links a {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
}

.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  display: none;
  width: min(420px, calc(100vw - 2rem));
  max-width: none;
  padding: 0.85rem 1rem;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
  z-index: 1000;
  font-size: 0.9rem;
  text-align: center;
}

.toast.show { display: block; }

@media (max-width: 820px) {
  body.client-nav-open {
    overflow: hidden;
  }

  .client_app {
    display: block;
    min-height: 100dvh;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(82vw, 300px);
    min-width: 0;
    height: 100dvh;
    min-height: 0;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    z-index: 70;
    box-shadow: none;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 22px 0 60px rgba(2,6,23,.34);
  }

  .sidebar_scrim {
    position: fixed;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(15,23,42,.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 60;
  }

  body.client-nav-open .sidebar_scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile_menu { display: inline-flex; }

  .content {
    padding: 1rem;
  }

  .topbar {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.8rem;
    min-height: 0;
    margin: -0.4rem -1rem 1rem;
    padding: 0.8rem 1rem 0.9rem;
  }

  .topbar h1 {
    grid-column: 1 / -1;
    font-size: clamp(1.7rem, 8vw, 2.35rem);
    line-height: 0.98;
  }

  .topbar_actions {
    grid-column: 1 / -1;
    display: flex;
    width: 100%;
    margin-left: 0;
  }

  .topbar_actions .secondary_btn,
  .topbar_actions .primary_btn {
    min-height: 44px;
    margin-left: 0;
    width: 100%;
  }

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

  .support_contact_grid {
    grid-template-columns: 1fr;
  }

  .support_ticket_layout {
    grid-template-columns: 1fr;
  }

  .job_card {
    grid-template-columns: 1fr;
  }

  .job_card_header {
    flex-direction: column;
  }

  .service_request_status,
  .service_request_actions {
    align-items: flex-start;
  }

  .service_request_status {
    width: 100%;
  }

  .service_request_card_header,
  .service_request_actions {
    flex-direction: column;
  }

  .service_request_actions > span {
    margin-right: 0;
  }

  .service_request_action_buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .service_request_actions .small_btn {
    width: 100%;
  }

  .job_actions {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    width: 100%;
  }

  .job_actions .small_btn {
    min-height: 44px;
  }

  .section_head { align-items: flex-start; flex-direction: column; }
  .job_search_input_wrap { grid-template-columns: 1fr; }
  .job_search_results {
    left: 0.6rem;
    right: 0.6rem;
  }
  .detail_grid { grid-template-columns: 1fr; }
  .address_choice_grid,
  .plan_grid { grid-template-columns: 1fr; }
  .vehicle_picker_item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

@media (max-width: 520px) {
  .secondary_btn,
  .primary_btn,
  .small_btn {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .new_action_grid {
    grid-template-columns: 1fr;
  }

  .confirm_actions {
    grid-template-columns: 1fr;
  }

  .jobs_section {
    padding: 0.85rem;
  }

  .support_hero,
  .support_form_card {
    padding: 0.9rem;
  }

  .support_contact_card {
    min-height: 88px;
  }

  .job_filter_button { width: 100%; }
  .job_filter_grid { grid-template-columns: 1fr; }
  .form_row { grid-template-columns: 1fr; }
  .warranty_timeline,
  .client_photo_grid,
  .client_photo_grid.compact {
    grid-template-columns: 1fr;
  }
  .warranty_timeline_step {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .warranty_timeline_step:last-child {
    border-bottom: 0;
  }
  .issue_card_head {
    flex-direction: column;
  }
  .issue_card_badges {
    justify-content: flex-start;
  }
  .issue_timeline {
    grid-template-columns: 1fr;
  }
  .issue_timeline_step {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 0.45rem;
  }
  .issue_timeline_step span {
    height: 4px;
    margin: 0;
  }
  .choice_grid.three { grid-template-columns: 1fr; }
  .service_quote_preview__top {
    align-items: flex-start;
    flex-direction: column;
  }
  .service_quote_preview__right {
    align-items: flex-start;
    text-align: left;
  }
}
