/* BestInternetSearch.com -- light and dark themes, search page, results, dashboard */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    --bg: #ffffff;
    --bg-soft: #f6f8fc;
    --surface: #ffffff;
    --surface-2: #f1f4f9;
    --border: #e3e8f0;
    --text: #1f2430;
    --muted: #5f6b7d;
    --faint: #8a94a6;
    --link: #1a0dab;
    --link-visited: #681da8;
    --url: #188038;
    --accent: #3b6ef5;
    --accent-2: #8b5cf6;
    --ok: #16a35a;
    --warn: #c77700;
    --err: #d93025;
    --shadow: 0 1px 6px rgba(32, 33, 36, .18);
    --shadow-lg: 0 10px 40px rgba(25, 40, 80, .14);
    --radius: 16px;
    --brand-b: #3b6ef5; --brand-i: #e8394c; --brand-s: #f28c00; --brand-r: #16a35a;
    color-scheme: light;
}
body.dark {
    --bg: #0f1218;
    --bg-soft: #141923;
    --surface: #171c27;
    --surface-2: #1d2331;
    --border: #2a3245;
    --text: #e8ecf4;
    --muted: #a3adc2;
    --faint: #7c879d;
    --link: #8ab4f8;
    --link-visited: #c58af9;
    --url: #7fd1a0;
    --accent: #6f97ff;
    --accent-2: #a78bfa;
    --shadow: 0 1px 6px rgba(0, 0, 0, .5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, .45);
    --brand-b: #6f97ff; --brand-i: #ff6b7a; --brand-s: #ffa53d; --brand-r: #4cd98a;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--bg);
    color: var(--text);
    font: 15px/1.6 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color .25s ease, color .25s ease;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font: inherit; color: inherit; }

/* ---- top bar ---- */
.topbar {
    display: flex; align-items: center; justify-content: flex-end; gap: 10px;
    padding: 14px 22px; position: relative; z-index: 5;
}
.topbar .spacer { flex: 1; }
.topbar .mini-brand { display: none; }
.theme-switch {
    display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; border: 1px solid var(--border);
    background: var(--surface); box-shadow: var(--shadow);
}
.theme-switch button {
    width: 36px; height: 34px; border-radius: 999px; border: 0; background: transparent; cursor: pointer;
    font-size: 17px; line-height: 1; opacity: .45; filter: grayscale(.6); transition: all .2s ease;
}
.theme-switch button:hover { opacity: .8; }
body:not(.dark) .theme-switch button[data-theme=light],
body.dark .theme-switch button[data-theme=dark] {
    opacity: 1; filter: none; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border);
}
.theme-toggle {
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
    background: var(--surface); cursor: pointer; font-size: 20px; line-height: 1;
    display: grid; place-items: center; box-shadow: var(--shadow);
    transition: transform .2s ease, background .2s;
}
.theme-toggle:hover { transform: rotate(-15deg) scale(1.06); }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 9px 20px; border-radius: 999px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text); cursor: pointer; font-weight: 600;
    text-decoration: none !important; transition: box-shadow .2s, transform .1s, background .2s;
}
.btn:hover { box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border: 0;
    box-shadow: 0 4px 14px rgba(59, 110, 245, .35);
}
.btn.primary:hover { box-shadow: 0 6px 20px rgba(59, 110, 245, .45); }
.btn.small { padding: 6px 14px; font-size: 13px; }
.btn.danger { color: var(--err); }
.avatar {
    width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 700;
}

/* ---- brand ---- */
.brand {
    font-family: 'Poppins', 'Inter', sans-serif; font-weight: 700; letter-spacing: -1.5px;
    display: inline-flex; align-items: center; gap: 14px; user-select: none; text-decoration: none !important;
}
.brand img { width: 1.15em; height: 1.15em; }
.brand .w { white-space: nowrap; }
.brand .b { color: var(--brand-b); } .brand .i { color: var(--brand-i); }
/* "net": orange with a 1px outline in Inter's red, all the way round */
.brand .n {
    color: var(--brand-s);
    text-shadow: 1px 0 0 var(--brand-i), -1px 0 0 var(--brand-i), 0 1px 0 var(--brand-i), 0 -1px 0 var(--brand-i),
                 1px 1px 0 var(--brand-i), -1px -1px 0 var(--brand-i), 1px -1px 0 var(--brand-i), -1px 1px 0 var(--brand-i);
}
/* "Search": green with a 1px outline in Best's blue, all the way round */
.brand .r {
    color: var(--brand-r);
    text-shadow: 1px 0 0 var(--brand-b), -1px 0 0 var(--brand-b), 0 1px 0 var(--brand-b), 0 -1px 0 var(--brand-b),
                 1px 1px 0 var(--brand-b), -1px -1px 0 var(--brand-b), 1px -1px 0 var(--brand-b), -1px 1px 0 var(--brand-b);
}
.brand .com { color: var(--faint); font-weight: 600; font-size: .42em; letter-spacing: 0; align-self: flex-end; margin: 0 0 .55em -8px; }
.brand.big { font-size: clamp(40px, 7vw, 76px); }
.brand.mini { font-size: 24px; letter-spacing: -.6px; gap: 8px; }
.brand.mini .com { margin-left: -4px; }
/* the small logo (24px) keeps the outlines in proportion to the big one: 1px -> 0.4px */
.brand.mini .n { text-shadow: 0.4px 0 0 var(--brand-i), 0.28px 0.28px 0 var(--brand-i), 0 0.4px 0 var(--brand-i), -0.28px 0.28px 0 var(--brand-i), -0.4px 0 0 var(--brand-i), -0.28px -0.28px 0 var(--brand-i), 0 -0.4px 0 var(--brand-i), 0.28px -0.28px 0 var(--brand-i); }
.brand.mini .r { text-shadow: 0.4px 0 0 var(--brand-b), 0.28px 0.28px 0 var(--brand-b), 0 0.4px 0 var(--brand-b), -0.28px 0.28px 0 var(--brand-b), -0.4px 0 0 var(--brand-b), -0.28px -0.28px 0 var(--brand-b), 0 -0.4px 0 var(--brand-b), 0.28px -0.28px 0 var(--brand-b); }

/* ---- the search hero ---- */
main { flex: 1; width: 100%; }
.hero {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 9vh 20px 30px; transition: padding .45s ease;
}
.hero .tagline { color: var(--muted); margin: 6px 0 30px; font-size: 16px; text-align: center; }
/* with results the page stays the front page -- same logo, line and search box -- and the results
   appear right under the box; only the example questions step aside */
body.has-results .hero { padding-bottom: 6px; }
body.has-results .hero .hints { display: none; }

.searchbox {
    width: min(720px, 100%); display: flex; align-items: center; gap: 10px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 30px;
    padding: 6px 8px 6px 20px; box-shadow: var(--shadow); position: relative;
    transition: box-shadow .2s, border-color .2s;
}
.searchbox:hover, .searchbox:focus-within { box-shadow: var(--shadow-lg); border-color: transparent; }
.searchbox:focus-within::before {
    content: ''; position: absolute; inset: -2px; border-radius: 32px; z-index: -1;
    background: linear-gradient(90deg, var(--brand-b), var(--accent-2), var(--brand-i), var(--brand-s), var(--brand-r));
    background-size: 300% 100%; animation: ring 6s linear infinite;
}
@keyframes ring { to { background-position: 300% 0; } }
.searchbox .glass { color: var(--faint); font-size: 18px; }
.searchbox textarea {
    flex: 1; border: 0; outline: 0; background: transparent; resize: none; font-size: 17px;
    line-height: 26px; height: 42px; max-height: 160px; padding: 8px 14px; overflow-y: auto;
    border-radius: 14px; transition: background .2s, box-shadow .2s;
}
.searchbox textarea:focus {
    border: 0; background: var(--bg-soft);
    box-shadow: inset 0 0 0 1px var(--border);
}
.searchbox .go {
    width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; font-size: 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); flex: none;
    box-shadow: 0 4px 14px rgba(59, 110, 245, .35); transition: transform .15s;
}
.searchbox .go:hover { transform: scale(1.06); }
.searchbox .go:disabled { opacity: .5; cursor: default; transform: none; }
.hints { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; max-width: 720px; }
.chip {
    border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 999px;
    padding: 6px 14px; font-size: 13px; cursor: pointer; transition: all .2s;
}
.chip:hover { color: var(--text); box-shadow: var(--shadow); }

/* ---- results ---- */
.results { width: min(820px, 100%); margin: 0 auto; padding: 8px 20px 40px; display: none; }
body.has-results .results { display: block; }
.status-line { color: var(--faint); font-size: 13px; margin: 6px 4px 14px; min-height: 20px; }
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px 22px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.04);
    animation: rise .35s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.card h3 { margin: 0 0 10px; font: 600 15px/1.3 'Poppins', 'Inter', sans-serif; display: flex; align-items: center; gap: 10px; }
.card h3 .model { margin-left: auto; color: var(--faint); font: 500 12px 'Inter', sans-serif; text-align: right; }
.badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 600; letter-spacing: .2px;
}
.badge.fast { background: rgba(242, 161, 0, .15); color: #b06f00; }
.badge.careful { background: rgba(59, 110, 245, .13); color: var(--accent); }
.badge.saved { background: rgba(22, 163, 90, .13); color: var(--ok); }
.badge.summary { background: rgba(139, 92, 246, .14); color: var(--accent-2); }
body.dark .badge.fast { color: #ffc53d; }
.answer { overflow-wrap: anywhere; }
.answer p { margin: 0 0 10px; }
.answer pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; overflow-x: auto; font-size: 13px; }
.answer code { background: var(--surface-2); border-radius: 5px; padding: 1px 5px; font-size: 13px; }
.answer pre code { background: none; padding: 0; }
.answer ul, .answer ol { margin: 0 0 10px; padding-left: 24px; }
.answer h4 { margin: 12px 0 6px; font-size: 15px; }
.answer table.md { border-collapse: collapse; margin: 4px 0 12px; font-size: 14px; width: 100%; }
.answer table.md th, .answer table.md td { border: 1px solid var(--border); padding: 7px 10px; text-align: left; vertical-align: top; }
.answer table.md th { background: var(--surface-2); font-weight: 600; }
.answer .cut-off { color: var(--faint); font-size: 13px; font-style: italic; margin-top: 6px; }
.typing::after { content: '\25CF'; animation: blink 1s steps(2) infinite; color: var(--accent); margin-left: 3px; }
@keyframes blink { 50% { opacity: 0; } }
.wait { color: var(--muted); display: flex; align-items: center; gap: 10px; }
.spinner {
    width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--accent);
    animation: spin .8s linear infinite; flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.saved-item { border-top: 1px solid var(--border); padding: 12px 0 4px; }
.saved-item:first-of-type { border-top: 0; padding-top: 2px; }
.saved-meta { color: var(--faint); font-size: 12px; margin-bottom: 4px; }
.saved-item .answer.clamped { max-height: 9.6em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.more { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 2px 0; font-weight: 600; font-size: 13px; }
.related { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- sources & further reading ---- */
.links { padding-bottom: 20px; }
.links-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 2px 0 12px; }
.links-head h3 { margin: 0; }
.links-note { color: var(--faint); font-size: 12px; }
.link-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 18px; }   /* one tile per row, the card's full width */
.link-grid:last-child { margin-bottom: 0; }
.link-tile {
    display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 14px;
    border: 1px solid var(--border); background: var(--bg-soft); color: var(--text); text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; min-width: 0;
}
.link-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: transparent; background: var(--surface); }
.link-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.link-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mono {
    width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center;
    font: 700 13px 'Poppins', 'Inter', sans-serif; color: #fff;
    background: linear-gradient(135deg, hsl(var(--h) 70% 55%), hsl(calc(var(--h) + 40) 70% 45%));
}
.crumbs { flex: 1; min-width: 0; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs .host { color: var(--text); font-weight: 600; }
.crumbs .sep { margin: 0 5px; color: var(--faint); }
.ext { color: var(--faint); font-size: 13px; transition: color .18s, transform .18s; }
.link-tile:hover .ext { color: var(--accent); transform: translate(1px, -1px); }
.link-title {
    font: 600 15.5px/1.35 'Inter', sans-serif; color: var(--link);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.link-tile:hover .link-title { text-decoration: underline; text-underline-offset: 3px; }
.link-desc {
    font-size: 13.5px; line-height: 1.5; color: var(--muted);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.cited { align-self: flex-start; font-size: 11.5px; font-weight: 600; color: var(--accent);
         background: rgba(59, 110, 245, .1); padding: 2px 9px; border-radius: 999px; }
.link-grid.sponsored .link-tile { background: var(--surface); border-style: dashed; }

/* ---- queued notice ---- */
.overlay { position: fixed; inset: 0; background: rgba(10, 14, 24, .45); display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px; }   /* dimmed, never blurred */
.overlay.open { display: flex; }
.dialog { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 26px; width: min(560px, 100%); box-shadow: var(--shadow-lg); animation: rise .25s ease both; }
.dialog h2 { margin: 0 0 6px; font: 600 20px 'Poppins', 'Inter', sans-serif; }
.dialog p { color: var(--muted); margin: 0 0 14px; }
.dialog textarea { width: 100%; min-height: 90px; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; background: var(--bg-soft); }
.dialog .row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; }
.queue-pos { font-size: 13px; color: var(--faint); }

/* ---- "Promote your website" ---- */
.promote-btn { gap: 6px; }
.dialog.promo { width: min(680px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; position: relative; padding: 30px 32px 26px; }
.promo-close { position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border-radius: 50%; border: 0;
               background: var(--surface-2); color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.promo-close:hover { color: var(--text); }
.promo-kicker { margin: 0 0 4px !important; font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--accent) !important; }
.dialog.promo h2 { font-size: 24px; margin-bottom: 8px; }
.promo-lead { font-size: 15px; }
.promo-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.promo-plan { border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; background: var(--bg-soft); }
.promo-plan.featured { border-color: rgba(59, 110, 245, .45); box-shadow: 0 0 0 3px rgba(59, 110, 245, .08); }
.promo-plan p { font-size: 13.5px; line-height: 1.55; margin: 0 !important; }
.promo-plan-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.promo-plan-head h3 { margin: 0; font: 600 15.5px 'Poppins', 'Inter', sans-serif; flex: 1; }
.promo-ico { font-size: 18px; }
.promo-price { font: 700 18px 'Poppins', 'Inter', sans-serif; color: var(--text); white-space: nowrap; }
.promo-price small { font: 500 12px 'Inter', sans-serif; color: var(--faint); }
.promo-how { margin: 4px 0 8px; font: 600 15.5px 'Poppins', 'Inter', sans-serif; }
.promo-steps { margin: 0 0 14px; padding-left: 22px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.promo-steps li { margin-bottom: 7px; }
.promo-steps b { color: var(--text); }
.promo-fine { font-size: 12.5px !important; color: var(--faint) !important; margin: 0 0 6px !important; }
@media (max-width: 640px) { .promo-plans { grid-template-columns: 1fr; } .promote-btn { padding: 6px 10px; } }

/* ---- forms / auth cards ---- */
.auth-wrap { display: flex; justify-content: center; padding: 30px 20px 60px; }
.auth-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 30px; box-shadow: var(--shadow-lg); }
.auth-card h1 { font: 600 24px 'Poppins', 'Inter', sans-serif; margin: 0 0 4px; }
.auth-card .sub { color: var(--muted); margin: 0 0 20px; }
label { display: block; font-weight: 600; font-size: 13px; margin: 14px 0 6px; }
.input, input[type=text], input[type=password], input[type=email], input[type=url], textarea.input, select {
    width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border);
    background: var(--bg-soft); outline: none; transition: border-color .2s, box-shadow .2s;
}
.input:focus, input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 110, 245, .18); }
.help { color: var(--faint); font-size: 12px; margin-top: 5px; }
.msg { border-radius: 12px; padding: 10px 14px; margin: 14px 0 0; font-size: 14px; display: none; }
.msg.show { display: block; }
.msg.ok { background: rgba(22, 163, 90, .12); color: var(--ok); }
.msg.err { background: rgba(217, 48, 37, .1); color: var(--err); }
.auth-card .btn.primary { width: 100%; margin-top: 20px; padding: 12px; }
.auth-card .alt { text-align: center; margin-top: 16px; color: var(--muted); font-size: 14px; }

/* ---- dashboard ---- */
.dash { width: min(1120px, 100%); margin: 0 auto; padding: 10px 20px 60px; display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.dash nav { position: sticky; top: 16px; align-self: start; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 10px; }
.dash nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: var(--text); font-weight: 500; text-decoration: none; }
.dash nav a:hover { background: var(--surface-2); }
.dash nav a.on { background: linear-gradient(135deg, rgba(59,110,245,.14), rgba(139,92,246,.14)); color: var(--accent); font-weight: 600; }
.dash nav .ico { width: 22px; text-align: center; }
.dash h1 { font: 600 26px 'Poppins', 'Inter', sans-serif; margin: 4px 0 4px; }
.dash .lead { color: var(--muted); margin: 0 0 20px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px 24px; margin-bottom: 20px; }
.panel h2 { font: 600 17px 'Poppins', 'Inter', sans-serif; margin: 0 0 4px; }
.panel .note { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px; color: var(--text); text-decoration: none !important; transition: transform .15s, box-shadow .2s; display: block; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tile .ico { font-size: 26px; }
.tile h3 { margin: 8px 0 4px; font: 600 16px 'Poppins', 'Inter', sans-serif; }
.tile p { margin: 0; color: var(--muted); font-size: 14px; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; color: var(--faint); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
table.list td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table-wrap { overflow-x: auto; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.pill.approved, .pill.captured, .pill.reserved, .pill.active { background: rgba(22,163,90,.13); color: var(--ok); }
.pill.pending, .pill.created { background: rgba(242,161,0,.15); color: var(--warn); }
.pill.rejected, .pill.failed { background: rgba(217,48,37,.1); color: var(--err); }
.price { font-weight: 700; color: var(--text); }
.email-preview { font: 600 18px 'Poppins', 'Inter', sans-serif; margin-top: 10px; color: var(--accent); overflow-wrap: anywhere; }
.inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline > * { flex: 1; min-width: 150px; }
.inline > .btn, .inline > select.narrow { flex: none; }

/* ---- dashboard: My questions ---- */
.mq-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mq-toolbar .grow { flex: 1; }
.mq-all, .mq-site { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; font-size: 14px; margin: 0; cursor: pointer; }
.mq-site { margin: 14px 0 4px; padding: 12px 14px; border: 1px dashed var(--border); border-radius: 12px; flex-wrap: wrap; }
.mq-site .help { flex-basis: 100%; font-weight: 400; margin: 0 0 0 26px; }
.mq-count { color: var(--faint); font-size: 13px; }
.mq-confirm { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 12px 14px;
              border-radius: 12px; background: rgba(217, 48, 37, .08); color: var(--text); font-size: 14px; }
.mq-confirm span { flex: 1; min-width: 200px; }
.mq-list { margin-top: 14px; border-top: 1px solid var(--border); }
.mq-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 2px; border-bottom: 1px solid var(--border); }
.mq-check { margin: 3px 0 0; }
.mq-check input, .mq-all input, .mq-site input { width: 17px; height: 17px; accent-color: var(--accent); }
.mq-details { flex: 1; min-width: 0; }
.mq-details summary { cursor: pointer; list-style: none; }
.mq-details summary::-webkit-details-marker { display: none; }
.mq-q { display: block; font-weight: 600; color: var(--text); }
.mq-details summary:hover .mq-q { color: var(--accent); }
.mq-meta { display: block; color: var(--faint); font-size: 12.5px; margin-top: 3px; }
.mq-body { margin-top: 12px; }
.mq-part { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: var(--bg-soft); }
.mq-part-head { display: flex; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.mq-part-head .model { margin-left: auto; color: var(--faint); font-weight: 500; }
.pill.away { background: rgba(139, 92, 246, .14); color: var(--accent-2); }

/* ---- footer ---- */
footer { border-top: 1px solid var(--border); background: var(--bg-soft); color: var(--faint); font-size: 13px; padding: 14px 22px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
footer .ai { display: flex; gap: 14px; flex-wrap: wrap; }
footer .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); margin-right: 6px; vertical-align: 1px; }
footer .dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(22,163,90,.18); }
footer .dot.off { background: var(--err); }
footer .grow { flex: 1; }

@media (max-width: 760px) {
    .dash { grid-template-columns: 1fr; }
    .dash nav { position: static; display: flex; overflow-x: auto; }
    .dash nav a { white-space: nowrap; }
    .grid2 { grid-template-columns: 1fr; }
    .topbar { padding: 10px 14px; }
    .brand .com { display: none; }
    .card { padding: 16px; }
}
