/* ==========================================================================
   Spec Checker & RFQ Builder – Premium Interactive Industrial Version
   Supports: #g2h, #g8m, #g8t
   Typography: Plus Jakarta Sans & JetBrains Mono
   Load order: main.css -> calculator.css -> astm-a194-responsive.css
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:is(#g2h, #g8m, #g8t) {
    /* Brand Palette */
    --brand-dark: #0e2a40;
    --brand-primary: #164264;
    --brand-mid: #1c527c;
    --brand-accent: #0284c7;
    --brand-soft: #f0f7ff;
    --brand-glow: rgba(2, 132, 199, 0.2);

    /* Text & Contrast Hierarchy */
    --ink-dark: #0f172a;       /* Slate 900 - ultra high contrast */
    --ink-body: #1e293b;       /* Slate 800 - crisp body text */
    --ink-muted: #475569;      /* Slate 600 - clear labels */
    --ink-subtle: #64748b;     /* Slate 500 - hints & units */
    --ink-light: #94a3b8;      /* Slate 400 - placeholders */

    /* Surface & Borders */
    --c-line: #e2e8f0;         /* Slate 200 - clean border */
    --c-line-strong: #cbd5e1;  /* Slate 300 - input border */
    --panel-bg: #f8fafc;       /* Slate 50 */
    --card-bg: #ffffff;

    /* Fonts */
    --ff-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --ff-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* Base Setup */
    font-family: var(--ff-sans);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink-body);
    background: #ffffff;
    border: 1px solid var(--c-line);
    border-radius: 18px;
    box-shadow: 0 10px 30px -5px rgba(22, 66, 100, 0.08), 0 20px 40px -15px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

:is(#g2h, #g8m, #g8t) *,
:is(#g2h, #g8m, #g8t) *::before,
:is(#g2h, #g8m, #g8t) *::after {
    box-sizing: border-box;
}

/* Neutralise theme conflicts */
:is(#g2h, #g8m, #g8t) .nice-select { display: none !important; }
:is(#g2h, #g8m, #g8t) select { display: block !important; }

:is(#g2h, #g8m, #g8t) p {
    margin: 0;
    font-size: inherit;
    line-height: 1.55;
    color: inherit;
    font-family: var(--ff-sans);
}

:is(#g2h, #g8m, #g8t) :is(h3, h4, h5) {
    font-family: var(--ff-sans);
    line-height: 1.25;
    margin: 0;
    color: var(--ink-dark);
}

:is(#g2h, #g8m, #g8t) :is(button, a, input, select) {
    font-family: var(--ff-sans);
}

/* ---------- Header Banner ---------- */
:is(#g2h .g2h-head, #g8m .g8m-head, #g8t .g8t-head) {
    background: linear-gradient(135deg, #0e2a40 0%, #164264 50%, #1c527c 100%);
    color: #ffffff;
    padding: 28px 34px 26px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

:is(#g2h .g2h-head, #g8m .g8m-head, #g8t .g8t-head)::after {
    content: "";
    position: absolute;
    top: -40%;
    right: -8%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

:is(#g2h .g2h-head h3, #g8m .g8m-head h3, #g8t .g8t-head h3),
.g2h-head h3,
.g8m-head h3,
.g8t-head h3 {
    color: #ffffff !important;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.4px;
    line-height: 1.25;
}

:is(#g2h .g2h-head p, #g8m .g8m-head p, #g8t .g8t-head p),
.g2h-head p,
.g8m-head p,
.g8t-head p {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 14.5px;
    max-width: 650px;
    font-weight: 400;
    line-height: 1.55;
}

/* ---------- Body Layout (Desktop / Laptop) ---------- */
:is(#g2h .g2h-body, #g8m .g8m-body, #g8t .g8t-body) {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    background: #ffffff;
}

:is(#g2h .g2h-left, #g8m .g8m-left, #g8t .g8t-left) {
    padding: 30px 32px 36px;
    display: grid;
    gap: 24px;
    align-content: start;
    min-width: 0;
}

:is(#g2h .g2h-right, #g8m .g8m-right, #g8t .g8t-right) {
    background: var(--panel-bg);
    border-left: 1px solid var(--c-line);
    padding: 30px 28px 36px;
    display: grid;
    gap: 18px;
    align-content: start;
    min-width: 0;
    position: sticky;
    top: 90px;
    align-self: start;
}

/* ---------- Form Groups & Headings ---------- */
:is(#g2h .g2h-group, #g8m .g8m-group, #g8t .g8t-group) {
    display: grid;
    gap: 14px;
}

:is(#g2h .g2h-group h4, #g8m .g8m-group h4, #g8t .g8t-group h4) {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    padding-left: 12px;
    padding-bottom: 4px;
    padding-top: 4px;
    border-radius: 7px;
    border-left: 3.5px solid var(--brand-primary);
    line-height: 1.25;
    color: whitesmoke;
    background-color: #194C71;
    letter-spacing: -0.2px;
}

:is(#g2h .g2h-row, #g8m .g8m-row, #g8t .g8t-row) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

:is(#g2h .g2h-field, #g8m .g8m-field, #g8t .g8t-field) {
    min-width: 0;
    display: grid;
    gap: 6px;
}

:is(#g2h label.g2h-lbl, #g2h .g2h-lbl,
    #g8m label.g8m-lbl, #g8m .g8m-lbl,
    #g8t label.g8t-lbl, #g8t .g8t-lbl) {
    display: block;
    font-family: var(--ff-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1px;
    color: var(--ink-muted);
    margin: 0;
}

/* ---------- Inputs & Selects ---------- */
:is(#g2h, #g8m, #g8t) :is(input[type=text], input[type=number], select) {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    font-family: var(--ff-sans);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink-dark);
    background: #ffffff;
    border: 1.5px solid var(--c-line-strong);
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

:is(#g2h, #g8m, #g8t) input[type=text]::placeholder {
    color: var(--ink-light);
    font-size: 14px;
    font-weight: 400;
}

:is(#g2h, #g8m, #g8t) select {
    padding-right: 40px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.5 1.75L6 6.25L10.5 1.75' stroke='%23164264' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

:is(#g2h, #g8m, #g8t) :is(input, select):hover {
    border-color: #94a3b8;
}

:is(#g2h, #g8m, #g8t) :is(input, select):focus {
    outline: none;
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3.5px var(--brand-glow);
    background: #ffffff;
}

:is(#g2h, #g8m, #g8t) input[type=number]::-webkit-outer-spin-button,
:is(#g2h, #g8m, #g8t) input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

:is(#g2h, #g8m, #g8t) input[type=number] {
    -moz-appearance: textfield;
    text-align: center;
    font-family: var(--ff-mono);
    font-weight: 700;
    font-size: 15px;
    padding: 0 6px;
    font-variant-numeric: tabular-nums;
}

/* ---------- Stepper Controls ---------- */
:is(#g2h .g2h-stepper, #g8m .g8m-stepper, #g8t .g8t-stepper) {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 8px;
}

:is(#g2h .g2h-step, #g8m .g8m-step, #g8t .g8t-step) {
    height: 48px;
    padding: 0;
    border: 1.5px solid var(--c-line-strong);
    border-radius: 10px;
    background: #ffffff;
    color: var(--brand-primary);
    font-family: var(--ff-sans);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: manipulation;
    display: flex;
    align-items: center;
    justify-content: center;
}

:is(#g2h .g2h-step, #g8m .g8m-step, #g8t .g8t-step):hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(22, 66, 100, 0.2);
}

:is(#g2h .g2h-step, #g8m .g8m-step, #g8t .g8t-step):active {
    transform: scale(0.96);
}

/* ---------- Chips (Selection Pills) ---------- */
:is(#g2h .g2h-chips, #g8m .g8m-chips, #g8t .g8t-chips) {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

:is(#g2h .g2h-chip, #g8m .g8m-chip, #g8t .g8t-chip) {
    position: relative;
    display: inline-flex;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

:is(#g2h .g2h-chip input, #g8m .g8m-chip input, #g8t .g8t-chip input) {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    pointer-events: none;
}

:is(#g2h .g2h-chip span, #g8m .g8m-chip span, #g8t .g8t-chip span) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 15px;
    min-height: 38px;
    font-family: var(--ff-sans);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-muted);
    line-height: 1.15;
    background: #ffffff;
    border: 1.5px solid var(--c-line-strong);
    border-radius: 999px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
}

:is(#g2h .g2h-chip:hover span, #g8m .g8m-chip:hover span, #g8t .g8t-chip:hover span) {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
    background: var(--brand-soft);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(2, 132, 199, 0.12);
}

:is(#g2h .g2h-chip input:checked + span,
    #g8m .g8m-chip input:checked + span,
    #g8t .g8t-chip input:checked + span) {
    background: linear-gradient(135deg, #164264 0%, #1e5c8a 100%);
    border-color: #164264;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(22, 66, 100, 0.25);
}

:is(#g2h .g2h-chip.is-check input:checked + span::before,
    #g8m .g8m-chip.is-check input:checked + span::before,
    #g8t .g8t-chip.is-check input:checked + span::before) {
    content: "✓";
    font-size: 12px;
    font-weight: 800;
    margin-right: 2px;
}

:is(#g2h .g2h-chip input:focus-visible + span,
    #g8m .g8m-chip input:focus-visible + span,
    #g8t .g8t-chip input:focus-visible + span) {
    outline: 3px solid var(--brand-accent);
    outline-offset: 2px;
}

:is(#g2h .g2h-chip:active span, #g8m .g8m-chip:active span, #g8t .g8t-chip:active span) {
    transform: scale(0.96);
}

/* ---------- Quick Sizes Bar ---------- */
:is(#g2h .g2h-quick, #g8m .g8m-quick, #g8t .g8t-quick) {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 4px;
}

:is(#g2h .g2h-quick button, #g8m .g8m-quick button, #g8t .g8t-quick button) {
    cursor: pointer;
    flex: 0 0 auto;
    padding: 6px 13px;
    min-height: 34px;
    font-family: var(--ff-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-muted);
    background: #ffffff;
    border: 1.5px solid var(--c-line-strong);
    border-radius: 999px;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

:is(#g2h .g2h-quick button:hover, #g8m .g8m-quick button:hover, #g8t .g8t-quick button:hover) {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
    background: var(--brand-soft);
    transform: translateY(-1px);
}

:is(#g2h .g2h-quick button.is-on, #g8m .g8m-quick button.is-on, #g8t .g8t-quick button.is-on) {
    background: #e0f2fe;
    border-color: var(--brand-accent);
    color: #0369a1;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.16);
}

:is(#g2h .g2h-hint, #g8m .g8m-hint, #g8t .g8t-hint) {
    font-size: 12.5px;
    color: var(--ink-subtle);
    font-weight: 500;
}

:is(#g2h .g2h-err, #g8m .g8m-err, #g8t .g8t-err) {
    color: #b91c1c;
    font-weight: 600;
}

/* ---------- Result Panel & Live Cards ---------- */
:is(#g2h .g2h-card, #g8m .g8m-card, #g8t .g8t-card) {
    background: #ffffff;
    border: 1px solid var(--c-line);
    border-radius: 12px;
    padding: 18px;
    min-width: 0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

:is(#g2h .g2h-card:hover, #g8m .g8m-card:hover, #g8t .g8t-card:hover) {
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

:is(#g2h .g2h-diagram, #g8m .g8m-diagram, #g8t .g8t-diagram) {
    display: grid;
    justify-items: center;
    padding: 16px 14px;
}

:is(#g2h .g2h-diagram svg, #g8m .g8m-diagram svg, #g8t .g8t-diagram svg) {
    width: 100%;
    max-width: 230px;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

:is(#g2h .g2h-diagram:hover svg, #g8m .g8m-diagram:hover svg, #g8t .g8t-diagram:hover svg) {
    transform: scale(1.03);
}

:is(#g2h .g2h-diagram svg text, #g8m .g8m-diagram svg text, #g8t .g8t-diagram svg text) {
    font-family: var(--ff-mono) !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    fill: var(--brand-primary) !important;
}

:is(#g2h #g2h-hex, #g8m #g8m-hex, #g8t #g8t-hex) {
    fill: rgba(22, 66, 100, 0.08) !important;
    stroke: var(--brand-primary) !important;
    stroke-width: 2.5px;
}

:is(#g2h #g2h-bore, #g8m #g8m-bore, #g8t #g8t-bore) {
    fill: #ffffff !important;
    stroke: var(--brand-primary) !important;
    stroke-width: 2px;
}

:is(#g2h .g2h-diagram svg g line, #g8m .g8m-diagram svg g line, #g8t .g8t-diagram svg g line) {
    stroke: var(--brand-accent) !important;
}

:is(#g2h .g2h-lead, #g8m .g8m-lead, #g8t .g8t-lead) {
    font-family: var(--ff-sans);
    font-size: 16px;
    font-weight: 800;
    color: var(--ink-dark);
    text-align: center;
    margin-top: 10px;
    letter-spacing: -0.2px;
}

:is(#g2h .g2h-lead2, #g8m .g8m-lead2, #g8t .g8t-lead2) {
    font-family: var(--ff-sans);
    font-size: 13.5px;
    font-weight: 600;
    color: #0369a1;
    text-align: center;
    margin-top: 3px;
}

/* Stats 4-Column Grid */
:is(#g2h .g2h-stats, #g8m .g8m-stats, #g8t .g8t-stats) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

:is(#g2h .g2h-stat, #g8m .g8m-stat, #g8t .g8t-stat) {
    background: #ffffff;
    border: 1px solid var(--c-line);
    border-top: 3.5px solid var(--brand-accent);
    border-radius: 10px;
    padding: 10px 8px;
    min-width: 0;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

:is(#g2h .g2h-stat:hover, #g8m .g8m-stat:hover, #g8t .g8t-stat:hover) {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(2, 132, 199, 0.14);
}

:is(#g2h .g2h-stat small, #g8m .g8m-stat small, #g8t .g8t-stat small) {
    display: block;
    font-family: var(--ff-sans);
    font-size: 11px;
    line-height: 1.25;
    color: var(--ink-subtle);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

:is(#g2h .g2h-stat b, #g8m .g8m-stat b, #g8t .g8t-stat b) {
    display: block;
    font-family: var(--ff-mono);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink-dark);
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

:is(#g2h .g2h-stat.is-new, #g8m .g8m-stat.is-new, #g8t .g8t-stat.is-new) {
    animation: gradeFlash 0.4s ease;
}

@keyframes gradeFlash {
    0%   { background: var(--brand-soft); transform: translateY(2px); }
    100% { background: #ffffff; transform: none; }
}

/* Specification List */
:is(#g2h .g2h-list, #g8m .g8m-list, #g8t .g8t-list) {
    margin: 0;
    padding: 0;
    list-style: none;
}

:is(#g2h .g2h-list li, #g8m .g8m-list li, #g8t .g8t-list li) {
    display: grid;
    grid-template-columns: 36% 1fr;
    gap: 12px;
    padding: 10px 0;
    margin: 0;
    border-bottom: 1px solid #f1f5f9;
    font-family: var(--ff-sans);
    font-size: 13.5px;
    line-height: 1.5;
}

:is(#g2h .g2h-list li:first-child, #g8m .g8m-list li:first-child, #g8t .g8t-list li:first-child) {
    padding-top: 0;
}

:is(#g2h .g2h-list li:last-child, #g8m .g8m-list li:last-child, #g8t .g8t-list li:last-child) {
    border-bottom: 0;
    padding-bottom: 0;
}

:is(#g2h .g2h-list li span:first-child, #g8m .g8m-list li span:first-child, #g8t .g8t-list li span:first-child) {
    font-weight: 700;
    color: var(--ink-muted);
}

:is(#g2h .g2h-list li span:last-child, #g8m .g8m-list li span:last-child, #g8t .g8t-list li span:last-child) {
    color: var(--ink-dark);
    font-weight: 500;
    overflow-wrap: anywhere;
}

/* RFQ Summary Box */
:is(#g2h, #g8m, #g8t) pre {
    margin: 0;
    padding: 15px 16px;
    max-height: none;
    overflow: visible;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: var(--ff-mono);
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--ink-dark);
    background: #ffffff;
    border: 1px solid var(--c-line);
    border-left: 4px solid var(--brand-primary);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

/* ---------- Action Buttons ---------- */
:is(#g2h .g2h-actions, #g8m .g8m-actions, #g8t .g8t-actions) {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
}

:is(#g2h .g2h-btn, #g8m .g8m-btn, #g8t .g8t-btn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 10px;
    font-family: var(--ff-sans);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    background: linear-gradient(135deg, #164264 0%, #1c527c 100%);
    color: #ffffff;
    border: 1.5px solid #164264;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: manipulation;
    box-shadow: 0 3px 8px rgba(22, 66, 100, 0.2);
}

:is(#g2h .g2h-btn, #g8m .g8m-btn, #g8t .g8t-btn):hover {
    background: linear-gradient(135deg, #0e2a40 0%, #164264 100%);
    border-color: #0e2a40;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 66, 100, 0.3);
}

:is(#g2h .g2h-btn, #g8m .g8m-btn, #g8t .g8t-btn):active {
    transform: scale(0.97);
}

:is(#g2h .g2h-btn:focus-visible, #g8m .g8m-btn:focus-visible, #g8t .g8t-btn:focus-visible) {
    outline: 3px solid var(--brand-accent);
    outline-offset: 2px;
}

:is(#g2h .g2h-btn.alt, #g8m .g8m-btn.alt, #g8t .g8t-btn.alt) {
    background: #ffffff;
    border-color: var(--c-line-strong);
    color: var(--ink-dark);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.04);
}

:is(#g2h .g2h-btn.alt, #g8m .g8m-btn.alt, #g8t .g8t-btn.alt):hover {
    background: var(--brand-soft);
    border-color: var(--brand-accent);
    color: var(--brand-accent);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.16);
}

:is(#g2h .g2h-btn.wa, #g8m .g8m-btn.wa, #g8t .g8t-btn.wa) {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    border-color: #16a34a;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(22, 163, 74, 0.25);
}

:is(#g2h .g2h-btn.wa, #g8m .g8m-btn.wa, #g8t .g8t-btn.wa):hover {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    border-color: #15803d;
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
}

:is(#g2h .g2h-btn.ghost, #g8m .g8m-btn.ghost, #g8t .g8t-btn.ghost) {
    background: transparent;
    border-color: transparent;
    color: var(--ink-subtle);
    padding: 0 8px;
    font-weight: 600;
    text-decoration: underline;
    box-shadow: none;
    min-height: 42px;
}

:is(#g2h .g2h-btn.ghost, #g8m .g8m-btn.ghost, #g8t .g8t-btn.ghost):hover {
    background: transparent;
    color: #dc2626;
    box-shadow: none;
    transform: none;
}

:is(#g2h .g2h-ok, #g8m .g8m-ok, #g8t .g8t-ok) {
    font-family: var(--ff-sans);
    font-size: 13.5px;
    font-weight: 700;
    color: #16a34a;
}

/* ==========================================================================
   RESPONSIVE DESIGN – Tool Specific
   ========================================================================== */

/* Laptop / Desktop (992px to 1280px) */
@media (min-width: 992px) and (max-width: 1280px) {
    :is(#g2h .g2h-head, #g8m .g8m-head, #g8t .g8t-head) { padding: 24px 26px 22px; }
    :is(#g2h .g2h-left, #g8m .g8m-left, #g8t .g8t-left) { padding: 24px 24px 28px; gap: 20px; }
    :is(#g2h .g2h-right, #g8m .g8m-right, #g8t .g8t-right) { padding: 24px 20px 28px; }
    :is(#g2h .g2h-stats, #g8m .g8m-stats, #g8t .g8t-stats) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablet / Small Laptop (< 992px) */
@media (max-width: 991px) {
    :is(#g2h .g2h-body, #g8m .g8m-body, #g8t .g8t-body) {
        grid-template-columns: 1fr;
    }
    :is(#g2h .g2h-right, #g8m .g8m-right, #g8t .g8t-right) {
        position: static;
        border-left: 0;
        border-top: 1px solid var(--c-line);
        padding: 24px 22px 28px;
    }
    :is(#g2h .g2h-head, #g8m .g8m-head, #g8t .g8t-head) { padding: 22px 22px 20px; }
    :is(#g2h .g2h-head h3, #g8m .g8m-head h3, #g8t .g8t-head h3) { font-size: 22px; }
    :is(#g2h .g2h-left, #g8m .g8m-left, #g8t .g8t-left) { padding: 24px 22px 28px; gap: 20px; }
    :is(#g2h .g2h-stats, #g8m .g8m-stats, #g8t .g8t-stats) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Mobile Screen (< 768px) */
@media (max-width: 767px) {
    :is(#g2h .g2h-row, #g8m .g8m-row, #g8t .g8t-row) {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    :is(#g2h .g2h-stats, #g8m .g8m-stats, #g8t .g8t-stats) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    :is(#g2h .g2h-list li, #g8m .g8m-list li, #g8t .g8t-list li) {
        grid-template-columns: 1fr;
        gap: 3px;
    }
    :is(#g2h .g2h-chip span, #g8m .g8m-chip span, #g8t .g8t-chip span) {
        white-space: normal;
        text-align: center;
        padding: 8px 13px;
        min-height: 38px;
        font-size: 13px;
    }
    :is(#g2h .g2h-actions .g2h-btn, #g8m .g8m-actions .g8m-btn, #g8t .g8t-actions .g8t-btn) {
        flex: 1 1 100%;
        min-height: 48px;
    }
}

/* Small Phone (< 576px) */
@media (max-width: 575px) {
    :is(#g2h, #g8m, #g8t) { border-radius: 14px; }
    :is(#g2h .g2h-head, #g8m .g8m-head, #g8t .g8t-head) { padding: 18px 16px 16px; }
    :is(#g2h .g2h-head h3, #g8m .g8m-head h3, #g8t .g8t-head h3) { font-size: 19px; }
    :is(#g2h .g2h-head p, #g8m .g8m-head p, #g8t .g8t-head p) { font-size: 13.5px; }
    :is(#g2h .g2h-left, #g8m .g8m-left, #g8t .g8t-left),
    :is(#g2h .g2h-right, #g8m .g8m-right, #g8t .g8t-right) { padding: 18px 14px 22px; gap: 18px; }
    :is(#g2h .g2h-group h4, #g8m .g8m-group h4, #g8t .g8t-group h4) { font-size: 15px; }
    :is(#g2h .g2h-diagram svg, #g8m .g8m-diagram svg, #g8t .g8t-diagram svg) { max-width: 190px; }
    :is(#g2h .g2h-stat small, #g8m .g8m-stat small, #g8t .g8t-stat small) { font-size: 10.5px; }
    :is(#g2h .g2h-stat b, #g8m .g8m-stat b, #g8t .g8t-stat b) { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
    :is(#g2h, #g8m, #g8t) *,
    :is(#g2h, #g8m, #g8t) *::before,
    :is(#g2h, #g8m, #g8t) *::after {
        animation: none !important;
        transition: none !important;
    }
}
