/* CQ Support: uses the CQ Help Center theme tokens (--hc-*). */
.cqs { display: flex; flex-direction: column; gap: 22px; max-width: 980px; }
.cqs--agent { max-width: 1160px; }
.cqs [hidden] { display: none !important; }
.cqs-h2 { margin: 0; font-family: var(--hc-display); font-weight: 600; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.05; text-transform: uppercase; color: var(--hc-t1); }
.cqs-h2--sm { font-size: 24px; margin-top: 10px; }
.cqs-muted { color: var(--hc-t2); }
.cqs-small { font-size: 14px; }
.cqs-meta { margin: 0; color: var(--hc-t2); font-size: 15px; }
.cqs-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cqs-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.cqs-head-row .hc-eyebrow { margin-bottom: 8px; }
.cqs-back { font-family: var(--hc-mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }


/* Panels */
.cqs-panel { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 4px; background: var(--hc-card); border: 1px solid var(--hc-edge); border-top: 4px solid var(--hc-green); }
.cqs-panel p { margin: 0; }
.cqs-panel h3 { margin: 0; font-family: var(--hc-display); font-weight: 600; font-size: 20px; text-transform: uppercase; }
.cqs-panel ul { margin: 0; padding-left: 18px; color: var(--hc-t2); }
.cqs-panel--gold { border-top-color: var(--hc-gold); flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }

/* Steps */
.cqs-steps-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: cqsstep; }
.cqs-steps-bar li { counter-increment: cqsstep; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--hc-black-2); border: 1px solid var(--hc-edge); color: var(--hc-t2); font-weight: 700; font-size: 14px; }
.cqs-steps-bar li::before { content: counter(cqsstep); display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; background: var(--hc-edge); color: var(--hc-t1); font-size: 12px; }
.cqs-steps-bar li.is-active { border-color: var(--hc-gold); color: var(--hc-t1); }
.cqs-steps-bar li.is-active::before { background: var(--hc-gold); color: var(--hc-ink); }
.cqs-step { display: none; flex-direction: column; gap: 18px; }
.cqs-step.is-active { display: flex; }

.cqs-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.cqs-choice { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 18px; border-radius: 4px; cursor: pointer; background: var(--hc-card); border: 1px solid var(--hc-edge); border-left: 4px solid var(--hc-green); color: var(--hc-t1); font-family: var(--hc-ui); }
.cqs-choice b { font-size: 17px; }
.cqs-choice span { color: var(--hc-t2); font-size: 15px; }
.cqs-choice:hover { border-color: var(--hc-green); }

.cqs-suggest { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cqs-suggest a { display: block; padding: 16px 18px; border-radius: 4px; background: var(--hc-card); border: 1px solid var(--hc-edge); border-left: 4px solid var(--hc-gold); text-decoration: none; font-weight: 800; }

/* Forms */
.cqs-form, .cqs-reply { display: flex; flex-direction: column; gap: 16px; }
.cqs-reply { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--hc-edge); }
.cqs-narrow { max-width: 520px; }
.cqs label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; color: var(--hc-t1); }
.cqs input[type="text"], .cqs input[type="email"], .cqs select, .cqs textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 4px; border: 1px solid var(--hc-edge); background: var(--hc-black-2); color: var(--hc-t1); font-family: var(--hc-ui); font-size: 16px; }
.cqs textarea { resize: vertical; }
.cqs-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cqs-attach small { font-weight: 400; color: var(--hc-t2); }
.cqs-inline { flex-direction: row !important; align-items: center; gap: 10px !important; }
.cqs-inline select { width: auto; min-height: 40px; }
.cqs-signed { margin: 0; padding: 14px 16px; border-radius: 4px; background: var(--hc-forest); border-left: 4px solid var(--hc-green); color: var(--hc-mist); }
.cqs-link-btn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--hc-t2); font-family: var(--hc-ui); font-size: 15px; text-decoration: underline; }
.cqs-link-btn:hover { color: var(--hc-gold); }
.cqs-done { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 4px; background: var(--hc-emerald); border-bottom: 4px solid var(--hc-gold); }
.cqs-done p { margin: 0; color: var(--hc-mist); }

/* Badges */
.cqs-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-family: var(--hc-mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.cqs-badge--new { background: #34d399; color: #04140c; }
.cqs-badge--open { background: #60a5fa; color: #06162c; }
.cqs-badge--progress { background: var(--hc-gold); color: var(--hc-ink); }
.cqs-badge--waiting { background: #f59e0b; color: #1f1300; }
.cqs-badge--resolved { background: var(--hc-emerald); color: var(--hc-mint); }
.cqs-badge--closed { background: #2a2f2c; color: var(--hc-t2); }
.cqs-pri { font-weight: 800; font-size: 14px; }
.cqs-pri--urgent { color: #f87171; }
.cqs-pri--high { color: #f59e0b; }
.cqs-pri--medium { color: var(--hc-t1); }
.cqs-pri--low { color: var(--hc-t2); }

/* Lists */
.cqs-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cqs-list__item { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 4px; background: var(--hc-card); border: 1px solid var(--hc-edge); border-left: 4px solid var(--hc-green); color: var(--hc-t1); text-decoration: none; }
.cqs-list__item:hover { border-color: var(--hc-green); color: var(--hc-t1); }
.cqs-list__num { font-family: var(--hc-mono); font-weight: 700; color: var(--hc-gold); }
.cqs-list__main { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cqs-list__main small { color: var(--hc-t2); font-size: 14px; }

/* Thread */
.cqs-thread { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.cqs-msg { padding: 16px 18px; border-radius: 4px; background: var(--hc-card); border: 1px solid var(--hc-edge); border-left: 4px solid var(--hc-t2); }
.cqs-msg--agent { border-left-color: var(--hc-green); background: #0d1a14; }
.cqs-msg--internal { border-left-color: var(--hc-gold); background: rgba(226,197,120,.07); border-style: dashed; }
.cqs-msg__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.cqs-msg__head span { font-family: var(--hc-mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hc-green); }
.cqs-msg--internal .cqs-msg__head span { color: var(--hc-gold); }
.cqs-msg__head time { margin-left: auto; color: var(--hc-t2); font-size: 13px; }
.cqs-msg p { margin: 0; color: var(--hc-t1); }
.cqs-file { display: inline-block; margin-top: 10px; padding: 6px 12px; border-radius: 4px; background: var(--hc-black-2); border: 1px solid var(--hc-edge); color: var(--hc-t2); font-size: 14px; }

/* FAQ */
.cqs-faq { display: flex; flex-direction: column; gap: 8px; }
.cqs-faq details { border-radius: 4px; background: var(--hc-card); border: 1px solid var(--hc-edge); border-left: 4px solid var(--hc-green); }
.cqs-faq summary { cursor: pointer; padding: 16px 18px; font-weight: 800; list-style-position: inside; }
.cqs-faq details p { margin: 0; padding: 0 18px 18px; color: var(--hc-t2); }

/* Agent desk */
.cqs-agentnav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; border-radius: 4px; background: var(--hc-forest); }
.cqs-agentnav span { margin-right: 10px; padding-left: 6px; font-family: var(--hc-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--hc-mint); }
.cqs-agentnav a { padding: 8px 14px; border-radius: 4px; color: var(--hc-mist); text-decoration: none; font-weight: 700; }
.cqs-agentnav a.is-active { background: var(--hc-gold); color: var(--hc-ink); }
.cqs-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.cqs-stats div { display: flex; flex-direction: column; padding: 16px; border-radius: 4px; background: var(--hc-card); border: 1px solid var(--hc-edge); border-top: 4px solid var(--hc-green); }
.cqs-stats b { font-family: var(--hc-display); font-size: 32px; font-weight: 500; color: var(--hc-green); }
.cqs-stats span { color: var(--hc-t2); font-size: 14px; }
.cqs-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.cqs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cqs-chips button { padding: 8px 14px; border-radius: 999px; cursor: pointer; background: var(--hc-black-2); border: 1px solid var(--hc-edge); color: var(--hc-t2); font-family: var(--hc-ui); font-weight: 700; font-size: 14px; }
.cqs-chips button.is-active { background: var(--hc-gold); border-color: var(--hc-gold); color: var(--hc-ink); }
.cqs-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cqs-table th { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--hc-gold); font-family: var(--hc-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--hc-t2); }
.cqs-table td { padding: 12px; border-bottom: 1px solid var(--hc-edge); vertical-align: top; }
.cqs-table td a { font-weight: 800; text-decoration: none; display: block; }
.cqs-table td small { color: var(--hc-t2); font-size: 13px; }
.cqs-table tbody tr:hover { background: var(--hc-black-2); }
.cqs-board { display: grid; grid-template-columns: repeat(6, minmax(170px, 1fr)); gap: 10px; overflow-x: auto; }
.cqs-col { display: flex; flex-direction: column; gap: 8px; min-height: 160px; padding: 10px; border-radius: 4px; background: var(--hc-black-2); border: 1px solid var(--hc-edge); }
.cqs-col h3 { margin: 0 0 4px; font-family: var(--hc-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--hc-t2); }
.cqs-cardlet { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 4px; background: var(--hc-card); border-top: 3px solid var(--hc-green); color: var(--hc-t1); text-decoration: none; font-size: 14px; }
.cqs-cardlet small, .cqs-cardlet span { color: var(--hc-t2); font-size: 12px; }
.cqs-agent-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.cqs-side { display: flex; flex-direction: column; gap: 14px; }
.cqs-panel--player { border-top-color: var(--hc-gold); }
.cqs-panel dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 14px; }
.cqs-panel dt { color: var(--hc-t2); }
.cqs-panel dd { margin: 0; color: var(--hc-t1); }
.cqs-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }

@media (max-width: 900px) {
  .cqs-agent-grid { grid-template-columns: 1fr; }
  .cqs-table thead { display: none; }
  .cqs-table, .cqs-table tbody, .cqs-table tr, .cqs-table td { display: block; width: 100%; }
  .cqs-table tr { padding: 10px 0; border-bottom: 1px solid var(--hc-edge); }
  .cqs-table td { border: 0; padding: 4px 0; }
}

/* Real build additions */
.cqs-notice { margin: 0; padding: 12px 16px; border-radius: 4px; font-weight: 700; }
.cqs-notice--ok { background: var(--hc-forest); border-left: 4px solid var(--hc-green); color: var(--hc-mist); }
.cqs-notice--err { background: rgba(248,113,113,.1); border-left: 4px solid #f87171; color: #fecaca; }
.cqs-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cqs-chips a { padding: 8px 14px; border-radius: 999px; background: var(--hc-black-2); border: 1px solid var(--hc-edge); color: var(--hc-t2); font-weight: 700; font-size: 14px; text-decoration: none; }
.cqs-chips a.is-active { background: var(--hc-gold); border-color: var(--hc-gold); color: var(--hc-ink); }
.cqs-search { display: flex; flex-wrap: wrap; gap: 10px; }
.cqs-search input[type="search"] { flex: 1 1 280px; width: auto; min-height: 48px; padding: 10px 14px; border-radius: 4px; border: 1px solid var(--hc-edge); background: var(--hc-black-2); color: var(--hc-t1); font-size: 16px; }
.cqs-search select { width: auto; }
.cqs-sys { padding: 4px 18px; color: var(--hc-t2); font-size: 13px; font-family: var(--hc-mono); }
.cqs-sys time { margin-left: 8px; }
.cqs-via { color: var(--hc-t2) !important; }
.cqs-msg__body p { margin: 0 0 8px; color: var(--hc-t1); }
.cqs-msg__body p:last-child { margin: 0; }
.cqs-file { text-decoration: none; }
.cqs-file::before { content: "\1F4CE  "; }
.cqs-faq__a { padding: 0 18px 18px; color: var(--hc-t2); }
.cqs-faq__a p { margin: 0 0 10px; }
.cqs-cardlet--urgent { border-top-color: #f87171; }
.cqs-cardlet--high { border-top-color: #f59e0b; }
.cqs-rowset { display: grid; grid-template-columns: 2fr 2fr 1.5fr 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--hc-edge); }
.cqs-rowset--wide { grid-template-columns: 1fr 3fr; }
.cqs-check { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 600 !important; }
.cqs-check input { width: auto; min-height: 0; }
.cqs-settings-form code { font-size: 13px; background: var(--hc-black-2); padding: 2px 6px; border-radius: 4px; word-break: break-all; }
.cqs-panel--gold-top { border-top-color: var(--hc-gold); }
.cqs input[type="password"], .cqs input[type="number"], .cqs input[type="search"] { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 4px; border: 1px solid var(--hc-edge); background: var(--hc-black-2); color: var(--hc-t1); font-size: 16px; }
.cqs input[type="file"] { color: var(--hc-t2); }
@media (max-width: 900px) { .cqs-rowset, .cqs-rowset--wide { grid-template-columns: 1fr; } }
.cqs-reply.is-internal textarea { border-color: var(--hc-gold); background: rgba(226,197,120,.06); }
.cqs label > .cqs-badge { align-self: flex-start; }
