:root {
  --blue: #155dfc;
  --blue-dark: #0f49d8;
  --navy: #163b73;
  --navy-dark: #102a52;
  --ink: #162033;
  --muted: #64748b;
  --bg: #f5f7fb;
  --card: #ffffff;
  --line: #d8e2ef;
  --danger: #dc2626;
  --success: #16a34a;
  --warning: #d97706;
  --shadow: 0 12px 30px rgba(15, 23, 42, .08);
  --font: "Segoe UI", Inter, Roboto, Arial, sans-serif;
  --radius: 8px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}
a { color: var(--blue); text-decoration: none; }
.topbar {
  align-items: center;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 18px 42px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand { align-items: center; color: var(--ink); display: flex; gap: 12px; font-weight: 700; }
.brand span {
  align-items: center;
  background: linear-gradient(135deg, #60a5fa, var(--blue));
  border-radius: 10px;
  color: #fff;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}
.brand img {
  background: #fff;
  border: 1px solid #e3edf6;
  border-radius: 10px;
  height: 42px;
  object-fit: contain;
  padding: 5px 7px;
  width: 110px;
}
.topbar nav { display: flex; gap: 18px; font-weight: 700; }
.hero {
  margin: 0 auto;
  max-width: 1040px;
  padding: 96px 24px 80px;
  text-align: center;
}
.hero.small { padding-bottom: 36px; }
.eyebrow { color: var(--blue); font-weight: 800; text-transform: uppercase; }
h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 700; line-height: 1.08; margin: 14px 0; }
h2 { font-size: 20px; font-weight: 650; margin: 0 0 18px; }
.hero p, .page-head p, .muted { color: var(--muted); }
.hero-actions {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  margin: 54px auto 0;
  max-width: 850px;
}
.portal-card, .card, .login-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.portal-card {
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 42px;
}
.portal-card span {
  align-items: center;
  background: #eaf1ff;
  border-radius: 50%;
  color: var(--blue);
  display: inline-flex;
  font-size: 32px;
  height: 82px;
  justify-content: center;
  margin: 0 auto 24px;
  width: 82px;
}
.portal-card strong { font-size: 26px; margin-bottom: 12px; }
.portal-card small { color: var(--muted); font-size: 16px; line-height: 1.5; }
.page-head { margin: 0 auto; max-width: 980px; padding: 54px 24px 14px; }
.card, .login-card {
  margin: 24px auto;
  max-width: 980px;
  padding: 28px;
}
.card.narrow, .login-card { max-width: 540px; }
.card.narrow {
  max-width: none;
  width: 70%;
}
label { color: var(--ink); display: block; font-size: 13px; font-weight: 650; margin-bottom: 18px; }
input, select, textarea {
  background: #fff;
  border: 1px solid #cfdced;
  border-radius: 6px;
  color: var(--ink);
  display: block;
  font: inherit;
  margin-top: 8px;
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}
textarea { resize: vertical; }
.required, .field-error { color: var(--danger); }
.field-error { display: block; font-size: 12px; font-weight: 750; margin-top: 6px; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.btn {
  align-items: center;
  background: var(--blue);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 650;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
}
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn.full { width: 100%; }
.btn.secondary { background: #eaf1ff; color: var(--blue); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger:hover { background: #b91c1c; }
.btn.small { min-height: 32px; padding: 0 10px; }
.flash-wrap { left: 50%; max-width: 620px; position: fixed; top: 82px; transform: translateX(-50%); width: calc(100% - 32px); z-index: 20; }
.flash { border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 10px; padding: 14px 18px; }
.flash-success { background: #dcfce7; color: #166534; }
.flash-error { background: #fee2e2; color: #991b1b; }
.service-wrap {
  bottom: 22px;
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 2px;
  position: fixed;
  right: 22px;
  width: min(420px, calc(100vw - 32px));
  z-index: 60;
}
.admin-main .service-wrap { margin: 0; max-width: none; padding: 2px; }
.service-message {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 36px rgba(15, 23, 42, .16);
  opacity: 0;
  padding: 16px 46px 16px 16px;
  position: relative;
  transform: translateX(42px);
  animation: serviceSlideIn .36s ease forwards;
  animation-delay: calc(var(--message-index, 0) * 90ms);
}
.service-message p { margin: 6px 0 0; }
.service-close {
  align-items: center;
  background: rgba(255,255,255,.72);
  border: 0;
  border-radius: 999px;
  color: currentColor;
  cursor: pointer;
  display: inline-flex;
  font-size: 20px;
  font-weight: 700;
  height: 28px;
  justify-content: center;
  line-height: 1;
  opacity: .74;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 28px;
}
.service-close:hover { opacity: 1; }
.service-message.is-hiding {
  opacity: 0;
  transform: translateX(42px);
  transition: opacity .24s ease, transform .24s ease;
}
.service-info { background: #eff6ff; color: #1e3a8a; }
.service-success { background: #dcfce7; color: #166534; }
.service-warning { background: #fef3c7; color: #92400e; }
.service-danger { background: #fee2e2; color: #991b1b; }
@keyframes serviceSlideIn {
  to { opacity: 1; transform: translateX(0); }
}
.footer { color: var(--muted); padding: 40px 24px; text-align: center; }
.support-public-page {
  background: #bfdbfe;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}
.support-public-page:before,
.support-public-page:after {
  content: "";
  pointer-events: none;
  position: fixed;
  z-index: 0;
}
.support-public-page:before {
  background-image:
    linear-gradient(90deg, rgba(37,99,235,.85) 1px, transparent 1px),
    linear-gradient(180deg, rgb(37,99,235) 1px, transparent 1px);
  background-size: 36px 36px;
  height: 250px;
  left: -120px;
  opacity: .22;
  top: 94px;
  transform: rotate(-28deg);
  width: 400px;
}
.support-public-page:after {
  border: 1px solid rgba(131,201,245,.22);
  border-radius: 50%;
  box-shadow: inset 0 0 0 24px rgba(21,93,252,.28);
  height: 430px;
  right: -206px;
  top: 135px;
  width: 430px;
}
.support-public-page .topbar {
  background: rgba(255,255,255,.96);
  border: 0;
  border-bottom: 1px solid rgba(15,23,42,.12);
  border-radius: 0;
  box-shadow: 0 8px 26px rgba(15, 23, 42, .08);
  min-height: 74px;
  padding: 12px 56px;
  position: relative;
}
.support-public-page .brand {
  color: #07122f;
  gap: 18px;
}
.support-public-page .brand img {
  background: transparent;
  border: 0;
  border-radius: 0;
  height: 46px;
  padding: 0;
  width: 178px;
}
.support-public-page .brand strong {
  color: #07122f;
  display: inline;
  font-size: 17px;
  font-weight: 750;
}
.support-public-page .topbar nav {
  align-items: center;
  gap: 20px;
}
.support-public-page .topbar nav a {
  align-items: center;
  border-radius: 0;
  color: #1f2b45;
  display: inline-flex;
  font-size: 13px;
  font-weight: 650;
  gap: 6px;
  min-height: 46px;
  padding: 0 2px;
  position: relative;
}
.support-public-page .topbar nav a:hover,
.support-public-page .topbar nav a.active {
  color: var(--blue);
}
.support-public-page .topbar nav a.active:after {
  background: #1f7aff;
  border-radius: 999px;
  bottom: -2px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
}
.support-public-page .topbar nav svg {
  height: 15px;
  width: 15px;
}
.support-public-page .topbar nav svg path,
.support-public-page .topbar nav svg circle {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}
.support-home-page .support-home-hero {
  flex: 1 0 auto;
  max-width: 1120px;
  min-height: 0;
  padding: 44px 24px 46px;
  position: relative;
  width: 100%;
  z-index: 1;
}
.support-home-page .support-home-hero:before,
.support-home-page .support-home-hero:after {
  content: "";
  pointer-events: none;
  position: absolute;
}
.support-home-page .support-home-hero:before {
  background:
    linear-gradient(90deg, transparent 0 24px, rgba(37,99,235,.62) 24px 26px, transparent 26px 56px),
    linear-gradient(180deg, transparent 0 24px, rgba(37,99,235,.77) 24px 26px, transparent 26px 56px);
  background-size: 56px 56px;
  bottom: 34px;
  height: 90px;
  left: 22px;
  opacity: .22;
  width: 135px;
}
.support-home-page .support-home-hero:after {
  border-bottom: 2px solid rgba(21,93,252,.45);
  border-right: 2px solid rgba(21,93,252,.45);
  bottom: 42px;
  height: 72px;
  right: 34px;
  transform: skewX(-28deg);
  width: 230px;
}
.support-headset {
  align-items: center;
  background: linear-gradient(135deg, #e8f2ff, #ffffff);
  border: 1px solid rgba(96,165,250,.32);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(37,99,235,.12);
  display: inline-flex;
  height: 66px;
  justify-content: center;
  margin-bottom: 16px;
  width: 66px;
}
.support-headset svg {
  height: 42px;
  width: 42px;
}
.support-headset svg path,
.support-headset svg rect {
  fill: none;
  stroke: #165df5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}
.support-headset svg rect {
  fill: #165df5;
  stroke: #165df5;
}
.support-home-page .eyebrow {
  color: #050b3e;
  display: block;
  font-size: clamp(32px, 3.6vw, 46px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: none;
}
.support-home-page h1 {
  color: #1267eb;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 650;
  margin: 12px 0 8px;
}
.support-home-page .hero p {
  color: #1b2d52;
  font-size: 16px;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 760px;
}
.support-home-page .hero-actions {
  gap: 26px;
  margin-top: 34px;
  max-width: 900px;
}
.support-home-page .portal-card {
  align-items: center;
  border: 1px solid rgba(214,226,244,.9);
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(20, 53, 103, .10);
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 36px;
  min-height: 136px;
  overflow: hidden;
  padding: 20px 22px;
  position: relative;
  text-align: left;
}
.support-home-page .portal-card:before {
  background-image: radial-gradient(rgba(21,93,252,.32) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  bottom: 14px;
  content: "";
  height: 64px;
  left: 18px;
  opacity: .55;
  position: absolute;
  width: 96px;
}
.support-home-page .portal-card span {
  background: #e7f1ff;
  font-size: 42px;
  font-weight: 300;
  height: 66px;
  margin: 0;
  position: relative;
  width: 66px;
  z-index: 1;
}
.support-home-page .portal-card strong {
  color: #050b3e;
  display: block;
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 12px;
  position: relative;
}
.support-home-page .portal-card strong:after {
  background: #1267eb;
  border-radius: 999px;
  bottom: -8px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  width: 48px;
}
.support-home-page .portal-card small {
  color: #26375f;
  display: block;
  font-size: 14px;
  line-height: 1.5;
  max-width: 280px;
}
.support-home-page .portal-card em {
  align-items: center;
  border: 1px solid #b9d5ff;
  border-radius: 50%;
  color: #1267eb;
  display: inline-flex;
  font-size: 25px;
  font-style: normal;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.support-public-page .footer {
  align-items: center;
  background: rgba(255,255,255,.94);
  border-top: 1px solid rgba(15,23,42,.10);
  color: #334155;
  flex: 0 0 auto;
  justify-content: center;
  margin-top: auto;
  position: relative;
  z-index: 1;
}
.support-public-footer {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  padding: 28px max(24px, calc((100vw - 1180px) / 2));
  text-align: left;
}
.support-public-footer > div {
  display: grid;
  gap: 8px;
}
.support-public-footer img {
  height: 28px;
  object-fit: contain;
  width: 28px;
}
.support-public-footer strong {
  color: #0f1b35;
  font-size: 13px;
  font-weight: 750;
}
.support-public-footer p,
.support-public-footer a {
  color: #5c6c86;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}
.support-public-footer a:hover { color: var(--blue); }
.support-public-footer > small {
  border-top: 1px solid rgba(15,23,42,.10);
  color: #64748b;
  font-size: 12px;
  grid-column: 1 / -1;
  padding-top: 14px;
  text-align: center;
}
.social-row {
  display: flex;
  gap: 10px;
}
.social-row i {
  align-items: center;
  background: var(--blue);
  border-radius: 5px;
  color: #fff;
  display: inline-flex;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  height: 26px;
  justify-content: center;
  width: 26px;
}
.submit-ticket-hero {
  margin: 0 auto;
  max-width: 1040px;
  padding: 34px 24px 26px;
  position: relative;
  text-align: center;
  width: 100%;
  z-index: 1;
}
.submit-ticket-hero:before,
.submit-ticket-hero:after {
  border-color: #9aa9c0;
  content: "";
  opacity: .82;
  pointer-events: none;
  position: absolute;
}
.submit-ticket-hero:before {
  border-left: 2px solid #9aa9c0;
  border-top: 2px solid #9aa9c0;
  height: 58px;
  left: 80px;
  top: 78px;
  transform: rotate(28deg) skewX(-14deg);
  width: 42px;
}
.submit-ticket-hero:after {
  border: 4px solid #9aa9c0;
  border-bottom-color: transparent;
  border-radius: 36px 36px 18px 18px;
  height: 38px;
  right: 92px;
  top: 74px;
  width: 46px;
}
.submit-hero-icon {
  align-items: center;
  background: linear-gradient(135deg, #1683ff, #155dfc);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(21,93,252,.24);
  color: #fff;
  display: inline-flex;
  height: 54px;
  justify-content: center;
  margin-bottom: 14px;
  width: 54px;
}
.submit-hero-icon svg {
  height: 28px;
  width: 28px;
}
.submit-hero-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.submit-ticket-hero h1 {
  color: #111a38;
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0 0 10px;
}
.submit-ticket-hero p {
  color: #69758c;
  font-size: 15px;
  margin: 0;
}
.ticket-submit-card {
  border: 1px solid #d8e4f2;
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(15,23,42,.10);
  margin-top: 8px;
  max-width: none;
  padding: 28px;
  position: relative;
  width: 70%;
  z-index: 1;
}
.ticket-submit-card label {
  color: #07122f;
  font-size: 13px;
  font-weight: 750;
}
.ticket-submit-card input,
.ticket-submit-card select,
.ticket-submit-card textarea,
.ticket-submit-card .rich-editor {
  border-color: #cfdceb;
  border-radius: 6px;
}
.ticket-submit-card input,
.ticket-submit-card select {
  min-height: 42px;
}
.ticket-submit-card input:focus,
.ticket-submit-card select:focus,
.ticket-submit-card textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21,93,252,.10);
  outline: 0;
}
.ticket-submit-card .rich-editor {
  overflow: hidden;
}
.ticket-submit-card .editor-toolbar {
  background: #f8fbff;
  border-bottom: 1px solid #dbe5f1;
}
.ticket-submit-card .editor-toolbar button {
  min-width: 36px;
}
.ticket-submit-card .editor-surface {
  min-height: 150px;
}
.ticket-submit-card input[type="file"] {
  align-items: center;
  background: #fff;
  display: flex;
  padding: 8px 10px;
}
.ticket-submit-card .btn {
  background: linear-gradient(135deg, #1683ff, #155dfc);
  box-shadow: 0 10px 24px rgba(21,93,252,.24);
  min-height: 42px;
  padding: 0 20px;
}
.ticket-meta { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0,1fr)); margin-bottom: 24px; }
.ticket-meta div { background: #f8fbff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.ticket-meta small, .reply time { color: var(--muted); display: block; font-size: 12px; margin-bottom: 4px; }
.ticket-meta .priority-critical { background: #fef2f2; border-color: #fecaca; }
.ticket-meta .priority-high { background: #fff7ed; border-color: #fed7aa; }
.ticket-meta .priority-medium { background: #eff6ff; border-color: #bfdbfe; }
.ticket-meta .priority-low { background: #f0fdf4; border-color: #bbf7d0; }
.ticket-meta .status-new { background: #eff6ff; border-color: #bfdbfe; }
.ticket-meta .status-progress { background: #fffbeb; border-color: #fde68a; }
.ticket-meta .status-replied { background: #f5f3ff; border-color: #ddd6fe; }
.ticket-meta .status-resolved { background: #f0fdf4; border-color: #bbf7d0; }
.ticket-meta .status-closed { background: #f8fafc; border-color: #cbd5e1; }
.customer-notification-panel h2 { margin-bottom: 16px; }
.customer-notification-list { display: grid; gap: 12px; }
.customer-notification {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}
.customer-notification strong { display: block; margin-bottom: 6px; }
.customer-notification p { margin: 0 0 8px; }
.customer-notification small { color: var(--muted); }
.customer-notification.is-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.customer-notification.is-info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.customer-notification.is-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.thread { display: grid; gap: 16px; }
.reply {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
  padding: 18px;
}
.reply.admin { background: #eff6ff; border-color: #bfdbfe; }
.reply.customer { background: #fff; }
.reply > strong { display: block; font-size: 15px; }
.reply-content { color: #25344c; line-height: 1.72; overflow-wrap: anywhere; }
.reply-content p { margin: 10px 0 0; }
.reply-content ul, .reply-content ol { margin: 10px 0 0 22px; padding: 0; }
.reply-content blockquote { border-left: 3px solid var(--blue); color: var(--muted); margin: 12px 0 0; padding-left: 12px; }
.helper-text { color: var(--muted); display: block; font-size: 12px; font-weight: 500; margin-top: 3px; }
.choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.choice-list label, .single-check {
  align-items: center;
  background: #fff;
  border: 1px solid #cfdced;
  border-radius: 6px;
  display: inline-flex;
  gap: 8px;
  margin: 0;
  min-height: 42px;
  padding: 0 12px;
}
.choice-list input, .single-check input {
  margin: 0;
  min-height: auto;
  width: auto;
}
.rich-editor {
  background: #fff;
  border: 1px solid #cfdced;
  border-radius: 6px;
  margin-top: 8px;
  overflow: hidden;
}
.editor-toolbar {
  background: #f8fbff;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
}
.editor-toolbar button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  min-height: 30px;
  padding: 0 10px;
}
.editor-toolbar button:hover { border-color: var(--blue); color: var(--blue); }
.editor-surface {
  min-height: 150px;
  outline: 0;
  padding: 12px;
}
.kb-admin-editor .editor-toolbar { gap: 8px; }
.kb-admin-editor .editor-surface {
  background: #fff;
  min-height: 320px;
  overflow-wrap: anywhere;
}
.editor-surface a,
.reply-content a {
  color: var(--blue);
  font-weight: 750;
  text-decoration: underline;
}
.editor-surface figure,
.reply-content figure {
  margin: 18px 0;
}
.editor-surface img,
.reply-content img {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
  display: block;
  height: auto;
  max-width: 100%;
}
.editor-surface figcaption,
.reply-content figcaption {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  margin-top: 8px;
  text-align: center;
}
.editor-surface:empty::before {
  color: #94a3b8;
  content: attr(data-placeholder);
}
.attachment-gallery {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  margin-top: 14px;
  max-width: 620px;
}
.attachment-thumb {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: zoom-in;
  height: 92px;
  overflow: hidden;
  padding: 0;
}
.attachment-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.attachment-thumb:hover { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21, 93, 252, .12); }
.gallery-modal {
  align-items: center;
  background: rgba(15, 23, 42, .82);
  bottom: 0;
  display: grid;
  gap: 12px;
  justify-items: center;
  left: 0;
  padding: 28px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 80;
}
.gallery-modal[hidden] { display: none; }
.gallery-modal img {
  background: #fff;
  border-radius: 8px;
  max-height: 82vh;
  max-width: min(1040px, 92vw);
  object-fit: contain;
}
.gallery-modal strong { color: #fff; font-size: 13px; }
.gallery-close {
  background: #fff;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-size: 28px;
  height: 44px;
  position: fixed;
  right: 22px;
  top: 18px;
  width: 44px;
}

.admin-body { background: #eef3f8; }
.sidebar {
  background: #121922;
  bottom: 0;
  color: #fff;
  display: flex;
  flex-direction: column;
  left: 0;
  padding: 0 0 16px;
  position: fixed;
  top: 0;
  width: 292px;
}
.sidebar .brand {
  background: #fff;
  border-bottom: 1px solid #dbe4ef;
  color: #fff;
  margin: 0 0 14px;
  padding: 18px 20px;
  width: 100%;
}
.sidebar .brand img {
  border: 0;
  border-radius: 0;
  height: 60px;
  object-fit: contain;
  padding: 0;
  width: 100%;
}
.admin-brand { justify-content: flex-start; }
.admin-brand span { display: grid; gap: 1px; }
.admin-brand strong { font-size: 14px; font-weight: 700; line-height: 1.1; }
.admin-brand small { color: #b8c7dd; font-size: 11px; font-weight: 500; }
.sidebar nav {
  display: block;
  overflow-y: auto;
  padding: 0 0 10px;
}
.nav-group { border-top: 1px solid rgba(255,255,255,.06); padding: 8px 0; }
.nav-group:first-child { border-top: 0; padding-top: 0; }
.nav-group > small {
    color: #dc2626;
    display: block;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .08em;
    margin: 10px 22px 7px;
    text-transform: uppercase;  
}
.sidebar nav a {
  align-items: center;
  border-left: 3px solid transparent;
  border-radius: 0;
  color: #d7dde7;
  display: flex;
  gap: 10px;
      font-size: 16px;
    font-weight: 550;
  margin-bottom: 0;
  min-height: 48px;
  padding: 0 22px;
}
.sidebar nav a i {
  align-items: center;
  background: transparent;
  border-radius: 0;
  color: #566277;
  display: inline-flex;
  flex: 0 0 28px;
  font-style: normal;
  /* height: 28px; */
  justify-content: center;
  /* width: 28px; */
}
.sidebar nav a i svg {
  display: block;
  /* height: 16px;
  width: 20px; */
}
.sidebar nav a i svg path,
.sidebar nav a i svg rect,
.sidebar nav a i svg circle {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.sidebar nav a.active, .sidebar nav a:hover {
  background: #2c62d9;
  border-left-color: #2c62d9;
  color: #fff;
}
.sidebar nav a.active i, .sidebar nav a:hover i { color: #fff; }
.sidebar-foot { margin-top: auto; padding: 0 14px; }
.user-chip {
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 12px;
}
.user-chip > span,
.user-chip > img {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  color: var(--navy);
  display: inline-flex;
  flex: 0 0 42px;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}
.user-chip > img {
  border: 2px solid rgba(255,255,255,.72);
  object-fit: cover;
}
.user-chip div { min-width: 0; }
.user-chip small { color: #aeb8c8; display: block; font-size: 10px; font-weight: 650; text-transform: uppercase; }
.user-chip strong { color: #fff; display: block; font-size: 14px; font-weight: 700; line-height: 1.2; margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip em { color: #c8d5e6; display: block; font-size: 12px; font-style: normal; text-transform: capitalize; }
.logout-link {
  align-items: center;
  background: rgba(255,255,255,.08);
  border-radius: 6px;
  color: #fff;
  display: flex;
  font-weight: 650;
  justify-content: center;
  margin-top: 10px;
  min-height: 36px;
}
.logout-link:hover { background: rgba(255,255,255,.15); color: #fff; }
.admin-main { margin-left: 292px; padding: 22px; }
.admin-top { align-items: center; display: flex; justify-content: space-between; margin-bottom: 22px; }
.admin-top small { color: var(--muted); display: block; font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.admin-top h1 { font-size: 26px; font-weight: 700; margin: 0; }
.stats { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 24px; }
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.dashboard-hero, .report-hero, .feature-intro {
  align-items: center;
  background:
    radial-gradient(circle at 92% 12%, rgba(96, 165, 250, .28), transparent 30%),
    linear-gradient(135deg, #07133f 0%, #0f2f75 55%, #155dfc 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #fff;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 24px;
}
.dashboard-hero h2, .report-hero h2, .feature-intro h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.08;
  margin: 8px 0 10px;
}
.dashboard-hero p, .report-hero p, .feature-intro p { color: rgba(255,255,255,.82); margin: 0; max-width: 760px; }
.dashboard-hero .eyebrow, .report-hero .eyebrow, .feature-intro .eyebrow { color: #bfdbfe; }
.hero-mini-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-mini-actions .btn.secondary { background: rgba(255,255,255,.14); color: #fff; }
.stat-card.accent { background: linear-gradient(135deg, #155dfc, #0f49d8); color: #fff; }
.stat-card.accent span { color: rgba(255,255,255,.82); }
.stat-card.danger-stat { border-color: #fecaca; }
.stat-card span { color: var(--muted); font-size: 12px; font-weight: 650; text-transform: uppercase; }
.stat-card strong { display: block; font-size: 30px; font-weight: 700; margin-top: 6px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.pill { background: #eaf1ff; border-radius: 999px; color: var(--blue); font-size: 12px; font-weight: 650; padding: 5px 9px; }
.ticket-row.priority-critical { background: #fff5f5; box-shadow: inset 4px 0 0 var(--danger); }
.ticket-row.priority-high { background: #fff8ed; box-shadow: inset 4px 0 0 var(--warning); }
.ticket-row.priority-medium { background: #f8fbff; box-shadow: inset 4px 0 0 var(--blue); }
.ticket-row.priority-low { background: #f7fdf9; box-shadow: inset 4px 0 0 var(--success); }
.priority-badge, .status-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  padding: 5px 10px;
}
.priority-badge.priority-critical { background: #fee2e2; color: #991b1b; }
.priority-badge.priority-high { background: #ffedd5; color: #9a3412; }
.priority-badge.priority-medium { background: #dbeafe; color: #1d4ed8; }
.priority-badge.priority-low { background: #dcfce7; color: #166534; }
.status-badge.status-new { background: #dbeafe; color: #1d4ed8; }
.status-badge.status-progress { background: #fef3c7; color: #92400e; }
.status-badge.status-replied { background: #ede9fe; color: #6d28d9; }
.status-badge.status-resolved { background: #dcfce7; color: #166534; }
.status-badge.status-closed { background: #e2e8f0; color: #334155; }
.status-badge.status-normal { background: #f1f5f9; color: #475569; }
.section-head { align-items: center; display: flex; justify-content: space-between; margin-bottom: 18px; }
.filters, .inline-form { align-items: end; display: flex; gap: 12px; margin-bottom: 18px; }
.filters select, .inline-form input { max-width: 260px; }
.admin-main .card {
  margin: 0 0 22px;
  max-width: none;
}
.kb-admin-page {
  color: #0b1733;
  display: grid;
  gap: 18px;
}
.kb-admin-page .kb-admin-hero {
  background:
    radial-gradient(circle at 92% 14%, rgba(96,165,250,.38), transparent 24%),
    radial-gradient(circle at 66% 82%, rgba(37,99,235,.22), transparent 34%),
    linear-gradient(135deg, #132f91 0%, #155dfc 62%, #064ad8 100%);
  border-radius: 8px;
  box-shadow: 0 20px 48px rgba(21,93,252,.22);
  min-height: 150px;
  overflow: hidden;
  padding: 30px 32px;
  position: relative;
}
.kb-admin-page .kb-admin-hero h2 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 760;
  letter-spacing: 0;
}
.kb-admin-page .kb-admin-hero p {
  font-size: 15px;
  line-height: 1.7;
  max-width: 760px;
}
.kb-admin-page .kb-admin-hero-art {
  align-items: center;
  display: flex;
  height: 120px;
  justify-content: center;
  position: absolute;
  right: 72px;
  top: 18px;
  width: 170px;
}
.kb-admin-hero-art span {
  background: #eaf4ff;
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(2,8,23,.18);
  display: block;
  height: 92px;
  position: relative;
  width: 82px;
}
.kb-admin-hero-art span:before {
  background:
    linear-gradient(#8bc5ff,#8bc5ff) 16px 20px / 48px 6px no-repeat,
    linear-gradient(#8bc5ff,#8bc5ff) 16px 42px / 48px 6px no-repeat,
    linear-gradient(#8bc5ff,#8bc5ff) 16px 64px / 48px 6px no-repeat;
  content: "";
  inset: 0;
  position: absolute;
}
.kb-admin-hero-art i {
  border: 6px solid #7fc0ff;
  border-radius: 50%;
  bottom: 12px;
  height: 48px;
  position: absolute;
  right: 18px;
  width: 48px;
}
.kb-admin-hero-art i:after {
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(34,197,94,.25);
  color: #fff;
  content: "";
  height: 28px;
  position: absolute;
  right: -18px;
  top: 28px;
  width: 28px;
}
.kb-admin-page .page-grid {
  align-items: stretch;
  gap: 18px;
}
.kb-admin-page .card {
  background: rgba(255,255,255,.96);
  border: 1px solid #dfe8f4;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(15,23,42,.08);
}
.kb-admin-form-card {
  min-height: 420px;
  padding: 28px;
}
.support-tool-page > .kb-admin-form-card {
  min-height: auto;
}
.support-tool-page .full-field {
  grid-column: 1 / -1;
}
.support-tool-page form.grid.two .btn {
  align-self: end;
  width: max-content;
}
.kb-admin-page h2 {
  align-items: center;
  color: #0b1733;
  display: flex;
  font-size: 18px;
  font-weight: 760;
  gap: 12px;
  letter-spacing: 0;
}
.kb-admin-card-icon {
  align-items: center;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 28px;
  font-size: 12px;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  width: 28px;
}
.kb-admin-card-icon.blue { background: #1f7aff; }
.kb-admin-card-icon.green { background: #19b976; }
.kb-admin-page label {
  color: #0c1731;
  font-weight: 760;
}
.kb-admin-page input,
.kb-admin-page select,
.kb-admin-page textarea {
  border-color: #cfdbec;
  border-radius: 7px;
  min-height: 44px;
}
.kb-admin-page textarea {
  min-height: 94px;
}
.kb-admin-page input:focus,
.kb-admin-page select:focus,
.kb-admin-page textarea:focus {
  border-color: #1f7aff;
  box-shadow: 0 0 0 3px rgba(31,122,255,.11);
  outline: 0;
}
.kb-admin-page .rich-editor {
  border-color: #cfdbec;
  border-radius: 8px;
  overflow: hidden;
}
.kb-admin-page .editor-toolbar {
  background: #f7faff;
  border-bottom: 1px solid #dfe8f4;
}
.kb-admin-page .editor-toolbar button {
  border-radius: 6px;
  min-width: 34px;
}
.kb-admin-page .editor-surface {
  min-height: 138px;
}
.kb-admin-page .check-row label {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  margin: 0 0 18px;
}
.kb-admin-page .check-row input {
  accent-color: #19b976;
  min-height: auto;
  width: auto;
}
.kb-admin-page .btn {
  border-radius: 6px;
  font-weight: 700;
}
.kb-admin-page .form-actions-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.kb-admin-table-card {
  padding: 26px 28px;
}
.kb-admin-table-card .table-wrap {
  border: 1px solid #e3eaf4;
  border-radius: 8px;
  overflow: auto;
}
.kb-admin-page table {
  background: #fff;
}
.kb-admin-page th {
  background: #f8fbff;
  border-bottom: 1px solid #dfe8f4;
  color: #334463;
  font-size: 11px;
  letter-spacing: .04em;
  padding: 14px 16px;
}
.kb-admin-page td {
  border-bottom: 1px solid #eef3f8;
  color: #25344f;
  padding: 14px 16px;
}
.kb-admin-page tr:last-child td {
  border-bottom: 0;
}
.kb-admin-page td strong {
  color: #07142d;
}
.kb-admin-page td small {
  color: #60708a;
}
.kb-admin-page .pill {
  background: #e9fbef;
  color: #16a34a;
  font-weight: 760;
}
.kb-admin-page .action-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kb-admin-page .btn.small {
  border: 1px solid #9ec4ff;
  min-height: 30px;
}
.kb-admin-page .btn.small.secondary {
  background: #fff;
  color: #155dfc;
}
.kb-admin-page .btn.small.danger {
  background: #fff;
  border-color: #fda4a4;
  color: #dc2626;
}
.kb-admin-page .btn.small:hover {
  background: #155dfc;
  color: #fff;
}
.kb-admin-page .btn.small.danger:hover {
  background: #dc2626;
  color: #fff;
}
.kb-admin-table-tools {
  display: flex;
  gap: 10px;
}
.kb-admin-table-tools input,
.kb-admin-table-tools select {
  margin: 0;
  min-height: 38px;
  width: 210px;
}
.kb-admin-footer {
  color: #64748b;
  font-size: 12px;
  padding: 10px 0 4px;
  text-align: center;
}
.full-card { width: 100%; }
.page-toolbar {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 20px;
}
.page-toolbar h2 { margin: 3px 0 4px; }
.page-toolbar p { color: var(--muted); margin: 0; }
.filter-grid {
  align-items: end;
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(160px, 1fr)) auto;
}
.filter-grid label { margin: 0; }
.filter-grid input, .filter-grid select { max-width: none; }
.filter-actions { display: flex; gap: 8px; }
.compact-filter { grid-template-columns: minmax(260px, 1fr) auto; }
.split-panel {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(280px, 360px) 1fr;
  margin-bottom: 20px;
}
.mini-form {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 18px;
}
.pagination a, .pagination span {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  display: inline-flex;
  font-size: 13px;
  font-weight: 650;
  height: 34px;
  justify-content: center;
  min-width: 34px;
  padding: 0 10px;
}
.pagination a.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.action-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 220px;
}
.action-row form { margin: 0; }
.inline-edit { position: relative; }
.inline-edit summary { list-style: none; }
.inline-edit summary::-webkit-details-marker { display: none; }
.inline-edit[open] form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 320px;
  padding: 16px;
  position: absolute;
  right: 0;
  top: 42px;
  z-index: 10;
}
.check-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 10px 0 20px;
}
.check-row label {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  margin: 0;
}
.check-row input[type="checkbox"] {
  display: inline-block;
  margin: 0;
  min-height: auto;
  width: auto;
}
.form-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.full-field { grid-column: 1 / -1; }
.page-grid > .card { margin: 0; max-width: none; }
.report-filter {
  align-items: end;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  min-width: min(520px, 100%);
  padding: 16px;
}
.report-filter label { color: #fff; margin: 0; }
.report-filter input { border-color: rgba(255,255,255,.45); }
.report-card h2 { margin-bottom: 22px; }
.bar-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
  margin-bottom: 16px;
  position: relative;
}
.bar-row span, .bar-row strong { position: relative; z-index: 1; }
.bar-row i {
  background: linear-gradient(90deg, rgba(21,93,252,.16), rgba(21,93,252,.34));
  border-radius: 999px;
  bottom: -4px;
  display: block;
  height: 8px;
  left: 0;
  position: absolute;
}
.article-list { display: grid; gap: 12px; }
.result-summary {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  margin: -4px 0 16px;
}
.article-item {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  display: block;
  padding: 18px;
}
.article-item:hover { border-color: var(--blue); }
.article-item strong { display: block; font-size: 18px; margin-bottom: 6px; }
.article-item small { color: var(--muted); display: block; margin-bottom: 8px; }
.article-item p { color: var(--muted); margin: 0; }
.article-body { line-height: 1.75; white-space: normal; }
.kb-pagination { justify-content: center; }
.kb-list-page {
  background:
    radial-gradient(circle at 1% 24%, rgba(168, 85, 247, .08), transparent 18%),
    radial-gradient(circle at 98% 12%, rgba(21, 93, 252, .10), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, #f6f9ff 46%, #fff 100%);
}
.kb-list-page .topbar {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
}
.kb-list-page .topbar nav a[href$="knowledgebase.php"] {
  background: #eaf1ff;
  border-radius: 8px;
  color: var(--blue);
  padding: 10px 14px;
}
.kb-list-hero {
  background:
    radial-gradient(circle at 25% 28%, rgba(21,93,252,.10) 0 8px, transparent 9px),
    radial-gradient(circle at 76% 18%, rgba(124,58,237,.16) 0 18px, transparent 19px),
    linear-gradient(135deg, #f8fbff 0%, #eef5ff 54%, #f8fbff 100%);
  border-bottom: 1px solid #e0e8f6;
  overflow: hidden;
  position: relative;
}
.kb-list-hero-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1580px;
  min-height: 230px;
  padding: 58px 28px;
  width: 100%;
}
.kb-list-hero h1 {
  color: #08142f;
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 20px;
}
.kb-list-hero p {
  color: #33435d;
  font-size: 18px;
  margin: 0;
}
.kb-hero-art {
  align-items: center;
  display: flex;
  height: 160px;
  justify-content: center;
  margin-right: 54px;
  position: relative;
  width: 260px;
}
.kb-hero-art:before {
  background:
    repeating-radial-gradient(circle, rgba(21,93,252,.16) 0 2px, transparent 3px 16px);
  content: "";
  height: 120px;
  left: -80px;
  opacity: .8;
  position: absolute;
  top: 20px;
  width: 150px;
}
.kb-hero-art span {
  align-items: center;
  background: #8b5cf6;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 28px;
  font-weight: 850;
  height: 44px;
  justify-content: center;
  position: absolute;
  right: 170px;
  top: 2px;
  width: 44px;
}
.kb-hero-art i {
  border: 10px solid #4f70f5;
  border-radius: 50%;
  display: block;
  height: 86px;
  position: relative;
  width: 86px;
}
.kb-hero-art i:after {
  background: #4f70f5;
  border-radius: 999px;
  content: "";
  height: 58px;
  position: absolute;
  right: -34px;
  top: 62px;
  transform: rotate(-45deg);
  width: 14px;
}
.kb-list-shell {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  margin: -18px auto 0;
  max-width: 1580px;
  padding: 0 28px 36px;
  position: relative;
  width: 100%;
  z-index: 1;
}
.kb-list-card {
  background: rgba(255,255,255,.96);
  border: 1px solid #dbe7f6;
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(15,23,42,.08);
  margin: 0 auto;
  padding: 32px;
  width: 70%;
}
.kb-search-form {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  margin-bottom: 22px;
}
.kb-search-form label {
  align-items: center;
  border: 1px solid #cfdbec;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  margin: 0;
  min-height: 54px;
  padding: 0 18px;
}
.kb-search-form label span { color: #8a9ab5; }
.kb-search-form input {
  border: 0;
  margin: 0;
  min-height: 52px;
  padding: 0;
}
.kb-search-form input:focus { outline: 0; }
.kb-search-form .btn {
  border-radius: 8px;
  min-height: 54px;
  padding: 0 24px;
}
.kb-list-summary {
  align-items: center;
  display: flex;
  gap: 8px;
  margin: 0 0 22px;
}
.kb-list-items {
  gap: 0;
}
.kb-list-item {
  align-items: center;
  background: #fff;
  border-color: #dbe7f6;
  border-radius: 8px;
  display: grid;
  gap: 20px;
  grid-template-columns: 76px minmax(0, 1fr) 24px;
  margin-top: -1px;
  min-height: 126px;
  padding: 22px 24px;
}
.kb-list-item:hover {
  border-color: #b9cef4;
  box-shadow: 0 14px 30px rgba(21,93,252,.08);
  position: relative;
  z-index: 1;
}
.kb-list-icon {
  align-items: center;
  background: #edf4ff;
  border-radius: 24px;
  color: var(--blue);
  display: inline-flex;
  font-size: 24px;
  height: 68px;
  justify-content: center;
  width: 68px;
}
.kb-list-icon[data-tone="1"] { background: #eafaf0; color: #16a34a; }
.kb-list-icon[data-tone="2"] { background: #f0edff; color: #7c3aed; }
.kb-list-icon[data-tone="3"] { background: #fff7e8; color: #d97706; }
.kb-list-icon[data-tone="4"] { background: #fff0f0; color: #dc2626; }
.kb-list-icon[data-tone="5"] { background: #e9fbfb; color: #0891b2; }
.kb-list-copy strong {
  color: #08142f;
  display: block;
  font-size: 16px;
  font-weight: 850;
  margin-bottom: 4px;
}
.kb-list-copy small {
  color: #33435d;
  display: block;
  font-size: 12px;
  font-weight: 750;
  margin-bottom: 8px;
}
.kb-list-copy p {
  color: #41516d;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}
.kb-list-item em {
  color: #29436f;
  font-size: 34px;
  font-style: normal;
}
.kb-list-pagination {
  margin-top: 24px;
}
.kb-list-pagination a,
.kb-list-pagination span {
  background: #f4f7fc;
  border-color: transparent;
  min-width: 46px;
}
.kb-list-pagination a.active {
  background: var(--blue);
  box-shadow: 0 10px 20px rgba(21,93,252,.22);
}
.kb-list-side {
  display: grid;
  gap: 22px;
}
.kb-list-side .service-wrap {
  bottom: auto;
  display: grid;
  max-height: none;
  overflow: visible;
  padding: 0;
  position: static;
  right: auto;
  width: auto;
  z-index: auto;
}
.kb-list-side .service-message {
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(15,23,42,.08);
  min-height: 166px;
  padding: 28px 56px 28px 28px;
  transform: translateX(28px);
}
.kb-list-side .service-message strong {
  display: block;
  font-size: 16px;
  margin-bottom: 12px;
}
.kb-list-side .service-message p {
  font-size: 14px;
  line-height: 1.7;
}
.kb-list-help {
  border-radius: 8px;
  padding: 28px;
}
.kb-help-secondary {
  background: #f8fbff;
  border: 1px solid #dbe7f6;
  color: #08142f;
  display: flex;
  justify-content: center;
  min-height: 48px;
}
.kb-help-secondary span {
  background: transparent;
  color: #08142f;
  font-size: 16px;
  height: auto;
  width: auto;
}
.kb-article-page {
  background:
    radial-gradient(circle at 96% 12%, rgba(21, 93, 252, .10), transparent 24%),
    radial-gradient(circle at 2% 84%, rgba(21, 93, 252, .12), transparent 18%),
    linear-gradient(135deg, #f8fbff 0%, #eef6ff 48%, #f8fbff 100%);
}
.kb-article-page .topbar {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
}
.kb-article-shell {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  margin: 0 auto;
  max-width: 1580px;
  padding: 46px 28px 18px;
}
.kb-breadcrumb {
  align-items: center;
  color: #53627a;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 26px;
}
.kb-breadcrumb a:first-child {
  align-items: center;
  background: #e6f0ff;
  border-radius: 8px;
  color: var(--blue);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}
.kb-breadcrumb a { color: var(--blue); }
.kb-breadcrumb strong { color: #53627a; font-weight: 650; }
.kb-article-hero h1 {
  color: #08142f;
  font-size: clamp(36px, 4.6vw, 52px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.12;
  margin: 0 0 22px;
  max-width: 690px;
}
.kb-article-meta {
  align-items: center;
  color: #52617a;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-weight: 650;
  margin-bottom: 32px;
}
.kb-category-pill {
  background: #dfeaff;
  border-radius: 999px;
  color: var(--blue);
  padding: 9px 18px;
}
.kb-article-card,
.kb-help-card {
  background: rgba(255,255,255,.94);
  border: 1px solid #dbe7f6;
  border-radius: 14px;
  box-shadow: 0 22px 52px rgba(15, 23, 42, .10);
}
.kb-article-card {
  padding: 30px;
}
.kb-overview-panel {
  align-items: center;
  background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
  border: 1px solid #dbe7f6;
  border-radius: 8px;
  display: grid;
  gap: 22px;
  grid-template-columns: 72px minmax(0, 1fr);
  margin-bottom: 28px;
  padding: 22px 24px;
}
.kb-article-icon {
  align-items: center;
  background: linear-gradient(135deg, #5fa2ff, var(--blue));
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 32px;
  height: 58px;
  justify-content: center;
  width: 58px;
}
.kb-overview-copy h2,
.kb-detail-heading h2,
.kb-help-card h2 {
  color: #08142f;
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
}
.kb-overview-copy p {
  color: #3d4c68;
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}
.kb-detail-section {
  border-top: 1px solid #dbe7f6;
  padding-top: 26px;
}
.kb-detail-heading {
  align-items: center;
  color: #7c3aed;
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}
.kb-detail-heading span {
  align-items: center;
  background: #f3e8ff;
  border-radius: 8px;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}
.kb-detail-heading h2 {
  color: #7c3aed;
  margin: 0;
}
.kb-detail-content .reply-content {
  color: #3d4c68;
  font-size: 15px;
  line-height: 1.8;
}
.kb-detail-content .reply-content p:first-child { margin-top: 0; }
.kb-helpful-strip {
  align-items: center;
  background: linear-gradient(135deg, #faf5ff, #f8fbff);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
  padding: 16px;
}
.kb-helpful-strip strong { color: #08142f; }
.kb-helpful-strip input {
  border: 1px solid #d8e2ef;
  border-radius: 6px;
  flex: 1 1 220px;
  margin: 0;
  min-height: 38px;
}
.kb-helpful-strip button {
  background: #fff;
  border: 1px solid #d8e2ef;
  border-radius: 6px;
  color: #162033;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 36px;
  padding: 0 16px;
}
.kb-helpful-strip button:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.kb-article-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.kb-article-actions .btn {
  border-radius: 8px;
  font-size: 15px;
  min-height: 46px;
  padding: 0 26px;
}
.kb-ticket-btn {
  background: #fff;
  border: 1px solid #cddbef;
}
.kb-article-side {
  display: grid;
  gap: 18px;
  height: fit-content;
}
.kb-help-card {
  padding: 24px;
}
.kb-help-card p {
  color: var(--muted);
  font-size: 15px;
  margin: -4px 0 20px;
}
.kb-help-card a {
  align-items: center;
  border: 1px solid #dbe7f6;
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 2px 14px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  margin-top: 12px;
  min-height: 68px;
  padding: 10px 12px;
}
.kb-help-card a:hover {
  border-color: var(--blue);
  box-shadow: 0 10px 24px rgba(21, 93, 252, .10);
}
.kb-help-card a span {
  align-items: center;
  background: var(--blue);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 24px;
  font-weight: 750;
  grid-row: span 2;
  height: 44px;
  justify-content: center;
  width: 44px;
}
.kb-help-card a:nth-of-type(2) span { background: var(--success); }
.kb-help-card a strong { font-weight: 800; }
.kb-help-card a small { color: var(--muted); }
.kb-help-card a i {
  color: #1b2c4a;
  font-size: 28px;
  font-style: normal;
  grid-row: span 2;
}
.kb-help-card .kb-help-submit {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  display: flex;
  justify-content: center;
  min-height: 48px;
}
.kb-help-card .kb-help-submit span {
  background: transparent;
  font-size: 16px;
  height: auto;
  width: auto;
}
.kb-help-card .kb-help-submit strong { color: #fff; }
.kb-article-page .kb-article-side .service-wrap {
  bottom: auto;
  max-height: none;
  overflow: visible;
  padding: 0;
  position: static;
  right: auto;
  width: auto;
  z-index: auto;
}
.kb-article-page .kb-article-side .service-message {
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, .08);
  min-height: 118px;
  padding: 22px 44px 22px 22px;
  transform: translateX(28px);
}
.kb-article-page .kb-article-side .service-message strong {
  display: block;
  font-size: 15px;
  margin-bottom: 8px;
}
.kb-article-page .kb-article-side .service-message p {
  font-size: 14px;
  line-height: 1.65;
}
.tool-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tool-grid a {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  display: block;
  min-height: 112px;
  padding: 18px;
}
.tool-grid a:hover { border-color: var(--blue); transform: translateY(-1px); }
.tool-grid strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.tool-grid small { color: var(--muted); line-height: 1.45; }

.auth-shell {
  background: linear-gradient(135deg, #bfdbfe 0%, #eff6ff 48%, #ffffff 100%);
  display: grid;
  grid-template-columns: minmax(360px, 49%) minmax(420px, 51%);
  min-height: 100vh;
}
.auth-panel {
  align-content: center;
  display: grid;
  margin: 0 auto;
  max-width: 430px;
  padding: 42px 28px;
  width: 100%;
}
.auth-brand {
  align-items: center;
  color: #07122f;
  display: inline-flex;
  gap: 12px;
  font-weight: 850;
  margin-bottom: 64px;
}
.auth-brand span {
  align-items: center;
  background: var(--blue);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.auth-brand img {
  background: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  height: 42px;
  object-fit: contain;
  padding: 5px 8px;
  width: 132px;
}
.auth-copy h1 {
  color: #07122f;
  font-size: 30px;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 0 12px;
}
.auth-copy p {
  color: #334155;
  line-height: 1.65;
  margin: 0 0 28px;
}
.auth-panel label { font-size: 13px; font-weight: 750; margin-bottom: 18px; }
.input-icon {
  align-items: center;
  border: 1px solid #d6e0e4;
  border-radius: 10px;
  display: flex;
  gap: 10px;
  margin-top: 8px;
  min-height: 50px;
  padding: 0 12px;
}
.input-icon:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,93,252,.12); }
.input-icon i {
  color: #0a5962;
  flex: 0 0 auto;
  font-style: normal;
  font-weight: 900;
}
.input-icon input {
  border: 0;
  margin: 0;
  min-height: 48px;
  padding: 0;
}
.input-icon input:focus { outline: 0; }
.input-icon button {
  background: transparent;
  border: 0;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 0;
}
.auth-link-row { display: flex; justify-content: flex-end; margin: -4px 0 18px; }
.auth-link-row a { color: var(--blue); font-size: 12px; font-weight: 800; }
.auth-panel .btn {
  background: linear-gradient(135deg, #1683ff, #155dfc);
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(21,93,252,.22);
  min-height: 52px;
}
.auth-panel .btn:hover { background: linear-gradient(135deg, #0f72e5, #0f49d8); }
.auth-visual {
  align-items: center;
  background:
    radial-gradient(circle at 76% 18%, rgba(191,219,254,.30), transparent 28%),
    radial-gradient(circle at 14% 84%, rgba(96,165,250,.18), transparent 26%),
    linear-gradient(135deg, #07133f 0%, #0f2f75 50%, #155dfc 100%);
  color: #fff;
  display: flex;
  min-height: 100vh;
  padding: 8vw 7vw;
}
.auth-visual > div { max-width: 560px; }
.quote-mark {
  color: rgba(255,255,255,.78);
  display: block;
  font-size: 48px;
  font-weight: 900;
  height: 28px;
}
.auth-visual h2 {
  color: #fff;
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.18;
  margin: 24px 0;
}
.auth-visual p {
  color: rgba(255,255,255,.82);
  font-size: 17px;
  line-height: 1.75;
  margin: 0;
}
.auth-badges {
  border-top: 1px solid rgba(255,255,255,.26);
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 120px;
  padding-top: 28px;
}
.auth-badges span {
  color: rgba(255,255,255,.86);
  font-size: 13px;
  font-weight: 850;
}
.install-meta {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
}
.install-meta span {
  background: #f6fafb;
  border: 1px solid #dbe7ea;
  border-radius: 10px;
  color: #3f5660;
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
}
.install-meta strong { color: #071317; }

.support-public-page,
.support-public-page.kb-list-page,
.support-public-page.kb-article-page,
.support-public-page.submit-ticket-page {
  background: #bfdbfe;
}
.support-public-page.kb-list-page .topbar,
.support-public-page.kb-article-page .topbar {
  background: rgba(255,255,255,.96);
}
.support-public-page.kb-list-page .topbar nav a[href$="knowledgebase.php"] {
  background: transparent;
  border-radius: 0;
  color: var(--blue);
  padding: 0 2px;
}

@media (max-width: 900px) {
  .topbar { align-items: flex-start; flex-direction: column; padding: 18px; }
  .support-public-page .topbar {
    min-height: auto;
    padding: 14px 16px;
  }
  .support-public-page .brand img {
    height: 44px;
    width: 176px;
  }
  .support-public-page .topbar nav {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .support-public-page .topbar nav a {
    font-size: 13px;
    min-height: 38px;
    padding: 0 10px;
  }
  .support-public-footer {
    gap: 20px;
    grid-template-columns: 1fr;
    padding: 24px 18px 18px;
  }
  .support-public-footer > small { text-align: left; }
  .submit-ticket-hero {
    padding: 30px 18px 20px;
  }
  .submit-ticket-hero:before,
  .submit-ticket-hero:after {
    display: none;
  }
  .ticket-submit-card {
    margin: 8px 18px 24px;
    padding: 20px;
    width: auto;
  }
  .card.narrow,
  .kb-list-card {
    width: 100%;
  }
  .support-home-page .support-home-hero {
    min-height: auto;
    padding: 38px 18px 32px;
  }
  .support-home-page .eyebrow {
    font-size: clamp(30px, 10vw, 44px);
  }
  .support-home-page h1 { font-size: clamp(22px, 7vw, 28px); }
  .support-home-page .hero p { font-size: 15px; }
  .support-home-page .portal-card {
    grid-template-columns: 68px minmax(0, 1fr) 34px;
    min-height: 128px;
    padding: 18px 16px;
  }
  .support-home-page .portal-card span {
    font-size: 38px;
    height: 58px;
    width: 58px;
  }
  .support-home-page .portal-card strong { font-size: 20px; }
  .support-home-page .portal-card small { font-size: 14px; }
  .support-home-page .portal-card em {
    font-size: 24px;
    height: 34px;
    width: 34px;
  }
  .support-home-page .footer {
    min-height: 74px;
    padding: 12px 18px;
  }
  .support-home-footer img {
    height: 34px;
    width: 34px;
  }
  .support-home-footer strong { font-size: 13px; }
  .service-wrap { bottom: 14px; right: 14px; width: calc(100vw - 28px); }
  .kb-list-hero-inner { min-height: auto; padding: 38px 18px; }
  .kb-hero-art { display: none; }
  .kb-list-shell { grid-template-columns: 1fr; margin-top: 0; padding: 18px; }
  .kb-list-card { padding: 18px; }
  .kb-search-form { grid-template-columns: 1fr; }
  .kb-search-form .btn { width: 100%; }
  .kb-list-item { grid-template-columns: 52px minmax(0, 1fr) 18px; min-height: auto; padding: 18px; }
  .kb-list-icon { border-radius: 16px; height: 50px; width: 50px; }
  .kb-list-side .service-message { min-height: auto; }
  .kb-article-shell { gap: 24px; grid-template-columns: 1fr; padding: 34px 18px 8px; }
  .kb-article-hero h1 { font-size: clamp(32px, 10vw, 44px); }
  .kb-article-card { padding: 24px; }
  .kb-overview-panel { grid-template-columns: 1fr; }
  .kb-article-icon { height: 72px; width: 72px; }
  .kb-article-actions { display: grid; }
  .kb-article-actions .btn { width: 100%; }
  .hero-actions, .grid.two, .grid.three, .stats, .ticket-meta { grid-template-columns: 1fr; }
  .page-toolbar { align-items: flex-start; flex-direction: column; }
  .filter-grid, .compact-filter, .split-panel { grid-template-columns: 1fr; }
  .filter-actions { width: 100%; }
  .filter-actions .btn { flex: 1; }
  .sidebar { max-height: none; position: static; width: 100%; }
  .sidebar nav { max-height: none; overflow: visible; }
  .admin-main { margin-left: 0; padding: 18px; }
  .auth-shell { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .dashboard-hero, .report-hero, .feature-intro { align-items: flex-start; flex-direction: column; padding: 24px; }
  .kb-admin-page .kb-admin-hero-art { display: none; }
  .kb-admin-form-card,
  .kb-admin-table-card { padding: 20px; }
  .kb-admin-table-card .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .kb-admin-table-tools {
    display: grid;
    width: 100%;
  }
  .kb-admin-table-tools input,
  .kb-admin-table-tools select {
    width: 100%;
  }
  .report-filter { grid-template-columns: 1fr; min-width: 100%; }
  .auth-panel { max-width: 560px; padding: 28px 20px; }
  .auth-brand { margin-bottom: 38px; }
  .auth-visual { min-height: auto; padding: 42px 24px; }
  .auth-badges { margin-top: 36px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.trio-ai .visually-hidden {
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}
