/* ==========================================================================
   Karel Telecomms — design system
   Light, airy "alabaster" canvas; soft-shadowed rounded cards; Karel blue
   as the primary with Karel orange as the accent. Mobile-first.
   ========================================================================== */

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --ink-900: #0f172a;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --line: #e2e8f0;
  --line-soft: rgba(226, 232, 240, 0.7);

  --brand-50: #eef7fd;
  --brand-100: #d9eefb;
  --brand-200: #b3dcf6;
  --brand-500: #1a8fd8;
  --brand-600: #116aa6;
  --brand-700: #0f5f96;
  --brand-900: #0a3a5c;

  --accent-50: #fff6eb;
  --accent-100: #ffe8c9;
  --accent-400: #f8b04f;
  --accent-500: #f59e2b;
  --accent-600: #e0820c;
  --accent-700: #9a5507; /* AA on white and accent-50 */

  --ok-50: #ecfdf5;
  --ok-200: #a7f3d0;
  --ok-500: #10b981;
  --ok-700: #047857;
  --warn-50: #fffbeb;
  --warn-200: #fde68a;
  --warn-700: #b45309;
  --bad-50: #fef2f2;
  --bad-200: #fecaca;
  --bad-500: #ef4444;
  --bad-700: #b91c1c;
  --violet-50: #f5f3ff;
  --violet-700: #6d28d9;

  --grad: linear-gradient(120deg, var(--brand-700) 0%, var(--brand-500) 100%);
  --grad-text: linear-gradient(100deg, var(--brand-700) 0%, var(--brand-500) 70%, #38a9ec 100%);
  /* Blue and orange are complementary: blending them goes muddy, so the brand strip uses a hard split. */
  --brand-strip: linear-gradient(90deg, var(--brand-500) 0 62%, var(--accent-500) 62% 100%);
  --grad-soft: linear-gradient(120deg, var(--brand-50), var(--accent-50));

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  --shadow-soft: 0 10px 40px -10px rgba(20, 121, 189, 0.12);
  --shadow-lift: 0 18px 50px -12px rgba(15, 23, 42, 0.18);
  --shadow-btn: 0 10px 24px -8px rgba(20, 121, 189, 0.45);
  --ring: 0 0 0 4px rgba(26, 143, 216, 0.18);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --container: 1200px;
  --gutter: 16px;
  --header-h: 72px;
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 32px; --header-h: 80px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink-900); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
::selection { background: var(--brand-100); color: var(--brand-700); }
:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 2px; border-radius: 6px; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink-900); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; color: #fff; }

/* Icons from /icons.svg */
.i { width: 1.15em; height: 1.15em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 0.95em; height: 0.95em; }
.i-lg { width: 1.5em; height: 1.5em; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px 0; position: relative; }
@media (min-width: 1024px) { .section { padding: 96px 0; } }
.section-white { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } .gap-lg { gap: 28px; } }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 7fr 5fr; gap: 56px; } .split-even { grid-template-columns: 1fr 1fr; } .split-rev { grid-template-columns: 5fr 7fr; } }
.stack > * + * { margin-top: 16px; }
.center { text-align: center; }
.muted { color: var(--ink-600); }
.small { font-size: 0.875rem; }
.xs { font-size: 0.78rem; }
.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; }
.nowrap { white-space: nowrap; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-700); background: var(--accent-50); border: 1px solid rgba(245, 158, 43, 0.25);
  padding: 5px 12px; border-radius: 999px;
}
.eyebrow.blue { color: var(--brand-700); background: var(--brand-50); border-color: rgba(26, 143, 216, 0.2); }
.eyebrow .i { width: 14px; height: 14px; }
.display { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.035em; }
.h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
.h3 { font-size: 1.25rem; font-weight: 700; }
.lead { font-size: 1.075rem; color: var(--ink-600); max-width: 640px; }
@media (min-width: 640px) { .lead { font-size: 1.15rem; } }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 720px; justify-items: start; }
.section-head.center { margin-left: auto; margin-right: auto; justify-items: center; }
.section-head h2 { margin: 0; }
.section-head .lead { margin: 0; }
.section-head-row { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
@media (min-width: 768px) { .section-head-row { flex-direction: row; align-items: flex-end; justify-content: space-between; } .section-head-row .section-head { margin-bottom: 0; } }

.prose p, .prose ul { margin: 0 0 1em; }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 26px; }
.prose li::before { content: ''; position: absolute; left: 4px; top: 0.55em; width: 9px; height: 9px; border-radius: 3px; background: var(--grad); }
.prose li:nth-child(even)::before { background: var(--accent-500); }
.prose strong { color: var(--ink-900); }
/* Links inside running text are underlined so they don't rely on colour alone. */
.prose a, .check a, .lead a, p a:not(.btn):not(.link-arrow) { text-decoration: underline; text-underline-offset: 2px; }
.prose { color: var(--ink-700); }
.prose > :last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; line-height: 1.2; cursor: pointer; text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; border-radius: var(--radius-sm); }
.btn-xs { padding: 5px 10px; font-size: 0.78rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-grad { background: var(--grad); color: #fff; box-shadow: var(--shadow-btn); background-size: 140% 100%; background-position: 0 0; }
.btn-grad:hover { color: #fff; background-position: 100% 0; }
.btn-accent { background: var(--accent-500); color: var(--ink-900); box-shadow: 0 10px 24px -8px rgba(245, 158, 43, 0.55); }
.btn-accent:hover { background: var(--accent-400); color: var(--ink-900); }
.btn-light { background: #fff; color: var(--ink-900); border-color: var(--line); box-shadow: var(--shadow-card); }
.btn-light:hover { background: var(--surface-2); color: var(--ink-900); }
.btn-dark { background: var(--ink-900); color: #fff; }
.btn-dark:hover { background: var(--ink-800); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink-700); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink-900); }
.btn-danger { background: var(--bad-50); color: var(--bad-700); border-color: var(--bad-200); }
.btn-danger:hover { background: #fee2e2; color: var(--bad-700); }
.btn-outline-white { color: #fff; border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.06); }
.btn-outline-white:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
.btn[disabled], .btn.is-loading { opacity: 0.65; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.link-arrow .i { transition: transform 0.15s; }
.link-arrow:hover .i { transform: translateX(3px); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); }
.card-pad { padding: 24px; }
@media (min-width: 640px) { .card-pad { padding: 32px; } }
.card-soft { box-shadow: var(--shadow-soft); border-color: #fff; }
.card-hover { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--brand-100); }
.icon-tile {
  width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-600); flex-shrink: 0;
}
.icon-tile.accent { background: var(--accent-50); color: var(--accent-600); }
.icon-tile.dark { background: var(--ink-900); color: #fff; }
.icon-tile.grad { background: var(--grad); color: #fff; box-shadow: var(--shadow-btn); }
.icon-tile.sm { width: 38px; height: 38px; border-radius: 12px; }
.icon-tile .i { width: 22px; height: 22px; }
.icon-tile.sm .i { width: 18px; height: 18px; }

/* ---------- Pills / badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; line-height: 1.4; border: 1px solid transparent; white-space: nowrap; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-ok { color: var(--ok-700); background: var(--ok-50); border-color: var(--ok-200); }
.pill-blue { color: var(--brand-700); background: var(--brand-50); border-color: var(--brand-100); }
.pill-accent { color: var(--accent-700); background: var(--accent-50); border-color: var(--accent-100); }
.pill-grey { color: var(--ink-600); background: var(--surface-2); border-color: var(--line); }
.pill-bad { color: var(--bad-700); background: var(--bad-50); border-color: var(--bad-200); }
.pill-warn { color: var(--warn-700); background: var(--warn-50); border-color: var(--warn-200); }
.pill-violet { color: var(--violet-700); background: var(--violet-50); border-color: #ddd6fe; }
.pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Ticket status + priority */
.st-new { color: var(--violet-700); background: var(--violet-50); border-color: #ddd6fe; }
.st-open { color: var(--brand-700); background: var(--brand-50); border-color: var(--brand-100); }
.st-pending { color: var(--warn-700); background: var(--warn-50); border-color: var(--warn-200); }
.st-on_hold { color: var(--ink-600); background: var(--surface-2); border-color: var(--line); }
.st-resolved { color: var(--ok-700); background: var(--ok-50); border-color: var(--ok-200); }
.st-closed { color: var(--ink-500); background: var(--surface-2); border-color: var(--line); }
.pr { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; text-transform: capitalize; color: var(--ink-600); }
.pr::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-400); }
.pr-urgent { color: var(--bad-700); } .pr-urgent::before { background: var(--bad-500); box-shadow: 0 0 0 3px var(--bad-50); }
.pr-high { color: var(--accent-700); } .pr-high::before { background: var(--accent-500); }
.pr-normal::before { background: var(--brand-500); }
.pr-low::before { background: var(--ink-400); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field + .field { margin-top: 0; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }
label, .label { font-size: 0.8rem; font-weight: 600; color: var(--ink-700); }
.label-upper { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-600); }
.req { color: var(--accent-600); }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink-900); font: inherit; font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: var(--ring); background: #fff; }
.textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--bad-500); background: #fff; }
.field-error { font-size: 0.8rem; color: var(--bad-700); font-weight: 500; }
.help { font-size: 0.78rem; color: var(--ink-500); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; font-weight: 500; color: var(--ink-700); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand-600); flex-shrink: 0; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.segmented { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-size: 0.82rem; font-weight: 600; color: var(--ink-600); transition: all 0.15s; text-align: center; }
.segmented input:checked + span { background: var(--brand-50); border-color: var(--brand-500); color: var(--brand-700); }
.segmented input:focus-visible + span { box-shadow: var(--ring); }
.file-drop { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--bg); cursor: pointer; font-size: 0.88rem; color: var(--ink-600); transition: border-color 0.15s, background 0.15s; }
.file-drop:hover, .file-drop.is-drag { border-color: var(--brand-500); background: var(--brand-50); }
.file-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.file-list:empty { display: none; }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid; font-size: 0.92rem; }
.alert .i { margin-top: 2px; }
.alert-ok { background: var(--ok-50); border-color: var(--ok-200); color: var(--ok-700); }
.alert-bad { background: var(--bad-50); border-color: var(--bad-200); color: var(--bad-700); }
.alert-info { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); }
.alert-warn { background: var(--warn-50); border-color: var(--warn-200); color: var(--warn-700); }
.alert strong { color: inherit; }

/* ==========================================================================
   Public site
   ========================================================================== */

/* Announcement / status bar */
.topbar { background: #fff; border-bottom: 1px solid var(--line-soft); font-size: 0.78rem; position: relative; z-index: 50; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar-msg { display: flex; align-items: center; gap: 10px; color: var(--ink-600); min-width: 0; }
.topbar-msg .text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-links { display: none; align-items: center; gap: 16px; color: var(--ink-600); }
.topbar-links a { color: var(--ink-600); display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.topbar-links a:hover { color: var(--brand-600); }
.topbar-links .staff { color: var(--accent-700); font-weight: 600; }
.topbar-links .sep { color: var(--line); }
@media (min-width: 900px) { .topbar-links { display: flex; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line-soft); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-900); }
.brand:hover { color: var(--ink-900); }
.brand-logo { height: 40px; width: auto; }
.brand-img { max-height: 44px; width: auto; }
.nav { display: none; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 10px; font-size: 0.92rem; font-weight: 500; color: var(--ink-600); transition: color 0.15s, background 0.15s; }
.nav a:hover { color: var(--brand-600); background: var(--brand-50); }
.nav a[aria-current='page'] { color: var(--ink-900); font-weight: 600; }
.header-cta { display: none; gap: 10px; align-items: center; }
@media (min-width: 1080px) { .nav, .header-cta { display: flex; } .menu-btn { display: none !important; } }
.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink-900); cursor: pointer; }
.mobile-nav { display: none; border-top: 1px solid var(--line-soft); background: #fff; padding: 12px var(--gutter) 20px; }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: flex; align-items: center; justify-content: space-between; padding: 13px 4px; border-bottom: 1px solid var(--line-soft); color: var(--ink-800); font-weight: 500; }
.mobile-nav .btn { margin-top: 14px; }
@media (min-width: 1080px) { .mobile-nav { display: none !important; } }

/* Ambient background blobs (as in the reference design) */
.ambient { position: absolute; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.ambient::before, .ambient::after { content: ''; position: absolute; border-radius: 50%; filter: blur(70px); }
.ambient::before { width: 420px; height: 420px; top: -120px; left: -120px; background: rgba(179, 220, 246, 0.6); }
.ambient::after { width: 520px; height: 520px; top: 60px; right: -160px; background: rgba(255, 232, 201, 0.75); }
.grid-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); opacity: 0.6; }
.grid-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Inner-page heroes are short, so widen the fade-out mask to keep the grid (and its data packets) visible. */
.page-hero .grid-bg { mask-image: radial-gradient(ellipse 85% 100% at 50% 0%, #000 35%, transparent 85%); -webkit-mask-image: radial-gradient(ellipse 85% 100% at 50% 0%, #000 35%, transparent 85%); opacity: 0.8; }

/* Hero */
.hero { position: relative; isolation: isolate; padding: 48px 0 72px; }
@media (min-width: 1024px) { .hero { padding: 80px 0 112px; } }
.hero-copy { display: grid; gap: 24px; text-align: center; justify-items: center; }
@media (min-width: 1024px) { .hero-copy { text-align: left; justify-items: start; } }
.hero-copy .display { margin: 0; }
.hero-copy .lead { margin: 0; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--brand-100); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); color: var(--brand-700); font-size: 0.82rem; font-weight: 600; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-500); box-shadow: 0 0 0 4px var(--accent-100); }
.hero-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; width: auto; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
@media (min-width: 1024px) { .chips { justify-content: flex-start; } }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line); font-size: 0.8rem; font-weight: 500; color: var(--ink-700); }
.chip .i { width: 13px; height: 13px; color: var(--brand-500); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); width: 100%; max-width: 520px; }
.stat-value { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2rem); letter-spacing: -0.03em; color: var(--ink-900); line-height: 1.1; }
.stat:nth-child(2) .stat-value { color: #b86204; } /* large text, 3.6:1 */
.stat-label { font-size: 0.82rem; color: var(--ink-600); }

/* Hero side widget */
.widget { background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-soft), 0 1px 0 rgba(15, 23, 42, 0.02); padding: 24px; position: relative; }
@media (min-width: 640px) { .widget { padding: 30px; } }
.widget-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.widget-title { display: flex; align-items: center; gap: 12px; }
.widget-title h2 { font-size: 1.1rem; margin: 0; }
.widget-title p { margin: 0; font-size: 0.78rem; color: var(--ink-600); }
.widget-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.8rem; color: var(--ink-600); flex-wrap: wrap; }
.widget-foot a { font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.float-badge { position: absolute; top: -14px; right: 20px; }

/* Logo strip / brands */
.brand-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .brand-strip { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .brand-strip { grid-template-columns: repeat(6, 1fr); } }
.brand-cell { display: grid; place-items: center; height: 84px; padding: 14px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); }
.brand-cell img { max-height: 48px; width: auto; filter: grayscale(1) opacity(0.7); transition: filter 0.2s; }
.brand-cell:hover img { filter: none; }
.brand-cell span { font-family: var(--font-display); font-weight: 700; color: var(--ink-500); font-size: 0.95rem; }

/* Service cards */
.service-card { display: flex; flex-direction: column; gap: 16px; padding: 28px; height: 100%; color: inherit; }
.service-card:hover { color: inherit; }
.service-card h3 { margin: 0; font-size: 1.2rem; }
.service-card p { margin: 0; color: var(--ink-600); font-size: 0.94rem; }
.service-card .tagline { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-700); text-align: right; }
.service-card .link-arrow { margin-top: auto; padding-top: 8px; } /* + 16px flex gap = at least 24px above the link */
.feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.feature-list li { font-size: 0.75rem; font-weight: 500; color: var(--ink-600); background: var(--surface-2); border-radius: 8px; padding: 3px 9px; }

/* Feature tiles */
.feature { display: flex; gap: 16px; padding: 24px; }
.feature h3 { font-size: 1.02rem; margin: 0 0 4px; }
.feature p { margin: 0; font-size: 0.9rem; color: var(--ink-600); }

/* Dark band (CTA / spotlight) */
.band-dark { position: relative; isolation: isolate; overflow: hidden; background: var(--ink-900); color: #cbd5e1; border-radius: var(--radius-xl); padding: 40px 24px; }
@media (min-width: 768px) { .band-dark { padding: 64px; } }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark::before { content: ''; position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(26, 143, 216, 0.55), transparent 65%); }
.band-dark::after { content: ''; position: absolute; z-index: -1; width: 420px; height: 420px; left: -140px; bottom: -240px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 158, 43, 0.4), transparent 65%); }
.band-dark .muted { color: #94a3b8; }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.spec { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-lg); padding: 18px; }
.spec-value { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: #fff; letter-spacing: -0.02em; line-height: 1.1; }
.spec-value small { font-size: 0.9rem; color: var(--accent-400); font-weight: 700; }
.spec-label { font-size: 0.8rem; color: #94a3b8; margin-top: 4px; }

/* Page hero (inner pages) */
.page-hero { position: relative; isolation: isolate; padding: 56px 0 48px; text-align: center; }
@media (min-width: 1024px) { .page-hero { padding: 88px 0 64px; } }
.page-hero .section-head { margin-bottom: 0; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.crumbs { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--ink-500); }
.crumbs a { color: var(--ink-500); }
.crumbs a:hover { color: var(--brand-600); }

/* Timeline (about) */
.timeline { position: relative; display: grid; gap: 20px; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand-200), var(--accent-100)); }
.tl-item { position: relative; }
.tl-item::before { content: ''; position: absolute; left: -28px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--brand-500); }
.tl-item:nth-child(even)::before { border-color: var(--accent-500); }
.tl-year { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--ink-900); }
.tl-item p { margin: 2px 0 0; color: var(--ink-600); font-size: 0.94rem; }

/* FAQ accordion */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); transition: border-color 0.15s; }
.faq details[open] { border-color: var(--brand-100); box-shadow: var(--shadow-soft); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform 0.2s; color: var(--brand-500); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq .answer { padding: 0 22px 22px; }

/* Downloads */
.tabs { display: inline-flex; padding: 6px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); gap: 4px; flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 13px; font-size: 0.9rem; font-weight: 600; color: var(--ink-600); background: none; border: 0; cursor: pointer; }
.tab:hover { color: var(--ink-900); }
.tab[aria-selected='true'], .tab[aria-current='page'] { background: var(--brand-600); color: #fff; box-shadow: 0 6px 16px -6px rgba(20, 121, 189, 0.6); }
.tab .count { font-size: 0.72rem; padding: 1px 7px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); }
.tab[aria-selected='true'] .count, .tab[aria-current='page'] .count { background: rgba(255, 255, 255, 0.2); color: #fff; }
.tab-panel[hidden] { display: none; }
.doc { display: flex; align-items: center; gap: 14px; padding: 16px 18px; color: inherit; }
.doc:hover { color: inherit; }
.doc-icon { width: 44px; height: 52px; border-radius: 10px; background: linear-gradient(160deg, var(--bad-50), #fff); border: 1px solid var(--bad-200); display: grid; place-items: center; color: var(--bad-700); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.04em; flex-shrink: 0; position: relative; }
.doc-title { font-weight: 600; color: var(--ink-900); font-size: 0.95rem; line-height: 1.35; }
.doc-meta { font-size: 0.78rem; color: var(--ink-500); }
.doc .i-end { margin-left: auto; color: var(--ink-400); transition: color 0.15s, transform 0.15s; }
.doc:hover .i-end { color: var(--brand-600); transform: translateY(2px); }
.group-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-500); margin: 32px 0 14px; }
.group-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Contact */
.contact-list { display: grid; gap: 12px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line-soft); }
.contact-item .label-upper { display: block; margin-bottom: 2px; }
.contact-item a, .contact-item div > span { color: var(--ink-900); font-weight: 600; word-break: break-word; }
.contact-item a:hover { color: var(--brand-600); }
.map-frame { width: 100%; height: 280px; border: 0; border-radius: var(--radius-lg); display: block; background: var(--surface-2); }
.socials { display: flex; gap: 8px; }
.socials a { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-700); transition: all 0.15s; }
.socials a:hover { background: var(--brand-600); color: #fff; }

/* Helpdesk portal */
.portal { overflow: hidden; }
.portal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; background: rgba(248, 250, 252, 0.85); border-bottom: 1px solid var(--line-soft); font-size: 0.8rem; color: var(--ink-700); font-weight: 600; }
.portal-grid { display: grid; }
.portal-grid > * { padding: 24px; }
@media (min-width: 640px) { .portal-grid > * { padding: 32px; } }
.portal-grid > * + * { border-top: 1px solid var(--line-soft); }
@media (min-width: 1024px) { .portal-grid { grid-template-columns: 7fr 5fr; } .portal-grid > * + * { border-top: 0; border-left: 1px solid var(--line-soft); } }
.portal-side { background: rgba(248, 250, 252, 0.6); }
.block-title { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.block-title h2, .block-title h3 { margin: 0; font-size: 1.12rem; }
.block-title p { margin: 0; font-size: 0.8rem; color: var(--ink-600); }
.steps { display: grid; gap: 14px; counter-reset: s; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 12px; font-size: 0.88rem; color: var(--ink-600); }
.steps li::before { counter-increment: s; content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-size: 0.78rem; font-weight: 700; color: var(--brand-700); flex-shrink: 0; }
.steps strong { color: var(--ink-900); display: block; }

/* Ticket thread (customer + agent) */
.ticket-head { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 768px) { .ticket-head { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
.ticket-ref { white-space: nowrap; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.82rem; font-weight: 700; color: var(--brand-700); background: var(--brand-50); border: 1px solid var(--brand-100); padding: 3px 9px; border-radius: 8px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.82rem; color: var(--ink-600); align-items: center; }
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.thread { display: grid; gap: 18px; }
.msg { display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-weight: 700; font-size: 0.8rem; background: var(--surface-2); color: var(--ink-700); border: 1px solid var(--line); }
.avatar.agent { background: var(--grad); color: #fff; border: 0; }
.bubble { background: #fff; border: 1px solid var(--line-soft); border-radius: 4px 18px 18px 18px; padding: 16px 18px; box-shadow: var(--shadow-card); min-width: 0; }
.msg.agent .bubble { background: linear-gradient(180deg, #fff, var(--brand-50)); border-color: var(--brand-100); }
.msg.note .bubble { background: #fffbeb; border-color: var(--warn-200); border-style: dashed; }
.bubble-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 8px; font-size: 0.8rem; color: var(--ink-500); }
.bubble-head strong { color: var(--ink-900); font-size: 0.9rem; }
.bubble-body { font-size: 0.94rem; color: var(--ink-800); overflow-wrap: anywhere; }
.bubble-body p:last-child { margin-bottom: 0; }
.attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.attachment { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.8rem; font-weight: 500; color: var(--ink-700); max-width: 100%; }
.attachment span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment:hover { border-color: var(--brand-500); color: var(--brand-700); }
.sys { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--ink-500); padding-left: 52px; }
.sys::before { content: ''; width: 18px; height: 1px; background: var(--line); }
.original { margin-top: 10px; }
.original summary { cursor: pointer; font-size: 0.78rem; color: var(--ink-500); }
.original pre { white-space: pre-wrap; font-family: inherit; font-size: 0.82rem; color: var(--ink-600); background: var(--surface-2); border-radius: 10px; padding: 12px; max-height: 360px; overflow: auto; }

/* Footer */
.site-footer { background: var(--ink-900); color: #94a3b8; padding: 64px 0 32px; margin-top: 0; position: relative; overflow: hidden; isolation: isolate; }
.site-footer::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--brand-strip); }
.accent-dot { color: var(--accent-500); }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.footer-grid .footer-h { font-family: var(--font); color: #fff; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.92rem; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(148, 163, 184, 0.18); display: flex; flex-direction: column; gap: 10px; font-size: 0.82rem; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.site-footer .socials a { background: rgba(255, 255, 255, 0.06); color: #cbd5e1; }
.site-footer .socials a:hover { background: var(--brand-600); color: #fff; }
.footer-brand .brand-logo text.k { fill: #fff; }

/* Reveal-on-scroll (progressive enhancement; content visible without JS) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Error page */
.error-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 14vw, 8rem); line-height: 1; letter-spacing: -0.05em; }

/* ==========================================================================
   Back office
   ========================================================================== */
.admin { background: var(--bg); min-height: 100vh; }
.admin-shell { display: grid; min-height: 100vh; }
@media (min-width: 1024px) { .admin-shell { grid-template-columns: 260px 1fr; } }
.sidebar { background: #fff; border-right: 1px solid var(--line-soft); display: none; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar.is-open { display: flex; position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 60; box-shadow: var(--shadow-lift); }
@media (min-width: 1024px) { .sidebar { display: flex; } }
.sidebar-brand { padding: 20px 20px 12px; }
.sidebar-brand .brand-logo { height: 34px; }
.sidebar-brand .tag { display: block; margin-top: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-700); }
.side-nav { padding: 8px 12px 20px; display: grid; gap: 2px; }
.side-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-500); padding: 16px 10px 6px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px; font-size: 0.9rem; font-weight: 500; color: var(--ink-600); }
.side-nav a:hover { background: var(--surface-2); color: var(--ink-900); }
.side-nav a.active { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.side-nav a .count { margin-left: auto; font-size: 0.72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--accent-50); color: var(--accent-700); }
.side-foot { margin-top: auto; padding: 16px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; gap: 10px; }
.side-foot .who { min-width: 0; flex: 1; }
.side-foot .who strong { display: block; font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot .who span { font-size: 0.74rem; color: var(--ink-500); text-transform: capitalize; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px var(--gutter); background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 30; }
@media (min-width: 1024px) { .admin-top .menu-btn { display: none; } }
.admin-main { padding: 24px var(--gutter) 64px; min-width: 0; }
@media (min-width: 1024px) { .admin-main { padding: 32px 40px 80px; } }
.page-title { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
@media (min-width: 768px) { .page-title { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.page-title h1 { font-size: 1.6rem; font-weight: 800; margin: 0; }
.page-title p { margin: 4px 0 0; color: var(--ink-600); font-size: 0.92rem; }
.backdrop { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.4); z-index: 55; }
.backdrop.is-open { display: block; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { padding: 18px 20px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--shadow-card); display: grid; gap: 6px; color: inherit; transition: border-color 0.15s, transform 0.15s; }
a.tile:hover { border-color: var(--brand-200); transform: translateY(-2px); color: inherit; }
.tile-label { font-size: 0.78rem; font-weight: 600; color: var(--ink-500); display: flex; align-items: center; gap: 8px; }
.tile-value { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; letter-spacing: -0.03em; line-height: 1.1; }
.tile-sub { font-size: 0.78rem; color: var(--ink-500); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9rem; }
.table th { text-align: left; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(248, 250, 252, 0.8); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background 0.1s; }
.table tbody tr:hover { background: rgba(238, 247, 253, 0.5); }
.table .t-subject { font-weight: 600; color: var(--ink-900); display: block; max-width: 460px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table .t-sub { font-size: 0.78rem; color: var(--ink-500); }
.row-link { position: relative; }
.row-link a.stretched::after { content: ''; position: absolute; inset: 0; }
.empty { text-align: center; padding: 48px 20px; color: var(--ink-500); }
.empty .icon-tile { margin: 0 auto 12px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line-soft); }
.filters .input, .filters .select { width: auto; padding: 9px 12px; font-size: 0.86rem; background-color: #fff; }
.filters .select { padding-right: 34px; }
.filters .search { flex: 1 1 220px; min-width: 0; }
.view-tabs { display: flex; gap: 4px; padding: 14px 14px 0; flex-wrap: wrap; }
.view-tabs a { padding: 8px 14px; border-radius: 10px 10px 0 0; font-size: 0.86rem; font-weight: 600; color: var(--ink-500); border-bottom: 2px solid transparent; }
.view-tabs a.active { color: var(--brand-700); border-bottom-color: var(--brand-600); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line-soft); font-size: 0.85rem; color: var(--ink-600); }

.ticket-layout { display: grid; gap: 20px; }
@media (min-width: 1200px) { .ticket-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .ticket-aside { position: sticky; top: 90px; } }
.dash-layout { display: grid; gap: 20px; }
@media (min-width: 1560px) { .dash-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.props { display: grid; gap: 14px; }
.props .select { padding: 10px 36px 10px 12px; font-size: 0.88rem; background-color: #fff; }
.kv { display: grid; gap: 10px; font-size: 0.86rem; }
.kv div { display: flex; justify-content: space-between; gap: 12px; }
.kv dt { color: var(--ink-500); }
.kv dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.composer { overflow: hidden; }
.composer-tabs { display: flex; border-bottom: 1px solid var(--line-soft); }
.composer-tabs label { flex: 1; text-align: center; padding: 14px; font-size: 0.88rem; font-weight: 600; color: var(--ink-500); cursor: pointer; border-bottom: 2px solid transparent; display: flex; align-items: center; justify-content: center; gap: 8px; }
.composer-tabs input { position: absolute; opacity: 0; }
.composer-tabs input:checked + span { color: inherit; }
.composer-tabs label:has(input:checked) { color: var(--brand-700); border-bottom-color: var(--brand-600); background: var(--brand-50); }
.composer-tabs label.note:has(input:checked) { color: var(--warn-700); border-bottom-color: var(--accent-500); background: var(--warn-50); }
.composer-tabs input:focus-visible + span { outline: 2px solid var(--brand-500); outline-offset: 4px; border-radius: 4px; }
.composer.is-note .textarea { background: #fffdf5; border-color: var(--warn-200); }
.composer-body { padding: 18px; display: grid; gap: 14px; }
.composer-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }

.form-card { max-width: 860px; }
.form-sections { display: grid; gap: 20px; }
.settings-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.settings-nav a { padding: 8px 14px; border-radius: 10px; font-size: 0.85rem; font-weight: 600; color: var(--ink-600); background: #fff; border: 1px solid var(--line); }
.settings-nav a.active { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.thumb { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 6px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--ink-400); }
.status-dot.ok { background: var(--ok-500); box-shadow: 0 0 0 4px var(--ok-50); }
.status-dot.bad { background: var(--bad-500); box-shadow: 0 0 0 4px var(--bad-50); }
.status-dot.warn { background: var(--accent-500); box-shadow: 0 0 0 4px var(--accent-50); }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px var(--gutter); position: relative; isolation: isolate; }
.auth-card { width: 100%; max-width: 420px; }
details.inline-edit > summary { list-style: none; cursor: pointer; }
details.inline-edit > summary::-webkit-details-marker { display: none; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.8rem; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; display: inline-block; vertical-align: bottom; }

/* ---------- Content enhancements ---------- */
/* Breadcrumbs: a block of their own so they never share a line with labels. */
.crumbs { display: flex; font-size: 0.8rem; color: var(--ink-500); margin-bottom: 18px; }
.page-hero .section-head .crumbs { margin-bottom: 0; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs a { color: var(--ink-500); }
.crumbs a:hover { color: var(--brand-600); }
.crumbs [aria-current] { color: var(--ink-700); font-weight: 500; }
.section-head.center .crumbs { justify-content: center; }

/* Lists that are themselves .prose (avoid double bullets). */
ul.prose { list-style: none; padding-left: 0; display: grid; gap: 8px; }

/* Solution page */
.service-hero { text-align: left; }
.service-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.service-hero-grid { align-items: center; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink-800); }
.check-list .i { color: var(--brand-600); margin-top: 3px; }
.check-list li:nth-child(even) .i { color: var(--accent-600); }
.article-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) { .article-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; } .talk-card { position: sticky; top: calc(var(--header-h) + 24px); } }
.article-body { font-size: 1.06rem; max-width: 720px; }
.article-body p:first-child { font-size: 1.18rem; color: var(--ink-800); }
.article-body p > strong:only-child { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--ink-900); margin-top: 8px; }

/* How we work */
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: none; }
@media (min-width: 640px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process-step { position: relative; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); padding: 26px 24px 24px; overflow: hidden; }
.process-step h3 { font-size: 1.08rem; margin: 16px 0 6px; }
.process-step p { margin: 0; color: var(--ink-600); font-size: 0.93rem; }
.process-step::before { content: attr(data-num); position: absolute; top: 14px; right: 18px; font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; letter-spacing: -0.04em; color: var(--surface-2); }
@media (min-width: 1024px) {
  .process-step:not(:last-child)::after { content: ''; position: absolute; top: 49px; right: -10px; width: 20px; height: 2px; background: repeating-linear-gradient(90deg, var(--brand-200) 0 4px, transparent 4px 8px); }
  .process { overflow: visible; }
  .process-step { overflow: visible; }
}

/* Karel range */
.range-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .range-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .range-grid { grid-template-columns: repeat(6, 1fr); } }
.range-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; color: inherit; min-height: 210px; }
.range-card:hover { color: inherit; }
.range-type { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-700); }
.range-model { font-family: var(--font-display); font-weight: 800; font-size: 2rem; letter-spacing: -0.03em; color: var(--ink-900); line-height: 1.1; }
.range-desc { font-size: 0.86rem; color: var(--ink-600); }
.range-card .link-arrow { margin-top: auto; padding-top: 10px; }

/* Capacity scale in the PABX band */
.scale { margin: 48px 0 0; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.scale-cap { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #cbd5e1; margin-bottom: 56px; }
.scale-cap span { font-weight: 500; letter-spacing: 0; text-transform: none; color: #94a3b8; }
.scale-track { position: relative; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); margin: 0 8px 64px; }
.scale-fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand-500), #38a9ec 70%, var(--accent-500)); }
.scale-mark { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--brand-500); }
.scale-mark.end { border-color: var(--accent-500); }
.scale-mark b { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-family: var(--font-display); font-size: 1.15rem; color: #fff; white-space: nowrap; }
.scale-mark small { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); font-size: 0.75rem; color: #94a3b8; white-space: nowrap; }
.scale-mark.start b, .scale-mark.start small { left: 0; transform: none; }
.scale-mark.end b, .scale-mark.end small { left: auto; right: 0; transform: none; }
.scale-range { position: absolute; top: -18px; height: 6px; border: 2px solid rgba(248, 176, 79, 0.7); border-bottom: 0; border-radius: 6px 6px 0 0; }
.scale-range small { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); font-size: 0.75rem; color: var(--accent-400); white-space: nowrap; }
@media (max-width: 640px) {
  .scale-mark small, .scale-range small { display: none; }
  .scale-track { margin-bottom: 32px; }
}

/* Closing call-to-action band */
.cta-band { display: grid; gap: 24px; align-items: center; }
.cta-band .h2 { margin: 0 0 8px; }
.cta-band .lead { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1024px) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; } .cta-actions { flex-direction: column; } .cta-actions .btn { width: 100%; } }

/* Solutions index cards: actions pinned to the bottom so they line up across a row. */
.solution-card { display: flex; flex-direction: column; }
.solution-card .feature-list { margin: 4px 0 24px; }
.solution-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* ---------- Meetings ---------- */
.flip { transform: scaleX(-1); }
.seg-links { display: inline-flex; padding: 4px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.seg-links a { padding: 6px 12px; border-radius: 9px; font-size: 0.84rem; font-weight: 600; color: var(--ink-600); min-height: 28px; display: inline-flex; align-items: center; }
.seg-links a.active { background: var(--ink-900); color: #fff; }
.meet-layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1200px) { .meet-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.meet-aside { display: grid; gap: 16px; }
.cal { overflow: hidden; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.cal-head h2 { margin: 0; font-size: 1.15rem; }
.cal-grid { display: none; }
.cal-agenda { padding: 8px 16px 16px; }
@media (min-width: 768px) { .cal-grid { display: block; } .cal-agenda { display: none; } }
.cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow div { padding: 10px 12px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); border-bottom: 1px solid var(--line-soft); background: rgba(248, 250, 252, 0.8); }
.cal-day { min-height: 118px; padding: 8px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-row .cal-day:last-child { border-right: 0; }
.cal-day.weekend { background: rgba(248, 250, 252, 0.6); }
.cal-day.out { background: var(--bg); }
.cal-day.out .cal-date span { color: var(--ink-400); }
.cal-date { display: flex; align-items: center; justify-content: space-between; }
.cal-date span { font-size: 0.82rem; font-weight: 600; color: var(--ink-700); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.cal-day.today .cal-date span { background: var(--brand-600); color: #fff; }
.cal-add { opacity: 0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: var(--ink-500); transition: opacity 0.15s, background 0.15s; }
.cal-day:hover .cal-add, .cal-add:focus-visible { opacity: 1; }
.cal-add:hover { background: var(--brand-50); color: var(--brand-700); }
.cal-event { display: grid; gap: 1px; padding: 5px 8px; border-radius: 7px; font-size: 0.74rem; line-height: 1.3; color: var(--ink-800); border-left-width: 3px; border-left-style: solid; min-width: 0; min-height: 24px; }
.cal-event span { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.cal-event:hover { filter: brightness(0.97); color: var(--ink-900); }
.cal-more { font-size: 0.72rem; color: var(--ink-500); padding-left: 4px; }
.ev-confirmed { background: var(--brand-50); border-color: var(--brand-500); }
.ev-completed { background: var(--ok-50); border-color: var(--ok-500); }
.ev-no_show { background: var(--surface-2); border-color: var(--ink-400); color: var(--ink-600); }
.ev-requested { background: var(--accent-50); border-color: var(--accent-500); }
.ev-cancelled { background: var(--bad-50); border-color: var(--bad-500); }
.ev-pill { border: 1px solid transparent; }
.ev-pill.ev-confirmed { color: var(--brand-700); border-color: var(--brand-100); }
.ev-pill.ev-completed { color: var(--ok-700); border-color: var(--ok-200); }
.ev-pill.ev-no_show { color: var(--ink-600); border-color: var(--line); }
.ev-pill.ev-requested { color: var(--accent-700); border-color: var(--accent-100); }
.ev-pill.ev-cancelled { color: var(--bad-700); border-color: var(--bad-200); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 12px 20px; border-top: 1px solid var(--line-soft); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.cal-legend .dot.ev-confirmed { background: var(--brand-500); }
.cal-legend .dot.ev-completed { background: var(--ok-500); }
.cal-legend .dot.ev-no_show { background: var(--ink-400); }
.agenda-day { font-size: 0.82rem; font-weight: 700; color: var(--ink-700); margin: 16px 0 8px; display: flex; align-items: center; gap: 8px; }
.agenda-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border-left-width: 4px; border-left-style: solid; margin-bottom: 8px; color: var(--ink-800); font-size: 0.88rem; }
.agenda-item > b { white-space: nowrap; font-size: 0.82rem; }
.req-list { display: grid; gap: 10px; }
.req-card { display: grid; gap: 3px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--accent-100); background: linear-gradient(180deg, #fff, var(--accent-50)); color: inherit; }
.req-card:hover { border-color: var(--accent-400); color: inherit; }
.req-top { display: flex; justify-content: space-between; gap: 8px; }
.req-card .truncate { display: flex; align-items: center; gap: 4px; }
.date-tile { width: 44px; flex-shrink: 0; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-align: center; padding: 4px 0; line-height: 1.1; box-shadow: var(--shadow-card); }
.date-tile b { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--ink-900); }
.date-tile small { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-700); font-weight: 700; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-stats > * { padding: 10px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-soft); display: grid; color: inherit; }
.mini-stats b { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.1; }
.mini-stats b.warn { color: var(--accent-700); }
.mini-stats span { font-size: 0.74rem; color: var(--ink-500); }
.meet-card { display: grid; gap: 4px; border-left: 4px solid var(--line); }
.ev-border-requested { border-left-color: var(--accent-500); }
.ev-border-confirmed { border-left-color: var(--brand-500); }
.ev-border-completed { border-left-color: var(--ok-500); }
.web-strip { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .web-strip { grid-template-columns: repeat(5, 1fr); } }
.web-strip a { display: flex; align-items: center; gap: 12px; padding: 16px 20px; color: inherit; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.web-strip a:hover { background: rgba(238, 247, 253, 0.5); }
.web-strip b { display: block; font-family: var(--font-display); font-size: 1.4rem; line-height: 1.1; color: var(--ink-900); }
.web-strip span:last-child { font-size: 0.8rem; color: var(--ink-600); }

.flex.flex-wrap { row-gap: 12px; }
.cal-head .btn { min-width: 32px; min-height: 32px; }
.meet-aside .card, .ticket-aside form.card { row-gap: 14px; }

/* ---------- Customers ---------- */
.new-customer { position: relative; }
.new-customer > summary { list-style: none; }
.new-customer > summary::-webkit-details-marker { display: none; }
.new-customer .pop { position: absolute; right: 0; top: calc(100% + 8px); width: min(320px, 90vw); z-index: 20; box-shadow: var(--shadow-lift); padding: 18px; }
.how-it-works { padding: 0; overflow: hidden; }
.how-it-works > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 14px 20px; cursor: pointer; font-weight: 600; font-size: 0.9rem; min-height: 44px; }
.how-it-works > summary::-webkit-details-marker { display: none; }
.how-it-works > summary .i:last-child { margin-left: auto; transition: transform 0.2s; }
.how-it-works[open] > summary .i:last-child { transform: rotate(180deg); }
.how-it-works > :not(summary) { margin-left: 20px; margin-right: 20px; }
.how-it-works > p:last-child { margin-bottom: 16px; }
.rules { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.rules li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.88rem; color: var(--ink-700); }
.rule-badge { flex-shrink: 0; font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.rule-badge.auto { background: var(--ok-50); color: var(--ok-700); border: 1px solid var(--ok-200); }
.rule-badge.suggest { background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); }
.rule-badge.maybe { background: var(--accent-50); color: var(--accent-700); border: 1px solid var(--accent-100); }
.suggest-list { list-style: none; margin: 0; padding: 0; }
.suggest-list li { display: grid; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); align-items: center; }
.suggest-list li:last-child { border-bottom: 0; }
@media (min-width: 900px) { .suggest-list li { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; } }
.suggest-list.compact li { padding: 10px 0; }
@media (min-width: 900px) { .suggest-list.compact li { grid-template-columns: minmax(0, 1fr) auto; } }
.suggest-who { display: grid; min-width: 0; }
.suggest-who span { overflow: hidden; text-overflow: ellipsis; }
.suggest-why { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.suggest-actions { display: flex; gap: 8px; }
.suggest-banner { border-color: var(--accent-100); background: linear-gradient(180deg, #fff, var(--accent-50)); }
.add-row { display: grid; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line-soft); background: rgba(248, 250, 252, 0.7); align-items: end; }
@media (min-width: 700px) { .add-row { grid-template-columns: 1.3fr 1fr auto; } }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.domain-chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px 2px 12px; border-radius: 999px; background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-700); font-size: 0.84rem; font-weight: 600; }
.domain-chip button { border: 0; background: none; color: inherit; cursor: pointer; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
.domain-chip button:hover { background: var(--brand-100); }
.customer-card.has-suggestion { border-color: var(--brand-100); box-shadow: var(--shadow-soft); }
.customer-link { color: var(--ink-900); padding: 4px 0; }
.customer-link:hover { color: var(--brand-700); }
.suggestion { padding: 12px; border-radius: 12px; margin-bottom: 10px; border: 1px solid var(--brand-100); background: var(--brand-50); }
.suggestion.name { border-color: var(--accent-100); background: var(--accent-50); }
.link-like { color: var(--brand-600); font-weight: 600; cursor: pointer; list-style: none; min-height: 28px; display: inline-flex; align-items: center; }
.link-like::-webkit-details-marker { display: none; }
.cust-tag { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--brand-700); }

/* ---------- Reports ---------- */
.report-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.seg-links { flex-wrap: wrap; }
@media (min-width: 1200px) { .tiles-6 { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 900px) and (max-width: 1199px) { .tiles-6 { grid-template-columns: repeat(3, 1fr); } }
.chart-wrap { width: 100%; overflow: hidden; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { stroke: var(--ink-400); stroke-width: 1; }
.chart .tick { font-size: 12px; fill: var(--ink-500); font-family: var(--font); }
.chart .hit { fill: transparent; }
.chart .bucket:hover .hit { fill: rgba(15, 23, 42, 0.04); }
.chart .s-created, .legend .s-created { fill: #1a8fd8; background: #1a8fd8; }
.chart .s-resolved, .legend .s-resolved { fill: #f59e2b; background: #f59e2b; }
.legend { display: flex; gap: 16px; font-size: 0.82rem; color: var(--ink-600); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hbars li { display: grid; grid-template-columns: minmax(90px, 1.1fr) 2fr auto; gap: 12px; align-items: center; font-size: 0.86rem; }
.hb-label { color: var(--ink-800); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-label a { color: var(--ink-800); display: inline-flex; min-height: 24px; align-items: center; }
.hb-label a:hover { color: var(--brand-700); }
.hb-track { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.hb-fill { display: block; height: 100%; border-radius: 99px; background: var(--brand-500); }
.hb-value { white-space: nowrap; font-size: 0.82rem; }
.mini-stats > a { color: inherit; }

.top-actions { display: flex; gap: 8px; }
@media (max-width: 520px) { .hide-sm { display: none; } }
.side-nav a[aria-current='page'] .i { color: var(--brand-600); }

.demo-banner a, a.tap { display: inline-flex; align-items: center; min-height: 26px; }

.portal-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; color: inherit; border-radius: 14px; padding: 10px; }
.portal-row:hover { background: rgba(238, 247, 253, 0.6); color: inherit; }
.portal-row > span:nth-child(2) { display: grid; }
@media (max-width: 560px) { .portal-row { grid-template-columns: auto minmax(0, 1fr); } .portal-row > span:last-child { grid-column: 1 / -1; justify-content: flex-start !important; } }

.segmented-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 400px) { .segmented-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.widget-alt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-top: 16px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--accent-100); background: var(--accent-50); color: var(--ink-800); }
.widget-alt:hover { border-color: var(--accent-400); color: var(--ink-900); }
.widget-alt .i:last-child { color: var(--accent-700); }

/* Side panels: let content shrink to the column; long customer names in selects must not widen cards. */
.ticket-aside > *, .meet-aside > * { min-width: 0; }
.customer-card form.flex > .select { flex: 1 1 auto; min-width: 0; width: 100%; }
.customer-card .select { max-width: 100%; }

.customer-card .btn { white-space: normal; text-align: left; overflow-wrap: anywhere; height: auto; }
.hist { min-width: 0; }
.hist .truncate { flex: 1 1 auto; min-width: 0; max-width: none; }
.hist .pill { flex-shrink: 0; }

/* ---------- Spacing utilities ----------
   Kept last on purpose: at equal specificity the later rule wins, so these
   reliably override component defaults (e.g. a list's margin: 0). */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }

/* ---------- Touch targets (WCAG 2.5.8: at least 24×24 CSS px) ---------- */
.link-arrow { min-height: 28px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 28px; }
.footer-links a, .footer-links li > span { display: inline-flex; align-items: center; min-height: 28px; }
.footer-links { gap: 4px; }
.contact-item a { display: inline-block; padding: 3px 0; }
.widget-foot a { min-height: 28px; }
a.small.muted { display: inline-flex; align-items: center; min-height: 28px; }
.doc-icon { font-size: 0.7rem; }

/* Text block + actions that wrap below it on small screens */
.help-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 24px; }
.help-band > div:last-child { display: flex; flex-wrap: wrap; gap: 10px; }
.portal-bar a { display: inline-flex; align-items: center; min-height: 28px; }
/* Composer on narrow screens: let grid children shrink and keep the long status select inside the card. */
.composer-body > * { min-width: 0; }
.composer-foot .select { max-width: 100%; min-width: 0; text-overflow: ellipsis; }
.composer-foot > .flex { flex: 1 1 260px; min-width: 0; flex-wrap: wrap; }
