/* Nordenos Support Portal — Precision SaaS surfaces matching Nordenos Invoices */
@font-face {
  font-family: Barlow;
  src: url('../assets/fonts/Barlow-Regular.otf') format('opentype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url('../assets/fonts/Barlow-Medium.otf') format('opentype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url('../assets/fonts/Barlow-SemiBold.otf') format('opentype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('../assets/fonts/Inter-Variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --brand-primary: #1b44fe;
  --brand-secondary: #0a0b10;
  --accent: #1b44fe;
  --accent-strong: #0a0b10;
  --accent-soft: rgba(27, 68, 254, 0.08);

  --surface: #ffffff;
  --card: #ffffff;
  --soft: #f4f6fa;
  --text: #0a0b10;
  --muted: #6e7381;
  --line: #e8e8e9;
  --line-strong: #d6dae2;

  --success: #16a34a;
  --success-soft: #ecfdf5;
  --warning: #d97706;
  --warning-soft: #fffbeb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;

  --shell-inset: 14px;
  --shell-gap: 14px;
  --sidebar-width: 252px;
  --shell-bg: #f8f8fa;
  --shell-border: #e8e8e9;
  --shell-shadow: 0 12px 32px -18px rgba(15, 45, 95, 0.12), 0 1px 2px rgba(15, 28, 52, 0.04);
  --panel-border: #e8e8e9;
  --panel-shadow: 0 8px 24px -14px rgba(15, 28, 52, 0.09), 0 1px 2px rgba(15, 28, 52, 0.04);
}

body.dark {
  --surface: #111111;
  --card: #1e1e1e;
  --soft: #252525;
  --text: #f5f5f5;
  --muted: #929292;
  --line: #3a3a3a;
  --line-strong: #4e4e4e;
  --shell-bg: #111111;
  --shell-border: #3a3a3a;
  --shell-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  --panel-border: #3a3a3a;
  --panel-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 4px 16px rgba(0, 0, 0, 0.5);
  --accent-soft: rgba(52, 139, 249, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body.auth-locked aside.sidebar,
body.auth-locked #topbarSla,
body.auth-locked #emergencyPhoneLink,
body.auth-locked #clientNavActions,
body.auth-locked #topbarClientChip {
  display: none !important;
}

body.client-portal main.main {
  margin: 0;
  padding: 92px 20px 44px;
}

body.client-portal:not(.auth-locked) #viewContainer {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

body.client-portal header.topbar {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1120px;
  margin: 0;
  height: 60px;
  padding: 0 14px 0 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(208, 221, 241, 0.95);
  box-shadow:
    0 18px 40px -18px rgba(15, 28, 52, 0.14),
    0 2px 8px rgba(15, 28, 52, 0.04),
    0 0 0 3px rgba(255, 255, 255, 0.55);
}

body.client-portal header.topbar .topbar-brand {
  justify-self: start;
}

body.client-portal header.topbar .topbar-nav-group {
  justify-self: center;
}

body.client-portal header.topbar .topbar-actions {
  justify-self: end;
}

body.dark.client-portal header.topbar {
  background: rgba(24, 26, 32, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55);
}

.topbar-nav-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 11px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.topbar-nav-link {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.14s, color 0.14s, box-shadow 0.14s;
}

.topbar-nav-link:hover {
  color: var(--text);
}

.topbar-nav-link.active {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(15, 28, 52, 0.08);
}

.topbar-user-menu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 12px;
}

.topbar-user-name {
  font-weight: 600;
  color: var(--text);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-signout-btn {
  border: 0;
  background: none;
  padding: 0 0 0 8px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

.topbar-signout-btn:hover {
  color: var(--danger);
}

body.client-portal .icon-btn {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: none;
}

body.client-portal .topbar-product-tag {
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
}

body.auth-locked.client-portal header.topbar {
  max-width: 460px;
  width: calc(100% - 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 16px;
}

body.auth-locked main.main {
  margin: 0;
  align-items: center;
  justify-content: center;
  padding: 88px 16px 36px;
}

body.auth-locked #viewContainer {
  flex: 0 0 auto;
  width: 100%;
  max-width: 460px;
  margin: auto;
  padding: 28px 28px 30px;
}

body.auth-locked .page-heading {
  text-align: center;
  justify-content: center;
  margin-bottom: 18px;
}

body.auth-locked .page-heading h1 {
  font-size: 25px;
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 14px;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.remember-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  min-height: 0;
  padding: 0;
  margin: 0;
  accent-color: var(--brand-primary);
}

html, body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--shell-bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

:focus-visible {
  outline: 3px solid var(--brand-primary);
  outline-offset: 2px;
}

/* Topbar (Invoices floating frame header) */
header.topbar {
  position: fixed;
  left: var(--shell-inset);
  right: var(--shell-inset);
  top: var(--shell-inset);
  z-index: 600;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.topbar-brand img {
  display: block;
  width: auto;
  height: 32px;
}

body.client-portal .topbar-brand img {
  width: auto;
  height: 34px;
}

body.dark .topbar-brand img {
  filter: none;
}

body.client-portal.dark .topbar-brand img {
  filter: none;
}

.topbar-product-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 7px;
  background: #ffffffb8;
  border: 1px solid #d5dce0;
  color: #1e293b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

body.dark .topbar-product-tag {
  background: #1e1e1e;
  border-color: #3a3a3a;
  color: #e2e8f0;
}

.topbar-sla {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
}

.topbar-sla[data-level="maintenance"] {
  border-color: #e3c98d;
  background: #fff4d9;
  color: #785312;
}

.topbar-sla[data-level="outage"] {
  border-color: #eeb4b4;
  background: #fff0f0;
  color: #9e2222;
}

body.dark .topbar-sla {
  background: #182b22;
  border-color: #264d3b;
  color: #8ce0b5;
}

body.dark .topbar-sla[data-level="maintenance"] {
  background: #322a18;
  border-color: #66542c;
  color: #f0d28d;
}

body.dark .topbar-sla[data-level="outage"] {
  background: #331a1a;
  border-color: #6b2c2c;
  color: #f59e9e;
}

.sla-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

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

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #ffffff99;
  background: #f6f7f7;
  color: #53616a;
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 #fff, 0 1px 3px #343b3f12;
}

body.dark .icon-btn {
  background: #1e1e1e;
  border-color: #3a3a3a;
  color: #d4d4d4;
  box-shadow: none;
}

.emergency-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 8px;
  background: #ffffffb8;
  border: 1px solid #d5dce0;
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
}

body.dark .emergency-chip {
  background: #1e1e1e;
  border-color: #3a3a3a;
}

/* Invoices-style Profile Chip in Topbar */
.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
}

.profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--brand-primary);
  border: 1px solid var(--line-strong);
  font-weight: 700;
  font-size: 12px;
}

.profile-chip-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  max-width: 165px;
}

.profile-chip-copy span {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-chip-copy small {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-signout {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

.profile-signout:hover {
  color: var(--text);
  background: var(--soft);
}

/* Category Flow & Quick Issue Chips */
.category-flow-card {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #d9e6f6;
  background: #f5f9ff;
}

body.dark .category-flow-card {
  background: #18202c;
  border-color: #29384d;
}

.category-flow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.category-flow-head strong {
  font-size: 13px;
  color: var(--text);
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.nav-item.active {
  background: var(--card);
  border-color: var(--line);
  color: var(--brand-primary);
  font-weight: 600;
}

/* Guided 4-step Report Issue UX */
.report-shell {
  max-width: 1120px;
  margin: 0 auto;
}

.wizard-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 18px;
  align-items: stretch;
}

.wizard-preview-pane {
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--panel-shadow);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.wizard-preview-default {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 14px;
  border-radius: 12px;
  background: var(--soft);
  border: 1px dashed var(--line-strong);
  height: 100%;
}

.wizard-preview-default img {
  width: 156px;
  height: auto;
  opacity: 0.9;
}

.wizard-preview-default p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 240px;
}

.wizard-preview-active {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 12px;
  height: 100%;
  animation: previewFade 0.16s ease-out;
}

@keyframes previewFade {
  from { opacity: 0.45; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.wizard-preview-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.wizard-preview-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft);
}

.wizard-preview-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wizard-preview-active strong {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.wizard-preview-active p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.wizard-preview-hint {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand-primary);
}

.wizard-card {
  padding: 28px 30px;
}

.wizard-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  text-align: center;
}

.wizard-progress {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.wizard-dots {
  display: inline-flex;
  gap: 5px;
}

.wizard-dot {
  width: 22px;
  height: 5px;
  border-radius: 999px;
  background: var(--line-strong);
}

.wizard-dot.done {
  background: var(--brand-primary);
}

.wizard-topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 600;
}

.wizard-topic-pill button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 0;
  text-decoration: underline;
}

.wizard-question {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--text);
  text-align: center;
}

.wizard-sub {
  margin: 0 auto 24px;
  max-width: 560px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
}

.wizard-group {
  margin-bottom: 20px;
}

.wizard-group:last-child {
  margin-bottom: 0;
}

.wizard-group-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 11px;
  text-align: center;
}

.wizard-choice-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
}

.wizard-choice {
  flex: 0 1 224px;
  width: 224px;
  min-height: 68px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  text-align: left;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  transition: border-color 0.14s, background 0.14s, transform 0.12s, box-shadow 0.14s;
}

.wizard-choice:hover,
.wizard-choice:focus-visible {
  border-color: var(--brand-primary);
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: var(--panel-shadow);
}

.wizard-form-inner {
  max-width: 940px;
  margin: 0 auto;
}

.wizard-card .wizard-question {
  font-weight: 600;
}

.wizard-card label,
.wizard-card .priority-option strong,
.wizard-card .wizard-choice strong,
.wizard-card .btn {
  font-weight: 500;
}

.wizard-step3-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.wizard-step3-grid .priority-selector {
  grid-template-columns: 1fr;
  gap: 10px;
}

.wizard-step4-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.wizard-step4-col {
  display: flex;
  flex-direction: column;
}

.wizard-step4-col .optional-details-box {
  margin: 0;
  height: 100%;
}

.wizard-card .optional-details-title {
  font-weight: 500;
}

.dropzone--visual {
  flex: 1;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 26px 20px;
  border-radius: 14px;
}

.dropzone-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--brand-primary);
  display: grid;
  place-items: center;
}

.dropzone-icon-wrap svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dropzone-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.dropzone-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  max-width: 280px;
}

.dropzone-formats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
}

.dropzone-formats span {
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
}

@media (max-width: 820px) {
  .wizard-step3-grid,
  .wizard-step4-grid {
    grid-template-columns: 1fr;
  }
}

.wizard-context-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.wizard-context-banner strong {
  color: var(--text);
}

.wizard-field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.wizard-field-label-row label {
  margin: 0;
}

.wizard-field-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.prompt-chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}

.prompt-chip:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--accent-soft);
}

.priority-head {
  display: flex;
  align-items: center;
  gap: 7px;
}

.priority-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.priority-dot.normal { background: #16a34a; }
.priority-dot.high { background: #d97706; }
.priority-dot.urgent { background: #dc2626; }

.priority-sla {
  margin-top: 4px;
  font-size: 11px !important;
  font-weight: 600;
  color: var(--brand-primary) !important;
}

.btn-direct-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-whatsapp {
  border-color: rgba(22, 163, 74, 0.35);
  color: #15803d;
}

body.dark .btn-whatsapp {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.35);
}

.wizard-choice-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.wizard-choice-icon,
.wizard-symptom-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.wizard-choice-icon svg,
.wizard-symptom-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tone-blue { background: rgba(52, 139, 249, 0.14); color: #2563eb; }
.tone-cyan { background: rgba(6, 182, 212, 0.14); color: #0891b2; }
.tone-violet { background: rgba(139, 92, 246, 0.14); color: #7c3aed; }
.tone-indigo { background: rgba(99, 102, 241, 0.14); color: #4f46e5; }
.tone-rose { background: rgba(244, 63, 94, 0.14); color: #e11d48; }
.tone-emerald { background: rgba(16, 185, 129, 0.14); color: #059669; }
.tone-amber { background: rgba(245, 158, 11, 0.16); color: #d97706; }
.tone-slate { background: rgba(100, 116, 139, 0.15); color: #475569; }
.tone-teal { background: rgba(20, 184, 166, 0.15); color: #0d9488; }

body.dark .tone-blue { color: #60a5fa; }
body.dark .tone-cyan { color: #22d3ee; }
body.dark .tone-violet { color: #a78bfa; }
body.dark .tone-indigo { color: #818cf8; }
body.dark .tone-rose { color: #fb7185; }
body.dark .tone-emerald { color: #34d399; }
body.dark .tone-amber { color: #fbbf24; }
body.dark .tone-slate { color: #94a3b8; }
body.dark .tone-teal { color: #2dd4bf; }

.wizard-choice strong {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.wizard-choice span {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

.wizard-direct-help {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.wizard-direct-help p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

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

.wizard-symptom-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 11px;
}

.wizard-symptom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  padding: 14px 15px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  transition: border-color 0.14s, background 0.14s, transform 0.12s;
}

.wizard-symptom-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wizard-symptom:hover {
  border-color: var(--brand-primary);
  background: var(--accent-soft);
  color: var(--brand-primary);
  transform: translateY(-1px);
}

.wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.report-step {
  padding: 20px 22px;
  margin-bottom: 16px;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step-header h2 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
}

.category-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.category-pill {
  text-align: left;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
}

.category-pill:hover {
  border-color: var(--brand-primary);
  background: var(--accent-soft);
}

.category-pill.active {
  border-color: var(--brand-primary);
  background: var(--accent-soft);
  color: var(--brand-primary);
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--brand-primary);
}

.optional-details-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px dashed var(--line-strong);
  background: var(--soft);
}

.optional-details-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}

.quick-chip {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #cbd9eb;
  background: var(--card);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 500;
  transition: border-color 0.12s, background 0.12s;
}

.quick-chip:hover, .quick-chip.active {
  border-color: var(--brand-primary);
  background: var(--accent-soft);
  color: var(--brand-primary);
}

.detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.detail-pill {
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--soft);
  font-size: 11.5px;
  color: var(--text);
}

/* Sidebar navigation (Invoices floating left rail) */
aside.sidebar {
  position: fixed;
  inset: calc(var(--shell-inset) + 60px) auto var(--shell-inset) var(--shell-inset);
  z-index: 500;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
  background: linear-gradient(160deg, #edf0f1, #e5e9eb);
  border: 1px solid var(--shell-border);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 #fff, 0 2px 3px #25374705, 0 8px 24px -12px #25374726;
}

body.dark aside.sidebar {
  background: linear-gradient(160deg, #1a1a1a, #151515);
  border-color: #3a3a3a;
  box-shadow: var(--shell-shadow);
}

.sidebar-lookup {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px;
  margin-bottom: 10px;
  background: #ffffff;
  border: 1px solid #d7dfe4;
  border-radius: 8px;
  box-shadow: inset 0 1px 2px #25374706;
  color: var(--muted);
}

.sidebar-lookup:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(52, 139, 249, 0.14);
}

body.dark .sidebar-lookup {
  background: #202020;
  border-color: #3a3a3a;
}

.sidebar-lookup input {
  width: 100%;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text);
  font-size: 12px;
  outline: none;
}

.sidebar-profile-card {
  margin-top: auto;
  padding: 12px;
  border-radius: 12px;
  background: #ffffffcc;
  border: 1px solid #ffffff;
  box-shadow: 0 2px 6px rgba(17, 37, 52, 0.05);
}

body.dark .sidebar-profile-card {
  background: #222222;
  border-color: #333333;
}

.sidebar-profile-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  overflow-y: auto;
}

.nav-group {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-group-title {
  padding: 6px 10px 4px;
  color: #647481;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

body.dark .nav-item {
  color: #b8c2cc;
}

.nav-item svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item:not(.nav-primary):not(.active):hover {
  background: #e2e8ee;
  color: #0f172a;
}

body.dark .nav-item:not(.nav-primary):not(.active):hover {
  background: #262626;
  color: #ffffff;
}

.nav-item.active:not(.nav-primary) {
  color: #0f172a;
  background: #dce2e5;
  border-color: #d5dce0;
  font-weight: 600;
  box-shadow: inset 0 1px 2px #25374708, 0 1px 0 #ffffff80;
}

body.dark .nav-item.active:not(.nav-primary) {
  color: #ffffff;
  background: #2a2a2a;
  border-color: #3e3e3e;
  box-shadow: none;
}

.nav-item.active:not(.nav-primary) svg {
  color: #0077ed;
}

.nav-item.nav-primary {
  margin: 2px 0 6px;
  background: linear-gradient(180deg, #0084ff 0%, #0072e5 100%);
  color: #ffffff;
  border: 1px solid rgba(0, 114, 229, 0.5);
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 3px 8px rgba(0, 119, 237, 0.22);
}

.nav-item.nav-primary:hover {
  background: linear-gradient(180deg, #1a8eff 0%, #0079ed 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 6px 14px rgba(0, 119, 237, 0.32);
}

.sidebar-sla-card {
  margin-top: auto;
  padding: 12px;
  border-radius: 12px;
  background: #ffffffb8;
  border: 1px solid #ffffff;
  box-shadow: 0 2px 6px rgba(17, 37, 52, 0.04);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}

body.dark .sidebar-sla-card {
  background: #222222;
  border-color: #333333;
}

.sidebar-sla-card strong {
  display: block;
  color: var(--text);
  font-size: 12px;
  margin-bottom: 3px;
}

.sidebar-credit {
  padding: 10px 6px 2px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Main Workspace Container (Invoices raised panel) */
main.main {
  margin-left: calc(var(--sidebar-width) + var(--shell-inset) + var(--shell-gap));
  margin-right: var(--shell-inset);
  padding-top: calc(var(--shell-inset) + 60px);
  padding-bottom: var(--shell-inset);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#viewContainer {
  flex: 1;
  padding: 30px 32px 44px;
  border: 1px solid var(--shell-border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shell-shadow);
}

.page {
  max-width: 1180px;
  margin: 0 auto;
}

body.client-portal .page {
  max-width: 1120px;
}

.ticket-hero-card {
  margin-bottom: 18px;
}

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

.ticket-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--soft);
  font-size: 12.5px;
}

.ticket-meta-item strong {
  font-weight: 500;
  color: var(--text);
  word-break: break-word;
}

body.client-portal .page-heading h1 {
  font-weight: 600;
}

body.client-portal .card h2,
body.client-portal .detail-pill strong,
body.client-portal .message-meta strong,
body.client-portal .btn,
body.client-portal label {
  font-weight: 500;
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.page-heading h1 {
  font-family: var(--font-heading);
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin: 0 0 6px;
  color: var(--text);
}

.page-subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 680px;
}

/* Offline alert bar */
.offline-banner {
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #e7b8b8;
  background: var(--danger-soft);
  color: #9e2222;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 500;
}

/* Tactile White Cards */
.card {
  background: var(--card);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  box-shadow: var(--panel-shadow);
  padding: 24px;
}

.grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  gap: 20px;
  align-items: start;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
}

.field-hint {
  font-size: 11px;
  color: var(--muted);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
select,
textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: 13px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 0.15s, box-shadow 0.15s;
}

body.dark input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body.dark select,
body.dark textarea {
  border-color: #3a3a3a;
  background: #161616;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(52, 139, 249, 0.16);
}

textarea {
  min-height: 116px;
  resize: vertical;
  line-height: 1.55;
}

/* Priority selector pills */
.priority-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.priority-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.priority-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.priority-option strong {
  font-size: 12.5px;
  color: var(--text);
}

.priority-option span {
  font-size: 11px;
  color: var(--muted);
}

.priority-option:has(input:checked) {
  border-color: var(--brand-primary);
  background: var(--accent-soft);
  box-shadow: 0 0 0 2px rgba(52, 139, 249, 0.14);
}

.priority-option[data-prio="urgent"]:has(input:checked) {
  border-color: var(--danger);
  background: var(--danger-soft);
}

body.dark .priority-option[data-prio="urgent"]:has(input:checked) {
  background: rgba(217, 87, 87, 0.15);
}

/* Dropzone for screenshots */
.dropzone {
  border: 1.5px dashed var(--line-strong);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--brand-primary);
  background: var(--accent-soft);
}

.attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 11.5px;
  color: var(--text);
}

.attachment-chip button {
  border: 0;
  background: transparent;
  color: var(--danger);
  font-weight: 700;
  padding: 0 2px;
}

/* Buttons (Invoices electric blue CTA + light secondary) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--text);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn.accent {
  background: linear-gradient(180deg, #0084ff 0%, #0072e5 100%);
  color: #ffffff;
  border-color: rgba(0, 112, 224, 0.5);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 3px 8px rgba(0, 119, 237, 0.22);
}

.btn.accent:hover:not(:disabled) {
  background: linear-gradient(180deg, #1a8eff 0%, #0079ed 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 6px 14px rgba(0, 119, 237, 0.32);
}

/* Badges & Statuses */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.badge.status-open { background: #eaf1ff; color: #1d4ed8; }
.badge.status-in_progress { background: #fff4df; color: #b4690e; }
.badge.status-waiting_client { background: #f3e8ff; color: #6d28d9; }
.badge.status-resolved { background: #e8f8f0; color: #157347; }

.badge.prio-urgent { background: #fff0f0; color: #c92a2a; border: 1px solid #ffc9c9; }
.badge.prio-high { background: #fff4df; color: #b4690e; }
.badge.prio-normal { background: var(--soft); color: var(--muted); }

/* Metric Cards (Admin Dashboard) */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.metric-card {
  padding: 18px 20px;
}

.metric-label {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

/* Timeline & Chat Messages */
.message-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0;
}

.message-item {
  max-width: 88%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 1px 3px rgba(17, 37, 52, 0.04);
}

.message-item.is-client {
  align-self: flex-start;
  border-top-left-radius: 4px;
  background: #ffffff;
}

body.dark .message-item.is-client {
  background: #1d1d1d;
}

.message-item.is-admin {
  align-self: flex-end;
  border-top-right-radius: 4px;
  border-color: #c2dcff;
  background: #eff6ff;
}

body.dark .message-item.is-admin {
  background: #172334;
  border-color: #294568;
}

.message-item.is-internal {
  align-self: stretch;
  max-width: 100%;
  background: #fffbeb;
  border-color: #fde68a;
  border-left: 3px solid #d97706;
}

body.dark .message-item.is-internal {
  background: #2b2412;
  border-color: #66521e;
}

.msg-role-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.msg-role-pill.client {
  background: var(--soft);
  color: var(--muted);
}

.msg-role-pill.admin {
  background: #dbeafe;
  color: #1d4ed8;
}

body.dark .msg-role-pill.admin {
  background: #1e3a5f;
  color: #93c5fd;
}

.handoff-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.message-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.message-meta strong {
  color: var(--text);
}

.message-body {
  white-space: pre-wrap;
  line-height: 1.55;
  font-size: 13px;
}

/* Ticket table */
.ticket-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ticket-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.ticket-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.ticket-table tr:hover td {
  background: var(--soft);
  cursor: pointer;
}

@media (max-width: 960px) {
  .wizard-stage {
    grid-template-columns: 1fr;
  }
  .wizard-preview-pane {
    display: none;
  }
  aside.sidebar {
    position: static;
    width: auto;
    margin: calc(var(--shell-inset) + 56px) var(--shell-inset) 0;
  }
  main.main {
    margin-left: var(--shell-inset);
    padding-top: 12px;
  }
  body.client-portal main.main {
    margin: 0;
    padding: 88px 16px 36px;
  }
  .grid-layout, .form-grid-2, .metric-grid, .priority-selector {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  header.topbar {
    padding: 0 12px;
    gap: 8px;
  }
  body.client-portal header.topbar {
    width: calc(100% - 24px);
    top: 10px;
    height: auto;
    padding: 10px 12px;
    border-radius: 16px;
    grid-template-columns: 1fr auto;
    row-gap: 8px;
  }
  body.client-portal header.topbar .topbar-nav-group {
    grid-column: 1 / -1;
    width: 100%;
    order: 3;
  }
  body.client-portal header.topbar .topbar-nav-link {
    flex: 1;
    text-align: center;
    height: 34px;
    padding: 0 10px;
  }
  body.client-portal main.main {
    padding: 124px 12px 32px;
  }
  .topbar-sla, .topbar-product-tag, .emergency-chip span, .topbar-user-name {
    display: none;
  }
  .topbar-signout-btn {
    border-left: 0;
    padding-left: 0;
  }
  .topbar-brand img {
    width: 124px;
  }
  #viewContainer {
    padding: 20px 16px 32px;
  }
  body.client-portal .wizard-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 4px 0 12px;
  }
  body.client-portal .wizard-question {
    font-size: 24px;
  }
  body.client-portal .wizard-sub {
    font-size: 13.5px;
    margin-bottom: 18px;
  }
  .wizard-choice {
    flex: 1 1 100%;
    width: 100%;
    min-height: 58px;
    padding: 14px 16px;
  }
  .wizard-symptom-list {
    grid-template-columns: 1fr;
  }
  .wizard-symptom {
    width: 100%;
    min-height: 56px;
    padding: 14px 16px;
  }
  .priority-option {
    padding: 13px 14px;
  }
  .prompt-chip {
    padding: 7px 12px;
    font-size: 12px;
  }
  .wizard-footer {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }
  .wizard-footer .btn {
    width: 100%;
    min-height: 46px;
    justify-content: center;
  }
  .wizard-direct-help {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 14px;
  }
  .wizard-direct-actions {
    width: 100%;
  }
  .wizard-direct-actions .btn {
    flex: 1;
    min-height: 44px;
    justify-content: center;
  }
  .page-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
  }
  .page-heading h1 {
    font-size: 21px;
    line-height: 1.25;
  }
  .page-heading > .btn,
  .page-heading > div:last-child {
    width: 100%;
    display: flex;
    gap: 8px;
  }
  .page-heading > .btn,
  .page-heading > div:last-child .btn {
    flex: 1;
    min-height: 42px;
    justify-content: center;
  }
  body.client-portal .card {
    padding: 16px 14px;
    border-radius: 14px;
  }
  body.client-portal .tickets-list-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .ticket-table,
  .ticket-table tbody {
    display: block;
    width: 100%;
    overflow: visible;
  }
  .ticket-table thead {
    display: none;
  }
  .ticket-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    box-shadow: var(--panel-shadow);
  }
  .ticket-table tbody tr td {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
  }
  .ticket-table tbody tr td.col-subject {
    flex: 1 0 100%;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text);
    margin: 2px 0;
  }
  .ticket-table tbody tr td.col-cat {
    font-size: 12px;
    color: var(--muted);
    text-transform: capitalize;
  }
  .ticket-table tbody tr td.col-updated {
    margin-left: auto;
  }
  .ticket-table tbody tr.ticket-empty-row {
    justify-content: center;
  }
  .message-item {
    padding: 12px 13px;
  }
  #replyForm .btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }
}
