/* ============================================================
   ALL OVER TOOLS — Design System
   Combined styles.css + homepage.css
   ============================================================ */

/* No web fonts - text uses each OS's native system font (San Francisco on
   Mac/iOS, Segoe UI on Windows, Roboto on Android) via the font stacks below.
   Zero font network requests, so nothing to load or defer here. */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
    /* Surface stack — each step is one layer "higher" */
    --surface-base: #0e1219;
    --surface-01: #141921;
    --surface-02: #1a2130;
    --surface-03: #232c3d;
    --surface-04: #2c374a;
    --surface-rim: rgba(255, 255, 255, 0.06);

    /* Text */
    --text-primary: #edf2f8;
    --text-secondary: #9aaabb;
    --text-muted: #7d91a7;

    /* Accent — orange, kept per brand */
    --accent: rgb(255 155 81);
    --accent-dim: rgba(255, 155, 81, 0.15);
    --accent-glow: rgba(255, 155, 81, 0.35);

    /* Accent alt — indigo for code/badges */
    --accent-alt: #908fe2;

    /* Links */
    --color-links: #f5cb5c;

    /* Legacy aliases — keep so any inline refs don't break */
    --color-primary: var(--text-primary);
    --color-secondary: var(--text-primary);
    --color-dark: var(--surface-base);
    --color-light: var(--surface-04);
    --color-bglight: var(--surface-03);

    /* Radius */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 20px;

    /* Transitions */
    --t-fast: 0.15s ease;
    --t-base: 0.2s ease;
    --t-slow: 0.35s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55);

    /* Status */
    --color-success: var(--color-success);
    --color-error: var(--color-error);
    --color-success-dim: rgba(74, 222, 128, 0.1);
    --color-error-dim: rgba(248, 113, 113, 0.1);

    /* Overlays */
    --overlay-dark: rgba(14, 18, 25, 0.75);
    --overlay-bg: rgba(0, 0, 0, 0.6);

    /* Brand (social share) */
    --color-reddit: #ff4500;
    --color-linkedin: #0077b5;

    /* Syntax highlight */
    --color-key: #e06c75;
    --color-val: #98c379;
    --accent-alt-dim: var(--accent-alt-dim);

    /* Font scale */
    --fs-sm: 0.75rem;
    --fs-md: 0.875rem;
    --fs-lg: 1rem;

    /* Layout */
    --page-max-width: 1280px;
    --page-padding: 5%;
    --section-pad: 80px;
}

html {
    width: 100vw;
    scroll-behavior: smooth;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--surface-base);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

* {
    scrollbar-color: var(--surface-04) var(--surface-base);
    scrollbar-width: thin;
}

/* ── Typography ────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
textarea,
label,
span,
button,
td,
th {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.3;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 500;
}

h5 {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    font-weight: 500;
}

h6 {
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    font-weight: 500;
}

button {
    font-size: var(--fs-md);
    font-weight: 600;
}

hr {
    border: none;
    border-top: 1px solid var(--surface-rim);
    margin: 1.5rem 0;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--t-fast);
}

ul a {
    transition: color var(--t-base);
}

ul a:hover {
    color: var(--accent);
}

/* AI Summary */
.ai-summary {
    background: var(--surface-02);
    border-radius: var(--r-md);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

/* ── Form elements ─────────────────────────────────────────── */
select {
    padding: 6px 18px;
    border-radius: var(--r-sm);
    background: var(--surface-03);
    color: var(--text-primary);
    border: none;
    height: 35px;
}

textarea:focus-visible {
    outline: none;
}

label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    color: var(--text-primary);
}

.radio-group label {
    justify-content: flex-start;
}

#contactForm label {
    justify-content: flex-start;
}

/* Checkbox */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--surface-04);
    border-radius: var(--r-sm);
    background: var(--surface-02);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
    position: relative;
}

input[type="checkbox"]:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='1,5 4.5,8.5 11,1' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/65% no-repeat;
}

.domain-filter-input::-webkit-inner-spin-button,
.domain-filter-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.domain-filter-input {
    -moz-appearance: textfield;
}

.num-wrap {
    position: relative;
    display: inline-block;
    width: 80px;
}

.num-wrap input {
    width: 100%;
    height: 35px;
    padding: 8px 28px 8px 12px;
    border-radius: var(--r-md);
    border: 1px solid var(--surface-rim);
    background: var(--surface-03);
    color: var(--text-primary);
    outline: none;
}

.num-arrows {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.num-arrows .num-up {
    border-radius: 0 var(--r-md) 0 0;
    border: 1px solid var(--surface-rim);
    border-bottom: 0;
    background: var(--surface-03);
    color: var(--text-primary);
    height: 50%;
    width: 28px;
    font-size: var(--fs-md);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all var(--t-fast);
}

.num-arrows .num-down {
    border-radius: 0 0 var(--r-md) 0;
    /* bottom-right only */
    border: 1px solid var(--surface-rim);
    background: var(--surface-03);
    color: var(--text-primary);
    height: 50%;
    width: 28px;
    font-size: var(--fs-md);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all var(--t-fast);
}

.num-arrows button:hover {
    background: var(--accent);
    color: var(--text-primary);
    border-color: var(--accent);
}

/* ── Header ────────────────────────────────────────────────── */
.real-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    height: 80px;
    background: var(--surface-02);
    border-bottom: 1px solid var(--surface-rim);
    position: sticky;
    top: 0;
    z-index: 100;
}

.real-header img {
    height: 24px;
    display: flex;
}

.real-header nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 10px;
    gap: 8px;
    align-items: center;
}

.real-header nav ul li a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: var(--fs-md);
    padding: 8px 12px;
    border-radius: var(--r-sm);
    transition: color var(--t-fast), background var(--t-fast);
    display: flex;
    align-items: center;
}

.real-header nav ul li a:hover {
    background: var(--surface-rim);
}

/* ── Hamburger button ──────────────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--surface-rim);
    border-radius: var(--r-sm);
    cursor: pointer;
    padding: 8px;
    transition: border-color var(--t-fast);
}

.hamburger:hover {
    border-color: var(--accent);
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all var(--t-base);
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile nav overlay ────────────────────────────────────── */
.mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface-01);
    border-top: 1px solid var(--surface-rim);
    padding: 24px 5%;
    flex-direction: column;
    gap: 4px;
    z-index: 99;
    overflow-y: auto;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a:not(.dropdown-link) {
    color: var(--text-primary);
    text-decoration: none;
    font-size: var(--fs-md);
    border-radius: var(--r-md);
    text-transform: uppercase;
    padding: 12px 8px;
    transition: background var(--t-fast);
}

.mobile-nav a:not(.dropdown-link):hover {
    background: var(--surface-02);
}

.mobile-nav .mobile-section-label {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 8px;
}

/* ── Dropdown trigger chevron ──────────────────────────────── */
.drop-trigger {
    position: relative;
}

.drop-trigger i {
    display: inline-block;
    font-size: var(--fs-md);
    margin-left: 6px;
    transform: rotate(0deg);
    transition: transform var(--t-base);
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.wrap {
    display: flex;
    width: 80%;
    margin: 50px 0;
    justify-content: space-between;
}

.col {
    display: flex;
    flex-direction: column;
    width: 20%;
    gap: 15px;
}

.col h4 {
    color: var(--text-primary);
    margin: 0;
    font-size: 18px;
}

.col ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.col p {
    color: var(--text-secondary);
    width: 90%;
    margin: 0;
}

.col li {
    margin-bottom: 10px;
}

.col li a,
.col p {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: var(--fs-md);
    transition: color var(--t-fast);
}

.col li a:hover {
    color: var(--accent);
}

.col .contact {
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact a,
.contact i {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--t-fast);
}

.contact:hover a,
.contact:hover i {
    color: var(--accent);
}

.socialIcons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.col img {
    display: flex;
    width: 90%;
}

.col-e {
    display: flex;
    width: 25%;
    gap: 10px;
}

.col-e img {
    width: 35px;
}

/* ── Utility ───────────────────────────────────────────────── */
.secP {
    color: var(--text-primary);
    width: 70%;
    text-align: center;
    margin: 0 auto;
}

.center {
    text-align: center;
}

.margin0 {
    margin-bottom: 0;
}

.marginTop {
    margin-top: 20px;
}

.marginBot {
    margin-bottom: 30px;
}

.text-primary {
    color: var(--text-primary);
    margin-top: 0;
}

.text-secondary {
    color: var(--text-secondary);
}

.text-links {
    color: var(--color-links);
}

.text-dark {
    color: var(--surface-base);
}

.text-light {
    color: var(--text-muted);
}

.bg-primary {
    background: var(--text-primary);
}

.bg-secondary {
    background: var(--surface-02);
}

.bg-dark {
    background: var(--surface-base);
}

.bg-light {
    background: var(--surface-04);
}

.bg-link {
    background: var(--color-links);
}

.color-bglight {
    background-color: var(--surface-03);
}

.border-dark {
    border-color: var(--surface-base);
}

.border-light {
    border-color: var(--surface-04);
}

/* ── Layout containers ─────────────────────────────────────── */
.tabToggle {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.leftToggle {
    justify-content: flex-start;
    margin-bottom: 0;
}

.tabBtn {
    padding: 10px 40px;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--text-primary);
    border-radius: var(--r-md);
    cursor: pointer;
    font-size: var(--fs-md);
    transition: background var(--t-base), color var(--t-base);
}

.tabBtn.active {
    background: var(--accent);
    color: var(--surface-base);
}

.secWrap {
    max-width: var(--page-max-width);
    padding: var(--section-pad) var(--page-padding);
    margin: 0 auto;
}

.main-tools {
    display: flex;
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding: var(--section-pad) var(--page-padding);
    flex-direction: column;
    gap: 15px;
}

.valid-tools {
    display: flex;
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding: var(--section-pad) var(--page-padding);
    flex-direction: column;
}

.tools-hero {
    margin-bottom: 20px;
}

.tools-hero h1 {
    margin-bottom: 10px;
}

.main-tools h1 {
    margin: 0;
}

/* ── Buttons ───────────────────────────────────────────────── */
/* Primary button — orange fill */
.btn-filled,
.btnDarkOutline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent);
    color: var(--surface-base);
    border: none;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: var(--r-md);
    transition: all var(--t-base);
    cursor: pointer;
}

.btn-filled:hover,
.btnDarkOutline:hover {
    box-shadow: 0 3px 10px var(--accent-glow);
    transform: translateY(-2px);
    color: var(--surface-base);
}

.btn-filled-dark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--surface-03);
    color: var(--text-primary);
    border: none;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: var(--r-md);
    transition: all var(--t-base);
    cursor: pointer;
}

.btn-filled-dark:hover {
    color: var(--accent);
    border-color: var(--accent-dim);
}

.btn-panel {
    display: inline-flex;
    background: var(--surface-02);
    color: var(--text-secondary);
    border: none;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    padding: 10px 32px;
    border-radius: var(--r-md) var(--r-md) 0 0;
    transition: all var(--t-base);
    cursor: pointer;
    font-weight: 500;
}

.btn-panel:hover {
    color: var(--text-primary);
}

.btn-panel.active {
    color: var(--accent-alt);
    border-bottom-color: var(--accent-alt);
}

/* ── All Tools ─────────────────────────────────── */
.allToolsCat h3 {
    text-align: center;
}

.scroll-down-wrapper {
    opacity: 0.85;
    transition: opacity var(--t-slow);
}

.scroll-down-wrapper:hover {
    opacity: 1;
}

.scroll-down-btn {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.scroll-down-btn:hover {
    color: var(--accent);
}

@keyframes bounce {

    0%,
    20% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }

    80%,
    100% {
        transform: translateY(0);
    }
}

/* ── Cards — Category Grid ─────────────────────────────────── */
.catGrid {
    display: flex;
    gap: 20px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

.cardWrap {
    width: calc(33.3% - 45px);
    background-color: var(--surface-02);
    border-radius: var(--r-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--t-base), transform var(--t-base);
}

.cardWrap:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.cardBody {
    display: flex;
    gap: 16px;
    flex-direction: column;
}

.cardBody h2,
.cardBody h3 {
    font-size: 20px;
    margin: 0;
}

.cardBody p {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--fs-md);
}

/* Coming soon overlay */
.notDone {
    position: relative;
}

.notDone::before {
    content: "Coming Soon";
    position: absolute;
    inset: 0;
    background: var(--overlay-dark);
    backdrop-filter: blur(4px);
    color: var(--text-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--r-lg);
    font-size: 20px;
    font-weight: 600;
    z-index: 10;
}

/* ── Card (generic) ────────────────────────────────────────── */
.catGridV2 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
    justify-content: center;
    margin-top: 20px;
}

.card {
    display: flex;
    position: relative;
    flex-direction: column;
    width: calc(33.3% - 25px);
    min-width: 280px;
    border-radius: var(--r-lg);
    padding: 36px 20px 32px 20px;
    background-color: var(--surface-02);
    border: 1px solid var(--surface-rim);
    transition: box-shadow var(--t-base), transform var(--t-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card p {
    color: var(--text-secondary);
    font-size: var(--fs-md);
}

.card a {
    color: var(--text-primary)
}

.card h2,
.card h3,
.card h4 {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--t-fast);
}

.card h2,
.card h3,
.card h4 {
    font-size: 22px;
    margin: 0;
    color: var(--text-primary);
}

.card h2:hover,
.card h3:hover,
.card h4:hover {
    color: var(--accent);
}

.cardWrapper {
    display: flex;
}

.card-views {
    position: absolute;
    bottom: 14px;
    left: 14px;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}

.cardArrow {
    position: absolute;
    background: var(--accent);
    border-top-left-radius: var(--r-md);
    border-bottom-right-radius: var(--r-lg);
    bottom: 0;
    right: 0;
    width: 52px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--t-base);
}

.cardArrow i {
    color: var(--surface-base);
    font-size: 22px;
}

.cardArrow:hover {
    background-color: var(--surface-04);
}

.cardArrow:hover .bi-arrow-right-short {
    color: var(--accent);
}

.catGridSec h2 {
    color: var(--text-primary);
}

.catGridSec p {
    color: var(--text-secondary);
}

.card-preview {
    display: grid;
    grid-template-columns: 1fr 20px 1fr;
    border: 1px solid var(--surface-rim);
    border-radius: var(--r-md);
    overflow: hidden;
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.card-preview__before {
    padding: 8px;
    background: var(--surface-03);
    color: var(--text-secondary);
}

.card-preview__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-left: 1px solid var(--surface-rim);
    border-right: 1px solid var(--surface-rim);
}

.card-preview__after {
    padding: 8px;
    background: var(--surface-03);
    color: var(--text-primary);
}

/* ── Tool UI — Inputs ──────────────────────────────────────── */
.main-input-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.main-input-wrap input {
    flex: 1;
    height: 46px;
    padding: 8px 12px;
    border-radius: 0 var(--r-md) var(--r-md) var(--r-md);
    border: 1px solid var(--surface-rim);
    background: var(--surface-03);
    color: var(--text-primary);
}

.ta {
    display: flex;
    height: 18rem;
    padding: 16px 18px;
    background: var(--surface-03);
    color: var(--text-primary);
    font-size: 15px;
    border-radius: var(--r-md);
    width: 100%;
    resize: vertical;
    border: 1px solid var(--surface-rim);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.ta:focus,
input:focus {
    outline: none;
    border: none;
}

.ta-full {
    width: 100%;
}

.ta-half {
    box-sizing: border-box;
    width: calc(50% - 5px);
}

/* ── Tool UI — Encode/Decode panels ────────────────────────── */
.decoded-output {
    font-family: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;
    font-size: var(--fs-sm);
    background: var(--surface-03);
    color: var(--text-primary);
    padding: 12px;
    border-radius: var(--r-sm);
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
    border: 1px solid var(--surface-rim);
}

.encode-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--surface-02);
    padding: 20px;
    border-radius: 0 var(--r-md) var(--r-md) var(--r-md);
    border: 1px solid var(--surface-rim);
}

.encode-wrap textarea {
    width: 100%;
    padding: 10px;
    border-radius: var(--r-md);
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
    background: var(--surface-03);
    color: var(--text-primary);
    border: 1px solid var(--surface-rim);
}

.encode-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.mass-detail {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-left: 6px;
}

.mass-actions {
    display: none;
    gap: 10px;
    margin-top: 8px;
}

.mass-wrap textarea {
    width: 100%;
    padding: 10px;
    border-radius: 0 var(--r-md) var(--r-md) var(--r-md);
    border: 1px solid var(--surface-rim);
    background: var(--surface-03);
    color: var(--text-primary);
    resize: vertical;
    min-height: 160px;
    box-sizing: border-box;
    font-family: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;
}

#massResults {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mass-summary {
    font-size: var(--fs-md);
    margin-bottom: 8px;
    color: var(--text-primary);
}

.mass-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--surface-rim);
    color: var(--text-primary);
}

.mass-badge {
    font-size: var(--fs-sm);
    padding: 2px 10px;
    border-radius: var(--r-xl);
    white-space: nowrap;
    font-weight: 500;
}

.mass-valid {
    background: var(--color-success-dim);
    color: var(--color-success);
}

.mass-invalid {
    background: var(--color-error-dim);
    color: var(--color-error);
}

.mass-url {
    word-break: break-all;
}

/* ── Tables ────────────────────────────────────────────────── */
.table-section-title {
    margin: 16px 0 6px;
    color: var(--text-primary);
    font-size: var(--fs-md);
    font-weight: 600;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    text-align: left;
    padding: 8px 10px;
    background: var(--surface-03);
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    font-weight: 500;
}

.table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--surface-rim);
}

.table-label {
    color: var(--text-secondary);
    width: 130px;
    font-size: var(--fs-sm);
}

.table-value {
    color: var(--text-primary);
    word-break: break-all;
    font-family: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;
    font-size: var(--fs-sm);
}

.table-param-key {
    color: var(--color-key);
    font-family: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;
    font-size: var(--fs-sm);
}

.table-param-value {
    color: var(--color-val);
    word-break: break-all;
    font-family: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;
    font-size: var(--fs-sm);
}

.table-note {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-top: 10px;
}

/* ── JSON / checkboxes ─────────────────────────────────────── */
.json-options {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
    color: var(--text-primary);
}

.half-checkbox {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.row {
    display: flex;
    gap: 20px;
}

/* ── CodeMirror ────────────────────────────────────────────── */
.cm-editor-wrap {
    height: 300px;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--surface-rim);
}

#inputEditor {
    border-radius: 0 var(--r-md) var(--r-md) var(--r-md);
}

.tabs {
    display: flex;
    gap: 4px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.cm-editor-wrap .cm-editor {
    height: 100%;
    background-color: var(--surface-03);
}

.cm-editor-wrap .cm-activeLineGutter {
    background-color: var(--surface-03);
}

/* ── Status ────────────────────────────────────────────────── */
.status {
    font-size: var(--fs-sm);
    font-weight: 600;
}

.status-valid {
    color: var(--color-success);
}

.status-invalid {
    color: var(--color-error);
}

/* ── Error Display ────────────────────────────────────────────────── */

/* ── Textarea with footer ──────────────────────────────────── */
.textarea-wrapper {
    position: relative;
    width: calc(50% - 5px);
}

.textarea-wrapper textarea {
    width: 100%;
    resize: vertical;
    padding-bottom: 44px;
    box-sizing: border-box;
    border: 1px solid var(--surface-rim);
    color: var(--text-primary);
    background: var(--surface-03);
    border-radius: var(--r-md);
}

.textarea-footer {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
}

.textarea-footer .bi {
    color: var(--text-secondary);
}

.textarea-footer button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color var(--t-fast);
}

.textarea-footer button:hover {
    color: var(--accent);
}

/* ── Tooltips ──────────────────────────────────────────────── */
.copy-wrap,
.download-wrap,
.upload-wrap {
    position: relative;
    display: inline-block;
}

.tooltip {
    position: absolute;
    bottom: 130%;
    right: 0;
    background: var(--surface-04);
    color: var(--text-primary);
    padding: 6px 10px;
    font-size: var(--fs-sm);
    border-radius: var(--r-sm);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-fast);
    white-space: nowrap;
    border: 1px solid var(--surface-rim);
    box-shadow: var(--shadow-sm);
}

.copy-wrap:hover .tooltip,
.download-wrap:hover .tooltip,
.upload-wrap:hover .tooltip {
    opacity: 1;
}

/* Drop zone */
.drop-zone {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--overlay-dark);
    backdrop-filter: blur(4px);
    pointer-events: none;
    border-radius: var(--r-md);
    color: var(--text-primary);
    font-weight: 600;
}

.textarea-wrapper.dragover .drop-zone {
    display: flex;
}

/* ── Input labels ────────────────────────────────────────────── */
.diff-label {
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

/* ── Mode buttons ────────────────────────────────────────────── */
.diff-mode-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.diff-mode-label {
    font-size: var(--fs-md);
    color: var(--text-muted);
}

.diff-mode-btns {
    display: flex;
    background: var(--surface-02);
    border: 1px solid var(--surface-rim);
    border-radius: var(--r-md);
    overflow: hidden;
}

.diff-mode-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 6px 18px;
    font-size: var(--fs-md);
    font-weight: 500;
    cursor: pointer;
    transition: color var(--t-fast), background var(--t-fast);
}

.diff-mode-btn:hover {
    color: var(--text-primary);
}

.diff-mode-btn.active {
    background: var(--surface-03);
    color: var(--accent);
}

/* ── Stats bar ───────────────────────────────────────────────── */
.stats-bar {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--surface-02);
    border: 1px solid var(--surface-rim);
    border-radius: var(--r-md);
    padding: 16px 24px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
    min-width: 80px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;
}

.stat-label {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    text-transform: uppercase;
}

.added-val {
    color: var(--color-success);
}

.removed-val {
    color: var(--color-error);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--surface-rim);
    flex-shrink: 0;
}

/* ── Diff output panels ──────────────────────────────────────── */
.diff-output {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.diff-panel {
    background: var(--surface-02);
    border: 1px solid var(--surface-rim);
    border-radius: var(--r-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.diff-scroll-sync {
    overflow-y: auto;
    overflow-x: auto;
    max-height: 500px;
    flex: 1;
    min-width: 0;
}

.diff-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: var(--surface-03);
    border-bottom: 1px solid var(--surface-rim);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
}

.diff-panel-header .copy-wrap button {
    background: none;
    border: none;
    font-size: 15px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--t-fast);
}

.diff-panel-header .copy-wrap button:hover {
    color: var(--accent);
}

.diff-content {
    padding: 12px 0;
    font-family: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;
    font-size: 13.5px;
    line-height: 1.7;
    min-height: 120px;
    width: max-content;
    min-width: 100%;
}

/* ── Diff line types ─────────────────────────────────────────── */
.diff-line {
    display: flex;
    align-items: center;
    white-space: nowrap;
    height: 1.7em;
}

.diff-gutter {
    flex-shrink: 0;
    width: 40px;
    padding: 0 8px 0 12px;
    text-align: right;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    user-select: none;
    border-right: 1px solid var(--surface-rim);
    margin-right: 12px;
    font-family: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;
}

.diff-gutter-empty {
    opacity: 0;
}

.diff-line-content {
    flex: 1;
    white-space: nowrap;
}

.diff-line.diff-added {
    background: var(--color-success-dim);
    border-left: 3px solid var(--color-success);
}

.diff-line.diff-removed {
    background: var(--color-error-dim);
    border-left: 3px solid var(--color-error);
}

.diff-line.diff-placeholder {
    opacity: 0;
    pointer-events: none;
    height: 0;
}

/* Aligned view: placeholders take up a full row so matching lines stay level */
.diff-output--aligned .diff-line.diff-placeholder {
    height: 1.7em;
    opacity: 1;
    background: repeating-linear-gradient(-45deg,
            transparent,
            transparent 4px,
            var(--surface-rim) 4px,
            var(--surface-rim) 5px);
}

/* Inline word/char highlights */
span.diff-added {
    background: var(--color-success-dim);
    color: var(--color-success);
    border-radius: var(--r-sm);
    padding: 0 2px;
}

span.diff-removed {
    background: var(--color-error-dim);
    color: var(--color-error);
    border-radius: var(--r-sm);
    padding: 0 2px;
    text-decoration: line-through;
    text-decoration-color: var(--color-error-dim);
}

/* ── Empty state ─────────────────────────────────────────────── */
.diff-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
    background: var(--surface-02);
    border: 1px dashed var(--surface-rim);
    border-radius: var(--r-lg);
    font-size: var(--fs-lg);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 810px) {
    .diff-output {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        gap: 12px;
    }

    .stat-divider {
        display: none;
    }
}

/* ── Checkboxes (tool options) ─────────────────────────────── */
.checkboxes input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.checkboxes input[type="text"] {
    padding-left: 6px;
    height: 35px;
    border: 1px solid var(--surface-rim);
    border-radius: var(--r-sm);
    background: var(--surface-03);
    color: var(--text-primary);
}

.checkboxes {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: fit-content;
    color: var(--text-primary);
}

.checkboxes label {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-start;
}

/* ── Domain filter (email extractor) ──────────────────────── */
.option-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    color: var(--text-primary);
}

.option-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
    color: var(--text-primary);
    align-items: flex-start;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-md);
    white-space: nowrap;
}

.domain-filter-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--surface-rim);
    border-radius: var(--r-sm);
    background: var(--surface-03);
    overflow: hidden;
}

.domain-at {
    padding: 0 6px;
    color: var(--text-secondary);
    font-size: var(--fs-md);
    user-select: none;
}

.domain-filter-input {
    border: none;
    background: transparent;
    color: var(--text-primary);
    padding: 4px 4px 4px 0;
    font-size: var(--fs-md);
    width: 180px;
    outline: none;
}

.domain-clear-btn {
    background: none;
    border: none;
    border-left: 1px solid var(--surface-rim);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 2px 6px;
    font-size: var(--fs-md);
    line-height: 1;
    transition: color var(--t-fast);
}

.domain-clear-btn:hover {
    color: var(--accent);
}

/* ── Email count badge ─────────────────────────────────────── */
.char-count {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    align-self: center;
    white-space: nowrap;
    margin-right: auto;
}

.prefix-suffix-inputs {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.ps-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 140px;
}

.ps-field label {
    font-size: var(--fs-sm);
    opacity: 0.6;
    text-transform: uppercase;
}

.ps-input {
    padding: 8px 10px;
    border-radius: var(--r-sm);
    border: 1px solid var(--surface-rim);
    background: var(--surface-03);
    color: var(--text-primary);
    font-size: var(--fs-lg);
    font-family: monospace;
}

.ps-input:focus {
    outline: none;
    border-color: var(--accent);
}

.ps-input-inline {
    padding: 2px 8px;
    font-size: var(--fs-md);
    width: 140px;
    margin-left: 4px;
    border-radius: var(--r-sm);
}

/* ── Article + Sidebar layout ──────────────────────────────── */
.tool-screenshots {
    display: flex;
    gap: 12px;
    margin: 14px 0 24px;
    flex-wrap: wrap;
}

.tool-screenshots img {
    border-radius: var(--r-lg);
    border: 1px solid var(--accent-glow);
    max-width: 100%;
    flex: 1 1 280px;
    object-fit: cover;
}

.img-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-lg);
    border: 1px solid var(--accent-glow);
    margin: 14px 0 24px;
}

.img-slider img {
    border-radius: var(--r-lg);
}

.img-slider__track {
    display: flex;
    align-items: flex-start;
    transition: transform var(--t-slow);
}

.img-slider__track img {
    width: 100%;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
    cursor: default;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 52px;
    transition: all var(--t-base);
}

.slider-btn i {
    color: var(--surface-base);
    font-size: 22px;
}

.slider-btn.prev {
    left: 0;
    opacity: 50%;
    border-top-right-radius: var(--r-md);
    border-bottom-right-radius: var(--r-lg);
}

.slider-btn.next {
    right: 0;
    opacity: 50%;
    border-top-left-radius: var(--r-md);
    border-bottom-left-radius: var(--r-lg);
}

.slider-btn:hover {
    background: var(--surface-04);
    opacity: 100%;
}

.slider-btn:hover .img-slider {
    border: 1px solid var(--surface-04);
}

.slider-btn:hover i {
    color: var(--accent);
    opacity: 100%;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0 4px;
}

.slider-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--surface-03);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background var(--t-base);
}

.slider-dot.active {
    background: var(--accent);
}

.reading {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.readingElse {
    display: flex;
    gap: 30px;
    width: 80%;
    margin: 0 auto;
}

.leftArticle {
    width: 60%;
}

.sidebar {
    width: 40%;
}

.tool-article {
    border-radius: var(--r-xl);
    line-height: 1.8;
    color: var(--text-primary);
}

.tool-article h2 {
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.tool-article h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.tool-article p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.tool-article ul,
.tool-article ol {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
    padding-left: 1.25rem;
}

.tool-article li {
    margin-bottom: 0.5rem;
    list-style: disc;
    color: var(--text-secondary);
}

.tool-article ol li {
    list-style: decimal;
}

.tool-article code,
.articleWrap code {
    background: var(--accent-alt-dim);
    color: var(--accent-alt);
    padding: 0.2em 0.45em;
    border-radius: 4px;
    font-family: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;
    font-size: 0.9em;
}

.tool-article .card a {
    color: var(--color-links);
    transition: color var(--t-fast);
}

.tool-article .card a:hover {
    color: var(--accent);
}

.tool-article dt {
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1rem;
}

.tool-article dd {
    margin-left: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

/* Table of contents */
.table-of-contents {
    display: flex;
    flex-direction: column;
    background-color: var(--surface-02);
    padding: 20px;
    border-radius: var(--r-lg);
    color: var(--text-primary);
    position: sticky;
    top: 120px;
}

.table-of-contents ul {
    display: flex;
    flex-direction: column;
    list-style-type: none;
    padding: 0;
}

.table-of-contents li {
    padding-top: 5px;
}

.table-of-contents h3 {
    margin: 0;
    font-size: 20px;
    color: var(--text-primary);
}

.toc-item a {
    color: var(--text-primary);
}

.toc-item a:hover {
    color: var(--accent);
}

.toc-item.level0 {
    height: auto;
    overflow: visible;
}

.toc-item.level1,
.toc-item.level2,
.toc-item.level3 {
    padding-left: 20px;
}

.toc-item.show {
    padding-top: 5px;
    height: 20px;
    padding-left: 10px;
}

.toc-item.active a {
    color: var(--accent);
    font-weight: 600;
}

/* Subscribe */
.subscribe {
    color: var(--text-primary);
}

.subscribe h2 {
    margin: 1rem 0;
}

.subscribe form {
    display: flex;
    align-items: center;
}

.subscribe input {
    width: 70%;
    height: 46px;
    border-radius: var(--r-md) 0 0 var(--r-md);
    border: none;
    padding: 15px;
    font-size: var(--fs-md);
    background: var(--surface-03);
    color: var(--text-primary);
}

.subscribe button {
    width: 30%;
    height: 46px;
    border: none;
    border-radius: 0 var(--r-md) var(--r-md) 0;
    background-color: var(--surface-04);
    color: var(--text-primary);
    cursor: pointer;
    transition: color var(--t-fast);
    font-weight: 500;
}

.subscribe button:hover {
    color: var(--accent);
}

/* ── Share section ─────────────────────────────────────────── */
.share-section {
    color: var(--text-primary);
}

.share-title {
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--r-sm);
    background: var(--surface-03);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--t-base);
    border: 1px solid var(--surface-rim);
    cursor: pointer;
    font-size: 20px;
}

.share-btn:hover {
    transform: translateY(-2px);
    color: var(--text-primary);
}

.share-btn.reddit:hover {
    background: var(--color-reddit);
    border-color: var(--color-reddit);
}

.share-btn.x-twitter:hover {
    background: var(--surface-base);
    border-color: var(--surface-base);
}

.share-btn.linkedin:hover {
    background: var(--color-linkedin);
    border-color: var(--color-linkedin);
}

/* ── Related - End of tools ───────────────────────────────────────────── */
.related h2 {
    text-align: center;
}

.related {
    margin-top: 50px;
}

/* ── Hero Search ───────────────────────────────────────────── */
.heroSearchWrap {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.heroSearchBar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface-02);
    border-radius: var(--r-md);
    padding: 12px 16px;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    margin: 0 20px;
}

.heroSearchBar:focus-within {
    border: none;
}

.heroSearchIcon {
    font-size: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.heroSearchInput {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
}

.heroSearchInput::placeholder {
    color: var(--text-muted);
}

.heroSearchKbd {
    font-size: var(--fs-sm);
    padding: 2px 7px;
    border-radius: var(--r-sm);
    background: var(--surface-03);
    border: 1px solid var(--surface-rim);
    color: var(--text-muted);
    flex-shrink: 0;
    font-family: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;
}

.heroSearchResults {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--surface-02);
    border: 1px solid var(--surface-rim);
    border-radius: var(--r-lg);
    overflow: hidden;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.heroSearchResult {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    cursor: pointer;
    transition: background var(--t-fast);
    text-decoration: none;
}

.heroSearchResult:hover,
.heroSearchResult.is-active {
    background: var(--surface-03);
}

.heroSearchResult-icon {
    font-size: var(--fs-lg);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    color: var(--text-muted);
}

.heroSearchResult-name {
    color: var(--text-primary);
    font-size: var(--fs-md);
    font-weight: 500;
}

.heroSearchResult-cat {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-left: auto;
    white-space: nowrap;
}

.heroSearchEmpty {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: var(--fs-md);
}

.heroSearch-highlight {
    color: var(--accent-alt);
    font-weight: 600;
}

/* ======================================================================
   HOMEPAGE — specific rules (formerly homepage.css)
   ====================================================================== */

.infoLead {
    color: var(--text-secondary);
    max-width: 760px;
    margin-bottom: 40px;
}

.infoGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 0;
}

.infoCard {
    background: var(--surface-02);
    border-radius: var(--r-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.infoCard__icon {
    border-radius: var(--r-md);
    background: var(--accent-alt-dim);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 2.25rem;
    color: var(--accent);
    margin-bottom: 4px;
}

.infoCard h3 {
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.infoCard p {
    font-size: var(--fs-md);
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

body.page-home {
    background: linear-gradient(200deg, #12111a 0%, #161c25 45%);
    min-height: 100vh;
}

.secBg {
    background-color: transparent;
}

.secBg h2 {
    color: var(--text-primary);
}

/* Hero */
.heroWrap {
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 160px;
    background-color: transparent;
}

.heroWrap h1 {
    margin: 0;
    font-size: 70px;
    text-align: center;
}

.heroWrap p {
    margin: 0;
    text-align: center;
    width: 45%;
    color: var(--text-secondary);
}

/* Blog section */
.blogSec {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.blogElem {
    display: flex;
    flex-direction: column;
    width: calc(50% - 8px);
    border-radius: var(--r-lg);
    background: var(--surface-02);
    overflow: hidden;
    transition: box-shadow var(--t-base), transform var(--t-base);
}

.blogElem:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.coverImg {
    display: flex;
    height: 220px;
}

.coverImg img {
    object-fit: cover;
    width: 100%;
}

.blogSec a {
    color: var(--text-primary);
}

.blogSec span {
    color: var(--text-muted);
}

.textWrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
}

.textWrap h3 {
    margin: 0;
    font-size: 18px;
}

.textWrap a {
    text-decoration: none;
    transition: color var(--t-fast);
}

.textWrap a:hover {
    color: var(--accent);
}

.textElems {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .card {
        width: calc(33.3% - 75px);
    }

    .heroWrap p {
        width: 75%;
    }
}

@media (max-width: 1080px) {
    .card {
        width: calc(50% - 55px);
        min-width: 200px;
    }

    .cardWrap {
        width: calc(50% - 75px);
    }
}

@media (max-width: 810px) {
    .card {
        width: calc(50% - 50px);
    }

    .half-checkbox {
        flex-direction: column;
    }

    .ta-half {
        width: 100%;
    }

    .textarea-wrapper {
        width: 100%;
    }

    .reading,
    .readingElse {
        flex-direction: column-reverse;
    }

    .sidebar {
        width: 100%;
    }

    .leftArticle {
        width: 100%;
    }

    .secP {
        width: 80%;
    }

    .heroWrap h1 {
        font-size: 60px;
    }

    header nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .wrap {
        flex-direction: column;
        width: 90%;
        gap: 40px;
    }

    .col {
        width: 100%;
    }

    .col-e {
        width: 100%;
    }

    .col img {
        width: 50%;
    }

    .socialIcons img {
        width: 50px;
    }
}

@media (max-width: 720px) {
    .sidebar {
        width: 100%;
    }

    .leftArticle {
        width: 100%;
    }

    .cardWrap {
        width: 100%;
    }


    .card {
        min-width: 0;
        width: 100%;
    }

    .blogElem {
        width: 100%;
    }
}

@media (max-width: 580px) {
    .heroWrap h1 {
        font-size: 42px;
    }

    .heroWrap p {
        width: 85%;
    }

    .col img {
        width: 70%;
    }

    .socialIcons img {
        width: 50px;
    }
}

@media (max-width: 530px) {
    .card {
        width: calc(100% - 48px);
    }

    .secWrap {
        width: 90%;
    }

    .main-tools {
        width: 90%;
    }

    .secP {
        width: 100%;
    }
}

/* ── NATO Phonetic Alphabet Tool ─────────────────────────────── */
.nato-output {
    background: var(--surface-02);
    border: 1px solid var(--surface-rim);
    border-radius: var(--r-md);
    padding: 16px 20px;
    min-height: 80px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
    align-content: flex-start;
    margin-top: 12px;
}

.nato-placeholder {
    color: var(--text-muted);
    font-size: var(--fs-md);
    margin: 0;
    align-self: center;
}

.nato-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--surface-03);
    border: 1px solid var(--surface-rim);
    border-radius: var(--r-sm);
    padding: 6px 10px;
    min-width: 56px;
    transition: border-color var(--t-fast), background var(--t-fast);
}

.nato-card.nato-active {
    background: var(--accent-dim);
    border-color: var(--accent);
}

.nato-char {
    font-family: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    line-height: 1.2;
}

.nato-word {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.4;
}

.nato-other .nato-char,
.nato-other .nato-word {
    color: var(--text-muted);
}

.nato-space {
    width: 20px;
    flex-shrink: 0;
}

.nato-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.nato-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-03);
    border: 1px solid var(--surface-rim);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--r-sm);
    font-size: var(--fs-md);
    font-weight: 500;
    cursor: pointer;
    transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}

.nato-btn:hover {
    background: var(--surface-04);
    border-color: var(--accent);
    color: var(--accent);
}

.nato-btn.reading {
    border-color: var(--accent);
    color: var(--accent);
}

/* ── Range input ─────────────────────────────────────────────── */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--surface-04);
    outline: none;
    cursor: pointer;
    border: none;
    padding: 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    transition: box-shadow var(--t-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 4px var(--accent-dim);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: none;
    transition: box-shadow var(--t-fast);
}

input[type="range"]::-moz-range-thumb:hover {
    box-shadow: 0 0 0 4px var(--accent-dim);
}

/* ── Image Converter ─────────────────────────────────────────── */
.img-drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 2px dashed var(--surface-04);
    border-radius: var(--r-xl);
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--t-base), background var(--t-base);
    background: var(--surface-01);
}

.img-drop-zone:hover,
.img-drop-zone.dragover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.img-drop-zone i {
    font-size: 2.5rem;
    color: var(--text-muted);
    pointer-events: none;
}

.img-drop-zone p {
    margin: 0;
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    pointer-events: none;
}

.img-drop-zone button {
    background: none;
    border: none;
    color: var(--accent);
    font-size: var(--fs-lg);
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    pointer-events: auto;
}

.img-drop-zone span {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    pointer-events: none;
}

.converter-options {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.converter-options label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-size: var(--fs-lg);
    cursor: default;
    justify-content: flex-start;
}

.converter-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.converter-card {
    background: var(--surface-02);
    border: 1px solid var(--surface-rim);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--t-base), transform var(--t-base);
}

.converter-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.converter-card__preview {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--surface-03);
    display: flex;
    align-items: center;
    justify-content: center;
}

.converter-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

.converter-card.loaded .converter-card__thumb {
    display: block;
}

.converter-card__state {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-md);
    color: var(--text-muted);
}

.converter-card.loaded .converter-card__state {
    display: none;
}

.converter-card.error .converter-card__state {
    color: var(--color-error);
}

.converter-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.converter-card__body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.converter-card__name {
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.converter-card__sizes {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    font-family: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;
}

.converter-card__savings {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-success);
}

.converter-card__savings.bigger {
    color: var(--color-error);
}

.converter-card__footer {
    padding: 10px 16px;
    border-top: 1px solid var(--surface-rim);
}

.converter-card__dl {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--accent);
    color: var(--surface-base);
    border: none;
    border-radius: var(--r-sm);
    padding: 9px 12px;
    font-size: var(--fs-md);
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow var(--t-base), transform var(--t-base), opacity var(--t-fast);
}

.converter-card__dl:hover:not(:disabled) {
    box-shadow: 0 4px 12px var(--accent-glow);
    transform: translateY(-1px);
}

.converter-card__dl:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 810px) {
    .converter-options {
        gap: 14px;
    }

    input[type="range"] {
        width: 140px;
    }
}

@media (max-width: 580px) {
    .img-drop-zone {
        padding: 40px 20px;
    }

    .converter-results {
        grid-template-columns: 1fr;
    }
}

/* ── File Compressor card variant ────────────────────────────── */
.converter-card--file .converter-card__preview {
    display: none;
}

.compressor-card__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 12px;
    background: var(--surface-03);
    border-bottom: 1px solid var(--surface-rim);
}

.compressor-card__icon {
    font-size: 2.25rem;
    color: var(--text-muted);
}

.converter-card.loaded .compressor-card__icon {
    color: var(--accent);
}

.converter-card.error .compressor-card__icon {
    color: var(--color-error);
}

.nato-hidden {
    display: none !important;
}

/* ── Tool Drop Zone ──────────────────────────────────────────── */
.tool-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--surface-02);
    border-radius: var(--r-xl);
    padding: 72px 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--t-base), background var(--t-base), padding var(--t-slow), gap var(--t-slow);
}

.tool-drop:hover,
.tool-drop.dragover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.tool-drop--compact {
    flex-direction: row;
    padding: 14px 24px;
    border-radius: var(--r-md);
    border: none;
    justify-content: flex-start;
}

.tool-drop--compact .tool-drop__title,
.tool-drop--compact .tool-drop__formats {
    display: none;
}

.tool-drop--compact .tool-drop__icon {
    font-size: 1.2rem;
}

.tool-drop--compact .tool-drop__sub {
    font-size: var(--fs-md);
}

.tool-drop__icon {
    font-size: 2.25rem;
    color: var(--text-muted);
    pointer-events: none;
    flex-shrink: 0;
    transition: font-size var(--t-slow);
}

.tool-drop__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    pointer-events: none;
}

.tool-drop__sub {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--fs-md);
    pointer-events: none;
}

.tool-drop__browse {
    background: none;
    border: none;
    color: var(--accent);
    font-size: inherit;
    cursor: pointer;
    padding: 0;
    font-weight: 500;
    pointer-events: auto;
    transition: color var(--t-fast);
}

.tool-drop__browse:hover {
    color: var(--text-primary);
}

.tool-drop__formats {
    font-size: var(--fs-md);
    color: var(--text-muted);
    margin-top: 10px;
}

/* ── Tool Workspace ───────────────────────────────────────────── */
.tool-workspace {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.tool-workspace.visible {
    display: flex;
}

/* ── Options panel ───────────────────────────────────────────── */
.tool-options {
    background: var(--surface-02);
    border-radius: var(--r-md);
    display: flex;
    align-items: flex-end;
    gap: 24px;
    padding: 14px 24px;
    flex-wrap: wrap;
}

.tool-option-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tool-option-group--col {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.tool-option-group--grow {
    flex: 2;
    min-width: 200px;
}

.tool-slider--full {
    width: 100%;
}

.tool-option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-md);
    color: var(--text-primary);
    white-space: nowrap;
    cursor: default;
    justify-content: flex-start;
}

.tool-option-value {
    font-weight: 700;
    color: var(--accent);
    font-family: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;
    min-width: 24px;
    display: inline-block;
}

/* ── File list ───────────────────────────────────────────────── */
.file-list {
    background: var(--surface-02);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-top: 10px;
}

.file-list__header {
    display: grid;
    grid-template-columns: 1fr 82px 82px 90px 148px;
    padding: 9px 20px;
    background: var(--surface-03);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    gap: 8px;
}

.file-list__row {
    display: grid;
    grid-template-columns: 1fr 82px 82px 90px 148px;
    align-items: center;
    padding: 11px 20px;
    border-bottom: 1px solid var(--surface-rim);
    transition: background var(--t-fast);
    gap: 8px;
}

.file-list__row:last-child {
    border-bottom: none;
}

.file-list__info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.file-list__file-icon {
    font-size: var(--fs-lg);
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color var(--t-base);
}

.file-list__row.done .file-list__file-icon {
    color: var(--accent);
}

.file-list__row.error .file-list__file-icon {
    color: var(--color-error);
}

.file-list__name {
    font-size: var(--fs-md);
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-list__orig,
.file-list__out {
    font-size: var(--fs-sm);
    font-family: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;
    color: var(--text-muted);
}

.file-list__row.done .file-list__out {
    color: var(--text-primary);
}

.file-list__savings {
    font-size: var(--fs-sm);
    font-weight: 600;
    font-family: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;
    color: var(--text-muted);
}

.file-list__savings--better {
    color: var(--color-success);
}

.file-list__savings--worse {
    color: var(--color-error);
}

.file-list__action-cell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.file-list__status {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.file-list__row.processing .file-list__status {
    color: var(--accent);
}

.file-list__row.done .file-list__status,
.file-list__row.error .file-list__status {
    display: none;
}

.file-list__dl {
    display: none;
    background: var(--surface-03);
    gap: .5rem;
    border: none;
    color: var(--text-secondary);
    padding: 6px 14px;
    font-size: var(--fs-md);
    font-weight: 500;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}

.file-list__dl:hover {
    color: var(--accent);
    border-color: var(--surface-04);
}

.file-list__row.done .file-list__dl {
    display: inline-flex;
}

.file-list__dl--visible {
    display: inline-flex;
}

/* ── Frame list (video frame extractor batch mode) - reuses .file-list
   with a lighter 3-column layout (timestamp / status / remove) ──────── */
.file-list--frames .file-list__header,
.file-list--frames .file-list__row {
    grid-template-columns: 1fr 90px 44px;
}

/* This variant has no separate size/savings columns, so the status text
   should stay visible once a row is done or errored, unlike the compressor. */
.file-list--frames .file-list__row.done .file-list__status,
.file-list--frames .file-list__row.error .file-list__status {
    display: flex;
}

.file-list--frames .file-list__row.done .file-list__status {
    color: var(--color-success);
}

.file-list--frames .file-list__row.error .file-list__status {
    color: var(--color-error);
}

.file-list__row.error .file-list__error-msg {
    font-size: var(--fs-sm);
    color: var(--color-error);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Action bar ──────────────────────────────────────────────── */
.tool-action-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── Progress indicator ──────────────────────────────────────── */
.tool-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface-02);
    border-radius: var(--r-md);
    padding: 12px 18px;
    font-size: var(--fs-md);
    color: var(--text-secondary);
}

.tool-progress .bi {
    color: var(--accent);
    font-size: var(--fs-lg);
}

/* ── Video preview + trim slider ──────────────────────────────── */
.trim-preview {
    width: 100%;
    max-height: 480px;
    border-radius: var(--r-md);
    background: var(--surface-base);
    display: block;
}

.trim-slider {
    position: relative;
    height: 36px;
}

.trim-slider__track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--surface-04);
    border-radius: var(--r-sm);
    transform: translateY(-50%);
}

.trim-slider__range {
    position: absolute;
    top: 50%;
    height: 4px;
    background: var(--accent);
    border-radius: var(--r-sm);
    transform: translateY(-50%);
}

.trim-handle {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--accent);
    box-shadow: var(--shadow-sm);
    cursor: grab;
    touch-action: none;
    z-index: 1;
}

.trim-handle:hover,
.trim-handle:focus-visible {
    box-shadow: 0 0 0 6px var(--accent-dim);
}

.trim-handle:active {
    cursor: grabbing;
}

/* ── Trim result + cross-promo ─────────────────────────────────── */
.trim-result {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tool-promo {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--surface-02);
    border-radius: var(--r-md);
    padding: 14px 18px;
}

.tool-promo__icon {
    color: var(--accent);
    font-size: var(--fs-lg);
    margin-top: 2px;
}

.tool-promo__title {
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
}

.tool-promo__text {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: var(--fs-md);
}

.tool-promo__text a {
    color: var(--accent);
}

/* ── Responsive — file list ──────────────────────────────────── */
@media (max-width: 900px) {

    .file-list__header,
    .file-list__row {
        grid-template-columns: 1fr 82px 90px 130px;
    }

    .file-list__header .fl-col-orig,
    .file-list__orig {
        display: none;
    }
}

@media (max-width: 640px) {
    .file-list__header {
        display: none;
    }

    .file-list__row {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        row-gap: 4px;
        padding: 12px 16px;
    }

    .file-list__info {
        grid-column: 1;
        grid-row: 1;
    }

    .file-list__orig {
        display: none;
    }

    .file-list__out {
        grid-column: 1;
        grid-row: 2;
        padding-left: 26px;
    }

    .file-list__savings {
        grid-column: 2;
        grid-row: 2;
        text-align: right;
    }

    .file-list__action-cell {
        grid-column: 2;
        grid-row: 1;
    }

    .tool-drop--compact .tool-drop__sub {
        display: none;
    }
}

/* Quiz Panel */
.nato-quiz-panel {
    display: none;
    background: var(--surface-02);
    border: 1px solid var(--surface-rim);
    border-radius: var(--r-md);
    padding: 24px;
    margin-top: 16px;
}

.nato-quiz-panel.active {
    display: block;
}

.quiz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.quiz-header h3 {
    margin: 0;
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.quiz-score {
    font-size: var(--fs-md);
    color: var(--text-muted);
    font-family: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;
}

.quiz-prompt-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

.quiz-prompt {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;
    color: var(--accent);
    line-height: 1;
}

.quiz-hint {
    font-size: var(--fs-md);
    color: var(--text-muted);
}

.quiz-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.quiz-input {
    flex: 1;
    background: var(--surface-03);
    border: 1px solid var(--surface-rim);
    border-radius: var(--r-sm);
    color: var(--text-primary);
    padding: 9px 14px;
    font-size: var(--fs-lg);
    outline: none;
    transition: border-color var(--t-fast);
}

.quiz-input:focus {
    border-color: var(--accent);
}

.quiz-feedback {
    min-height: 22px;
    font-size: var(--fs-md);
    font-weight: 500;
    margin-top: 10px;
    text-align: center;
}

.quiz-feedback.correct {
    color: var(--color-success);
}

.quiz-feedback.incorrect {
    color: var(--color-error);
}

/* ── Use-case grid (shared across tool articles) ─────────────── */
.use-case-grid {
    display: grid;
    grid-template-columns: minmax(140px, 0.35fr) 1fr;
    gap: 0 1.5rem;
    margin: 1.5rem 0;
}

.use-case-grid h3 {
    display: flex;
    align-items: center;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--surface-rim);
}

.use-case-grid p {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    margin: 0;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--surface-rim);
    line-height: 1.6;
}

.use-case-grid h3:last-of-type,
.use-case-grid p:last-of-type {
    border-bottom: none;
}

.use-case {
    background: var(--surface-02);
    border: 1px solid var(--surface-rim);
    border-radius: var(--r-md);
    padding: 1rem 1.1rem;
}

.use-case h3 {
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.4rem 0;
}

.use-case p {
    font-size: var(--fs-md);
    color: var(--text-secondary);
    margin: 0;
}

/* ── FAQ section (shared across tool articles) ───────────────── */
.faq-section {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 1rem 0;
}

.faq-section h3 {
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.4rem 0;
    padding-left: 0.75rem;
}

.faq-section p {
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
    padding-left: 0.75rem;
}

.faq-section h3:not(:first-child) {
    border-top: 1px solid var(--border);
}

/* ── Pagination ────────────────────────────────────────────── */
.paginator {
    display: flex;
    justify-content: center;
    margin: 60px 0;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-item .page-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--r-md);
    font-size: var(--fs-md);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--t-base);
    color: var(--text-secondary);
    background: var(--surface-02);
    border: 1px solid var(--surface-rim);
}

.page-item .page-link:hover {
    color: var(--accent);
    border-color: var(--accent-dim);
    background: var(--surface-03);
}

.page-item.disabled .page-link {
    opacity: 0.4;
    pointer-events: none;
}

/* Prev / Next get accent treatment */
.page-item:first-child .page-link,
.page-item:last-child .page-link {
    color: var(--text-primary);
    background: var(--surface-03);
    border-color: var(--surface-rim);
    font-weight: 600;
}

.page-item:first-child .page-link:hover,
.page-item:last-child .page-link:hover {
    background: var(--accent);
    color: var(--surface-base);
    border-color: var(--accent);
}

/* Home pill in the middle */
.page-item:not(:first-child):not(:last-child) .page-link {
    background: var(--surface-01);
    color: var(--text-muted);
    font-size: var(--fs-sm);
    padding: 10px 16px;
}

.page-item:not(:first-child):not(:last-child) .page-link:hover {
    color: var(--accent);
}

/* ── Article pre / code blocks ─────────────────────────────── */
pre {
    background: var(--surface-03);
    border: 1px solid var(--surface-rim);
    border-radius: var(--r-md);
    padding: 16px 20px;
    overflow-x: auto;
    margin: 1.25rem 0;
}

pre code {
    background: none;
    color: var(--text-primary);
    font-family: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;
    font-size: 13.5px;
    line-height: 1.7;
    padding: 0;
    border-radius: 0;
}

/* ── Article tables ────────────────────────────────────────── */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--surface-rim);
}

th {
    background: var(--surface-03);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 20px;
    text-align: center;
}

td {
    padding: 12px 20px;
    text-align: center;
    font-size: var(--fs-md);
    color: var(--text-secondary);
    border-top: 1px solid var(--surface-rim);
}

td:first-child {
    color: var(--text-primary);
    font-weight: 500;
}

tr:nth-child(odd) td {
    background: var(--surface-02);
}

tr:nth-child(even) td {
    background: var(--surface-01);
}

tr:hover td {
    background: var(--surface-03);
}

/* ── Text Pipeline ─────────────────────────────────────────── */
.chain-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.chain-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    color: var(--accent);
    font-size: 1.3rem;
}

.step-card {
    background: var(--surface-02);
    border: 1px solid var(--surface-rim);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--surface-03);
    border-bottom: 1px solid var(--surface-rim);
}

.step-number {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--surface-base);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-name {
    font-weight: 600;
    font-size: var(--fs-md);
    flex: 1;
    color: var(--text-primary);
}

.step-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: var(--fs-md);
    padding: 2px 6px;
    border-radius: var(--r-sm);
    transition: color var(--t-fast);
}

.step-remove:hover {
    color: var(--color-error);
}

.step-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--surface-rim);
}

.step-option-group {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-md);
    color: var(--text-secondary);
}

.step-option-group input[type="text"] {
    background: var(--surface-03);
    border: 1px solid var(--surface-rim);
    border-radius: var(--r-sm);
    color: var(--text-primary);
    padding: 4px 8px;
    font-size: var(--fs-md);
    width: 90px;
}

.step-option-group select {
    background: var(--surface-03);
    border: none;
    border-radius: var(--r-sm);
    color: var(--text-primary);
    padding: 3px 6px;
    font-size: var(--fs-md);
    height: 28px;
}

.step-opt-info {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    font-style: italic;
}

.step-preview {
    padding: 10px 14px;
    font-size: var(--fs-sm);
    font-family: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;
    color: var(--text-muted);
    max-height: 60px;
    overflow: hidden;
    white-space: pre-wrap;
    line-height: 1.5;
    border-top: 1px solid var(--surface-rim);
    position: relative;
}

.step-preview::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(transparent, var(--surface-02));
}

.step-preview.empty {
    font-style: italic;
}

.add-step-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border: 2px dashed var(--surface-rim);
    border-radius: var(--r-lg);
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: var(--fs-md);
    transition: border-color var(--t-fast), color var(--t-fast);
    margin-top: 4px;
}

.add-step-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.tool-picker-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.tool-picker-overlay.open {
    display: flex;
}

.tool-picker {
    background: var(--surface-02);
    border: 1px solid var(--surface-rim);
    border-radius: var(--r-lg);
    width: 420px;
    max-width: 95vw;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.tool-picker-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-bottom: 1px solid var(--surface-rim);
}

.tool-picker-header input {
    flex: 1;
    background: var(--surface-03);
    border: 1px solid var(--surface-rim);
    border-radius: var(--r-sm);
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: var(--fs-md);
    outline: none;
}

.tool-picker-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color var(--t-fast);
}

.tool-picker-close:hover {
    color: var(--text-primary);
}

.tool-picker-list {
    overflow-y: auto;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tool-picker-item {
    padding: 10px 12px;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: background var(--t-fast);
}

.tool-picker-item:hover {
    background: var(--surface-03);
}

.tool-picker-item-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tool-picker-item-desc {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-top: 2px;
}

.tpl-section {
    margin-top: 60px;
}

.tpl-card {
    cursor: pointer;
    padding: 20px 20px 52px 20px;
}

.tpl-card h4 {
    font-size: var(--fs-lg);
    margin: 0 0 6px 0;
}

.tpl-card p {
    font-size: var(--fs-sm);
    margin: 0 0 12px 0;
}

.tpl-steps-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 12px;
}

.tpl-step-pill {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.tpl-step-pill i {
    color: var(--accent);
    font-size: 10px;
}

/* ── Dropdown menu ─────────────────────────────────────────── */
.dropdown {
    position: relative;
}

.dropdown.open .drop-trigger .bi {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--surface-03);
    border: 1px solid var(--surface-rim);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity var(--t-base), transform var(--t-base);
    z-index: 200;
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 8px 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--fs-md);
    border-radius: var(--r-sm);
    transition: background var(--t-fast), color var(--t-fast);
}

.dropdown-link:hover {
    background: var(--surface-02);
    color: var(--text-primary);
}

/* ── Mobile expand accordion ───────────────────────────────── */
.mobile-expand-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    text-transform: uppercase;
    color: var(--text-primary);
    font-size: var(--fs-md);
    padding: 12px 8px;
    border-radius: var(--r-md);
    transition: color var(--t-fast), background var(--t-fast);
}

.mobile-expand-toggle:hover {
    color: var(--text-primary);
    background: var(--surface-02);
}

.mobile-expand-toggle .bi {
    font-size: var(--fs-sm);
    transition: transform var(--t-base);
    flex-shrink: 0;
}

.mobile-expand-toggle.open {
    color: var(--text-primary);
    background: var(--surface-03);
    border-radius: var(--r-md) var(--r-md) 0 0;
}

.mobile-expand-toggle.open .bi {
    transform: rotate(180deg);
}

.mobile-expand-body {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 0;
}

.mobile-expand-body.open {
    display: flex;
    background: var(--surface-03);
    border-radius: 0 0 var(--r-md) var(--r-md);
    padding: 4px 8px 8px;
}

.mobile-expand-body .dropdown-link,
.mobile-expand-body {
    padding: 12px 8px;
}

.mobile-expand-body .mobile-section-label {
    padding: 12px 8px;
}

@media (max-width: 810px) {
    .dropdown-menu {
        display: none;
    }
}

/* ── Video compressor ─────────────────────────────────────────────────────── */
.vid-engine {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: .35rem;
}

.vid-engine__opt {
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    font-size: var(--fs-md);
    color: var(--text-primary);
}

.vid-engine__opt em {
    color: var(--text-muted);
    font-style: normal;
}

.vid-engine__note {
    margin: .5rem 0 0;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.5;
}

.vid-engine__note--tight {
    margin: 0;
}

.vid-advanced {
    flex-basis: 100%;
    margin-top: .25rem;
}

.vid-advanced__body {
    margin-top: .75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.vid-adv-section {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: 1rem;
}

.vid-adv-section-title {
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin: 0;
}

.vid-adv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: .6rem 1rem;
    align-items: end;
}

.vid-adv-field {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.vid-adv-field label {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    justify-content: flex-start;
    cursor: default;
    white-space: normal;
}

.vid-adv-field label em {
    font-weight: 400;
    font-style: normal;
    color: var(--text-muted);
}

.vid-adv-field select,
.vid-adv-field input[type="number"],
.vid-adv-field input[type="text"] {
    width: 100%;
    padding: 6px 10px;
    border-radius: var(--r-sm);
    background: var(--surface-03);
    color: var(--text-primary);
    border: none;
    height: 35px;
    font-size: var(--fs-md);
    transition: border-color var(--t-fast);
}

.vid-adv-field select:focus,
.vid-adv-field input[type="number"]:focus,
.vid-adv-field input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
}

.vid-adv-field input[type="range"] {
    width: 100%;
    accent-color: var(--accent);
    cursor: pointer;
}

f .vid-adv-check {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .5rem;
    font-size: var(--fs-md);
    color: var(--text-primary);
    cursor: pointer;
}

.vid-toggle {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: var(--fs-md);
    color: var(--accent);
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    transition: color var(--t-fast);
}

.vid-toggle:hover {
    color: var(--text-primary);
}

.vid-toggle__arrow {
    font-size: var(--fs-lg);
    transition: transform .2s;
    display: inline-block;
}

.vid-toggle--open .vid-toggle__arrow {
    transform: rotate(90deg);
}

/* ── Indent text — preset buttons row ──────────────────────── */
.indent-presets {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin: .75rem 0;
}

.indent-presets-label {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    white-space: nowrap;
}

.indent-presets .btn-filled,
.indent-presets .btn-filled-dark {
    padding: 7px 14px;
    font-size: var(--fs-sm);
    font-weight: 500;
}

/* ── Date extractor — table output view ────────────────────── */
.date-table-wrap {
    display: block;
    overflow-y: auto;
    padding: 0;
}

.date-table-wrap .table {
    font-size: var(--fs-sm);
}

.date-table-wrap thead th {
    position: sticky;
    top: 0;
}

/* ── Text-generation tools — shared ─────────────────────── */

/* Controls row (selects + inputs + buttons inline) */
.gen-controls {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: flex-end;
    margin-bottom: .75rem;
}

.gen-controls label {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.gen-controls select,
.gen-controls input[type="number"] {
    height: 35px;
}

/* Tab bars: use .diff-mode-btns + .diff-mode-btn from site; these are just aliases */

/* Panel show/hide */
.gen-panel {
    display: none;
    margin-top: .75rem;
}

.gen-panel.active {
    display: block;
}

.gen-panel.hidden {
    display: none;
}

/* Field row: label + control inline */
.gen-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: .6rem;
}

.gen-label {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    white-space: nowrap;
}

.gen-val {
    font-size: var(--fs-sm);
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    min-width: 2.5ch;
}

/* Number input in gen tools */
.gen-num {
    width: 90px;
    height: 35px;
    padding: 6px 10px;
    border-radius: var(--r-sm);
    border: 1px solid var(--surface-rim);
    background: var(--surface-03);
    color: var(--text-primary);
    font-size: var(--fs-md);
}

.gen-num:focus {
    outline: none;
    border-color: var(--accent);
}

/* Output error block */
.gen-error {
    color: #f87171;
    background: rgba(248, 113, 113, .08);
    border: 1px solid rgba(248, 113, 113, .2);
    border-radius: var(--r-sm);
    padding: .75rem 1rem;
    font-size: var(--fs-sm);
    margin-bottom: .75rem;
}

.gen-error.hidden {
    display: none;
}

.gen-output.hidden {
    display: none;
}

/* ── Fake Identity Generator ─────────────────────── */
.identity-controls {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: flex-end;
    margin-bottom: .5rem;
}

.identity-controls label {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.identity-controls select,
.identity-controls input[type="number"],
.identity-controls button {
    height: 35px;
}

.identity-controls input[type="number"] {
    width: 90px;
}

#resultActions {
    display: none;
    gap: .5rem;
    margin-bottom: .5rem;
    flex-wrap: wrap;
}

#identityResults {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.identity-card {
    border: 1px solid var(--surface-rim);
    border-radius: var(--r-md);
    background: var(--surface-02);
    overflow: hidden;
}

.identity-card-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem .65rem;
    border-bottom: 1px solid var(--surface-rim);
    background: var(--surface-03);
    position: relative;
}

.identity-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface-04);
    flex-shrink: 0;
}

.identity-name-block {
    flex: 1;
    min-width: 0;
}

.identity-name {
    font-size: var(--fs-md);
    font-weight: 600;
    margin: 0 0 .1rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.identity-subtitle {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.identity-copy-btn {
    background: none;
    border: 1px solid var(--surface-rim);
    border-radius: var(--r-sm);
    padding: 3px 8px;
    cursor: pointer;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color var(--t-fast), border-color var(--t-fast);
}

.identity-copy-btn:hover {
    color: var(--accent);
    border-color: var(--accent-dim);
}

.identity-fields {
    padding: .75rem 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem .65rem;
}

.identity-field {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.identity-field-full {
    grid-column: 1 / -1;
}

.field-label {
    font-size: .7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    display: flex;
    align-items: center;
    gap: .25rem;
}

.field-value {
    font-size: var(--fs-sm);
    color: var(--text-primary);
    word-break: break-word;
}

.field-value.mono {
    font-family: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;
}

@media (max-width: 480px) {
    .identity-fields {
        grid-template-columns: 1fr;
    }

    .identity-field-full {
        grid-column: 1;
    }

    #identityResults {
        grid-template-columns: 1fr;
    }
}

/* ── Random Number Generator ─────────────────────── */
.rng-panel {
    display: none;
}

.rng-panel.active {
    display: block;
}

.rng-fields {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: .75rem 0;
}

.rng-field {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.rng-field label {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.rng-field input[type="number"] {
    width: 100px;
    height: 35px;
    padding: 6px 10px;
    border-radius: var(--r-sm);
    border: 1px solid var(--surface-rim);
    background: var(--surface-03);
    color: var(--text-primary);
    font-size: var(--fs-md);
}

.rng-field input[type="number"]:focus {
    outline: none;
    border-color: var(--accent);
}

.rng-output-wrap {
    margin-top: .75rem;
}

.rng-output-wrap.hidden {
    display: none;
}

.dice-type-selector {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    margin-bottom: .75rem;
}

/* ── Random Data Generator ───────────────────────── */
.rdg-panel {
    margin-top: .75rem;
}

.rdg-panel.hidden {
    display: none;
}

.rdg-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: .6rem;
}

.rdg-label {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    white-space: nowrap;
}

.rdg-val {
    font-size: var(--fs-sm);
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    min-width: 2.5ch;
}

.rdg-range {
    accent-color: var(--accent);
    cursor: pointer;
}

.rdg-num-input {
    width: 100px;
    height: 35px;
    padding: 6px 10px;
    border-radius: var(--r-sm);
    border: none;
    background: var(--surface-03);
    color: var(--text-primary);
    font-size: var(--fs-md);
}

.rdg-num-input:focus {
    outline: none;
    border-color: var(--accent);
}

.entropy-meter {
    background: var(--surface-02);
    border: 1px solid var(--surface-rim);
    border-radius: var(--r-md);
    padding: .85rem 1rem;
    margin: .75rem 0;
}

.entropy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .4rem;
}

.entropy-title {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-secondary);
}

.entropy-bits {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.entropy-track {
    height: 5px;
    border-radius: 3px;
    background: var(--surface-04);
    margin-bottom: .35rem;
}

.entropy-fill {
    height: 100%;
    border-radius: 3px;
    transition: width var(--t-base), background var(--t-base);
}

.entropy-badge {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.entropy-1 {
    background: #f87171;
}

.entropy-2 {
    background: #fb923c;
}

.entropy-3 {
    background: #facc15;
}

.entropy-4 {
    background: #4ade80;
}

.bulk-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    margin: .75rem 0;
}

/* ── Random Name Generator ───────────────────────── */
.name-controls {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: flex-end;
    margin-bottom: .75rem;
}

.name-controls label {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.name-controls select,
.name-controls input[type="number"],
.name-controls button {
    height: 35px;
}

.name-controls input[type="number"] {
    width: 80px;
}

.fake-identity-toggle {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: var(--fs-sm);
}

#nameResultsWrap {
    margin-top: .75rem;
}

#nameResultsWrap.hidden {
    display: none;
}

.name-list {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.name-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem .85rem;
    background: var(--surface-02);
    border: 1px solid var(--surface-rim);
    border-radius: var(--r-sm);
}

.name-item span {
    font-size: var(--fs-md);
    color: var(--text-primary);
}

/* ── Username Generator ──────────────────────────── */
.username-list {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-top: .5rem;
}

.username-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem .85rem;
    background: var(--surface-02);
    border: 1px solid var(--surface-rim);
    border-radius: var(--r-sm);
}

.username-text {
    font-family: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--text-primary);
}

.username-actions {
    display: flex;
    gap: .4rem;
    align-items: center;
}

.check-availability {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: var(--fs-sm);
    padding: 4px 10px;
    border-radius: var(--r-sm);
    background: var(--accent);
    color: var(--surface-base);
    text-decoration: none;
    transition: opacity var(--t-fast);
}

.check-availability:hover {
    opacity: .85;
}

.copy-username {
    background: none;
    border: 1px solid var(--surface-rim);
    border-radius: var(--r-sm);
    padding: 4px 8px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--t-fast), border-color var(--t-fast);
}

.copy-username:hover {
    color: var(--accent);
    border-color: var(--accent-dim);
}

/* ── Random String / UUID / Password Generator ───── */
.rsg-fields,
.uuid-fields,
.pg-fields {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin: .75rem 0;
}

.rsg-field,
.uuid-field,
.pg-field {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.rsg-field label,
.uuid-field label,
.pg-field label {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.rsg-field input,
.uuid-field input,
.pg-field input,
.rsg-field select,
.uuid-field select,
.pg-field select {
    height: 35px;
}

.pg-tabs {
    display: flex;
}

.pg-panel.hidden {
    display: none;
}

.pg-strength {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin: .5rem 0;
}

.pg-strength-bar-wrap {
    height: 5px;
    border-radius: 3px;
    background: var(--surface-04);
}

.pg-strength-bar {
    height: 100%;
    border-radius: 3px;
    transition: width var(--t-base), background var(--t-base);
}

.pg-strength-label {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.rsg-error.hidden,
.uuid-error.hidden {
    display: none;
}

.rsg-output-wrap.hidden,
.uuid-output-wrap.hidden {
    display: none;
}

/* ── Aspect Ratio Checker / Cropper ──────────────────────────── */
.crop-info-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    background: var(--surface-02);
    border-radius: var(--r-md);
    padding: 14px 20px;
}

.crop-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.crop-info-label {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.crop-info-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;
}

.crop-info-value--accent {
    color: var(--accent);
}

.crop-tmpl-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.crop-tmpl-label {
    font-size: var(--fs-md);
    color: var(--text-muted);
    flex-shrink: 0;
}

.crop-tmpl-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.crop-tmpl-btn {
    background: var(--surface-02);
    border: none;
    color: var(--text-secondary);
    padding: 6px 14px;
    font-size: var(--fs-md);
    font-weight: 500;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}

.crop-tmpl-btn:hover {
    color: var(--accent);
    border-color: var(--surface-04);
}

.crop-tmpl-btn.active {
    background: var(--accent-dim);
    color: var(--accent);
    border-color: var(--accent);
}

.crop-stage-wrap {
    display: flex;
    justify-content: center;
    background: var(--surface-01);
    border-radius: var(--r-lg);
    padding: 24px;
    overflow: hidden;
}

.crop-stage {
    position: relative;
    max-width: 100%;
    line-height: 0;
    touch-action: none;
}

.crop-stage img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 65vh;
    min-width: min(280px, 100%);
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

.crop-box {
    position: absolute;
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 9999px rgba(14, 18, 25, 0.6);
    cursor: move;
    touch-action: none;
}

.crop-handle {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border: 2px solid var(--surface-base);
    border-radius: 50%;
    touch-action: none;
}

.crop-handle--nw {
    top: -8px;
    left: -8px;
    cursor: nwse-resize;
}

.crop-handle--ne {
    top: -8px;
    right: -8px;
    cursor: nesw-resize;
}

.crop-handle--sw {
    bottom: -8px;
    left: -8px;
    cursor: nesw-resize;
}

.crop-handle--se {
    bottom: -8px;
    right: -8px;
    cursor: nwse-resize;
}

.crop-export-preview {
    max-width: 220px;
    max-height: 160px;
    border-radius: var(--r-sm);
    border: 1px solid var(--surface-rim);
}

/* ── Image Color Picker ──────────────────────────────────────── */
.cp-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--surface-02);
    border-radius: var(--r-md);
    padding: 12px 20px;
}

.cp-toolbar__label {
    font-size: var(--fs-md);
    color: var(--text-muted);
    flex-shrink: 0;
}

.cp-toolbar select {
    background: var(--surface-03);
    border: none;
    border-radius: var(--r-sm);
    color: var(--text-primary);
    padding: 6px 10px;
    font-size: var(--fs-md);
    height: 34px;
}

.cp-toolbar-spacer {
    flex: 1;
}

.cp-zoom-input {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--surface-03);
    border-radius: var(--r-sm);
    padding: 0 10px 0 0;
    height: 34px;
}

.cp-zoom-input input {
    width: 64px;
    height: 34px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: var(--fs-md);
    padding: 6px 4px 6px 10px;
    text-align: right;
}

.cp-zoom-input input::-webkit-outer-spin-button,
.cp-zoom-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cp-zoom-input span {
    color: var(--text-muted);
    font-size: var(--fs-md);
}

.cp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-03);
    border: none;
    color: var(--text-secondary);
    padding: 7px 14px;
    font-size: var(--fs-md);
    font-weight: 500;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: color var(--t-fast);
    white-space: nowrap;
}

.cp-btn:hover {
    color: var(--accent);
}

.cp-btn--accent {
    background: var(--accent-dim);
    color: var(--accent);
    border-color: var(--accent);
}

.cp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    gap: 16px;
    align-items: start;
}

@media (max-width: 900px) {
    .cp-layout {
        grid-template-columns: 1fr;
    }
}

.cp-stage-wrap {
    background: var(--surface-02);
    border-radius: var(--r-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cp-stage-hint {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    text-align: center;
    margin: 0;
}

.cp-stage {
    position: relative;
    max-width: 100%;
    line-height: 0;
    touch-action: none;
    cursor: crosshair;
    align-self: center;
}

.cp-stage img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 65vh;
    min-width: min(280px, 100%);
    object-fit: contain;
    user-select: none;
    pointer-events: none;
    border-radius: var(--r-sm);
}

.cp-marker {
    position: absolute;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    margin-top: -9px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.6), var(--shadow-sm);
    cursor: grab;
    transition: transform var(--t-fast);
}

.cp-marker:hover {
    transform: scale(1.15);
}

.cp-marker.dragging {
    cursor: grabbing;
    transform: scale(1.2);
    z-index: 5;
}

.cp-marker__index {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.55);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.cp-magnifier {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    pointer-events: none;
    z-index: 10;
    display: none;
    background: var(--surface-base);
}

.cp-magnifier.active {
    display: block;
}

.cp-magnifier canvas {
    display: block;
    image-rendering: pixelated;
}

.cp-magnifier__readout {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-02);
    border: 1px solid var(--surface-rim);
    border-radius: var(--r-sm);
    padding: 3px 10px;
    font-size: var(--fs-sm);
    font-family: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;
    color: var(--text-primary);
    white-space: nowrap;
}

.cp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cp-panel {
    background: var(--surface-02);
    border-radius: var(--r-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.cp-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cp-panel-header h3 {
    font-size: var(--fs-lg);
    color: var(--text-primary);
    margin: 0;
}

.cp-panel-actions {
    display: flex;
    gap: 6px;
}

.cp-mini-btn {
    background-color: var(--surface-03);
    border: none;
    color: var(--text-muted);
    font-size: var(--fs-sm);
    padding: 4px 9px;
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: color var(--t-fast), border-color var(--t-fast);
}

.cp-mini-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.cp-empty-hint {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin: 0;
    font-style: italic;
}

.cp-swatch-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
}

.cp-swatch {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface-03);
    border-radius: var(--r-md);
    padding: 8px 10px;
    animation: cp-pop 0.25s ease;
}

@keyframes cp-pop {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cp-swatch__color {
    width: 34px;
    height: 34px;
    border-radius: var(--r-sm);
    border: 1px solid var(--surface-rim);
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
}

.cp-swatch__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.cp-swatch__value {
    font-family: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;
    font-size: var(--fs-md);
    color: var(--text-primary);
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cp-swatch__meta {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cp-contrast-chip {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    line-height: 1.5;
}

.cp-swatch__pct {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.cp-swatch__remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    flex-shrink: 0;
    transition: color var(--t-fast);
}

.cp-swatch__remove:hover {
    color: #f87171;
}

.cp-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--surface-03);
    border: 1px solid var(--accent);
    color: var(--text-primary);
    padding: 10px 18px;
    border-radius: var(--r-md);
    font-size: var(--fs-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-base), transform var(--t-base);
    z-index: 100;
}

.cp-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.cp-swatch__inspect {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    flex-shrink: 0;
    transition: color var(--t-fast);
}

.cp-swatch__inspect:hover,
.cp-swatch__inspect.active {
    color: var(--accent);
}

.cp-inspect-panel {
    display: none;
    margin-top: 14px;
    width: 100%;
    background: var(--surface-02);
    border-radius: var(--r-lg);
    padding: 16px;
    animation: cp-pop 0.25s ease;
    box-sizing: border-box;
}

.cp-inspect-panel.active {
    display: block;
}

.cp-inspect-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cp-inspect-swatch {
    width: 56px;
    height: 56px;
    border-radius: var(--r-md);
    border: 1px solid var(--surface-rim);
    flex-shrink: 0;
}

.cp-inspect-info {
    flex: 1;
    min-width: 0;
}

.cp-inspect-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cp-inspect-value {
    font-family: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;
    font-size: var(--fs-md);
    color: var(--text-muted);
}

.cp-inspect-similar-label {
    margin-top: 14px;
    margin-bottom: 8px;
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.cp-inspect-similar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cp-inspect-similar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    width: 78px;
    background: none;
    border: none;
    padding: 0;
}

.cp-inspect-similar-swatch {
    width: 100%;
    height: 44px;
    border-radius: var(--r-sm);
    border: 1px solid var(--surface-rim);
    transition: transform var(--t-fast);
}

.cp-inspect-similar-item:hover .cp-inspect-similar-swatch {
    transform: scale(1.05);
}

.cp-inspect-similar-name {
    font-size: 10px;
    color: var(--text-secondary);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* ── /all-tools/ — plain text directory, deliberately no cards/boxes/
   outlines. Two columns of category headings + link lists, meant to read
   like a sitemap or a docs table of contents rather than a grid of tiles. */
.all-tools-page h1 {
    margin: 0 0 8px;
}

.all-tools-page>p {
    margin: 0 0 40px;
}

/* One single connected block - tabs are the top bar of the SAME surface as
   the tool list below, not floating pills over a separate box. Still zero
   outlines: the only line anywhere is one hairline separator between the
   tab bar and the list (the same barely-there rim .card already uses
   elsewhere), which is what actually reads as "attached" instead of two
   unrelated things stacked with a gap. */
.tool-index {
    background: var(--surface-02);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.tool-index-tabs {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 22px 28px;
    border-bottom: 1px solid var(--surface-rim);
}

.tool-index-tab-btn {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    font: inherit;
    font-size: var(--fs-md);
    font-weight: 600;
    padding: 12px 24px;
    background-color: var(--surface-03);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: color var(--t-fast);
}

.tool-index-tab-btn:hover {
    color: var(--text-primary);
}

.tool-index-tab-btn.active {
    color: var(--accent);
}

/* Ink-bar: one indicator that slides/resizes under whichever tab is
   active, instead of every tab flashing a solid fill on click - the
   current standard pattern for filter tabs (Linear, Vercel, etc.), and
   quieter than a row of button-shaped chips fighting for attention. */
.tool-index-tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-index-body {
    padding: 12px 24px;
}

.tool-index-panel {
    display: none;
    animation: toolPanelIn var(--t-base) ease;
}

.tool-index-panel.active {
    display: block;
}

@keyframes toolPanelIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.tool-index-list {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 3;
    column-gap: 8px;
}

.tool-index-list li {
    break-inside: avoid;
}

/* Each tool is its own row that pops on hover - a tinted background plus a
   small arrow icon that slides in, the "bi button" reveal, instead of just
   a color change on plain text. */
.tool-index-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--fs-md);
    padding: 10px 14px;
    margin: 2px 0;
    border-radius: var(--r-sm);
    transition: background var(--t-fast), color var(--t-fast);
}

.tool-index-list a:hover {
    background: var(--surface-03);
    color: var(--text-primary);
}

.tool-index-list a i.bi {
    font-size: 18px;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity var(--t-fast), transform var(--t-fast);
}

.tool-index-list a:hover i.bi {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 640px) {
    .tool-index-list {
        columns: 1;
    }

    .tool-index-tabs,
    .tool-index-body {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* ── Tool Combiner homepage ad ────────────────────────────────
   Two columns: real copy + CTA on the left, a real (but non-interactive)
   miniature of the actual Tool Combiner UI on the right, reusing its real
   classes (.chain-connector/.step-card/.step-header/etc.) so this is an
   authentic preview of the real feature, not a made-up illustration. The
   whole preview is one link - clicking anywhere on it, not just the CTA
   button, opens the real thing. */
.combiner-ad {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.combiner-ad-copy h2 {
    margin: 10px 0 16px;
}

.combiner-ad-copy p {
    margin: 0 0 28px;
    max-width: 46ch;
}

.combiner-ad-eyebrow {
    display: inline-block;
    color: var(--accent);
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.combiner-ad-preview {
    display: block;
    background: var(--surface-01);
    border-radius: var(--r-lg);
    padding: 24px;
    text-decoration: none;
    transition: transform var(--t-base), box-shadow var(--t-base);
}

.combiner-ad-preview:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.combiner-ad-preview-label {
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    font-weight: 600;
    margin-bottom: 14px;
}

.combiner-ad-chain {
    display: flex;
    flex-direction: column;
    gap: 0;
    pointer-events: none;
}

.combiner-ad-box {
    background: var(--surface-03);
    color: var(--text-secondary);
    border-radius: var(--r-md);
    padding: 12px 14px;
    font-size: 13px;
    white-space: pre-line;
    line-height: 1.6;
}

.combiner-ad-box-output {
    color: var(--text-primary);
}

.combiner-ad-preview-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
    color: var(--accent);
    font-size: var(--fs-sm);
    font-weight: 700;
}

@media (max-width: 900px) {
    .combiner-ad {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}