/*
 * Andy Web Service client area redesign, second batch (2026-11-28): services, service page, billing,
 * account, ticket view, news, knowledgebase, downloads, network status, contact.
 * Builds on andy-ui.css (same tokens and components: .aw-card, .aw-chip, .aw-btn, .aw-seg …) and is
 * loaded right after it by includes/hooks/andy_redesign.php. Scoped to html.andy-rd like andy-ui.css.
 * .aw-lagom restyles Lagom's own markup (forms, tables, tabs, alerts) where we keep Lagom's page inside
 * our frame (andy/shell.tpl, module output on the service page).
 */

/* ---------- page furniture ---------- */
html.andy-rd .aw .aw-head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
html.andy-rd .aw .aw-head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13.5px; color: var(--aw-fg-2); }
html.andy-rd .aw .aw-head-meta .aw-mono { font-size: 13px; }
html.andy-rd .aw .aw-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
html.andy-rd .aw .aw-title { overflow-wrap: anywhere; }
html.andy-rd .aw .aw-btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
html.andy-rd .aw .aw-btn-ghost { background: none; border-color: transparent; color: var(--aw-fg-2); }
html.andy-rd .aw .aw-btn-danger { background: var(--aw-surface); border-color: oklch(85% 0.06 25); color: oklch(48% 0.16 25); }
@media (hover: hover) and (pointer: fine) {
  html.andy-rd .aw .aw-btn-ghost:hover { background: var(--aw-surface-muted); color: var(--aw-fg); }
  html.andy-rd .aw .aw-btn-danger:hover { background: var(--aw-danger-subtle); color: oklch(45% 0.16 25); }
}
html.andy-rd .aw .aw-btn[disabled], html.andy-rd .aw .aw-btn.is-disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.aw-stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.aw-stack-sm { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.aw-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.aw-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
html.andy-rd .aw .aw-card-head h2 { font-size: 18px; }
html.andy-rd .aw .aw-card-head h2.is-sm, html.andy-rd .aw h2.aw-h-sm { font-size: 16px; }
.aw-sub { font-size: 13px; color: var(--aw-fg-2); }
.aw-num { font-variant-numeric: tabular-nums; }
.aw-sep { color: var(--aw-border-strong); }
.aw-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--aw-surface-muted); color: var(--aw-fg-2); font-size: 13px; line-height: 1.5; }
.aw-note .aw-svg { margin-top: 2px; }
.aw-note.is-info { background: var(--aw-accent-subtle); color: var(--aw-accent-strong); }
.aw-note.is-ok { background: var(--aw-success-subtle); color: oklch(38% 0.1 155); }
.aw-note.is-warn { background: var(--aw-warn-subtle); color: oklch(40% 0.1 70); }
.aw-note.is-danger { background: var(--aw-danger-subtle); color: oklch(44% 0.15 25); }
.aw-banner.is-info { background: var(--aw-accent-subtle); border-color: color-mix(in oklab, var(--aw-accent) 22%, transparent); }
.aw-banner.is-info .aw-banner-icon { color: var(--aw-accent); }
.aw-banner.is-ok { background: var(--aw-success-subtle); border-color: oklch(88% 0.06 155); }
.aw-banner.is-ok .aw-banner-icon { color: oklch(42% 0.11 155); }

/* key / value lists */
.aw-kvs { display: flex; flex-direction: column; }
.aw-kvs > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--aw-border-subtle); font-size: 13.5px; }
.aw-kvs > div:first-child { border-top: 0; padding-top: 2px; }
.aw-kvs dt, .aw-kvs .k { color: var(--aw-fg-2); font-weight: 400; flex: none; max-width: 48%; }
.aw-kvs dd, .aw-kvs .v { margin: 0; font-weight: 500; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.aw-kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 4px 24px; }
.aw-kv-grid > div { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-top: 1px solid var(--aw-border-subtle); min-width: 0; }
.aw-kv-grid .k { font-size: 12.5px; color: var(--aw-fg-3); }
.aw-kv-grid .v { font-weight: 500; font-size: 14px; overflow-wrap: anywhere; }

/* the big number on billing cards */
.aw-figure { font-family: "AW Geist", "AW Inter", sans-serif; font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.aw-figure-sm { font-size: 26px; }

/* ---------- section nav (account pages) ---------- */
.aw-subnav { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--aw-surface-muted); border: 1px solid var(--aw-border-subtle); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.aw-subnav::-webkit-scrollbar { display: none; }
html.andy-rd .aw .aw-subnav > a { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 36px; padding: 0 14px; border-radius: 10px; font-size: 13.5px; font-weight: 500; color: var(--aw-fg-2); text-decoration: none; white-space: nowrap; transition: background-color 180ms var(--aw-ease), color 180ms ease, box-shadow 180ms ease; }
html.andy-rd .aw .aw-subnav > a.is-on { background: var(--aw-surface); color: var(--aw-fg); box-shadow: var(--aw-shadow-raised); }
@media (hover: hover) and (pointer: fine) { html.andy-rd .aw .aw-subnav > a:not(.is-on):hover { color: var(--aw-fg); background: rgb(255 255 255 / 0.6); } }

/* ---------- toolbars, filters, search ---------- */
.aw-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.aw-search { position: relative; flex: 0 1 260px; min-width: 180px; }
html.andy-rd .aw .aw-search .aw-input { min-height: 40px; padding-left: 38px; border-radius: 12px; }
.aw-search > .aw-svg { position: absolute; left: 13px; top: 50%; margin-top: -8px; color: var(--aw-fg-3); pointer-events: none; }
html.andy-rd .aw .aw-seg .aw-count { font-size: 12px; color: var(--aw-fg-3); font-variant-numeric: tabular-nums; }
html.andy-rd .aw .aw-seg > .is-on .aw-count { color: var(--aw-fg-2); }
@media (max-width: 640px) {
  .aw-toolbar > .aw-seg, .aw-toolbar > .aw-search { flex: 1 1 100%; }
  html.andy-rd .aw .aw-toolbar > .aw-seg { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  html.andy-rd .aw .aw-toolbar > .aw-seg > * { flex: none; }
}
[data-aw-item][hidden] { display: none !important; }

/* ---------- list rows (services, invoices, emails, quotes) ---------- */
.aw-list { display: flex; flex-direction: column; }
.aw-li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 0; }
.aw-list > .aw-li:not([hidden]) ~ .aw-li:not([hidden]) { border-top: 1px solid var(--aw-border-subtle); }
.aw-li-main { flex: 1 1 220px; min-width: 0; display: flex; align-items: center; gap: 14px; }
.aw-li-main > div { min-width: 0; }
.aw-li-title { font-weight: 600; overflow-wrap: anywhere; }
html.andy-rd .aw a.aw-li-title { color: var(--aw-fg); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { html.andy-rd .aw a.aw-li-title:hover { color: var(--aw-accent); } }
.aw-li-sub { font-size: 13px; color: var(--aw-fg-2); overflow-wrap: anywhere; }
.aw-li-col { flex: 0 0 auto; display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; min-width: 96px; }
.aw-li-col .k { font-size: 12px; color: var(--aw-fg-3); }
.aw-li-col .v { font-weight: 500; font-variant-numeric: tabular-nums; }
.aw-li-traffic { flex: 1 1 170px; max-width: 260px; display: flex; flex-direction: column; gap: 6px; }
.aw-li-end { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; margin-left: auto; }
.aw-li-chip { flex: 0 0 auto; min-width: 104px; }
@media (max-width: 720px) {
  .aw-li { gap: 10px 16px; }
  .aw-li-main { flex-basis: 100%; }
  .aw-li-col { min-width: 0; }
  .aw-li-traffic { max-width: none; flex-basis: 100%; order: 5; }
  .aw-li-chip { min-width: 0; }
  .aw-li-end { margin-left: auto; }
}
.aw-empty .aw-btn { margin-top: 4px; }
.aw-empty p.aw-sub { max-width: 420px; }

/* ---------- stat tiles that are not links ---------- */
.aw-tile { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; border-radius: 18px; }
.aw-tile .aw-stat-v { font-size: 26px; }

/* ---------- tabs (service page) ---------- */
.aw-tabpanel[hidden] { display: none !important; }

/* ---------- service page ---------- */
.aw-svc-ident { display: flex; align-items: center; gap: 16px; min-width: 0; }
.aw-svc-ident .aw-ic { width: 52px; height: 52px; border-radius: 16px; }
.aw-svc-ident .aw-ic .aw-svg { width: 24px; height: 24px; stroke-width: 1.6; }
.aw-actions-list { display: flex; flex-direction: column; }
html.andy-rd .aw .aw-action { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 4px; border: 0; border-top: 1px solid var(--aw-border-subtle); background: none; color: var(--aw-fg); font: 500 13.5px/1.3 "AW Inter", Inter, system-ui, sans-serif; text-align: left; text-decoration: none; cursor: pointer; transition: color 150ms ease; }
html.andy-rd .aw .aw-action:first-child { border-top: 0; }
html.andy-rd .aw .aw-action > * { pointer-events: none; }
html.andy-rd .aw .aw-action .aw-action-ic { width: 32px; height: 32px; flex: none; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--aw-surface-muted); color: var(--aw-fg-2); transition: background-color 150ms ease, color 150ms ease; }
html.andy-rd .aw .aw-action .aw-action-label { flex: 1; min-width: 0; }
html.andy-rd .aw .aw-action .aw-action-go { color: var(--aw-fg-3); }
html.andy-rd .aw .aw-action.is-danger { color: oklch(48% 0.16 25); }
html.andy-rd .aw .aw-action.disabled, html.andy-rd .aw .aw-action[disabled] { opacity: 0.5; cursor: progress; }
html.andy-rd .aw .aw-action .loading, html.andy-rd .aw .aw-action .w-hidden { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.andy-rd .aw .aw-action:hover { color: var(--aw-accent); }
  html.andy-rd .aw .aw-action:hover .aw-action-ic { background: var(--aw-accent-subtle); color: var(--aw-accent); }
  html.andy-rd .aw .aw-action.is-danger:hover { color: oklch(45% 0.17 25); }
  html.andy-rd .aw .aw-action.is-danger:hover .aw-action-ic { background: var(--aw-danger-subtle); color: oklch(48% 0.16 25); }
}
.aw-usage { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 28px; }
.aw-usage > div { display: flex; flex-direction: column; gap: 8px; }
.aw-usage-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }

/* VirtFusion overview (module template) drawn as our cards */
html.andy-rd .aw .aw-vf { display: flex; flex-direction: column; gap: 20px; }
html.andy-rd .aw .aw-vf > link, html.andy-rd .aw .aw-vf > script { display: none; }
html.andy-rd .aw .aw-vf .panel.card { margin: 0 !important; background: var(--aw-surface); border: 1px solid var(--aw-border); border-radius: 22px; box-shadow: var(--aw-shadow-resting); overflow: hidden; }
html.andy-rd .aw .aw-vf .panel.card > .panel-heading { padding: 20px 24px 0; background: none; border: 0; }
html.andy-rd .aw .aw-vf .panel.card > .panel-heading .panel-title { font-family: "AW Geist", "AW Inter", sans-serif; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--aw-fg); text-transform: none; }
html.andy-rd .aw .aw-vf .panel.card > .panel-body { padding: 14px 24px 22px !important; font-size: 14px; color: var(--aw-fg); }
html.andy-rd .aw .aw-vf .panel.card.aw-vf-dup { display: none; }
html.andy-rd .aw .aw-vf #vf-server-info .row { margin: 0; display: block; }
html.andy-rd .aw .aw-vf #vf-server-info .col-12 { padding: 0; }
html.andy-rd .aw .aw-vf #vf-server-info .col-12 > .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 28px; }
html.andy-rd .aw .aw-vf #vf-server-info .col-md-6 { width: auto; max-width: none; padding: 0; flex: none; }
html.andy-rd .aw .aw-vf #vf-server-info .row.p-1 { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 0 !important; border-top: 1px solid var(--aw-border-subtle); }
html.andy-rd .aw .aw-vf #vf-server-info .col-md-6:first-child .row.p-1:first-child, html.andy-rd .aw .aw-vf #vf-server-info .col-md-6 .row.p-1:first-child { border-top: 0; }
@media (max-width: 767px) { html.andy-rd .aw .aw-vf #vf-server-info .col-md-6 + .col-md-6 .row.p-1:first-child { border-top: 1px solid var(--aw-border-subtle); } }
html.andy-rd .aw .aw-vf #vf-server-info [class*="col-"][class*="-4"] { width: auto; max-width: none; flex: none; padding: 0; text-align: left !important; color: var(--aw-fg-2); font-weight: 400; font-size: 13.5px; }
html.andy-rd .aw .aw-vf #vf-server-info [class*="col-"][class*="-8"] { width: auto; max-width: none; flex: 1 1 auto; padding: 0; text-align: right; font-weight: 500; font-size: 13.5px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
html.andy-rd .aw .aw-vf #vf-server-info-loader { min-height: 72px; color: var(--aw-accent); }
html.andy-rd .aw .aw-vf .alert { margin: 0; border-radius: 14px; border: 0; padding: 12px 14px; font-size: 13.5px; }
html.andy-rd .aw .aw-vf .alert-warning { background: var(--aw-warn-subtle); color: oklch(40% 0.1 70); }
html.andy-rd .aw .aw-vf .alert-danger { background: var(--aw-danger-subtle); color: oklch(44% 0.15 25); }
html.andy-rd .aw .aw-vf .alert-success { background: var(--aw-success-subtle); color: oklch(38% 0.1 155); }
html.andy-rd .aw .aw-vf .panel-body p { margin: 0 0 14px; color: var(--aw-fg-2); font-size: 13.5px; line-height: 1.55; }
html.andy-rd .aw .aw-vf .panel-body p.vf-small { margin: 0; font-size: 12.5px; }
html.andy-rd .aw .aw-vf .panel-body .row { margin: 0; }
html.andy-rd .aw .aw-vf .panel-body .col-12 { padding: 0; }
html.andy-rd .aw .aw-vf .panel-body hr { margin: 18px 0; border-color: var(--aw-border-subtle); }
html.andy-rd .aw .aw-vf .btn.btn-primary { display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--aw-accent); background: var(--aw-accent); color: #fff; font: 500 14px/1 "AW Inter", Inter, system-ui, sans-serif; text-transform: none !important; letter-spacing: 0; box-shadow: none; transition: background-color 150ms ease, transform 120ms ease; }
html.andy-rd .aw .aw-vf .btn.btn-primary:active { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) { html.andy-rd .aw .aw-vf .btn.btn-primary:hover { background: var(--aw-accent-strong); border-color: var(--aw-accent-strong); } }
html.andy-rd .aw .aw-vf .vf-spinner-margin { margin-right: 4px; }
html.andy-rd .aw .aw-vf .panel-body > .row:not(#vf-server-info) > .col-lg-6 .row.p-2 { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0 !important; border-top: 1px solid var(--aw-border-subtle); }

/* Traffic panel (includes/hooks/andy_traffic.php) inside our page */
html.andy-rd .aw .hrk-tr-wrap { margin: 0; }
html.andy-rd .aw .hrk-tr.panel { margin: 0 !important; background: var(--aw-surface); border: 1px solid var(--aw-border); border-radius: 22px; box-shadow: var(--aw-shadow-resting); }
html.andy-rd .aw .hrk-tr .hrk-tr-heading { padding: 20px 24px 0; background: none; border: 0; }
html.andy-rd .aw .hrk-tr .hrk-tr-heading .panel-title { font-family: "AW Geist", "AW Inter", sans-serif; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--aw-fg); }
html.andy-rd .aw .hrk-tr .hrk-tr-period { opacity: 1; color: var(--aw-fg-3); font-size: 12.5px; }
html.andy-rd .aw .hrk-tr .panel-body { padding: 16px 24px 22px; }
html.andy-rd .aw .hrk-tr-used { font-family: "AW Geist", "AW Inter", sans-serif; font-size: 30px; letter-spacing: -0.03em; color: var(--aw-fg); }
html.andy-rd .aw .hrk-tr-of { opacity: 1; color: var(--aw-fg-2); }
html.andy-rd .aw .hrk-tr-sync { opacity: 1; color: var(--aw-fg-3); margin-top: 4px; }
html.andy-rd .aw .hrk-tr-usage { margin-bottom: 12px; }
html.andy-rd .aw .hrk-tr-bar { height: 8px; background: var(--aw-surface-muted); }
html.andy-rd .aw .hrk-tr-fill { background: var(--aw-accent); }
html.andy-rd .aw .hrk-tr[data-state=warn] .hrk-tr-fill { background: oklch(66% 0.15 60); }
html.andy-rd .aw .hrk-tr[data-state=over] .hrk-tr-fill { background: oklch(58% 0.19 25); }
html.andy-rd .aw .hrk-tr-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
html.andy-rd .aw .hrk-tr-facts li { min-width: 0; padding: 12px 14px; border-radius: 14px; background: var(--aw-surface-muted); gap: 4px; }
html.andy-rd .aw .hrk-tr-facts span { opacity: 1; color: var(--aw-fg-3); font-size: 12.5px; }
html.andy-rd .aw .hrk-tr-facts b { font-size: 14px; font-weight: 600; color: var(--aw-fg); }
html.andy-rd .aw .hrk-tr-alert { border-radius: 14px; background: var(--aw-danger-subtle); color: oklch(44% 0.15 25); padding: 12px 14px; }
html.andy-rd .aw .hrk-tr-buy { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--aw-border-subtle); }
html.andy-rd .aw .hrk-tr-buy-head b { font-family: "AW Geist", "AW Inter", sans-serif; font-weight: 600; font-size: 15px; }
html.andy-rd .aw .hrk-tr-buy-head small { opacity: 1; color: var(--aw-fg-2); font-size: 12.5px; margin-top: 4px; }
html.andy-rd .aw .hrk-tr-packs { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
html.andy-rd .aw .hrk-tr-pack { padding: 14px; border: 1px solid var(--aw-border); border-radius: 16px; background: var(--aw-surface); }
@media (hover: hover) and (pointer: fine) { html.andy-rd .aw .hrk-tr-pack:not(.is-sold):hover { border-color: color-mix(in oklab, var(--aw-accent) 40%, var(--aw-border)); box-shadow: var(--aw-shadow-raised); } }
html.andy-rd .aw .hrk-tr-pack-size { font-family: "AW Geist", "AW Inter", sans-serif; font-size: 18px; letter-spacing: -0.01em; }
html.andy-rd .aw .hrk-tr-pack-price { opacity: 1; color: var(--aw-fg-2); margin-bottom: 10px; }
html.andy-rd .aw .hrk-tr-btn.btn { min-height: 36px; border-radius: 10px; font: 500 13.5px/1 "AW Inter", Inter, system-ui, sans-serif; text-transform: none; box-shadow: none; }
html.andy-rd .aw .hrk-tr-btn.btn-primary { background: var(--aw-accent); border-color: var(--aw-accent); color: #fff; }
html.andy-rd .aw .hrk-tr-btn.btn-default { background: var(--aw-surface-muted); border-color: var(--aw-border); color: var(--aw-fg-2); }
@media (max-width: 480px) {
  html.andy-rd .aw .hrk-tr .panel-body { padding: 14px 18px 18px; }
  html.andy-rd .aw .hrk-tr .hrk-tr-heading { padding: 18px 18px 0; }
  html.andy-rd .aw .hrk-tr-facts { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  html.andy-rd .aw .hrk-tr-facts li { flex-direction: row; justify-content: space-between; }
}

/* ---------- invoice ---------- */
.aw-inv-parties { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 28px; }
.aw-inv-parties h3 { font-size: 12.5px !important; font-weight: 500 !important; color: var(--aw-fg-3) !important; letter-spacing: 0 !important; margin-bottom: 6px !important; font-family: "AW Inter", Inter, sans-serif !important; }
.aw-inv-parties address { margin: 0; font-style: normal; font-size: 13.5px; line-height: 1.6; color: var(--aw-fg); overflow-wrap: anywhere; }
html.andy-rd .aw .aw-items { width: 100%; margin: 0; border-collapse: collapse; font-size: 14px; background: none; }
html.andy-rd .aw .aw-items th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--aw-fg-3); padding: 0 0 10px; border: 0; background: none; }
html.andy-rd .aw .aw-items td { padding: 13px 0; border: 0; border-top: 1px solid var(--aw-border-subtle); vertical-align: top; background: none; }
html.andy-rd .aw .aw-items td:first-child { padding-right: 16px; overflow-wrap: anywhere; }
html.andy-rd .aw .aw-items th:last-child, html.andy-rd .aw .aw-items td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
html.andy-rd .aw .aw-items tr.is-fee td:first-child { color: var(--aw-fg-2); }
.aw-totals { display: flex; flex-direction: column; margin-left: auto; width: min(100%, 340px); padding-top: 6px; border-top: 1px solid var(--aw-border); }
.aw-totals > div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 13.5px; color: var(--aw-fg-2); font-variant-numeric: tabular-nums; }
.aw-totals > div > span:last-child { color: var(--aw-fg); font-weight: 500; }
.aw-totals > div.is-total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--aw-border-subtle); color: var(--aw-fg); font-weight: 600; font-size: 15px; }
.aw-totals > div.is-total > span:last-child { font-weight: 600; }
/* pay box: WHMCS gateway dropdown and the gateway's own button, drawn as ours */
.aw-pay { display: flex; flex-direction: column; gap: 16px; }
html.andy-rd .aw .aw-pay form { margin: 0; }
html.andy-rd .aw .aw-pay .form-group { margin: 0; }
html.andy-rd .aw .aw-pay select, html.andy-rd .aw .aw-pay .form-control { width: 100%; min-height: 44px; height: auto; padding: 0 40px 0 14px; border: 1px solid var(--aw-border-strong); border-radius: 12px; background-color: var(--aw-surface); font: 14px "AW Inter", Inter, system-ui, sans-serif; color: var(--aw-fg); box-shadow: none; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
html.andy-rd .aw .aw-pay select:focus { outline: none; border-color: var(--aw-accent); box-shadow: 0 0 0 3px var(--aw-accent-subtle); }
html.andy-rd .aw .aw-pay .payment-btn-container { margin: 0; text-align: left; }
html.andy-rd .aw .aw-pay .payment-btn-container form { display: block; }
html.andy-rd .aw .aw-pay .payment-btn-container .btn, html.andy-rd .aw .aw-pay .payment-btn-container button[type=submit], html.andy-rd .aw .aw-pay .payment-btn-container input[type=submit] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--aw-accent); background: var(--aw-accent); color: #fff; font: 500 15px/1 "AW Inter", Inter, system-ui, sans-serif; text-transform: none; letter-spacing: 0; box-shadow: none; cursor: pointer; transition: background-color 150ms ease, transform 120ms ease; }
html.andy-rd .aw .aw-pay .payment-btn-container .btn:active { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) { html.andy-rd .aw .aw-pay .payment-btn-container .btn:hover, html.andy-rd .aw .aw-pay .payment-btn-container button[type=submit]:hover { background: var(--aw-accent-strong); border-color: var(--aw-accent-strong); color: #fff; } }
html.andy-rd .aw .aw-pay .payment-btn-container img { max-width: 100%; height: auto; }
html.andy-rd .aw .aw-pay .sumi-pay-note, html.andy-rd .aw .aw-pay .payment-btn-container p, html.andy-rd .aw .aw-pay .payment-btn-container small { font-size: 12.5px !important; color: var(--aw-fg-2); line-height: 1.55 !important; }
html.andy-rd .aw .aw-pay .small-text:empty { display: none; }
.aw-paid-mark { display: inline-flex; align-items: center; gap: 8px; color: oklch(40% 0.1 155); font-weight: 600; }
@media print {
  html.andy-rd body:has(.aw-inv) .app-nav, html.andy-rd body:has(.aw-inv) .main-footer, html.andy-rd .aw-noprint { display: none !important; }
  html.andy-rd .aw .aw-split { display: block; }
  html.andy-rd .aw .aw-card { box-shadow: none; }
}

/* ---------- ticket thread ---------- */
.aw-thread { display: flex; flex-direction: column; gap: 14px; }
.aw-msg { display: flex; gap: 14px; align-items: flex-start; }
.aw-msg-av { width: 38px; height: 38px; flex: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--aw-surface-muted); color: var(--aw-fg-2); font-weight: 600; font-size: 14px; }
.aw-msg.is-staff .aw-msg-av { background: var(--aw-accent); color: #fff; }
.aw-msg-body { flex: 1; min-width: 0; border-radius: 18px; border: 1px solid var(--aw-border); background: var(--aw-surface); box-shadow: var(--aw-shadow-resting); overflow: hidden; }
.aw-msg.is-staff .aw-msg-body { border-color: color-mix(in oklab, var(--aw-accent) 22%, var(--aw-border)); }
.aw-msg-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 12px 18px; border-bottom: 1px solid var(--aw-border-subtle); background: var(--aw-surface-muted); }
.aw-msg.is-staff .aw-msg-top { background: var(--aw-brand-wash); }
.aw-msg-who { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; min-width: 0; }
.aw-msg-who .aw-chip { height: 22px; font-size: 11.5px; padding: 0 8px; }
.aw-msg-who .aw-chip::before { display: none; }
.aw-msg-when { font-size: 12.5px; color: var(--aw-fg-3); }
html.andy-rd .aw .aw-msg-text { padding: 16px 18px; font-size: 14px; line-height: 1.65; color: var(--aw-fg); overflow-wrap: anywhere; }
html.andy-rd .aw .aw-msg-text p { margin: 0 0 10px; }
html.andy-rd .aw .aw-msg-text p:last-child { margin-bottom: 0; }
html.andy-rd .aw .aw-msg-text pre, html.andy-rd .aw .aw-msg-text code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: var(--aw-surface-muted); border-radius: 8px; }
html.andy-rd .aw .aw-msg-text pre { padding: 12px 14px; overflow-x: auto; white-space: pre-wrap; border: 0; }
html.andy-rd .aw .aw-msg-text code { padding: 1px 5px; }
html.andy-rd .aw .aw-msg-text img { max-width: 100%; height: auto; border-radius: 10px; }
html.andy-rd .aw .aw-msg-text blockquote { margin: 0 0 10px; padding: 4px 0 4px 14px; border-left: 3px solid var(--aw-border-strong); color: var(--aw-fg-2); font-size: 14px; }
html.andy-rd .aw .aw-msg-text table { max-width: 100%; display: block; overflow-x: auto; }
.aw-msg-files { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 16px; }
html.andy-rd .aw a.aw-file { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--aw-border); font-size: 13px; color: var(--aw-fg); text-decoration: none; overflow-wrap: anywhere; }
.aw-file.is-removed { color: var(--aw-fg-3); }
.aw-msg-rate { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0 18px 14px; font-size: 12.5px; color: var(--aw-fg-3); }
/* WHMCS rating stars (scripts.js binds to .rating .star) */
html.andy-rd .aw .aw-msg-rate .rating, html.andy-rd .aw .aw-msg-rate .rating-done { display: inline-flex; flex-direction: row-reverse; gap: 2px; float: none; margin: 0; }
html.andy-rd .aw .aw-msg-rate .rating-done { flex-direction: row; }
html.andy-rd .aw .aw-msg-rate .star { width: 20px; height: 20px; display: inline-block; cursor: pointer; color: var(--aw-border-strong); font-size: 0; background: none; transition: color 150ms ease, transform 150ms var(--aw-ease); }
html.andy-rd .aw .aw-msg-rate .star::before { content: "\2605"; font-size: 18px; line-height: 20px; }
html.andy-rd .aw .aw-msg-rate .rating .star:hover, html.andy-rd .aw .aw-msg-rate .rating .star:hover ~ .star, html.andy-rd .aw .aw-msg-rate .star.active { color: oklch(76% 0.16 75); }
html.andy-rd .aw .aw-msg-rate .rated { margin-left: 8px; }
.aw-reply-form[hidden] { display: none !important; }

/* ---------- articles (announcements, knowledgebase) ---------- */
html.andy-rd .aw a.aw-post { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; text-decoration: none; color: var(--aw-fg); transition: transform 200ms var(--aw-ease), box-shadow 200ms ease, border-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { html.andy-rd .aw a.aw-post:hover { transform: translateY(-2px); box-shadow: var(--aw-shadow-raised); border-color: color-mix(in oklab, var(--aw-accent) 30%, var(--aw-border)); color: var(--aw-fg); } }
html.andy-rd .aw .aw-post h2 { font-size: 19px; line-height: 1.3; }
.aw-post-sum { color: var(--aw-fg-2); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.aw-post-sum img { display: none; }
.aw-post-more { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--aw-accent); }
html.andy-rd .aw .aw-prose { font-size: 15px; line-height: 1.7; color: var(--aw-fg); overflow-wrap: anywhere; }
html.andy-rd .aw .aw-prose > * + * { margin-top: 14px; }
html.andy-rd .aw .aw-prose p { margin: 0; }
html.andy-rd .aw .aw-prose h1, html.andy-rd .aw .aw-prose h2, html.andy-rd .aw .aw-prose h3, html.andy-rd .aw .aw-prose h4 { margin-top: 26px; font-size: 18px; line-height: 1.3; }
html.andy-rd .aw .aw-prose ul, html.andy-rd .aw .aw-prose ol { padding-left: 22px; }
html.andy-rd .aw .aw-prose li + li { margin-top: 6px; }
html.andy-rd .aw .aw-prose img { max-width: 100%; height: auto; border-radius: 14px; }
html.andy-rd .aw .aw-prose pre { padding: 14px 16px; border-radius: 12px; background: var(--aw-surface-muted); overflow-x: auto; font-size: 13px; border: 0; white-space: pre-wrap; }
html.andy-rd .aw .aw-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
html.andy-rd .aw .aw-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14px; }
html.andy-rd .aw .aw-prose td, html.andy-rd .aw .aw-prose th { padding: 8px 12px; border: 1px solid var(--aw-border); }
html.andy-rd .aw .aw-prose blockquote { margin: 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--aw-border-strong); color: var(--aw-fg-2); font-size: 15px; }
html.andy-rd .aw .aw-prose a { text-decoration: underline; text-underline-offset: 2px; }
.aw-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
html.andy-rd .aw .aw-pager a, html.andy-rd .aw .aw-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--aw-border); background: var(--aw-surface); font-size: 13.5px; color: var(--aw-fg-2); text-decoration: none; }
html.andy-rd .aw .aw-pager .is-on { background: var(--aw-accent); border-color: var(--aw-accent); color: #fff; }
html.andy-rd .aw .aw-pager .is-off { opacity: 0.45; pointer-events: none; }
html.andy-rd .aw a.aw-cat { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border-radius: 18px; text-decoration: none; color: var(--aw-fg); transition: transform 200ms var(--aw-ease), box-shadow 200ms ease; }
@media (hover: hover) and (pointer: fine) { html.andy-rd .aw a.aw-cat:hover { transform: translateY(-2px); box-shadow: var(--aw-shadow-raised); color: var(--aw-fg); } }
.aw-hero-search { display: flex; gap: 10px; flex-wrap: wrap; width: 100%; max-width: 560px; }
.aw-hero-search .aw-search { flex: 1 1 240px; max-width: none; }
html.andy-rd .aw .aw-hero-search .aw-input { min-height: 48px; }
.aw-vote { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }

/* network issues */
.aw-issue { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; }
.aw-issue-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }

/* ---------- Lagom markup inside our frame ---------- */
html.andy-rd .aw-lagom { font-family: "AW Inter", Inter, system-ui, sans-serif; font-size: 14px; color: var(--aw-fg); }
html.andy-rd .aw-lagom h1, html.andy-rd .aw-lagom h2, html.andy-rd .aw-lagom h3, html.andy-rd .aw-lagom h4, html.andy-rd .aw-lagom h5, html.andy-rd .aw-lagom h6 { font-family: "AW Geist", "AW Inter", system-ui, sans-serif; font-weight: 600; letter-spacing: -0.015em; color: var(--aw-fg); }
html.andy-rd .aw-lagom .section { margin: 0 0 26px; padding: 0; background: none; border: 0; box-shadow: none; }
html.andy-rd .aw-lagom .section:last-child { margin-bottom: 0; }
html.andy-rd .aw-lagom .section-header { margin: 0 0 14px; padding: 0; }
html.andy-rd .aw-lagom .section-title { font-size: 17px; margin: 0; }
html.andy-rd .aw-lagom .section-desc { margin: 4px 0 0; font-size: 13.5px; color: var(--aw-fg-2); }
html.andy-rd .aw-lagom .panel { margin: 0 0 20px; background: none; border: 0; border-radius: 0; box-shadow: none; }
html.andy-rd .aw-lagom .panel:last-child { margin-bottom: 0; }
html.andy-rd .aw-lagom .panel-heading { padding: 0; margin: 0 0 12px; background: none; border: 0; }
html.andy-rd .aw-lagom .panel-title { font-family: "AW Geist", "AW Inter", sans-serif; font-size: 16px; font-weight: 600; color: var(--aw-fg); }
html.andy-rd .aw-lagom .panel-body { padding: 0; background: none; border: 0; }
html.andy-rd .aw-lagom .panel-footer { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 0 0; margin-top: 18px; background: none; border: 0; border-top: 1px solid var(--aw-border-subtle); }
html.andy-rd .aw-lagom .panel-footer:empty { display: none; }
html.andy-rd .aw-lagom .panel-form .panel-body, html.andy-rd .aw-lagom .panel-default > .panel-body { padding: 0; }
html.andy-rd .aw-lagom .form-group { margin-bottom: 16px; }
html.andy-rd .aw-lagom .form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding: 0; border: 0; background: none; }
html.andy-rd .aw-lagom .form-control, html.andy-rd .aw-lagom select.form-control, html.andy-rd .aw-lagom .bootstrap-select > .dropdown-toggle { min-height: 44px; height: auto; border: 1px solid var(--aw-border-strong); border-radius: 12px; box-shadow: none; font-family: "AW Inter", Inter, system-ui, sans-serif; font-size: 14px; color: var(--aw-fg); background-color: var(--aw-surface); }
html.andy-rd .aw-lagom .form-control:focus { border-color: var(--aw-accent); box-shadow: 0 0 0 3px var(--aw-accent-subtle); }
html.andy-rd .aw-lagom .form-control[disabled], html.andy-rd .aw-lagom .form-control[readonly] { background: var(--aw-surface-muted); color: var(--aw-fg-2); }
html.andy-rd .aw-lagom textarea.form-control { padding: 12px 14px; line-height: 1.5; }
html.andy-rd .aw-lagom label, html.andy-rd .aw-lagom .control-label { font-size: 13px; font-weight: 500; color: var(--aw-fg); }
html.andy-rd .aw-lagom .help-block, html.andy-rd .aw-lagom .text-light, html.andy-rd .aw-lagom .text-lighter, html.andy-rd .aw-lagom .text-muted, html.andy-rd .aw-lagom small { color: var(--aw-fg-2); }
html.andy-rd .aw-lagom .btn { min-height: 40px; padding: 0 16px; border-radius: 12px; font-family: "AW Inter", Inter, system-ui, sans-serif; font-weight: 500; font-size: 14px; text-transform: none; letter-spacing: 0; box-shadow: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 120ms ease; }
html.andy-rd .aw-lagom .btn:active { transform: translateY(1px); }
html.andy-rd .aw-lagom .btn-lg { min-height: 48px; }
html.andy-rd .aw-lagom .btn-sm, html.andy-rd .aw-lagom .btn-xs { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
html.andy-rd .aw-lagom .btn-block { display: flex; width: 100%; }
html.andy-rd .aw-lagom .btn-primary { background: var(--aw-accent); border-color: var(--aw-accent); color: #fff; }
html.andy-rd .aw-lagom .btn-default, html.andy-rd .aw-lagom .btn-outline, html.andy-rd .aw-lagom .btn-primary-faded, html.andy-rd .aw-lagom .btn-secondary { background: var(--aw-surface); border: 1px solid var(--aw-border-strong); color: var(--aw-fg); }
html.andy-rd .aw-lagom .btn-danger { background: var(--aw-surface); border: 1px solid oklch(85% 0.06 25); color: oklch(48% 0.16 25); }
html.andy-rd .aw-lagom .btn-success { background: oklch(55% 0.13 155); border-color: oklch(55% 0.13 155); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  html.andy-rd .aw-lagom .btn-primary:hover { background: var(--aw-accent-strong); border-color: var(--aw-accent-strong); color: #fff; }
  html.andy-rd .aw-lagom .btn-default:hover, html.andy-rd .aw-lagom .btn-outline:hover, html.andy-rd .aw-lagom .btn-primary-faded:hover { border-color: color-mix(in oklab, var(--aw-accent) 40%, var(--aw-border-strong)); color: var(--aw-fg); background: var(--aw-surface); }
}
html.andy-rd .aw-lagom .alert { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 12px 14px; border-radius: 14px; border: 0; font-size: 13.5px; line-height: 1.5; box-shadow: none; }
html.andy-rd .aw-lagom .alert-success { background: var(--aw-success-subtle); color: oklch(38% 0.1 155); }
html.andy-rd .aw-lagom .alert-info { background: var(--aw-accent-subtle); color: var(--aw-accent-strong); }
html.andy-rd .aw-lagom .alert-warning { background: var(--aw-warn-subtle); color: oklch(40% 0.1 70); }
html.andy-rd .aw-lagom .alert-danger, html.andy-rd .aw-lagom .alert-error { background: var(--aw-danger-subtle); color: oklch(44% 0.15 25); }
html.andy-rd .aw-lagom .alert ul { margin: 4px 0 0; padding-left: 18px; }
html.andy-rd .aw-lagom .message-no-data { padding: 28px 12px; background: none; border: 0; box-shadow: none; }
html.andy-rd .aw-lagom .message-no-data .message-title { font-family: "AW Inter", Inter, sans-serif; font-size: 14px; font-weight: 500; color: var(--aw-fg-2); }
/* tabs inside Lagom panels (security page, two-step login) */
html.andy-rd .aw-lagom .nav-tabs, html.andy-rd .aw-lagom .panel-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; padding: 4px; border: 1px solid var(--aw-border-subtle); border-radius: 14px; background: var(--aw-surface-muted); }
html.andy-rd .aw-lagom .nav-tabs > li { margin: 0; float: none; }
html.andy-rd .aw-lagom .nav-tabs > li > a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; margin: 0; padding: 0 14px; border: 0 !important; border-radius: 10px; background: none; font-size: 13.5px; font-weight: 500; color: var(--aw-fg-2); transition: background-color 180ms var(--aw-ease), color 180ms ease, box-shadow 180ms ease; }
html.andy-rd .aw-lagom .nav-tabs > li > a.active, html.andy-rd .aw-lagom .nav-tabs > li.active > a { background: var(--aw-surface); color: var(--aw-fg); box-shadow: var(--aw-shadow-raised); }
html.andy-rd .aw-lagom .nav-tabs > li > a::after, html.andy-rd .aw-lagom .nav-tabs > li > a::before { display: none; }
html.andy-rd .aw-lagom .tab-content > .tab-pane { animation: aw-pane-in 240ms var(--aw-ease); }
@keyframes aw-pane-in { from { opacity: 0; transform: translateY(4px); } }
/* tables Lagom draws (users, linked accounts, DataTables) */
html.andy-rd .aw-lagom .table-container, html.andy-rd .aw-lagom .table-responsive { margin: 0; border: 0; box-shadow: none; background: none; overflow-x: auto; }
html.andy-rd .aw-lagom .table { width: 100%; margin: 0; background: none; border-collapse: collapse; font-size: 13.5px; }
html.andy-rd .aw-lagom .table > thead > tr > th { padding: 0 12px 10px 0; border: 0; background: none; font-size: 12.5px; font-weight: 500; color: var(--aw-fg-3); white-space: nowrap; }
html.andy-rd .aw-lagom .table > tbody > tr > td { padding: 12px 12px 12px 0; border: 0; border-top: 1px solid var(--aw-border-subtle); background: none; vertical-align: middle; }
html.andy-rd .aw-lagom .table > tbody > tr:hover > td { background: none; }
html.andy-rd .aw-lagom .dataTables_wrapper .dataTables_filter input, html.andy-rd .aw-lagom .dataTables_wrapper select { min-height: 38px; border-radius: 10px; border: 1px solid var(--aw-border-strong); }
html.andy-rd .aw-lagom .label, html.andy-rd .aw-lagom .status, html.andy-rd .aw-lagom .badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 9999px; font-size: 12px; font-weight: 500; }
html.andy-rd .aw-lagom .label-success, html.andy-rd .aw-lagom .status-active { background: var(--aw-success-subtle); color: oklch(40% 0.1 155); }
html.andy-rd .aw-lagom .label-default, html.andy-rd .aw-lagom .label-info { background: var(--aw-surface-muted); color: var(--aw-fg-2); }
html.andy-rd .aw-lagom .label-primary { background: var(--aw-accent-subtle); color: var(--aw-accent-strong); }
html.andy-rd .aw-lagom .label-warning { background: var(--aw-warn-subtle); color: oklch(42% 0.1 70); }
html.andy-rd .aw-lagom .label-danger { background: var(--aw-danger-subtle); color: oklch(45% 0.15 25); }
/* checkboxes and switches */
html.andy-rd .aw-lagom .checkbox, html.andy-rd .aw-lagom .radio { margin: 0 0 6px; }
html.andy-rd .aw-lagom .checkbox label, html.andy-rd .aw-lagom .radio label { display: inline-flex; align-items: flex-start; gap: 10px; min-height: 30px; font-weight: 400; font-size: 13.5px; color: var(--aw-fg); cursor: pointer; padding-left: 0; }
html.andy-rd .aw-lagom input[type=checkbox], html.andy-rd .aw-lagom input[type=radio] { accent-color: #1062fe; }
html.andy-rd .aw-lagom .list-info { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 24px; }
html.andy-rd .aw-lagom .list-info > li { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-top: 1px solid var(--aw-border-subtle); }
html.andy-rd .aw-lagom .list-info-title { font-size: 12.5px; color: var(--aw-fg-3); }
html.andy-rd .aw-lagom .list-info-text { font-weight: 500; overflow-wrap: anywhere; }
html.andy-rd .aw-lagom .list-group { margin: 0; border: 0; box-shadow: none; background: none; }
html.andy-rd .aw-lagom .list-group-item { border: 0; border-top: 1px solid var(--aw-border-subtle); border-radius: 0 !important; background: none; padding: 12px 0; }
html.andy-rd .aw-lagom .list-group-item:first-child { border-top: 0; }
html.andy-rd .aw-lagom hr { border-color: var(--aw-border-subtle); }
html.andy-rd .aw-lagom .row { --bs-gutter-x: 16px; }
html.andy-rd .aw-lagom .input-group { display: flex; width: 100%; }
html.andy-rd .aw-lagom .input-group > .form-control { flex: 1 1 auto; min-width: 0; }
html.andy-rd .aw-lagom .input-group-btn .btn, html.andy-rd .aw-lagom .input-group-append .btn { min-height: 44px; border-radius: 0 12px 12px 0; }
html.andy-rd .aw-lagom .input-group > .form-control:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
/* file pickers (ticket reply) */
html.andy-rd .aw-lagom .file-input { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 4px 4px 4px; border: 1px dashed var(--aw-border-strong); border-radius: 12px; background: var(--aw-surface); }
html.andy-rd .aw-lagom .file-input input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
html.andy-rd .aw-lagom .file-input .file-input-button { min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; pointer-events: none; }
html.andy-rd .aw-lagom .file-input .file-input-text { font-size: 13px; color: var(--aw-fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
html.andy-rd .aw-lagom .ticket-attachments-message { margin-top: 8px; font-size: 12.5px; color: var(--aw-fg-3); }
/* markdown editor toolbar (bootstrap-markdown) */
html.andy-rd .aw-lagom .md-editor { border: 1px solid var(--aw-border-strong); border-radius: 12px; overflow: hidden; box-shadow: none; background: var(--aw-surface); }
html.andy-rd .aw-lagom .md-editor.active { border-color: var(--aw-accent); box-shadow: 0 0 0 3px var(--aw-accent-subtle); }
html.andy-rd .aw-lagom .md-editor > .md-header { padding: 6px; background: var(--aw-surface-muted); border-bottom: 1px solid var(--aw-border-subtle); }
html.andy-rd .aw-lagom .md-editor > textarea { border: 0 !important; border-radius: 0; box-shadow: none !important; min-height: 180px; background: var(--aw-surface); }
html.andy-rd .aw-lagom .md-editor .btn-group .btn { min-height: 32px; padding: 0 10px; border-radius: 8px; border-color: transparent; background: none; }
html.andy-rd .aw-lagom .md-footer, html.andy-rd .aw-lagom .markdown-editor-status { font-size: 12px; color: var(--aw-fg-3); }

/* side menus drawn from WHMCS sidebars */
html.andy-rd .aw .aw-sidemenu .aw-sidemenu-title { font-size: 16px; margin-bottom: 8px; }
html.andy-rd .aw .aw-sidemenu .list-group-item { display: flex; align-items: center; gap: 10px; padding: 11px 0; border: 0; border-top: 1px solid var(--aw-border-subtle); border-radius: 0; background: none; font-size: 13.5px; color: var(--aw-fg); text-decoration: none; }
html.andy-rd .aw .aw-sidemenu .list-group-item:first-child { border-top: 0; }
html.andy-rd .aw .aw-sidemenu .list-group-item i { width: 16px; color: var(--aw-fg-3); font-size: 13px; text-align: center; }
html.andy-rd .aw .aw-sidemenu .list-group-item.active { color: var(--aw-accent); font-weight: 500; }
html.andy-rd .aw .aw-sidemenu .panel-footer, html.andy-rd .aw .aw-sidemenu .aw-sidemenu-foot { padding: 12px 0 0; margin: 0; border: 0; background: none; }
html.andy-rd .aw .aw-sidemenu .w-hidden, html.andy-rd .aw .aw-sidemenu .hidden { display: none !important; }

/* passkey card (modules/addons/andypasskey) moved into our main column */
html.andy-rd .aw .aw-passkey-slot:empty { display: none; }
html.andy-rd .aw .aw-passkey-slot > .apk-card { margin: 0; }

/* ---------- phones ---------- */
@media (max-width: 640px) {
  html.andy-rd .aw .aw-card-pad { padding: 18px; }
  html.andy-rd .aw .aw-head-actions { width: 100%; }
  html.andy-rd .aw .aw-head-actions > .aw-btn { flex: 1 1 auto; }
  .aw-figure { font-size: 30px; }
  .aw-msg { gap: 10px; }
  .aw-msg-av { width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }
  html.andy-rd .aw .aw-msg-text, .aw-msg-top { padding-left: 14px; padding-right: 14px; }
  .aw-msg-files, .aw-msg-rate { padding-left: 14px; padding-right: 14px; }
  html.andy-rd .aw a.aw-post { padding: 18px; }
  html.andy-rd .aw .aw-vf .panel.card > .panel-heading { padding: 18px 18px 0; }
  html.andy-rd .aw .aw-vf .panel.card > .panel-body { padding: 12px 18px 18px !important; }
  .aw-kvs dt, .aw-kvs .k { max-width: 55%; }
}
@media (prefers-reduced-motion: reduce) {
  html.andy-rd .aw .hrk-tr, html.andy-rd .aw .hrk-tr-pack, html.andy-rd .aw-lagom .tab-content > .tab-pane { animation: none !important; }
}
.aw-svg.aw-svg-14 { width: 14px; height: 14px; }
[data-aw-traffic-slot]:empty { display: none; }
@media (max-width: 640px) {
  html.andy-rd .aw .aw-svc-ident { align-items: flex-start; }
  html.andy-rd .aw .aw-svc-ident > .aw-ic { display: none; }
  html.andy-rd .aw [data-aw-pd] .aw-title { font-size: 24px; }
}
html.andy-rd .aw-lagom .form-actions .btn, html.andy-rd .aw-lagom .panel-footer .btn { margin: 0; }
html.andy-rd .aw-lagom .md-editor .btn-group .btn, html.andy-rd .aw-lagom .md-editor .md-header .btn { color: var(--aw-fg-2); }
html.andy-rd .aw-lagom .md-editor .md-header .btn[data-handler$="Preview"] { color: var(--aw-fg-2); background: none; }
html.andy-rd .aw-lagom .message-no-data .message-image { display: none; }
@media (max-width: 640px) { .aw-subnav { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); } }
@media (max-width: 480px) { html.andy-rd .aw .hrk-tr-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* the Stripe Alipay gateway draws its own inline-styled button; give it ours */
html.andy-rd .aw .aw-pay .payment-btn-container button[id^="andyAlipayBtn"] { width: 100% !important; min-height: 48px; padding: 0 18px !important; border-radius: 12px !important; background-color: var(--aw-accent) !important; font: 500 15px/1 "AW Inter", Inter, system-ui, sans-serif; }
html.andy-rd .aw .aw-pay .payment-btn-container button[id^="andyAlipayBtn"][disabled] { opacity: 0.7; cursor: progress !important; }
html.andy-rd .aw .aw-pay [id^="andyAlipayMsg"]:empty { display: none; }
