:root {
  --sidebar-w: 264px;
  --brand: #1e3a5f;
  --brand-light: #2c5282;
  --brand-dark: #14263d;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --font-family: 'Inter', sans-serif;
  --line: rgba(127,134,150,.16);
}
* { scrollbar-width: thin; }
body {
  background: var(--bg);
  color: var(--bs-body-color);
  font-family: var(--font-family), "Segoe UI", system-ui, sans-serif;
  font-size: .93rem;
  letter-spacing: -.01em;
}
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -.02em; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-light); }

.app-wrapper { display: flex; min-height: 100vh; }

/* ---------- Kenar Menü ---------- */
.app-sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.sidebar-brand {
  padding: 1.4rem 1.25rem 1.1rem;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -.02em;
  display: flex; align-items: center; gap: .6rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: .5rem;
}
.sidebar-brand i { font-size: 1.3rem; opacity: .95; }
.app-sidebar .nav {
  padding: .25rem .75rem;
  gap: .15rem;
}
.app-sidebar .nav-link {
  color: rgba(255,255,255,.72);
  padding: .62rem .9rem;
  font-size: .87rem;
  font-weight: 500;
  border-radius: .6rem;
  display: flex; align-items: center; gap: .7rem;
  transition: background .15s, color .15s, transform .1s;
}
.app-sidebar .nav-link i { font-size: 1.02rem; width: 1.1rem; text-align: center; opacity: .9; }
.app-sidebar .nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.app-sidebar .nav-link.active {
  background: rgba(255,255,255,.16);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

/* ---------- İçerik ---------- */
.app-content { flex: 1; min-width: 0; }
.topbar {
  background: var(--surface);
  padding: .85rem 1.5rem;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(6px);
}
.app-body { padding: 1.5rem; }

.avatar-circle {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .8rem; flex-shrink: 0;
}

/* ---------- Kartlar & Tablolar ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: .9rem;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.table thead th {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .04em;
  font-weight: 700; color: var(--bs-secondary-color); border-bottom-width: 1px;
}
.table td, .table th { vertical-align: middle; }
.table-hover tbody tr:hover { background: rgba(127,134,150,.06); }

.btn { border-radius: .55rem; font-weight: 500; font-size: .87rem; }
.btn-primary { background: var(--brand); border-color: var(--brand); }
.btn-primary:hover, .btn-primary:focus { background: var(--brand-light); border-color: var(--brand-light); }
.btn-outline-primary { color: var(--brand); border-color: var(--brand); }
.btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); }

.badge { font-weight: 600; letter-spacing: .01em; border-radius: .4rem; }
.form-control, .form-select { border-radius: .55rem; font-size: .87rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand-light); box-shadow: 0 0 0 .2rem rgba(99,102,241,.12); }

.login-card { max-width: 380px; width: 100%; border-radius: 1rem; }
.password-cell { font-family: "SFMono-Regular", Consolas, monospace; letter-spacing: 1px; }
.list-scroll { max-height: 480px; overflow-y: auto; }

.badge-priority-high { background: #dc3545; }
.badge-priority-normal { background: #f0ad4e; color: #212529; }
.badge-priority-low { background: #6c757d; }

.theme-swatch { border: 2px solid transparent; border-radius: .7rem; cursor: pointer; padding: .75rem; transition: border-color .15s; }
.theme-swatch.active { border-color: var(--brand); }
.theme-swatch .swatch-bar { height: 32px; border-radius: .45rem; }

/* ---------- Yardımcı Asistan: sağ-alt yüzen sohbet balonu (Intercom tarzı) ---------- */
.ai-widget { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); right: calc(20px + env(safe-area-inset-right, 0px)); z-index: 1080; }
.ai-toggle-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff; border: none; box-shadow: 0 10px 26px rgba(0,0,0,.28);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  transition: transform .15s, box-shadow .15s;
}
.ai-toggle-btn:hover { transform: scale(1.07); box-shadow: 0 14px 32px rgba(0,0,0,.32); color: #fff; }
.ai-panel {
  position: absolute; bottom: 0; right: 0;
  width: min(370px, calc(100vw - 32px));
  height: min(600px, calc(100vh - 96px));
  background: var(--surface); border-radius: 1.25rem; box-shadow: 0 24px 64px rgba(0,0,0,.32);
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line);
  animation: aiPanelIn .18s ease-out;
}
@keyframes aiPanelIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.ai-panel-header {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff; padding: 1.2rem 1.15rem 1.4rem; flex-shrink: 0; position: relative;
}
.ai-panel-header .ai-close-x {
  position: absolute; top: .8rem; right: .8rem; background: rgba(255,255,255,.18); border: none;
  color: #fff; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .9rem; line-height: 1;
}
.ai-panel-header .ai-avatar-stack { display: flex; margin-bottom: .8rem; }
.ai-panel-header .ai-avatar-item {
  width: 40px; height: 40px; border-radius: 50%; margin-left: -10px;
  background: rgba(255,255,255,.22); border: 2px solid var(--brand);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .92rem; overflow: hidden;
}
.ai-panel-header .ai-avatar-item:first-child { margin-left: 0; }
.ai-panel-header .ai-avatar-item img { width: 100%; height: 100%; object-fit: cover; }
.ai-panel-header .ai-greeting { font-weight: 800; font-size: 1.05rem; margin-bottom: .15rem; letter-spacing: -.01em; }
.ai-panel-header .ai-subgreeting { font-size: .82rem; opacity: .92; }
.ai-panel-messages { flex: 1; overflow-y: auto; padding: .9rem; display: flex; flex-direction: column; gap: .55rem; }
.ai-msg { padding: .55rem .8rem; border-radius: .9rem; font-size: .84rem; max-width: 85%; line-height: 1.45; }
.ai-msg-user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: .25rem; }
.ai-msg-assistant { align-self: flex-start; background: rgba(127,134,150,.13); border-bottom-left-radius: .25rem; }
.ai-typing { opacity: .65; font-style: italic; }

/* Intercom'daki "Bize mesaj gönderin" yüzen kartı: gerçek input burada, iki satırlı görünüyor */
.ai-message-card {
  margin: .7rem; padding: .7rem .9rem; border-radius: 1rem; flex-shrink: 0;
  background: var(--surface); box-shadow: 0 8px 24px rgba(0,0,0,.14);
  border: 1px solid var(--line); display: flex; align-items: center; gap: .6rem;
}
.ai-message-card-text { flex: 1; min-width: 0; }
.ai-message-card-text input {
  width: 100%; border: none; outline: none; background: transparent;
  font-weight: 700; font-size: .9rem; color: inherit; padding: 0; margin-bottom: .1rem;
}
.ai-message-card-sub { font-size: .72rem; color: var(--bs-secondary-color); }
.ai-message-card-send {
  width: 38px; height: 38px; border-radius: 50%; border: none; flex-shrink: 0;
  background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center;
  transition: transform .12s;
}
.ai-message-card-send:hover { transform: scale(1.08); }
.ai-empty-hint { font-size: .82rem; color: var(--bs-secondary-color); text-align: center; padding: 1.2rem .5rem; line-height: 1.5; }
.ai-msg p { margin-bottom: .4rem; }
.ai-msg p:last-child { margin-bottom: 0; }
.ai-msg ul, .ai-msg ol { padding-left: 1.1rem; margin-bottom: .4rem; }
.ai-msg pre { white-space: pre-wrap; word-break: break-word; overflow-x: auto; font-size: .76rem; background: rgba(127,134,150,.15); padding: .5rem .6rem; border-radius: .5rem; margin-bottom: .4rem; }
.ai-msg code { font-size: .85em; }
.ai-msg strong { font-weight: 700; }


/* ---------- PWA yükleme banner'ı ---------- */
.pwa-banner {
  position: fixed; left: 12px; right: 12px; max-width: 440px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 1070;
  background: var(--surface); color: var(--bs-body-color);
  border: 1px solid var(--line); border-radius: .9rem; box-shadow: 0 10px 30px rgba(0,0,0,.22);
  padding: .65rem .75rem; display: flex; align-items: center; gap: .6rem; font-size: .82rem;
}
.pwa-banner-text { flex: 1; line-height: 1.35; }
.pwa-banner-actions { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.pwa-banner-btn { border: none; background: var(--brand); color: #fff; border-radius: .55rem; padding: .4rem .9rem; font-weight: 600; font-size: .82rem; }
.pwa-banner-close { border: none; background: transparent; color: var(--bs-secondary-color); font-size: .95rem; padding: .2rem .35rem; }
@media (max-width: 575.98px) { .pwa-banner { right: 84px; } }

/* ---------- Mobil / tablet uyumu ---------- */
.sidebar-backdrop { display: none; }
.topbar-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 991.98px) {
  /* Kenar menü: soldan kayan çekmece */
  .app-sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 1045;
    height: 100vh; height: 100dvh;
    width: min(280px, 84vw);
    transform: translateX(-100%); transition: transform .22s ease;
    padding-top: env(safe-area-inset-top, 0px);
  }
  .app-sidebar.open { transform: translateX(0); box-shadow: 0 0 44px rgba(0,0,0,.4); }
  .sidebar-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1040; }

  .topbar { padding: .6rem .9rem; padding-top: calc(.6rem + env(safe-area-inset-top, 0px)); }
  .topbar-title { max-width: 46vw; font-size: 1rem; }
  .app-body { padding: 1rem; padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); }

  /* iOS Safari, 16px'ten küçük yazı kutusuna odaklanınca sayfayı yakınlaştırır: engelle */
  .form-control, .form-select, .form-control-sm, .form-select-sm, textarea.form-control,
  .ai-message-card-text input { font-size: 16px; }

  /* Parmakla dokunması kolay butonlar */
  .btn-sm { padding: .42rem .75rem; }
  .table-responsive { -webkit-overflow-scrolling: touch; }
  .list-scroll { max-height: 62vh; }
  .card { border-radius: .8rem; }
}

@media (max-width: 575.98px) {
  .app-body { padding: .75rem; padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
  .login-card { margin: 0 .75rem; }
}

/* Uygulama olarak (ana ekrandan) açıldığında */
@media (display-mode: standalone) {
  body { -webkit-tap-highlight-color: transparent; }
}

/* ---------- Pano kartları (tıklanabilir) ---------- */
.dash-card { display: block; color: inherit; }
a.dash-card { text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
a.dash-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,23,42,.12); border-color: var(--brand-light); color: inherit; }
.dash-card .dash-icon {
  width: 38px; height: 38px; border-radius: .7rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(127,134,150,.14); color: var(--brand); font-size: 1.1rem;
}
.dash-card.accent .dash-icon { background: var(--brand); color: #fff; }
.dash-card .dash-more { font-size: .72rem; color: var(--bs-secondary-color); }
a.dash-card:hover .dash-more { color: var(--brand); }

/* Sürüm etiketi (kenar menü altı): yerel/bulut hangi sürümde olduğunu her sayfada gösterir */
.sidebar-version { margin-top: auto; padding: .8rem 1.25rem; font-size: .7rem; color: rgba(255,255,255,.45); letter-spacing: .02em; }

/* ---------- Aramalı seçim kutuları (Tom Select) — tema ve koyu mod uyumu ---------- */
.ts-wrapper { font-size: .87rem; }
.ts-wrapper .ts-control, .ts-wrapper.single .ts-control, .ts-dropdown {
  background: var(--surface); color: var(--bs-body-color); border-color: var(--line);
}
.ts-wrapper .ts-control input { color: var(--bs-body-color); }
.ts-wrapper.focus .ts-control { border-color: var(--brand-light); box-shadow: 0 0 0 .2rem rgba(99,102,241,.12); }
.ts-dropdown { border-radius: .55rem; box-shadow: 0 10px 28px rgba(15,23,42,.18); overflow: hidden; }
.ts-dropdown .option, .ts-dropdown .create, .ts-dropdown .no-results { padding: .45rem .7rem; }
.ts-dropdown .option:hover, .ts-dropdown .active { background: rgba(127,134,150,.16); color: inherit; }
.ts-dropdown .create, .ts-dropdown .no-results { color: var(--bs-secondary-color); }
@media (max-width: 991.98px) { .ts-wrapper .ts-control, .ts-wrapper .ts-control input { font-size: 16px; } }

/* ---------- Yardımcı asistan: açılış bildirimi baloncuğu ve rozet ---------- */
.ai-toggle-btn { position: relative; }
.ai-badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: #dc3545; color: #fff; font-size: .72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--surface);
  animation: aiPulse 1.6s ease-in-out infinite;
}
@keyframes aiPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.ai-teaser {
  position: absolute; bottom: 68px; right: 0; width: min(270px, calc(100vw - 40px));
  background: var(--surface); color: var(--bs-body-color); border: 1px solid var(--line);
  border-radius: 1rem 1rem .3rem 1rem; box-shadow: 0 12px 32px rgba(0,0,0,.22);
  padding: .8rem 2rem .8rem .9rem; font-size: .84rem; line-height: 1.4; cursor: pointer;
  animation: aiTeaserIn .28s ease-out;
}
.ai-teaser-close { position: absolute; top: .3rem; right: .4rem; border: none; background: transparent; color: var(--bs-secondary-color); font-size: .8rem; padding: .15rem .3rem; }
@keyframes aiTeaserIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Personel İçi Mesajlaşma (sadece personel panelinde) ---------- */
.im-widget { position: fixed; bottom: 20px; right: 20px; z-index: 1075; }
.im-toggle-btn {
  width: 56px; height: 56px; border-radius: 50%; position: relative;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff; border: none; box-shadow: 0 10px 26px rgba(0,0,0,.28);
  display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
  transition: transform .15s, box-shadow .15s;
}
.im-toggle-btn:hover { transform: scale(1.07); box-shadow: 0 14px 32px rgba(0,0,0,.32); color: #fff; }
.im-badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: #dc3545; color: #fff; font-size: .7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--surface);
}
.im-badge-inline { position: static; border: none; margin-left: .4rem; flex-shrink: 0; }
.im-panel {
  position: absolute; bottom: 0; right: 0;
  width: min(340px, calc(100vw - 32px)); height: min(560px, calc(100vh - 96px));
  background: var(--surface); border-radius: 1.15rem; box-shadow: 0 22px 60px rgba(0,0,0,.3);
  overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column;
}
.im-panel #imContactsView, .im-panel #imThreadView { display: flex; flex-direction: column; height: 100%; }
.im-panel-header {
  background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: #fff;
  padding: .8rem 1rem; display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: .88rem; flex-shrink: 0;
}
.im-close-x, .im-icon-btn {
  background: rgba(255,255,255,.18); border: none; color: #fff; width: 28px; height: 28px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .85rem; flex-shrink: 0;
}
.im-contact-list { flex: 1; overflow-y: auto; padding: .4rem; }
.im-contact-item {
  display: flex; align-items: center; gap: .6rem; padding: .6rem .5rem; border-radius: .7rem; cursor: pointer;
}
.im-contact-item:hover { background: rgba(127,134,150,.1); }
.im-contact-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem;
}
.im-contact-info { flex: 1; min-width: 0; }
.im-contact-name { font-size: .87rem; font-weight: 600; }
.im-contact-last { font-size: .76rem; color: var(--bs-secondary-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.im-panel-messages { flex: 1; overflow-y: auto; padding: .8rem; display: flex; flex-direction: column; gap: .5rem; }
.im-msg { padding: .5rem .75rem; border-radius: .85rem; font-size: .84rem; max-width: 80%; line-height: 1.4; }
.im-msg-mine { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: .2rem; }
.im-msg-theirs { align-self: flex-start; background: rgba(127,134,150,.13); border-bottom-left-radius: .2rem; }
.im-msg-time { font-size: .68rem; opacity: .65; margin-top: .2rem; text-align: right; }
.im-message-card { display: flex; align-items: center; gap: .5rem; border-top: 1px solid var(--line); padding: .5rem; flex-shrink: 0; }
.im-message-card input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: .5rem .9rem; background: var(--bg); font-size: .84rem; outline: none; color: inherit; min-width: 0; }
.im-message-card input:focus { border-color: var(--brand-light); }
.im-send-btn { border: none; background: var(--brand); color: #fff; width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.im-cleanup { background: rgba(220,53,69,.06); border-bottom: 1px solid var(--line); padding: .7rem .8rem; flex-shrink: 0; }
.im-empty-hint { font-size: .82rem; color: var(--bs-secondary-color); text-align: center; padding: 1.4rem .6rem; }
@media (max-width: 575.98px) { .im-message-card input { font-size: 16px; } }

/* ---------- Talep görsel ekleri ---------- */
.ticket-attachment-thumb {
  max-width: 220px; max-height: 220px; border-radius: .6rem; display: block;
  border: 1px solid var(--line); object-fit: cover;
}

/* ---------- Duyuru banner'ı (müşteri panosu) ---------- */
.announcement-banner { border-radius: 1rem; overflow: hidden; box-shadow: 0 1px 3px rgba(15,23,42,.06); }
.announcement-banner .carousel-item { background: var(--surface); }
.announcement-img { width: 100%; height: 300px; object-fit: contain; display: block; background: var(--bg); }
@media (max-width: 575.98px) { .announcement-img { height: 220px; } }
.announcement-caption { padding: 1rem 1.25rem; background: var(--surface); }
.announcement-caption h5 { font-weight: 700; margin-bottom: .35rem; }
.announcement-caption p { font-size: .87rem; color: var(--bs-secondary-color); margin-bottom: .6rem; }
.announcement-banner .carousel-control-prev, .announcement-banner .carousel-control-next { width: 8%; opacity: 0; transition: opacity .15s; }
.announcement-banner:hover .carousel-control-prev, .announcement-banner:hover .carousel-control-next { opacity: .8; }
.announcement-banner .carousel-indicators { margin-bottom: .4rem; }
.announcement-banner .carousel-indicators [data-bs-target] { background-color: var(--brand); }

/* Telefon: çentik / saat çubuğu / alt gezinme çubuğu olan cihazlarda içerik bu alanların altına girmesin.
   (Normal tarayıcıda ve Android uygulamasında bu değerler 0'dır, hiçbir şey değişmez.) */
@supports (padding: env(safe-area-inset-top)) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ============================================================ v3: BİLDİRİM PENCERESİ */
.notif-menu { width: 340px; max-height: 420px; overflow: auto; }
.notif-menu a:last-child { border-bottom: 0 !important; }
.notif-close { font-size: .7rem; margin-left: .5rem; }
@media (max-width: 575.98px) {
  /* Telefonda: ekran genişliğinde, iki yandan 10px boşlukla, zilin altında (top değeri js/ui.js ile verilir) */
  .dropdown-menu.notif-menu {
    position: fixed !important;
    left: 10px !important; right: 10px !important;
    top: calc(env(safe-area-inset-top, 0px) + 64px);
    width: auto !important; max-width: none;
    transform: none !important; inset-inline: 10px !important;
    max-height: 70vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
    border-radius: 14px; padding: .75rem !important;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .28);
    z-index: 1090;
    animation: notifDrop .18s ease-out;
  }
  .notif-menu a { padding-top: .7rem !important; padding-bottom: .7rem !important; }
  body.notif-open .topbar { z-index: 1085; }   /* personel panelinde üst çubuk kendi katmanını açıyor */
  body.notif-open::after {
    content: ""; position: fixed; inset: 0; background: rgba(15, 23, 42, .35); z-index: 1080;
  }
}
@keyframes notifDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ============================================================ v3: AKORDEON KARTLAR */
.cc-head {
  cursor: pointer; user-select: none; display: flex; align-items: center; gap: .4rem;
  margin: -1rem !important; padding: 1rem; border-radius: inherit; -webkit-tap-highlight-color: transparent;
}
.cc-head:hover { background: rgba(127, 134, 150, .06); }
.cc-head:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.cc-chevron { margin-left: auto; transition: transform .28s ease; opacity: .6; font-size: .9rem; }
.cc-card.cc-open .cc-chevron { transform: rotate(180deg); }
.cc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.cc-card.cc-open .cc-body { grid-template-rows: 1fr; }
.cc-inner { min-height: 0; overflow: hidden; }
.cc-card.cc-open .cc-inner { padding-top: 1.1rem; overflow: visible; animation: ccShowOverflow .3s; }
@keyframes ccShowOverflow { from { overflow: hidden; } to { overflow: hidden; } }
.cc-card:not(.cc-open) { height: auto !important; }
@media (prefers-reduced-motion: reduce) { .cc-body, .cc-chevron { transition: none; } }
