/* ──────────────────────────────────────────────
   RYCO AI Support Agent Demo — Stylesheet
   ────────────────────────────────────────────── */

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

:root {
  --bg:        #0f172a;
  --bg2:       #1e293b;
  --bg3:       #0f1f35;
  --border:    #1e3a5f;
  --text:      #e2e8f0;
  --muted:     #94a3b8;
  --accent:    #3b82f6;
  --accent2:   #22c55e;
  --accent3:   #818cf8;
  --danger:    #ef4444;
  --warn:      #f59e0b;
  --radius:    10px;
  --shadow:    0 4px 24px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.mono { font-family: 'Cascadia Code', 'Consolas', 'SF Mono', monospace; }

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,23,42,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 4px;
}
.nav-links a {
  padding: 6px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--bg2);
  color: var(--text);
  text-decoration: none;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #2563eb; color: #fff; text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--bg2); text-decoration: none; }

/* ── HERO ── */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; } }

.hero-inner { display: flex; flex-direction: column; gap: 22px; }

.badge-row { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.badge-blue  { background: #1e3a8a; color: #93c5fd; border: 1px solid #1d4ed8; }
.badge-purple{ background: #2e1065; color: #c4b5fd; border: 1px solid #7c3aed; }
.badge-green { background: #14532d; color: #86efac; border: 1px solid #16a34a; }

h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(135deg, #e2e8f0, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub { font-size: 1.05rem; color: var(--muted); max-width: 460px; }
.hero-actions { display: flex; gap: 12px; }

/* ── HERO CHAT MOCKUP ── */
.chat-preview {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.chat-preview-header {
  background: #1a2744;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot.red    { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green  { background: #22c55e; }
.chat-title { margin-left: 8px; font-size: 12px; color: var(--muted); font-weight: 500; }

.chat-preview-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }

.msg { display: flex; align-items: flex-end; gap: 8px; }
.msg.user { flex-direction: row-reverse; }
.msg.user .bubble { background: var(--accent); color: #fff; }

.bubble {
  background: #1a2744;
  color: var(--text);
  padding: 9px 14px;
  border-radius: 14px;
  font-size: 13px;
  max-width: 260px;
  line-height: 1.45;
}
.bubble.success {
  background: #14532d;
  border: 1px solid #22c55e;
  color: #86efac;
}

.avatar { font-size: 20px; flex-shrink: 0; }

/* ── SECTIONS ── */
.section { padding: 70px 0; }
.section-dark { background: #080f1e; }
.section-alt  { background: #0b1629; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}
.section-sub {
  color: var(--muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 44px;
}

/* ── CARDS ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }

.card {
  background: var(--bg2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px 30px;
}
.card h2 { font-size: 1.2rem; margin-bottom: 16px; }
.card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.card ul li { padding-left: 20px; position: relative; color: var(--muted); font-size: 14px; }
.card ul li::before { content: "›"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.card-icon { margin-bottom: 16px; }
.red-icon   svg { color: var(--danger); }
.green-icon svg { color: var(--accent2); }

.problem-card  { border-color: #3b1c1c; }
.solution-card { border-color: #1a3b1a; }

/* ── METRICS ── */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}
@media (max-width: 700px) { .metrics-row { grid-template-columns: 1fr 1fr; } }

.metric {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}
.metric-value {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}
.metric-label { font-size: 13px; color: var(--muted); }

/* ── STEPS ── */
.steps {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.step {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  width: 160px;
  text-align: center;
}
.step-num { font-size: 0.75rem; color: var(--accent); font-weight: 700; letter-spacing: 1px; margin-bottom: 8px; }
.step h3  { font-size: 0.95rem; margin-bottom: 6px; }
.step p   { font-size: 12px; color: var(--muted); line-height: 1.5; }
.step-arrow { font-size: 1.5rem; color: var(--border); }

.cta-center { text-align: center; }

/* ── TECH GRID ── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
@media (max-width: 700px) { .tech-grid { grid-template-columns: 1fr 1fr; } }

.tech-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.tech-logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: #fff;
  margin-bottom: 14px;
}
.ms-logo    { background: #2563eb; }
.pa-logo    { background: #0ea5e9; }
.teams-logo { background: #4f46e5; }
.sp-logo    { background: #0f766e; }
.itsm-logo  { background: #7c3aed; }
.email-logo { background: #0369a1; }

.tech-card h4 { font-size: 0.95rem; margin-bottom: 8px; }
.tech-card p  { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 30px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.footer-links { margin-top: 8px; }
.footer-links a { color: var(--muted); margin: 0 4px; }

/* ═══════════════════════════════════════════
   DEMO PAGE
   ═══════════════════════════════════════════ */

.demo-page { max-width: 1200px; margin: 0 auto; padding: 40px 24px; }

.demo-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 60px;
}
@media (max-width: 800px) { .demo-layout { grid-template-columns: 1fr; } }

/* ── SIDEBAR ── */
.demo-sidebar {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 74px;
}
.demo-sidebar h2 { font-size: 1.1rem; }
.demo-sidebar p  { font-size: 13px; color: var(--muted); line-height: 1.5; }

.scenario-box {
  background: #0b1629;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}
.scenario-box h4 { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.scenario-box p  { font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.scenario-box p strong { color: var(--text); }

.step-tracker h4 { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.step-tracker ol { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.step-item {
  font-size: 13px;
  padding: 6px 10px 6px 28px;
  border-radius: 6px;
  position: relative;
  color: var(--muted);
  transition: all 0.3s;
}
.step-item::before {
  content: "○";
  position: absolute;
  left: 8px;
  color: #334155;
}
.step-item.active   { background: #1a2744; color: var(--text); }
.step-item.active::before { content: "●"; color: var(--accent); }
.step-item.done     { color: #22c55e; }
.step-item.done::before   { content: "✓"; color: #22c55e; }

.sidebar-controls { display: flex; gap: 10px; }

/* ── FLOW BADGE ── */
.flow-badge {
  background: #0c1f0c;
  border: 1px solid #166534;
  border-radius: 8px;
  padding: 14px;
  font-size: 13px;
  transition: all 0.3s;
}
.flow-badge.hidden { display: none; }
.flow-badge-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #22c55e;
  font-weight: 600;
  margin-bottom: 10px;
}
.flow-steps { display: flex; flex-direction: column; gap: 4px; }
.fstep { font-size: 12px; color: var(--muted); padding: 2px 0; }
.fstep.hidden { display: none; }
.success-fstep { color: #22c55e !important; font-weight: 600; }

/* ── CHAT WINDOW ── */
.chat-window {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 520px;
}

.chat-header {
  background: #1a2744;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.chat-header-left { display: flex; align-items: center; gap: 12px; }
.bot-avatar-big   { font-size: 28px; }
.chat-agent-name  { font-weight: 600; font-size: 15px; }
.chat-status      { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.status-dot       { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.status-dot.online{ background: var(--accent2); }
.status-dot.typing{ background: var(--warn); animation: pulse 0.8s infinite; }
.teams-badge {
  background: #312e81;
  color: #a5b4fc;
  border: 1px solid #4338ca;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 380px;
}

.chat-date-divider {
  text-align: center;
  font-size: 11px;
  color: #334155;
  padding: 8px 0;
  position: relative;
}
.chat-date-divider::before, .chat-date-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: #1e3a5f;
}
.chat-date-divider::before { left: 0; }
.chat-date-divider::after  { right: 0; }

/* Chat messages */
.chat-msg { display: flex; align-items: flex-end; gap: 8px; animation: fadeIn 0.3s ease; }
.chat-msg.from-user { flex-direction: row-reverse; }
.chat-msg.from-user .chat-bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.chat-bubble {
  background: #1a2744;
  color: var(--text);
  padding: 10px 15px;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  font-size: 14px;
  max-width: 380px;
  line-height: 1.5;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.chat-bubble.success-bubble {
  background: #14532d;
  border: 1px solid #22c55e;
  color: #86efac;
}
.chat-avatar { font-size: 22px; flex-shrink: 0; }
.chat-time { font-size: 10px; color: #334155; margin-top: 2px; text-align: right; }

/* Quick reply buttons */
.quick-replies { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.qr-btn {
  background: #1a2744;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}
.qr-btn:hover:not(:disabled) {
  background: var(--accent);
  color: #fff;
}
.qr-btn:disabled {
  cursor: default;
  border-color: var(--border);
  color: #475569;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeIn 0.3s ease;
}
.typing-dots {
  background: #1a2744;
  padding: 10px 16px;
  border-radius: 16px;
  display: flex;
  gap: 4px;
  align-items: center;
}
.typing-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #475569;
  animation: bounce 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

.chat-input-bar {
  border-top: 1px solid var(--border);
  padding: 14px 16px;
  background: #0d1b2e;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Wrap input + button together so they share one border */
.input-pill {
  display: flex;
  align-items: center;
  flex: 1;
  background: #111f35;
  border: 1.5px solid #1e3a5f;
  border-radius: 26px;
  padding: 4px 4px 4px 18px;
  gap: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-pill:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

#chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  padding: 7px 0;
  min-width: 0;
}
#chat-input::placeholder { color: #475569; }
#chat-input:disabled { opacity: 0.5; }

.send-btn {
  flex-shrink: 0;
  background: var(--accent);
  border: none;
  border-radius: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.send-btn:hover:not(:disabled) {
  background: #2563eb;
  transform: scale(1.07);
}
.send-btn:active:not(:disabled) { transform: scale(0.95); }
.send-btn:disabled { opacity: 0.35; cursor: default; }

/* ── TICKET CARD ── */
.ticket-card {
  margin: 0 0 60px;
  animation: fadeIn 0.5s ease;
}
.ticket-card.hidden { display: none; }
.ticket-card-inner {
  background: var(--bg2);
  border: 1px solid #166534;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 0 30px rgba(34,197,94,0.08);
}
.ticket-header { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.ticket-icon   { font-size: 32px; }
.ticket-header h3 { font-size: 1.1rem; margin-bottom: 4px; }
.ticket-header p  { font-size: 13px; color: var(--muted); }

.ticket-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 700px) { .ticket-fields { grid-template-columns: 1fr 1fr; } }

.tf { display: flex; flex-direction: column; gap: 3px; }
.tf.full-width { grid-column: 1 / -1; }
.tf-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; }
.tf-val { font-size: 14px; color: var(--text); }

.badge-sm { padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.green-badge  { background: #14532d; color: #86efac; }
.red-badge    { background: #450a0a; color: #fca5a5; }
.yellow-badge { background: #451a03; color: #fde68a; }

/* ── TICKETS TABLE ── */
.table-wrap { overflow-x: auto; margin-top: 24px; border-radius: var(--radius); border: 1px solid var(--border); }
.ticket-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ticket-table th {
  background: #1a2744;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
}
.ticket-table td {
  padding: 11px 14px;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.ticket-table tr:hover td { background: #0b1629; }

.pri-high   { color: #fca5a5; font-weight: 600; }
.pri-medium { color: #fde68a; font-weight: 600; }
.pri-low    { color: #86efac; font-weight: 600; }
.res-yes    { color: #22c55e; }
.res-no     { color: #f59e0b; }

/* ── ARCHITECTURE ── */
.arch-diagram {
  margin: 40px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.arch-svg { width: 100%; height: auto; display: block; }

.comp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}
@media (max-width: 700px) { .comp-grid { grid-template-columns: 1fr; } }

.comp-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.comp-card h3 { font-size: 0.95rem; margin-bottom: 10px; }
.comp-card p  { font-size: 13px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
.comp-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.comp-card ul li { font-size: 13px; color: var(--muted); padding-left: 16px; position: relative; }
.comp-card ul li::before { content: "·"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ── ANIMATIONS ── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }
@keyframes pulse  { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hidden { display: none !important; }

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 900px)
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  h1 { font-size: 2rem; }

  .hero {
    padding: 48px 20px 40px;
    gap: 36px;
  }

  .hero-mockup { display: none; }

  .section { padding: 48px 0; }
  .section-title { font-size: 1.5rem; }

  .steps { gap: 6px; }
  .step  { width: 140px; padding: 14px; }

  .demo-page { padding: 20px 16px; }

  .demo-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Chat first, sidebar second on tablet/mobile */
  .chat-window  { order: 1; }
  .demo-sidebar { order: 2; position: static; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 640px)
   ═══════════════════════════════════════════ */
@media (max-width: 640px) {

  /* ── Navbar ── */
  .nav-inner { padding: 0 16px; height: 52px; }
  .nav-logo  { font-size: 13px; }
  .nav-logo svg { width: 18px; height: 18px; }
  .nav-links { gap: 0; }
  .nav-links a {
    padding: 5px 9px;
    font-size: 12px;
  }

  /* ── Hero ── */
  .hero { padding: 32px 16px 28px; gap: 24px; }
  h1    { font-size: 1.65rem; }
  .hero-sub    { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .btn  { width: 100%; justify-content: center; }

  /* ── Sections ── */
  .section { padding: 36px 0; }
  .section-title { font-size: 1.3rem; }
  .section-sub   { font-size: 14px; }
  .container     { padding: 0 16px; }

  /* ── Cards ── */
  .card { padding: 20px; }

  /* ── Metrics ── */
  .metric-value { font-size: 1.7rem; }

  /* ── Steps (index page flow) ── */
  .steps { flex-direction: column; align-items: stretch; gap: 0; }
  .step  { width: 100%; text-align: left; display: flex; gap: 12px; align-items: flex-start; border-radius: 0; border-left: none; border-right: none; border-top: none; }
  .step-num { min-width: 32px; margin-bottom: 0; padding-top: 2px; }
  .step-arrow { display: none; }

  /* ── Tech grid ── */
  .tech-grid { grid-template-columns: 1fr; }

  /* ── Demo page ── */
  .demo-page  { padding: 12px; }
  .demo-layout { gap: 12px; }

  /* ── Sidebar ── */
  .demo-sidebar { padding: 16px; gap: 14px; }
  .demo-sidebar > p:nth-child(2) { display: none; } /* hide description on mobile */

  /* ── Chat window ── */
  .chat-window  { min-height: 0; }
  .chat-header  { padding: 10px 14px; }
  .bot-avatar-big { font-size: 22px; }
  .chat-agent-name { font-size: 14px; }
  .teams-badge  { display: none; }

  .chat-body {
    min-height: 300px;
    max-height: 55vh;
    padding: 14px;
    gap: 10px;
  }

  /* Bubbles: use % width so they don't overflow */
  .chat-bubble {
    max-width: 82vw;
    font-size: 14px;
    padding: 9px 13px;
  }

  /* Prevent iOS Safari from zooming on input focus */
  #chat-input { font-size: 16px; }

  .chat-input-bar { padding: 10px 12px; }

  /* Quick replies wrap tightly */
  .quick-replies { gap: 6px; }
  .qr-btn        { font-size: 12px; padding: 5px 11px; }

  /* ── Ticket card ── */
  .ticket-card-inner { padding: 16px; }
  .ticket-fields { grid-template-columns: 1fr; }
  .ticket-header { gap: 10px; }
  .ticket-icon   { font-size: 24px; }

  /* ── Tables ── */
  .ticket-table th,
  .ticket-table td { padding: 9px 10px; font-size: 12px; }

  /* ── Architecture ── */
  .comp-grid { grid-template-columns: 1fr; }

  /* ── Footer ── */
  .footer { padding: 20px 16px; font-size: 12px; }
}
