/* === THEME TOKENS =================================================== */
/* Dark = default (near-black, low-blue) */
:root {
    --bg: #0b0d12;
    /* page background */
    --fg: #e9eef7;
    /* primary text */
    --muted: #9aa6b2;
    /* secondary text */
    --card: #111318;
    /* panels/cards */
    --surface: #0e1116;
    /* inputs, inner surfaces, dropdowns */
    --border: #1d222b;
    /* subtle borders */
    --accent: #6cb4ff;
    /* brand accent (keep or tweak) */
    --shadow: 0 10px 28px rgba(0, 0, 0, .45);
    /* text color */
    --text: #ffffff;
    --primary: #2d236f;
    --primary-highlight: #1e7c74;
    --secondary-highlight: #1f212e;
    --tab-text: #ffffff;
}

/* Light theme overrides */
:root[data-theme="light"] {
    --bg: #f7f8fb;
    --fg: #0e1625;
    --muted: #586275;
    --card: #ffffff;
    --surface: #f3f5f9;
    --border: #e3e7ef;
    --accent: #2b78ff;
    --text: #444;
    /* slightly deeper accent for light */
    --shadow: 0 10px 24px rgba(18, 36, 66, .08);
    --primary-highlight: #1e7c74;
    --secondary-highlight: #e5e6e8;
    --tab-text: #ffffff;
}


/* Default to dark if nothing is set (your JS sets [data-theme]) */
html:not([data-theme]),
html[data-theme="dark"] .brand .logo-dark {
    display: inline-block;
}

html[data-theme="dark"] .brand .logo-light {
    display: none;
}

/* Light mode explicitly shows the light logo only */
html[data-theme="light"] .brand .logo-light {
    display: inline-block;
}

html[data-theme="light"] .brand .logo-dark {
    display: none;
}

* {
    box-sizing: border-box
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Inter, Roboto, Arial
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--fg);
}

@supports (height: 100svh) {
    body {
        min-height: 100svh;
    }
}

header,
main {
    width: min(100%, 1100px);
    margin: 0 auto;
    /* padding-bottom: 20px; */
}

main {
    flex: 1;
}

a {
    color: var(--text);
    text-decoration: none
}

.container {
    width: min(100%, 1100px);
    margin: 0 auto;
}

/* Topbar layout */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.qb-copy {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    line-height: 1;
}

.qb-copy.copied {
    color: var(--muted);
}

/* subtle color shift during flash */



/* Compact monochrome toggle */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--fg);
    cursor: pointer;
}

.icon-btn:hover {
    background: var(--surface, #0e1530);
}

.icon-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* Logo swap */
.logo-light {
    display: none;
}

:root[data-theme="light"] .logo-dark {
    display: none;
}

:root[data-theme="light"] .logo-light {
    display: block;
}


/* Ensure both logos occupy same box to avoid layout shift */
.brand .logo {
    display: block;
    height: 45px;
    width: auto;
}

/* Theme toggle icon swap (already likely in your CSS) */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    width: 32px;
    height: 32px;
    background: transparent;
    color: var(--fg);
}

.icon-btn .icon-sun {
    display: block;
}

.icon-btn .icon-moon {
    display: none;
}

:root[data-theme="light"] .icon-btn .icon-sun {
    display: none;
}

:root[data-theme="light"] .icon-btn .icon-moon {
    display: block;
}

/* brand */
.brand {
    display: flex;
    align-items: center;
    gap: 10px
}

#tools {
    scroll-margin-top: 16px;
}

.brand img {
    height: 52px;
    width: auto;
}

/* nav/lang */
.lang a {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--fg)
}
@media (max-width: 560px) {
    .topbar {
        /* flex-wrap: wrap; */
        gap: 12px;
        padding: 16px 0;
    }

    .topbar-left,
    .topbar-right {
        flex: 1 1 100%;
    }

    .topbar-right {
        justify-content: flex-end;
        gap: 8px;
    }

    .lang a {
        font-size: 0.9rem;
    }

    .brand img {
        height: 44px;
    }
}

/* common cards/panels */
.panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px
}

/* home specific bits (safe on all pages) */
.hero h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 42px)
}

.hero .lead {
    color: var(--muted);
    margin: 0 0 18px
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: #001028;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 20px
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px
}

input.search {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--fg)
}

/* ----- global form polish ----- */
:root {
    --control-h: 44px;
    --radius: 10px;
}

input[type="number"],
select,
button.btn {
    height: var(--control-h);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: none;
    color: var(--fg);
    font-size: 16px;
    line-height: 1;
    padding: 10px 12px;
}

button.btn {
    cursor: pointer;
    width: 50%;
    transition: transform .04s ease, background .15s ease, border-color .15s ease;
}

button.btn:hover {
    transform: translateY(-1px);
}

button.btn:active {
    transform: translateY(0);
}

button.btn.primary {
    color: var(--fg);
    border-color: transparent;
    font-weight: 700;
}

input[type="number"]:focus-visible,
select:focus-visible,
button.btn:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* rows of input + button stay aligned */
.row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

/* page panels spacing */
.panel h1 {
    margin: 0 0 8px;
}

.panel .lead {
    color: var(--muted);
    margin: 0 0 14px;
}

/* small label tweaks */
label {
    display: block;
    font-weight: 600;
    font-size: 14px;
}

/* tags/chips */
.tag {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    margin-right: 6px
}

/* better card padding on narrow screens */
@media (max-width: 680px) {
    .panel {
        padding: 14px
    }
}

/* Make all selects compact by default */
select {
    width: auto;
    justify-self: start;
}

/* place in site.css OR a page css if you want only for that page */
.row button.btn {
    padding-inline: 14px;
}

.card--ad {
    position: relative;
    border: 1px solid var(--border);
    background: var(--card);
}

.card--ad:hover {
    background: rgba(108, 180, 255, .09);
}

.ad-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    color: #001028;
    background: var(--accent);
    padding: 2px 6px;
    border-radius: 999px;
    font-weight: 700;
    z-index: 9;
}

/* percentage page: hide legacy right-side bits if they exist */
.pct-item .side,
.pct-item .rlabel,
.pct-item .label-right {
    display: none !important;
}

/* conflict-free result rows */
.res-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
}

/* output looks like an input */
.out {
    display: flex;
    align-items: center;
    height: var(--control-h);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--fg);
    font-size: 16px;
    padding: 10px 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Percentage page: make all controls span full width */
.pct-card input[type="number"],
.pct-card input[type="text"],
.pct-card select {
    width: 100% !important;
    max-width: 100% !important;
    inline-size: 100% !important;
    /* logical width for safety */
    min-width: 0 !important;
    /* avoid overflow in grid/containers */
    display: block;
    box-sizing: border-box;
}

/* Keep your result rows aligned */
.pct-card .res-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

/* Hide any old right-side bits if they still exist */
.pct-card .side,
.pct-card .rlabel,
.pct-card .label-right {
    display: none !important;
}

/* screen-reader-only / hidden content for copy targets */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Two-column tool layout (desktop), 1-column on mobile */
.tool-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    /* main area + sidebar width */
    gap: 18px;
}

.tool-main {
    min-width: 0;
}

/* prevent overflow in grids */
.tool-aside {
    background: var(--surface);
    /* border: 1px solid var(--border); */
    border-radius: 12px;
    padding: 14px;
}

/* Sidebar sections */
.aside-section+.aside-section {
    margin-top: 14px;
}

.aside-title {
    font-weight: 700;
    font-size: 14px;
    margin: 0 0 8px;
    color: var(--fg);
}

.aside-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aside-list li {
    margin: 6px 0;
}

.aside-list a {
    color: var(--muted);
}

.aside-list a:hover {
    color: var(--fg);
}

/* Ad container – keep it neat on dark & light themes */
.ad-slot {
        /* Reserve space (desktop). Mobile overrides below */
        min-height: 160px;
        display: block;
        width: 100%;
        border: 1px dashed rgba(108, 180, 255, .35);
        border-radius: 10px;
        background: transparent;
        overflow: hidden;
}

/* Home page ad wrappers: center mobile unit without forcing height */
.qu-ads.qu-ads-home {
    display: flex;
    justify-content: center;
}
/* Single responsive home ad (managed by JS for mobile sizing) */
@media (max-width: 640px) {
    #homeAd { margin: 0 auto; }
    #convAd { margin: 0 auto; }
}

/* Prefer a horizontal banner look on small screens */
@media (max-width: 640px) {
    .ad-slot {
        min-height: 70px; /* typical 320x50 / 320x100 range */
        aspect-ratio: 16 / 5; /* hint to browsers; AdSense may ignore but helps reserve shape */
        border-radius: 12px;
    }
}

/* When an ad renders, AdSense will inject its own iframe; border is optional */
.ad-slot iframe {
    border-radius: 10px;
}


/* Make the sidebar sticky (optional, desktop only) */
@media (min-width: 1100px) {
    .tool-aside {
        position: sticky;
        top: 18px;
    }
}

/* Collapse to single column on smaller screens */
@media (max-width: 1024px) {
    .tool-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Quick Converter Bar */
.quickbar {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    margin-top: 12px;
}

.quickbar input {
    height: var(--control-h);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--fg);
    padding: 10px 12px;
    width: 100%;
}

/* suggestions dropdown */
.qb-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    z-index: 20;
    max-height: 280px;
    overflow: auto;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
}

.qb-suggest button {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    color: var(--fg);
    padding: 10px 12px;
    cursor: pointer;
}

.qb-suggest button:hover,
.qb-suggest button[aria-selected="true"] {
    background: #121833;
}

/* copy button sits on the right inside the input; hidden by default */
.quickbar .btn--inside {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: calc(var(--control-h) - 6px);
    padding: 0 16px;
}

/* give input room for the inside button (only when visible). We'll toggle a class */
.quickbar.has-copy .search {
    padding-right: 128px;
}

.quickbar .search {
    padding-right: 78px;
    /* reserve room for the chip */
}

.quickbar .copy-inline {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    /* shown via .has-copy */
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
    z-index: 2;
    /* above the input */
    line-height: 1;
    /* tighter vertical alignment */
}

.quickbar.has-copy .copy-inline {
    display: inline-block;
}

/* Optional: subtle feedback on click */
.quickbar .copy-inline.copied {
    opacity: .85;
}

.qb-suggest [role="option"] {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    cursor: pointer;
}

.qb-suggest [role="option"]:last-child {
    border-bottom: 0;
}

.qb-suggest [aria-selected="true"],
.qb-suggest [role="option"]:hover {
    background: rgba(108, 180, 255, .12);
}

/* small label above quickbar */
.hero-label {
    color: var(--text);
    font-size: 18px;
    margin: 6px 0 6px;
    font-weight: 600;
}

/* down arrow under hero */
.scroll-arrow {
    display: inline-block;
    margin-top: 10px;
    font-size: 22px;
    line-height: 1;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--fg);
}

.scroll-arrow:hover {
    background: var(--surface);
}

html {
    scroll-behavior: smooth;
}

#tools {
    scroll-margin-top: 16px;
}

/* tools search above grid */
.tools-search {
    margin-bottom: 6px;
}

.tools-search .search {
    width: 100%;
}

/* Small circular chevron button, responsive but capped */
.tools-arrow {
    width: 36px;
    height: 36px;
    margin: 10px auto 0;
    color: var(--fg);
    text-align: center;
    text-decoration: none;
    box-shadow: none;
    transition: transform .15s ease, border-color .15s ease, color .15s ease, background .15s ease;
    animation: tools-bounce 1.8s ease-in-out infinite;
}

.tools-arrow .chev {
    width: 35px;
    height: 35px;
    display: block;
    margin: 0 auto ;
}

.tools-arrow:hover {
    transform: translateY(2px);
    border-color: var(--accent);
    color: var(--accent);
    background: var(--surface);
}

@keyframes tools-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(3px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tools-arrow {
        animation: none;
    }
}


@media (prefers-reduced-motion: reduce) {
    .tools-arrow {
        animation: none;
    }
}

/* Tiny phones: tighten margins a bit more */
@media (max-width: 380px) {
    .tools-arrow {
        margin-top: 6px;
    }
}



/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .tools-arrow {
        animation: none;
    }
}



/* Kill any legacy hero chevrons drawn with pseudo-elements */
.hero::before,
.hero::after {
    content: none !important;
}


/* If some old class-based chevron still exists, hide it */
.chevron-large,
.big-chevron,
.hero-chevron,
svg[data-hero-chevron] {
    display: none !important;
}

.theme-toggle {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--fg);
    cursor: pointer;
    line-height: 1
}

.theme-toggle:hover {
    background: var(--surface)
}

/* wrap around each input */
.field {
    position: relative;
}

/* right-aligned Copy label that sits on top of the input */
.field .copy-inline {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    font-size: 14px;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
    padding: 2px 0 2px 6px;
    border-radius: 6px;
}

/* subtle hover */
.field .copy-inline:hover {
    color: var(--fg);
    background: #0e1530;
}

/* when Copy is visible, give the input breathing room on the right */
.field.has-copy input {
    padding-right: 88px;
    /* adjust if needed */
}

/* quick visual tweak during “Copied!” flash (optional) */
.field .copy-inline.copied {
    color: var(--muted);
}

/* Percentage page: 2-up inputs that fill the row */
.pct-item .twocol {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    /* 50/50 */
    gap: 10px;
    align-items: end;
    /* line up input bottoms nicely */
}

.pct-item .twocol>div {
    min-width: 0;
}

/* allow shrinking inside grid */
.pct-item .twocol input,
.pct-item .twocol select {
    width: 100%;
    max-width: 100%;
}

/* Stack on small screens */
@media (max-width: 700px) {
    .pct-item .twocol {
        grid-template-columns: 1fr;
    }
}

/* Footer layout */
.site-footer {
    width: 100%;
    box-sizing: border-box;
    /* prevents any “clipping” look */
    margin: 0 auto;
    padding: 20px;
    /* the one true padding for footer */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--muted);
    position: fixed;
    bottom: 0;
    background: var(--bg);
}


.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--fg);
}

.footer-links .sep {
    opacity: .6;
}

.site-footer .copyright {
    margin: 0;
}

/* Back-to-top button — square on the right, animated */
.to-top {
    position: fixed;
    right: 20px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: none;
    background: #3E429C;
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: none;
    /* no shadow */
    transition: transform .18s ease, opacity .18s ease;
    z-index: 1000;
}

.to-top .chev {
    width: 24px;
    height: 24px;
    display: block;
}

.to-top:hover {
    transform: translateY(-2px);
}

.to-top:active {
    transform: translateY(0);
}

/* gentle up-down animation */
@keyframes toTopFloat {
r
    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-2px)
    }
}

.to-top {
    animation: toTopFloat 1.8s ease-in-out infinite;
}

@media (prefers-reduced-motion:reduce) {
    .to-top {
        animation: none;
    }
}

/* Toolbar: always take full width and split left/right */
.print-actions {
    display: flex !important;
    width: 100%;
    justify-content: space-between !important;
    align-items: center;
    gap: 12px;
    text-align: initial;
    padding-bottom: 15px;
}

.print-actions .pa-left {
    margin-right: auto;
}

.print-actions .pa-right {
    margin-left: auto;
}

/* SCREEN: keep it loaded but invisible/off-screen */
.print-only {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* PRINT: show it normally */
@media print {
    .print-only {
        position: static;
        left: auto;
        top: auto;
        opacity: 1;
        height: auto;
        width: auto;
        display: flex;
        /* your layout */
        align-items: center;
        gap: 8px;
        margin: 0 0 8px;
        padding-bottom: 6px;
        border-bottom: 1px solid #ccc;
        color: #000;
        font-size: 14px;
    }

    .print-only .print-logo {
        /* width: 22px; */
        height: 32px;
        display: block;
    }

    /* (keep your other print rules) */
    header,
    .topbar,
    nav,
    .print-actions,
    .to-top {
        display: none !important;
    }

    @page {
        margin: 0.5in;
    }

    .panel,
    .card {
        background: #fff !important;
        color: #000 !important;
        border-color: #ccc !important;
    }
}

.btn-icon {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: none;
    color: var(--fg);
    cursor: pointer;
    padding-left: 0;
    position: relative;
    left: -10px;
}

.btn-icon:hover {
    background: var(--card);
    transform: none;
    color: var(--muted)
}

/* Print button: icon + text perfectly centered */
.print-actions .btn-print {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    line-height: 1;
    /* avoids extra vertical slack */
    height: var(--control-h, 44px);
    padding: 0 5px;
}

.print-actions .btn-print:hover {
    transform: none;
    color: var(--muted)
}

.print-actions .btn-print svg {
    width: 24px;
    height: 24px;
    display: block;
    /* removes baseline offset */
    flex: 0 0 auto;
    /* optional 1px optical nudge if needed: */
    /* transform: translateY(0.5px); */
}
/* block inside #qbSug for converter links */
.qb-block-converters {
  border-top: 1px solid color-mix(in oklab, var(--border, #3a3f47), transparent 35%);
  margin-top: 0.35rem;
  padding-top: 0.35rem;
}

.qb-block-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin: 0 0 0.2rem;
}

.qb-block-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.qb-conv-item {
  display: flex;
  flex-direction: column;
  padding: 0.35rem 0.45rem;
  border-radius: 0.55rem;
  text-decoration: none;
  color: inherit;
}

.qb-conv-item:hover {
  background: color-mix(in oklab, var(--accent, #6b5bff), transparent 82%);
}

.qb-conv-label {
  font-size: 0.88rem;
  font-weight: 500;
}

.qb-conv-desc {
  font-size: 0.78rem;
  opacity: 0.7;
}
/* --- Quick search area --- */
.hc-quickarea {
  margin: 1.5rem 0 1rem;
  max-width: 720px;
}

.hc-quicklabel {
  display: block;
}

.hc-quicklabel-text {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

#hc-quicksearch {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in oklab, var(--border, #3a3f47), transparent 15%);
  background: color-mix(in oklab, var(--card, #11141b), transparent 5%);
  color: var(--fg, #e6edf7);
  font-size: 0.95rem;
}

#hc-quicksearch::placeholder {
  opacity: 0.6;
}

/* results dropdown under search */
.hc-quickresults {
  margin-top: 0.4rem;
  border-radius: 0.9rem;
  border: 1px solid color-mix(in oklab, var(--border, #3a3f47), transparent 20%);
  background: color-mix(in oklab, var(--card, #11141b), transparent 0%);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  padding: 0.4rem;
  max-width: 720px;
}

.hc-quickresults-section + .hc-quickresults-section {
  border-top: 1px solid color-mix(in oklab, var(--border, #3a3f47), transparent 40%);
  margin-top: 0.4rem;
  padding-top: 0.4rem;
}

.hc-quickresults-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin: 0 0 0.2rem;
}

.hc-quickresult-item {
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.55rem;
  border-radius: 0.6rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hc-quickresult-item:hover,
.hc-quickresult-item.is-active {
  background: color-mix(in oklab, var(--accent, #6b5bff), transparent 82%);
}

.hc-qr-label {
  font-size: 0.9rem;
  font-weight: 500;
}

.hc-qr-desc {
  font-size: 0.78rem;
  opacity: 0.7;
}

/* --- All converters accordion --- */
.hc-allconverters {
  margin: 2.5rem 0 1rem;
  border-top: 1px solid color-mix(in oklab, var(--border, #3a3f47), transparent 40%);
  padding-top: 1.6rem;
}

.hc-allconverters-title {
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}

.hc-cat + .hc-cat {
  margin-top: 0.4rem;
}

.hc-cat-toggle {
  width: 100%;
  border: 0;
  border-radius: 0.9rem;
  padding: 0.6rem 0.8rem;
  background: color-mix(in oklab, var(--card, #151923), transparent 0%);
  color: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 0.92rem;
}

.hc-cat-toggle:hover {
  background: color-mix(in oklab, var(--accent, #6b5bff), transparent 88%);
}

.hc-cat-chevron {
  font-size: 0.85rem;
  opacity: 0.7;
  transition: transform 160ms ease;
}

.hc-cat-toggle[aria-expanded="true"] .hc-cat-chevron {
  transform: rotate(180deg);
}

.hc-cat-panel {
  padding: 0.4rem 0.6rem 0.6rem;
}

.hc-cat-link {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  margin: 0.1rem 0.25rem 0.1rem 0;
  border-radius: 999px;
  font-size: 0.82rem;
  text-decoration: none;
  color: inherit;
  background: color-mix(in oklab, var(--card, #11141b), transparent 10%);
  border: 1px solid color-mix(in oklab, var(--border, #3a3f47), transparent 40%);
}

.hc-cat-link:hover {
  background: color-mix(in oklab, var(--accent, #6b5bff), transparent 82%);
  border-color: color-mix(in oklab, var(--accent, #6b5bff), transparent 40%);
}
