:root {
    --qe-red: #d83b40;
    --qe-red-dark: #c52f35;
    --qe-navy: #163365;
    --qe-navy-dark: #0d2855;
    --qe-slate: #6f7b8c;
    --qe-text: #23385f;
    --qe-grey: #f0f1f5;
    --qe-bg: #f8f9fb;
    --qe-white: #ffffff;
    --qe-border: #e4e7ed;
    --qe-radius: 20px;
    --qe-shadow: 0 12px 32px rgba(15, 41, 84, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--qe-bg);
    color: var(--qe-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.qe-container { width: min(1160px, calc(100% - 36px)); margin: 0 auto; }
.screen-reader-text { position:absolute;left:-9999px; }

.qe-topbar {
    background: var(--qe-red);
    color: var(--qe-white);
    font-weight: 700;
    padding: 18px 0;
}
.qe-topbar-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 32px; }

.qe-header { background:#fff; border-bottom:1px solid var(--qe-border); position:sticky; top:0; z-index:50; }
.qe-header-inner { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:18px 0; }
.qe-brand { display:flex; align-items:center; gap:16px; min-width:0; }
.qe-logo img, .qe-logo .custom-logo { max-height:64px; width:auto; }
.qe-logo-mark { width:68px; height:54px; border:3px solid var(--qe-navy); border-radius:10px; display:grid; place-items:center; color:var(--qe-red); font-weight:900; font-style:italic; }
.qe-brand-copy { display:flex; flex-direction:column; min-width:0; }
.qe-brand-title { color:var(--qe-navy); font-size:clamp(1.6rem,3vw,2.3rem); font-weight:900; line-height:1; }
.qe-brand-subtitle { color:var(--qe-slate); font-weight:700; margin-top:6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.qe-nav ul { list-style:none; display:flex; gap:8px; margin:0; padding:0; }
.qe-nav a { display:block; padding:12px 15px; border-radius:12px; color:var(--qe-navy); font-weight:800; }
.qe-nav a:hover { background:var(--qe-grey); }
.qe-menu-toggle { display:none; border:0; background:var(--qe-grey); color:var(--qe-navy); padding:12px 16px; border-radius:12px; font-weight:800; }

.qe-home-intro { background:#fff; padding:52px 0 32px; }
.qe-home-brand-row h1 { margin:8px 0 14px; max-width:900px; font-size:clamp(2.3rem,7vw,5.3rem); line-height:.98; color:var(--qe-navy); letter-spacing:-.04em; }
.qe-home-brand-row p { max-width:780px; color:var(--qe-slate); font-size:1.12rem; font-weight:600; }
.qe-kicker { display:inline-block; text-transform:uppercase; letter-spacing:.14em; font-size:.82rem; font-weight:900; color:var(--qe-red); }
.qe-kicker-light { color:#f2c5c8; }
.qe-home-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:34px; }
.qe-home-tile { min-height:98px; display:grid; place-items:center; background:var(--qe-grey); border-radius:20px; color:var(--qe-navy); font-size:clamp(1.1rem,3vw,1.45rem); font-weight:900; transition:.18s ease; }
.qe-home-tile:hover { transform:translateY(-2px); box-shadow:var(--qe-shadow); }
.qe-primary-cta { margin-top:30px; display:flex; align-items:center; justify-content:center; min-height:92px; border-radius:22px; background:var(--qe-red); color:#fff; font-size:clamp(1.25rem,3vw,1.7rem); font-weight:900; box-shadow:0 12px 22px rgba(216,59,64,.18); }
.qe-primary-cta:hover { background:var(--qe-red-dark); }

.qe-hero-band { background:linear-gradient(180deg,var(--qe-navy),var(--qe-navy-dark)); color:#fff; padding:80px 0; }
.qe-hero-grid { display:grid; grid-template-columns:1.2fr .8fr; gap:60px; align-items:center; }
.qe-hero-band h2 { font-size:clamp(2.7rem,6vw,5rem); line-height:.98; letter-spacing:-.04em; margin:14px 0 22px; }
.qe-hero-band p { color:#dce4f1; max-width:720px; font-size:1.1rem; }
.qe-outline-button { display:inline-flex; margin-top:18px; padding:15px 22px; border:2px solid rgba(255,255,255,.75); border-radius:14px; font-weight:900; }
.qe-hero-panel { display:grid; gap:14px; }
.qe-mini-stat { display:flex; gap:16px; align-items:center; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14); padding:18px 20px; border-radius:18px; backdrop-filter:blur(10px); }
.qe-mini-stat span { width:46px; height:46px; border-radius:12px; display:grid; place-items:center; background:var(--qe-red); font-weight:900; }
.qe-mini-stat strong { font-size:1.05rem; }

.qe-content-section, .qe-dashboard-shell { padding:70px 0; }
.qe-section-title { margin:10px 0 28px; color:var(--qe-navy); font-size:clamp(2rem,4vw,3.3rem); line-height:1.05; }
.qe-feature-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.qe-feature-card, .qe-page-card { background:#fff; border:1px solid var(--qe-border); border-radius:var(--qe-radius); box-shadow:var(--qe-shadow); padding:28px; }
.qe-feature-card h3 { color:var(--qe-navy); font-size:1.4rem; margin-top:0; }
.qe-feature-card p { color:var(--qe-slate); }

.qe-dashboard-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:28px; }
.qe-dashboard-heading h1 { color:var(--qe-navy); font-size:clamp(2rem,5vw,3.6rem); line-height:1; margin:8px 0; }
.qe-dashboard-heading p { color:var(--qe-slate); }
.qe-primary-small { background:var(--qe-red); color:#fff; padding:15px 20px; border-radius:14px; font-weight:900; white-space:nowrap; }
.qe-stat-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.qe-stat-card { background:#fff; border-radius:18px; border:1px solid var(--qe-border); padding:24px; box-shadow:var(--qe-shadow); }
.qe-stat-card span { display:block; color:var(--qe-slate); font-weight:800; }
.qe-stat-card strong { display:block; color:var(--qe-red); font-size:2.3rem; margin-top:6px; }
.qe-dashboard-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin:22px 0; }
.qe-action-card { display:flex; gap:16px; align-items:center; background:var(--qe-grey); border-radius:18px; padding:22px; }
.qe-action-icon { width:52px; height:52px; border-radius:14px; display:grid; place-items:center; background:var(--qe-navy); color:#fff; font-weight:900; flex:0 0 auto; }
.qe-action-card strong { display:block; color:var(--qe-navy); }
.qe-action-card small { color:var(--qe-slate); }
.qe-dashboard-panel { background:#fff; border:1px solid var(--qe-border); border-radius:var(--qe-radius); box-shadow:var(--qe-shadow); overflow:hidden; }
.qe-panel-head { display:flex; justify-content:space-between; align-items:center; padding:22px 24px; border-bottom:1px solid var(--qe-border); }
.qe-panel-head h2 { margin:0; color:var(--qe-navy); }
.qe-panel-head a { color:var(--qe-red); font-weight:900; }
.qe-table-wrap { overflow:auto; }
.qe-table { width:100%; border-collapse:collapse; min-width:720px; }
.qe-table th, .qe-table td { text-align:left; padding:16px 20px; border-bottom:1px solid var(--qe-border); }
.qe-table th { background:#fafbfc; color:var(--qe-slate); font-size:.82rem; text-transform:uppercase; letter-spacing:.08em; }
.qe-table td:first-child a { color:var(--qe-navy); font-weight:900; }
.qe-empty-state { padding:44px 24px; text-align:center; color:var(--qe-slate); }
.qe-empty-state h3 { color:var(--qe-navy); }
.qe-login-message { background:#fff; border-radius:18px; padding:28px; box-shadow:var(--qe-shadow); text-align:center; }

.qe-footer { background:#0b1f45; color:#dce4f1; padding:50px 0 26px; }
.qe-footer-grid { display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:36px; }
.qe-footer h2, .qe-footer h3 { color:#fff; }
.qe-footer a { color:#fff; font-weight:800; }
.qe-copyright { margin-top:36px; padding-top:20px; border-top:1px solid rgba(255,255,255,.12); color:#aebbd0; }

@media (max-width: 860px) {
    .qe-topbar-grid { grid-template-columns:1fr; }
    .qe-menu-toggle { display:block; }
    .qe-nav { display:none; position:absolute; left:18px; right:18px; top:calc(100% + 8px); background:#fff; border-radius:16px; box-shadow:var(--qe-shadow); padding:10px; }
    .qe-nav.is-open { display:block; }
    .qe-nav ul { flex-direction:column; }
    .qe-brand-subtitle { max-width:48vw; }
    .qe-hero-grid, .qe-feature-grid, .qe-dashboard-actions, .qe-footer-grid { grid-template-columns:1fr; }
    .qe-stat-grid { grid-template-columns:repeat(3,1fr); }
}

@media (max-width: 620px) {
    .qe-container { width:min(100% - 28px, 1160px); }
    .qe-topbar { padding:16px 0; }
    .qe-header-inner { padding:14px 0; }
    .qe-logo-mark { width:58px; height:48px; }
    .qe-brand-subtitle { display:none; }
    .qe-home-intro { padding-top:34px; }
    .qe-home-grid { gap:14px; }
    .qe-home-tile { min-height:86px; border-radius:18px; }
    .qe-primary-cta { min-height:82px; }
    .qe-hero-band { padding:64px 0; }
    .qe-dashboard-heading { align-items:flex-start; flex-direction:column; }
    .qe-stat-grid { grid-template-columns:1fr; }
    .qe-stat-card { display:flex; justify-content:space-between; align-items:center; }
    .qe-stat-card strong { margin-top:0; }
}
