/* ==========================================================================
   Design system
   One stylesheet for the public site, customer area, agent desk and admin.
   ========================================================================== */
/* Brand colours. These are the defaults; the layout outputs the owner's colours from Settings › Branding (App\Support\Brand). */
:root{--brand-primary:#0a6fd2;--brand-primary-dark:#0859a8;--brand-primary-light:#2780d7;--brand-navy:#061a36;--brand-navy-deep:#05152c;--brand-navy-2:#10233e;--brand-navy-3:#062346;--brand-navy-hover:#072b55;--brand-navy-line:#072f5d;--brand-navy-edge:#2c5683;--brand-accent:#0bb5e0;--brand-accent-light:#79d6ee;--brand-accent-dark:#0888a8;}
:root {
    --navy: var(--brand-navy); --navy2: var(--brand-navy-2); --blue: var(--brand-primary); --blue2: var(--brand-primary-light);
    --bg: #f3f7fa; --panel: #fff; --panel2: #f5f8fb; --line: #cbd7e2; --line2: #e0e7ed;
    --text: #09203b; --text2: #3d5166; --muted: #5f7184;
    --okFg: #0b7a50; --okBg: #e1f6ec; --warnFg: #8b620d; --warnBg: #fff1cc;
    --badFg: #a3283d; --badBg: #fbe2e6; --infoFg: #0f5aa6; --infoBg: #e4f0ff;
    --fd: Georgia, 'Times New Roman', serif; --fb: Arial, 'Segoe UI', Helvetica, sans-serif;
    --radius: 4px; --shadow: 0 2px 7px rgba(25, 55, 86, .08);
    --btn-grad: linear-gradient(var(--brand-primary-light), var(--brand-primary-dark));
    --side: 300px;
}
*, *:before, *:after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); font: 13px/1.45 var(--fb); color: var(--text); }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.2; color: var(--text); }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--brand-primary-dark); }
img { max-width: 100%; }
.num { font-variant-numeric: tabular-nums; }
.mut { color: var(--muted); } .up { color: var(--okFg); } .dn { color: var(--badFg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
::selection { background: #cfe4ff; }
:focus-visible { outline: 2px solid #4ea1ff; outline-offset: 1px; }

/* ---------- top bar ---------- */
.ct-top { min-height: 64px; background: linear-gradient(180deg, var(--brand-navy), var(--brand-navy-deep)); color: #fff; display: flex; align-items: center; gap: 16px; padding: 0 18px; border-bottom: 1px solid var(--brand-navy-line); box-shadow: 0 2px 7px rgba(0, 0, 0, .2); position: sticky; top: 0; z-index: 40; }
.ct-brand { display: flex; align-items: center; flex: 0 0 auto; }
.ct-brand img { height: 42px; width: auto; display: block; }
.ct-top-title { flex: 1 1 200px; min-width: 0; font-size: 13px; color: #c4d6ea; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-top-title b { font-size: 15px; color: #fff; margin-right: 8px; }
.ct-command { position: relative; height: 34px; border: 1px solid var(--brand-navy-edge); background: var(--brand-navy-3); border-radius: 4px; padding: 0 10px; display: flex; align-items: center; gap: 8px; width: 320px; }
.ct-command i { color: #9fc3e8; font-size: 14px; }
.ct-command input { flex: 1; background: transparent; border: 0; outline: 0; color: #fff; font: 12px var(--fb); min-width: 0; }
.ct-command input::placeholder { color: #a9c3dd; }
.ct-command kbd { border: 1px solid #547393; border-radius: 3px; padding: 1px 6px; background: var(--brand-navy); color: #bcd2e8; font: 11px var(--fb); }
.ct-command .results { position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px; background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 8px 24px color-mix(in srgb, var(--brand-navy) 18%, transparent); max-height: 340px; overflow: auto; display: none; z-index: 60; }
.ct-command .results.open { display: block; }
.ct-command .results a { display: flex; gap: 8px; align-items: center; padding: 8px 12px; color: var(--text); font-size: 12.5px; }
.ct-command .results a i { color: var(--blue); }
.ct-command .results a:hover, .ct-command .results a.hl { background: #e6f2ff; color: var(--brand-primary-dark); }
.ct-command .results .none { padding: 8px 12px; color: var(--muted); }
.ct-session { text-align: right; font-size: 11px; color: #bed1e6; line-height: 1.45; }
.ct-session b { display: block; color: #fff; font-size: 12px; }
.ct-top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ct-topbtn { position: relative; height: 34px; min-width: 34px; border: 1px solid var(--brand-navy-edge); background: var(--brand-navy-3); color: #fff; border-radius: 4px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 9px; font: 700 12px var(--fb); }
.ct-topbtn:hover { background: var(--brand-navy-hover); color: #fff; }
.ct-topbtn i { font-size: 15px; }
.ct-topbtn .count { position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; border-radius: 9px; background: #df4152; color: #fff; font-size: 10px; line-height: 15px; text-align: center; padding: 0 4px; border: 1px solid var(--brand-navy); }
.ct-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-primary-light); display: inline-grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; }
.ct-burger { display: none; }
.ct-menu { position: relative; }
.ct-menu .drop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 8px 24px color-mix(in srgb, var(--brand-navy) 18%, transparent); padding: 4px 0; display: none; z-index: 60; }
.ct-menu.open .drop { display: block; }
.ct-menu .drop a, .ct-menu .drop button { display: flex; width: 100%; gap: 8px; align-items: center; padding: 8px 14px; color: var(--text); background: none; border: 0; font: 12.5px var(--fb); cursor: pointer; text-align: left; }
.ct-menu .drop a:hover, .ct-menu .drop button:hover { background: #e6f2ff; color: var(--brand-primary-dark); }
.ct-menu .drop .head { padding: 8px 14px; border-bottom: 1px solid var(--line2); font-size: 12px; color: var(--muted); }
.ct-menu .drop .head b { display: block; color: var(--text); font-size: 13px; }

/* ---------- module bar ---------- */
.ct-modbar { min-height: 34px; background: linear-gradient(180deg, var(--brand-primary), var(--brand-primary-dark)); border-top: 1px solid var(--brand-primary-light); border-bottom: 1px solid var(--brand-primary-dark); display: flex; align-items: stretch; padding-left: var(--side); position: sticky; top: 64px; z-index: 39; overflow-x: auto; scrollbar-width: none; }
.ct-modbar::-webkit-scrollbar { display: none; }
.ct-modbar a { border-right: 1px solid rgba(255, 255, 255, .16); color: #fff; padding: 0 13px; font-size: 12px; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.ct-modbar a:first-child { border-left: 1px solid rgba(255, 255, 255, .16); }
.ct-modbar a:hover, .ct-modbar a.on { background: rgba(0, 25, 70, .28); color: #fff; }
.ct-modbar .right { margin-left: auto; display: flex; align-items: center; padding: 0 14px; color: #d7e9fc; font-size: 12px; gap: 6px; white-space: nowrap; }

/* ---------- shell + sidebar ---------- */
.ct-shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: calc(100vh - 98px); }
.ct-sidebar { background: #edf3f8; border-right: 1px solid #c9d5e2; padding: 8px 7px 28px; position: sticky; top: 98px; height: calc(100vh - 98px); overflow-y: auto; }
.ct-navgroup { margin: 0 0 7px; }
.ct-navtitle { background: linear-gradient(180deg, var(--brand-primary), var(--brand-primary-dark)); color: #fff; padding: 7px 10px; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; border: 1px solid var(--brand-primary-dark); display: flex; justify-content: space-between; align-items: center; }
.ct-navtitle span { font-size: 11px; color: #d7e9fc; background: rgba(0, 0, 0, .18); border-radius: 8px; padding: 1px 7px; }
.ct-navitem { min-height: 34px; display: flex; align-items: center; gap: 9px; padding: 5px 9px; background: linear-gradient(180deg, #fff, #f2f6fa); border: 1px solid #c7d2dd; border-top: 0; color: #23384e; font-size: 12.5px; line-height: 1.2; }
.ct-navitem i { color: var(--brand-primary); font-size: 16.5px; width: 20px; text-align: center; flex: none; }
.ct-navitem:hover { background: #e6f2ff; color: var(--brand-primary-dark); }
.ct-navitem.on { background: #d8ebff; color: #004f9f; font-weight: 700; box-shadow: inset 3px 0 0 #0a75dd; }
.ct-navitem .label { flex: 1; min-width: 0; }
.ct-badge { margin-left: auto; border-radius: 9px; padding: 1px 7px; font-size: 11px; font-weight: 700; border: 1px solid #c2d9f5; background: #e4f0ff; color: #0f5aa6; }
.ct-badge.red { background: #fbe2e6; color: #a3283d; border-color: #ebbcc5; }
.ct-sidecard { background: #fff; border: 1px solid #c7d2dd; padding: 10px; margin-top: 8px; font-size: 12px; color: #43576a; }
.ct-sidecard b { color: #173a5a; }
.ct-main { min-width: 0; display: flex; flex-direction: column; }
.ct-content { padding: 12px 14px 76px; display: grid; gap: 12px; align-content: start; flex: 1; }
.ct-scrim { display: none; }

/* ---------- toolbar ---------- */
.ct-toolbar { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #ccd8e4; background: #fff; padding: 10px 16px; box-shadow: 0 1px 3px rgba(15, 45, 70, .06); flex-wrap: wrap; }
.ct-page-title { font-size: 20px; font-weight: 700; margin: 0 auto 0 0; }
.ct-page-title small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 4px; }
.ct-toolbar .tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ct-crumbs { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.ct-crumbs a { color: var(--muted); }

/* ---------- ticker ---------- */
.ct-ticker { border-bottom: 1px solid #ccd8e4; background: #f8fbfd; overflow: hidden; white-space: nowrap; }
.ct-ticker .track { display: inline-flex; gap: 30px; padding: 8px 0; animation: ct-tick 60s linear infinite; font-size: 12px; color: var(--text2); }
.ct-ticker:hover .track { animation-play-state: paused; }
.ct-ticker b { color: var(--text); }
@keyframes ct-tick { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ---------- KPI tiles ---------- */
.ct-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ct-kpi { display: block; min-height: 112px; color: #fff; border-radius: 5px; box-shadow: 0 4px 10px rgba(18, 45, 72, .2); position: relative; overflow: hidden; padding: 15px 68px 12px 16px; border: 1px solid rgba(0, 0, 0, .08); transition: transform .15s, box-shadow .15s; }
a.ct-kpi:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(18, 45, 72, .26); color: #fff; }
.ct-kpi .ico { position: absolute; right: 14px; top: 34px; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 4px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); font-size: 21px; }
.ct-kpi small { display: block; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.ct-kpi strong { display: block; font-size: 25px; line-height: 1; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.ct-kpi em { font-style: normal; font-size: 12px; display: block; margin-top: 13px; opacity: .95; }
.ct-kpi small, .ct-kpi strong, .ct-kpi em { text-shadow: 0 1px 2px rgba(0, 0, 0, .22); }
.c1 { background: linear-gradient(135deg, var(--brand-primary-light), var(--brand-primary-dark)); } .c2 { background: linear-gradient(135deg, #13b985, #04955d); }
.c3 { background: linear-gradient(135deg, #f8ad26, #ed9200); } .c4 { background: linear-gradient(135deg, #f0294e, #c50039); }
.c5 { background: linear-gradient(135deg, #6b45c7, #3b1d9e); } .c6 { background: linear-gradient(135deg, #29b6db, #0c8ec6); }
.c7 { background: linear-gradient(135deg, #123d72, var(--brand-navy)); } .c8 { background: linear-gradient(135deg, #ef5927, #dc2b0e); }
.c9 { background: linear-gradient(135deg, #df285f, #a90f46); }

/* ---------- section bar / panels ---------- */
.ct-sectionbar { min-height: 38px; background: linear-gradient(180deg, #fff, #f2f6f9); border: 1px solid #cbd7e2; display: flex; align-items: center; padding: 7px 12px; color: #1d3650; font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; gap: 10px; flex-wrap: wrap; border-radius: 2px; }
.ct-sectionbar span { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }
.ct-sectionbar .right { margin-left: auto; display: flex; gap: 8px; text-transform: none; letter-spacing: 0; }
.ct-g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; align-items: start; }
.ct-s3 { grid-column: span 3 } .ct-s4 { grid-column: span 4 } .ct-s5 { grid-column: span 5 } .ct-s6 { grid-column: span 6 }
.ct-s7 { grid-column: span 7 } .ct-s8 { grid-column: span 8 } .ct-s9 { grid-column: span 9 } .ct-s12 { grid-column: span 12 }
.ct-panel { background: #fff; border: 1px solid #cbd7e2; border-radius: 4px; box-shadow: var(--shadow); overflow: hidden; min-width: 0; display: flex; flex-direction: column; }
.ct-panelhead { min-height: 38px; padding: 6px 12px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #d5dfe8; background: linear-gradient(#fff, #f4f7fa); flex-wrap: wrap; }
.ct-panelhead h3 { margin: 0; font-size: 12.5px; font-weight: 700; color: #1d3650; text-transform: uppercase; letter-spacing: .02em; }
.ct-panelhead .sub { color: var(--muted); font-size: 12px; }
.ct-panelhead .right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ct-panelhead.blue { background: linear-gradient(180deg, var(--brand-primary), var(--brand-primary-dark)); border-bottom-color: var(--brand-primary-dark); }
.ct-panelhead.blue h3, .ct-panelhead.blue .sub { color: #fff; }
.ct-pbody { padding: 14px; flex: 1; }
.ct-pfoot { padding: 10px 14px; border-top: 1px solid #d5dfe8; background: var(--panel2); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
.ct-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.ct-tile { background: var(--panel2); border: 1px solid #dde5ed; border-radius: 3px; padding: 8px 10px; min-width: 0; }
.ct-tile .tl { font-size: 11.5px; color: var(--muted); }
.ct-tile b { display: block; font-size: 16px; margin-top: 3px; overflow-wrap: anywhere; }
.ct-dl { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; margin: 0; }
.ct-dl dt, .ct-dl dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line2); }
.ct-dl dt { color: var(--muted); }
.ct-dl dd { font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.ct-dl > :nth-last-child(-n+2) { border-bottom: 0; }

/* ---------- tables ---------- */
.ct-tablewrap { overflow-x: auto; position: relative; }
.ct-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ct-tbl th { background: #eff4f8; color: #2f4559; text-align: left; padding: 8px 10px; border-bottom: 1px solid #c8d4df; border-right: 1px solid #d6e0e9; white-space: nowrap; font-size: 12px; }
.ct-tbl td { padding: 8px 10px; border-bottom: 1px solid #e0e7ed; border-right: 1px solid #edf1f4; white-space: nowrap; color: #2f4559; vertical-align: middle; }
.ct-tbl th:last-child, .ct-tbl td:last-child { border-right: 0; }
.ct-tbl tr:hover td { background: #f5faff; }
.ct-tbl tr:last-child td { border-bottom: 0; }
.ct-tbl .r { text-align: right; }
.ct-tbl td b { color: var(--text); }
.ct-tbl .sub { display: block; font-size: 11.5px; color: var(--muted); }
.ct-tbl .wrap { white-space: normal; min-width: 200px; }
.ct-empty { padding: 34px 16px; text-align: center; color: var(--muted); }
.ct-empty i { font-size: 30px; color: #9fb7cf; display: block; margin-bottom: 6px; }

/* ---------- pills, buttons ---------- */
.ct-pill { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 9px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ct-pill:before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.ct-pill.ok { background: var(--okBg); color: var(--okFg); } .ct-pill.warn { background: var(--warnBg); color: var(--warnFg); }
.ct-pill.bad { background: var(--badBg); color: var(--badFg); } .ct-pill.info { background: var(--infoBg); color: var(--infoFg); }
.ct-pill.nt { background: #eaf2f9; color: #2f5f88; }
.ct-btn { font: 700 12px var(--fb); min-height: 32px; padding: 0 11px; border-radius: 3px; border: 1px solid #9fb2c6; background: linear-gradient(#fff, #edf3f8); color: #22517a; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.ct-btn:hover { color: var(--brand-primary-dark); border-color: #7f9ab4; }
.ct-btn.pri { border-color: var(--brand-primary-dark); background: var(--btn-grad); color: #fff; }
.ct-btn.ok { border-color: #06804f; background: linear-gradient(#17b07a, #0a9160); color: #fff; }
.ct-btn.bad { border-color: #a8203a; background: linear-gradient(#e2445d, #c32a43); color: #fff; }
.ct-btn.warn { border-color: #c17800; background: linear-gradient(#f8ad26, #ed9200); color: #fff; }
.ct-btn.dark { border-color: #051a33; background: linear-gradient(#123d72, var(--brand-navy)); color: #fff; }
.ct-btn.pri:hover, .ct-btn.ok:hover, .ct-btn.bad:hover, .ct-btn.warn:hover, .ct-btn.dark:hover { color: #fff; filter: brightness(1.06); }
.ct-btn.sm { min-height: 27px; padding: 0 8px; font-size: 11.5px; }
.ct-btn.lg { min-height: 42px; padding: 0 18px; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.ct-btn.block { width: 100%; }
.ct-btn[disabled] { opacity: .55; cursor: not-allowed; }
.ct-actbtn { min-height: 36px; padding: 0 14px; border-radius: 3px; border: 1px solid var(--brand-primary-dark); background: var(--btn-grad); color: #fff; font: 700 12px var(--fb); text-transform: uppercase; letter-spacing: .03em; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ct-actbtn:hover { color: #fff; filter: brightness(1.05); }
.ct-seg { display: inline-flex; border: 1px solid #9fb2c6; border-radius: 3px; overflow: hidden; background: #fff; flex-wrap: wrap; }
.ct-seg a { font-size: 12px; font-weight: 700; border-right: 1px solid #c7d2dd; color: #2f5f88; min-height: 30px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; }
.ct-seg a:last-child { border-right: 0; }
.ct-seg a.on { background: var(--brand-primary); color: #fff; }
.ct-seg a .n { font-size: 11px; opacity: .8; }
.ct-actions { display: inline-flex; gap: 5px; }
.ct-inline { display: inline; margin: 0; }

/* ---------- forms ---------- */
.ct-form { display: grid; gap: 12px; }
.ct-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.ct-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ct-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ct-field { display: grid; gap: 5px; min-width: 0; }
.ct-field > label, .ct-label { font-size: 12px; font-weight: 700; color: #2f4559; }
.ct-field .req, .ct-field .opt { margin-left: 6px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ct-field .req { color: var(--badFg); }
.ct-field .opt { color: var(--muted); font-weight: 500; }
.ct-input, .ct-field input:not([type=checkbox]):not([type=radio]):not([type=file]), .ct-field select, .ct-field textarea {
    width: 100%; min-height: 36px; padding: 7px 10px; border: 1px solid #b9c8d6; border-radius: 3px; background: #fff; color: var(--text); font: 13px var(--fb); }
.ct-field textarea { min-height: 96px; resize: vertical; }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus, .ct-input:focus { outline: 0; border-color: var(--brand-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 14%, transparent); }
.ct-field input[type=file] { font: 12px var(--fb); padding: 6px; border: 1px dashed #9fb2c6; border-radius: 3px; background: var(--panel2); width: 100%; }
.ct-field .hint { font-size: 11.5px; color: var(--muted); }
.ct-field .err { font-size: 11.5px; color: var(--badFg); font-weight: 700; }
.ct-field.has-err input, .ct-field.has-err select, .ct-field.has-err textarea { border-color: #d75a6f; }
.ct-addon { display: flex; }
.ct-addon input, .ct-addon select { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.ct-addon span, .ct-addon select.cur { flex: none; display: flex; align-items: center; padding: 0 10px; border: 1px solid #b9c8d6; border-left: 0; background: #eff4f8; border-radius: 0 3px 3px 0; font-weight: 700; font-size: 12px; color: #2f4559; }
.ct-check { display: inline-flex; gap: 7px; align-items: center; font-size: 12.5px; cursor: pointer; }
.ct-check input { width: 15px; height: 15px; accent-color: var(--brand-primary); }
.ct-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ct-filters .ct-input { width: auto; min-height: 32px; padding: 5px 9px; font-size: 12px; }
.ct-filters input.ct-input { min-width: 200px; }
.ct-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.ct-choice label { border: 1px solid #b9c8d6; border-radius: 4px; padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; background: #fff; }
.ct-choice label:has(input:checked) { border-color: var(--brand-primary); background: #eef6ff; box-shadow: inset 0 0 0 1px var(--brand-primary); }
.ct-choice input { margin-top: 2px; accent-color: var(--brand-primary); }
.ct-choice b { display: block; font-size: 13px; }
.ct-choice small { color: var(--muted); }

/* ---------- alerts ---------- */
.ct-alert { border: 1px solid; border-radius: 4px; padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; }
.ct-alert i { font-size: 16px; line-height: 1; margin-top: 1px; }
.ct-alert.ok { background: var(--okBg); border-color: #b9dfce; color: var(--okFg); }
.ct-alert.bad { background: var(--badBg); border-color: #ebbcc5; color: var(--badFg); }
.ct-alert.warn { background: var(--warnBg); border-color: #f0d58f; color: var(--warnFg); }
.ct-alert.info { background: var(--infoBg); border-color: #c2d9f5; color: var(--infoFg); }
.ct-alert a { font-weight: 700; color: inherit; text-decoration: underline; }
.ct-alert ul { margin: 4px 0 0; padding-left: 18px; }
.ct-toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 100; max-width: min(380px, calc(100vw - 32px)); }
.ct-toasts .ct-alert { box-shadow: 0 8px 24px color-mix(in srgb, var(--brand-navy) 18%, transparent); animation: ct-in .2s ease-out; }
@keyframes ct-in { from { transform: translateY(8px); opacity: 0 } }

/* ---------- pagination ---------- */
.ct-pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.ct-pager .pages { display: inline-flex; border: 1px solid #9fb2c6; border-radius: 3px; overflow: hidden; }
.ct-pager .pages a, .ct-pager .pages span { min-width: 30px; height: 30px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-right: 1px solid #c7d2dd; font-weight: 700; color: #2f5f88; background: #fff; }
.ct-pager .pages > :last-child { border-right: 0; }
.ct-pager .pages .on { background: var(--brand-primary); color: #fff; }
.ct-pager .pages .off { color: #a9b8c6; }

/* ---------- dialogs ---------- */
dialog.ct-dialog { border: 1px solid var(--line); border-radius: 5px; padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: 0 18px 48px color-mix(in srgb, var(--brand-navy) 30%, transparent); color: var(--text); }
dialog.ct-dialog::backdrop { background: color-mix(in srgb, var(--brand-navy) 45%, transparent); }
dialog.ct-dialog .ct-panelhead { border-radius: 5px 5px 0 0; }
dialog.ct-dialog .x { margin-left: auto; background: none; border: 0; font-size: 18px; cursor: pointer; color: var(--muted); }

/* ---------- feeds / health ---------- */
.ct-feed { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid #e6edf3; font-size: 12.5px; align-items: center; }
.ct-feed:last-child { border-bottom: 0; }
.ct-feed .ic { width: 30px; height: 30px; border-radius: 3px; display: grid; place-items: center; flex: none; font-size: 15px; background: var(--infoBg); color: var(--infoFg); }
.ct-feed .ic.ok { background: var(--okBg); color: var(--okFg); } .ct-feed .ic.bad { background: var(--badBg); color: var(--badFg); } .ct-feed .ic.warn { background: var(--warnBg); color: var(--warnFg); }
.ct-feed .body { flex: 1; min-width: 0; }
.ct-feed .body b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-feed .meta { color: var(--muted); font-size: 11.5px; }
.ct-health { background: #fff; border: 1px solid #cbd7e2; border-radius: 4px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 10px 14px; font-size: 12px; color: var(--text2); margin: 0 14px 14px; }
.ct-status { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.ct-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #18ae73; flex: none; }
.ct-dot.warn { background: #f2a322 } .ct-dot.bad { background: #df4152 }
.ct-live { animation: ct-pulse 1.8s ease-in-out infinite; }
@keyframes ct-pulse { 50% { opacity: .35 } }
.ct-bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 10px; }
.ct-bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; height: 100%; justify-content: flex-end; }
.ct-bars .bar span { width: 100%; max-width: 34px; background: linear-gradient(180deg, var(--brand-primary-light), var(--brand-primary-dark)); border-radius: 2px 2px 0 0; min-height: 2px; }
.ct-bars .bar small { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.ct-meter { height: 8px; background: #e6edf3; border-radius: 4px; overflow: hidden; }
.ct-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-primary-light), var(--brand-primary-dark)); }
.ct-steps { display: flex; gap: 0; counter-reset: s; border: 1px solid #cbd7e2; border-radius: 4px; overflow: hidden; background: #fff; }
.ct-steps li { list-style: none; flex: 1; padding: 9px 12px; font-size: 12px; font-weight: 700; color: var(--muted); border-right: 1px solid #dde5ed; display: flex; gap: 8px; align-items: center; }
.ct-steps li:last-child { border-right: 0; }
.ct-steps li:before { counter-increment: s; content: counter(s); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #e6edf3; font-size: 11px; flex: none; }
.ct-steps li.on { color: #004f9f; background: #eef6ff; } .ct-steps li.on:before { background: var(--brand-primary); color: #fff; }
.ct-steps li.done { color: var(--okFg); } .ct-steps li.done:before { content: "\2713"; background: var(--okBg); }
.ct-timeline { list-style: none; margin: 0; padding: 0; }
.ct-timeline li { position: relative; padding: 0 0 14px 24px; font-size: 12.5px; }
.ct-timeline li:before { content: ""; position: absolute; left: 5px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #cbd7e2; }
.ct-timeline li:after { content: ""; position: absolute; left: 9px; top: 16px; bottom: 0; width: 2px; background: #e0e7ed; }
.ct-timeline li:last-child:after { display: none; }
.ct-timeline li.done:before { background: #18ae73; } .ct-timeline li.now:before { background: var(--brand-primary); box-shadow: 0 0 0 4px #d8ebff; }
.ct-timeline li.bad:before { background: #df4152; }
.ct-timeline small { display: block; color: var(--muted); }
.ct-code { font-family: Consolas, 'Courier New', monospace; font-size: 12.5px; background: #eff4f8; border: 1px solid #d6e0e9; border-radius: 3px; padding: 2px 6px; white-space: nowrap; }
.ct-big { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.ct-msg { border: 1px solid #d5dfe8; border-radius: 4px; padding: 10px 12px; background: #fff; }
.ct-msg.staff { background: #eef6ff; border-color: #c2d9f5; }
.ct-msg .who { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.ct-msg .who b { color: var(--text); }
.ct-msg p { white-space: pre-wrap; margin: 0; }
.ct-thumb { width: 100%; max-height: 220px; object-fit: contain; background: #eff4f8; border: 1px solid #d6e0e9; border-radius: 3px; }

/* ==========================================================================
   Public site
   ========================================================================== */
.pub-top .ct-top-actions .ct-topbtn.pri { background: var(--btn-grad); border-color: var(--brand-primary-dark); }
.pub-nav { padding-left: 18px; }
.pub-wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.pub-hero { background: linear-gradient(180deg, var(--brand-navy-2) 0%, var(--brand-navy) 100%); color: #fff; position: relative; overflow: hidden; }
.pub-hero:before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 85% 0%, rgba(32, 131, 238, .35), transparent 60%), repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 64px); }
.pub-hero .pub-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; padding-top: 52px; padding-bottom: 56px; align-items: center; }
.pub-eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9fc3e8; border: 1px solid var(--brand-navy-edge); border-radius: 12px; padding: 4px 10px; background: rgba(10, 41, 78, .6); }
.pub-hero h1 { font-family: var(--fd); font-weight: 400; font-size: 46px; line-height: 1.08; color: #fff; margin: 16px 0 14px; letter-spacing: -.01em; }
.pub-hero h1 em { color: #6fb5ff; font-style: italic; }
.pub-hero p.lead { font-size: 16px; color: #c4d6ea; max-width: 540px; margin-bottom: 22px; }
.pub-hero .trust { display: flex; gap: 22px; flex-wrap: wrap; font-size: 12.5px; color: #c4d6ea; margin-top: 26px; }
.pub-hero .trust i { color: #3fd39a; margin-right: 5px; }
.pub-calc { background: #fff; color: var(--text); border-radius: 5px; box-shadow: 0 18px 48px rgba(0, 0, 0, .35); overflow: hidden; border: 1px solid #0a4a8f; }
.pub-calc .ct-panelhead { background: linear-gradient(180deg, var(--brand-primary), var(--brand-primary-dark)); border-bottom-color: var(--brand-primary-dark); }
.pub-calc .ct-panelhead h3 { color: #fff; }
.pub-calc .ct-panelhead .sub { color: #d7e9fc; }
.pub-calc .amount { display: flex; border: 1px solid #b9c8d6; border-radius: 4px; overflow: hidden; }
.pub-calc .amount input { flex: 1; border: 0; font: 700 22px var(--fb); padding: 10px 12px; min-width: 0; outline: 0; color: var(--text); }
.pub-calc .amount select { border: 0; border-left: 1px solid #b9c8d6; background: #eff4f8; font: 700 13px var(--fb); padding: 0 10px; color: #1d3650; max-width: 50%; }
.pub-calc .amount:focus-within { border-color: var(--brand-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 14%, transparent); }
.pub-calc .breakdown { margin: 12px 0; border-left: 2px solid #cbd7e2; padding-left: 14px; display: grid; gap: 6px; font-size: 12.5px; }
.pub-calc .breakdown div { display: flex; justify-content: space-between; gap: 10px; }
.pub-calc .breakdown span { color: var(--muted); }
.pub-calc .breakdown b.total { color: var(--text); }
.pub-calc .note { font-size: 11.5px; color: var(--muted); margin-top: 10px; display: flex; gap: 6px; align-items: center; }
.pub-section { padding: 52px 0; }
.pub-section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pub-head { text-align: center; max-width: 640px; margin: 0 auto 30px; }
.pub-head h2 { font-family: var(--fd); font-weight: 400; font-size: 32px; margin-bottom: 10px; }
.pub-head p { color: var(--muted); font-size: 14px; margin: 0; }
.pub-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.pub-tile { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 20px; box-shadow: var(--shadow); }
.pub-tile .ic { width: 44px; height: 44px; border-radius: 4px; display: grid; place-items: center; color: #fff; font-size: 21px; margin-bottom: 14px; }
.pub-tile h3 { font-size: 16px; margin-bottom: 6px; }
.pub-tile p { color: var(--muted); margin: 0; }
.pub-tile .step { font-family: var(--fd); font-size: 30px; color: var(--brand-primary); line-height: 1; margin-bottom: 10px; }
.pub-cta { background: linear-gradient(135deg, var(--brand-primary), var(--brand-navy)); color: #fff; border-radius: 5px; padding: 30px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pub-cta h2 { color: #fff; font-family: var(--fd); font-weight: 400; font-size: 28px; margin: 0 0 6px; }
.pub-cta p { color: #c4d6ea; margin: 0; }
.pub-page-head { background: linear-gradient(180deg, var(--brand-navy-2), var(--brand-navy)); color: #fff; padding: 34px 0; }
.pub-page-head h1 { color: #fff; font-family: var(--fd); font-weight: 400; font-size: 34px; margin: 0 0 6px; }
.pub-page-head p { color: #c4d6ea; margin: 0; }
.pub-foot { background: var(--navy); color: #a9c3dd; padding: 34px 0 18px; font-size: 12.5px; margin-top: 0; }
.pub-foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.pub-foot h4 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.pub-foot a { color: #c4d6ea; display: block; padding: 3px 0; }
.pub-foot a:hover { color: #fff; }
.pub-foot .legal { border-top: 1px solid var(--brand-navy-line); margin-top: 24px; padding-top: 14px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pub-faq details { background: #fff; border: 1px solid var(--line); border-radius: 4px; margin-bottom: 8px; }
.pub-faq summary { padding: 12px 14px; font-weight: 700; cursor: pointer; }
.pub-faq details p { padding: 0 14px 12px; margin: 0; color: var(--text2); }

/* auth */
.auth-wrap { min-height: calc(100vh - 98px); display: grid; place-items: center; padding: 32px 16px; }
.auth-box { width: min(440px, 100%); }
.auth-box.wide { width: min(640px, 100%); }
.auth-box .ct-pbody { padding: 20px; }
.auth-foot { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.auth-demo { margin-top: 12px; font-size: 12px; }
.auth-demo table { width: 100%; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
    .ct-command { width: 240px; }
    .ct-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
    :root { --side: 0px; }
    .ct-burger { display: inline-flex; }
    .ct-shell { grid-template-columns: minmax(0, 1fr); }
    .ct-sidebar { position: fixed; left: -320px; top: 0; bottom: 0; width: 300px; height: 100vh; z-index: 80; transition: left .2s; box-shadow: 0 0 30px rgba(0, 0, 0, .3); }
    body.nav-open .ct-sidebar { left: 0; }
    body.nav-open .ct-scrim { display: block; position: fixed; inset: 0; background: color-mix(in srgb, var(--brand-navy) 45%, transparent); z-index: 70; }
    .ct-g12 > [class*="ct-s"] { grid-column: span 12; }
    .ct-command, .ct-session { display: none; }
    .pub-hero .pub-wrap { grid-template-columns: 1fr; }
    .pub-foot .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .ct-top { padding: 0 10px; gap: 8px; }
    .ct-brand img { height: 32px; }
    .ct-top-title { display: none; }
    .ct-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ct-content { padding: 10px 10px 76px; }
    .ct-row.two, .ct-row.three { grid-template-columns: 1fr; }
    .ct-toolbar { padding: 10px; }
    .ct-page-title { font-size: 18px; }
    .ct-steps { flex-direction: column; }
    .ct-steps li { border-right: 0; border-bottom: 1px solid #dde5ed; }
    .ct-health { margin: 0 10px 10px; }
    .ct-topbtn .lbl { display: none; }
    .pub-hero h1 { font-size: 32px; }
    .pub-head h2 { font-size: 26px; }
    .pub-foot .cols { grid-template-columns: 1fr; }
    .ct-filters .ct-input, .ct-filters input.ct-input { width: 100%; min-width: 0; }
    .ct-dl { grid-template-columns: 1fr; }
    .ct-dl dt { border-bottom: 0; padding-bottom: 0; }
    .ct-dl dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .ct-ticker .track, .ct-live { animation: none; } }
@media print { .ct-top, .ct-modbar, .ct-sidebar, .ct-toolbar .tools, .ct-health, .noprint { display: none !important; } .ct-shell { display: block; } }

/* ---------------------------------------------------------------- guided tour */
.tr-help { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 22px; padding: 10px 16px; background: var(--navy); color: #fff; font: 600 13px var(--fb); box-shadow: 0 8px 24px color-mix(in srgb, var(--brand-navy) 35%, transparent); cursor: pointer; }
.tr-help:hover { background: var(--navy2); }
.tr-help .bi { font-size: 15px; }
body.has-tour .ct-toasts { bottom: 72px; }
body.has-tour .ct-health { padding-right: 160px; }
.tr-layer { position: fixed; inset: 0; z-index: 9000; font: 14px/1.5 var(--fb); color: var(--text); }
.tr-dim, .tr-catch { position: absolute; inset: 0; }
.tr-dim { background: color-mix(in srgb, var(--brand-navy) 66%, transparent); }
.tr-modal { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; background: #fff; border-radius: 10px; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); }
.tr-modal.sm { width: min(420px, calc(100vw - 24px)); }
.tr-hero { position: relative; padding: 26px 30px 24px; background: linear-gradient(135deg, var(--brand-navy) 0%, #0a2f63 55%, var(--brand-primary) 100%); color: #fff; }
.tr-hero img { display: block; height: 38px; width: auto; margin-bottom: 18px; }
.tr-hero h2 { margin: 0 0 6px; color: #fff; font: 600 26px/1.2 var(--fd); }
.tr-hero p { margin: 0; color: #c9dcf3; }
.tr-x { position: absolute; right: 14px; top: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.tr-x:hover { background: rgba(255, 255, 255, .26); }
.tr-body { padding: 22px 30px 4px; }
.tr-body .lead { margin: 0 0 14px; color: var(--text2); }
.tr-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 0 0 16px; padding: 0; list-style: none; }
.tr-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.tr-list li > i { flex: 0 0 30px; height: 30px; border-radius: 8px; background: var(--infoBg); color: var(--blue); display: grid; place-items: center; font-size: 15px; }
.tr-list small { display: block; color: var(--muted); font-size: 12.5px; }
.tr-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.tr-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 12px; padding: 16px 30px 22px; border-top: 1px solid var(--line2); }
.tr-never { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12.5px; cursor: pointer; }
.tr-btns, .tr-tip .ft > span { display: flex; gap: 8px; }
.tr-b { border: 1px solid var(--line); border-radius: 5px; padding: 9px 16px; background: #fff; color: var(--text); font: 600 13.5px var(--fb); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.tr-b:hover { background: var(--panel2); }
.tr-b.p { background: var(--btn-grad); border-color: var(--brand-primary-dark); color: #fff; padding: 9px 20px; }
.tr-b.p:hover { filter: brightness(1.06); }
.tr-link { border: 0; background: none; padding: 0; color: var(--muted); font: 13px var(--fb); cursor: pointer; }
.tr-link:hover { color: var(--text); text-decoration: underline; }
.tr-hole { position: absolute; border-radius: 8px; box-shadow: 0 0 0 9999px color-mix(in srgb, var(--brand-navy) 66%, transparent), 0 0 0 3px #4ea1ff, 0 0 24px 6px rgba(78, 161, 255, .55); pointer-events: none; transition: all .25s ease; }
.tr-tip { position: absolute; background: #fff; border-radius: 10px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); transition: top .25s ease, left .25s ease; --arrow: 30px; }
.tr-tip:before { content: ""; position: absolute; width: 16px; height: 16px; background: #fff; transform: rotate(45deg); }
.tr-tip[data-side="below"]:before { top: -8px; left: calc(var(--arrow) - 8px); }
.tr-tip[data-side="above"]:before { bottom: -8px; left: calc(var(--arrow) - 8px); }
.tr-tip[data-side="right"]:before { left: -8px; top: calc(var(--arrow) - 8px); }
.tr-tip[data-side="left"]:before { right: -8px; top: calc(var(--arrow) - 8px); }
.tr-tip[data-side="over"]:before { display: none; }
.tr-tip .hd { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 0 20px; }
.tr-tip .step { color: var(--blue); font: 700 11px var(--fb); letter-spacing: .08em; text-transform: uppercase; }
.tr-tip .x { border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.tr-tip h3 { margin: 6px 20px; font: 600 18px/1.3 var(--fd); }
.tr-tip p { margin: 0 20px 14px; color: var(--text2); font-size: 13.5px; }
.tr-tip .bar { height: 4px; margin: 0 20px 14px; border-radius: 2px; background: var(--line2); }
.tr-tip .bar b { display: block; height: 4px; border-radius: 2px; background: var(--blue); transition: width .25s ease; }
.tr-tip .ft { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 20px 16px; border-top: 1px solid var(--line2); }
.tr-done { padding: 30px 30px 26px; text-align: center; }
.tr-done .ok { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--okBg); color: var(--okFg); font-size: 28px; margin-bottom: 12px; }
.tr-done h2 { font: 600 22px/1.25 var(--fd); }
.tr-done p { color: var(--text2); margin-bottom: 20px; }
@media (max-width: 640px) {
    .tr-help span { display: none; }
    .tr-help { padding: 11px 13px; right: 14px; bottom: 14px; }
    body.has-tour .ct-health { padding-right: 70px; }
    .tr-hero { padding: 22px 20px 20px; }
    .tr-hero h2 { font-size: 21px; }
    .tr-body { padding: 18px 20px 4px; }
    .tr-list { grid-template-columns: 1fr; }
    .tr-foot { padding: 14px 20px 18px; }
    .tr-btns { width: 100%; }
    .tr-btns .tr-b { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .tr-hole, .tr-tip, .tr-tip .bar b { transition: none; } }

/* Customer action buttons on the blue quick-links bar. */
.ct-modbar .right a.mb { height: 26px; padding: 0 12px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); color: #fff; font-size: 12px; font-weight: 700; }
.ct-modbar .right a.mb:first-child { border-left: 1px solid rgba(255, 255, 255, .55); }
.ct-modbar .right a.mb:hover { background: rgba(255, 255, 255, .2); }
.ct-modbar .right a.mb.solid { background: #fff; color: var(--brand-primary-dark); border-color: #fff; }
.ct-modbar .right a.mb.solid:hover { background: #e8f2ff; color: var(--brand-primary-dark); }
.ct-modbar .right:has(a.mb) { gap: 8px; padding: 0 10px; }
@media (max-width: 700px) { .ct-modbar .right a.mb { padding: 0 9px; } .ct-modbar .right a.mb i { display: none; } }
.ct-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 1360px) { .ct-modbar .right:has(a.mb) { gap: 6px; padding: 0 8px; } .ct-modbar .right a.mb { padding: 0 9px; } .ct-modbar .right a.mb i { display: none; } }

/* Phones (docs/LESSONS.md lesson 1): grid and stack children may shrink, and KPI tiles go two to a row. */
.ct-content > *, .ct-grid > *, .ct-stack > *, .ct-kpis > * { min-width: 0; }
@media (max-width: 560px) { .ct-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ct-sort { color: inherit; text-decoration: none; white-space: nowrap; }
.ct-sort i { font-size: 10px; opacity: .45; }
.ct-sort.is-on i, .ct-sort:hover i { opacity: 1; }

/* Dashboard tiles beyond the top rows, folded (many modules can add more than fit). */
.db-more { margin: -6px 0 18px; }
.db-more > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ct-primary, #0a6fd2); padding: 6px 0; list-style: none; }
.db-more > summary::-webkit-details-marker { display: none; }
.db-more > summary::before { content: "\25B8"; transition: transform .15s; }
.db-more[open] > summary::before { transform: rotate(90deg); }
.db-more[open] > .ct-kpis, .db-more[open] > .cdb-stats { margin-top: 10px; }
