/* ===================== GM HUB PAGE ===================== */
.gmh-main {
    flex: 1;
    padding: 56px 15% 96px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}
@media (max-width: 1024px) { .gmh-main { padding: 48px 8% 80px; } }
@media (max-width: 640px) { .gmh-main { padding: 40px 5% 64px; } }

.gmh-hero {
    text-align: center;
    margin-bottom: 48px;
}
.gmh-eyebrow, .gmh-section-eyebrow {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--clockwork-gold);
    margin-bottom: 10px;
}
.gmh-hero h1 {
    font-size: 2.4rem;
    color: #fff;
    margin-bottom: 14px;
}
.gmh-hero p {
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* ── Path choice ── */
.gmh-path-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 720px) { .gmh-path-choice { grid-template-columns: 1fr; } }
.gmh-path-card {
    background: #1a1b2a;
    border: 2px solid #2a2a3a;
    border-radius: 10px;
    padding: 30px 26px;
    text-align: left;
    cursor: pointer;
    color: inherit;
    font-family: var(--font-stack);
    transition: border-color 0.2s, transform 0.15s;
}
.gmh-path-card:hover {
    border-color: var(--clockwork-gold);
    transform: translateY(-3px);
}
.gmh-path-icon { font-size: 2.2rem; margin-bottom: 14px; }
.gmh-path-card h3 { font-size: 1.35rem; color: #fff; margin-bottom: 10px; }
.gmh-path-card p { font-size: 0.9rem; line-height: 1.55; margin-bottom: 16px; }
.gmh-path-cta { color: var(--clockwork-gold); font-size: 0.9rem; font-weight: 700; }

/* ── Panel shell ── */
.gmh-panel-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}
.gmh-panel-head h2 { font-size: 1.5rem; color: #fff; margin: 0; }
.gmh-back {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.88rem;
    cursor: pointer;
    font-family: var(--font-stack);
}
.gmh-back:hover { color: var(--clockwork-gold); }
.gmh-panel-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.gmh-inline-link { color: var(--clockwork-gold); text-decoration: none; }
.gmh-inline-link:hover { text-decoration: underline; }
.gmh-section-title { font-size: 1.5rem; color: #fff; margin-bottom: 6px; }
.gmh-section-sub { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 18px; }

/* ── Counters ── */
.gmh-counters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}
@media (max-width: 720px) { .gmh-counters-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .gmh-counters-grid { grid-template-columns: repeat(2, 1fr); } }
.gmh-counter-card {
    background: #1a1b2a;
    border: 1px solid #2a2a3a;
    border-radius: 8px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.gmh-counter-icon { font-size: 1.5rem; }
.gmh-counter-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    color: rgba(232,232,232,0.9);
    line-height: 1.25;
    min-height: 2.2em;
}
.gmh-counter-controls { display: flex; align-items: center; gap: 10px; }
.gmh-counter-btn {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    border: 1px solid #3a3a4a;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
    transition: border-color 0.15s, color 0.15s;
}
.gmh-counter-btn:hover:not(:disabled) { border-color: var(--clockwork-gold); color: var(--clockwork-gold); }
.gmh-counter-btn:disabled { opacity: 0.3; cursor: default; }
.gmh-counter-value { width: 20px; text-align: center; font-weight: 700; font-size: 1.05rem; }

/* ── Async toggle ── */
.gmh-async-row {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 28px;
    font-size: 0.9rem;
    color: rgba(232,232,232,0.85);
    user-select: none;
}
.gmh-toggle-switch {
    width: 40px;
    height: 24px;
    border-radius: 999px;
    background: #3a3a4a;
    position: relative;
    display: inline-block;
    transition: background 0.2s;
    flex-shrink: 0;
}
.gmh-toggle-switch.gmh-on { background: var(--clockwork-gold); }
.gmh-toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s;
}
.gmh-toggle-switch.gmh-on .gmh-toggle-knob { transform: translateX(16px); }

/* ── Recommendation card ── */
.gmh-empty-state {
    text-align: center;
    padding: 48px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.gmh-rec-card {
    background: #1a1b2a;
    border: 1px solid #2a2a3a;
    border-radius: 10px;
    padding: 24px;
}
.gmh-rec-top { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.gmh-rec-bar { width: 6px; align-self: stretch; min-height: 64px; border-radius: 4px; flex-shrink: 0; }
.gmh-rec-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.gmh-rec-style { font-size: 1.2rem; margin-bottom: 8px; }
.gmh-rec-desc { font-size: 0.9rem; color: rgba(232,232,232,0.8); line-height: 1.55; margin: 0; }
.gmh-rec-stack { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 16px; }
.gmh-rec-stack-name { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.gmh-rec-stack-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 14px; }
.gmh-rec-cta {
    display: inline-block;
    background: var(--clockwork-gold);
    color: #000;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}
.gmh-rec-cta:hover { background: var(--clockwork-gold-hover); }

/* ── Table Dynamics ── */
.gmh-dynamics { margin-top: 28px; }
.gmh-dynamic-list { display: flex; flex-direction: column; gap: 14px; }
.gmh-dynamic-card { border-radius: 8px; padding: 16px 18px; border: 1px solid; }
.gmh-dynamic-synergy { border-color: rgba(112,224,0,0.35); background: rgba(112,224,0,0.06); }
.gmh-dynamic-friction { border-color: rgba(220,20,60,0.3); background: #1a1b2a; padding: 0; overflow: hidden; }
.gmh-dynamic-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.gmh-dynamic-tag { font-size: 0.85rem; font-weight: 700; }
.gmh-tag-synergy { color: #70E000; }
.gmh-tag-friction { color: #ff6b6b; }
.gmh-dynamic-label { font-size: 0.78rem; color: var(--text-muted); }
.gmh-dynamic-note { font-size: 0.85rem; color: rgba(232,232,232,0.75); line-height: 1.55; margin: 0; }

.gmh-friction-head { padding: 16px 18px; background: rgba(220,20,60,0.07); border-bottom: 1px solid rgba(220,20,60,0.2); }
.gmh-friction-type { font-size: 1.05rem; color: #fff; margin: 4px 0; }
.gmh-friction-root { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.gmh-friction-body { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 18px; }
@media (max-width: 640px) { .gmh-friction-body { grid-template-columns: 1fr; } }
.gmh-friction-col-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 6px; }
.gmh-col-amber { color: #e0a94a; }
.gmh-col-cyan { color: #4ad4e0; }
.gmh-col-green { color: #3ba55d; }
.gmh-col-red { color: #e05a5a; }
.gmh-friction-strategy-name { font-size: 0.85rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.gmh-friction-text { font-size: 0.85rem; color: rgba(232,232,232,0.75); line-height: 1.55; margin: 0; }
.gmh-friction-col-support { background: rgba(74,212,224,0.06); border: 1px solid rgba(74,212,224,0.2); border-radius: 6px; padding: 12px 14px; }

.gmh-dynamic-synergy-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(59,165,93,0.08);
    border: 1px solid rgba(59,165,93,0.3);
    border-radius: 8px;
    padding: 18px 20px;
}
.gmh-banner-icon { font-size: 1.5rem; flex-shrink: 0; }
.gmh-banner-title { font-size: 0.95rem; font-weight: 700; color: #3ba55d; margin-bottom: 4px; }
.gmh-banner-text { font-size: 0.85rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ── Axis note ── */
.gmh-axis-note {
    margin-top: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid #2a2a3a;
    border-radius: 8px;
    padding: 12px 16px;
}
.gmh-axis-note summary {
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.gmh-axis-note summary:hover { color: #fff; }
.gmh-axis-intro { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; margin: 10px 0; }
.gmh-axis-row { font-size: 0.8rem; color: rgba(232,232,232,0.75); line-height: 1.7; margin: 0; }

/* ── Field guide ── */
.gmh-fieldguide { margin-top: 40px; }
.gmh-guide-list { display: flex; flex-direction: column; gap: 8px; }
.gmh-guide-card { border: 1px solid rgba(220,165,76,0.2); border-radius: 8px; background: #1a1b2a; overflow: hidden; }
.gmh-guide-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    padding: 14px 18px;
    cursor: pointer;
    text-align: left;
    color: inherit;
    font-family: var(--font-stack);
}
.gmh-guide-header:hover { background: rgba(220,165,76,0.05); }
.gmh-guide-icon { font-size: 1.15rem; }
.gmh-guide-name { flex: 1; font-weight: 700; color: #fff; font-size: 0.95rem; }
.gmh-guide-chevron { color: var(--text-muted); transition: transform 0.2s; display: inline-block; }
.gmh-guide-chevron.gmh-open { transform: rotate(180deg); }
.gmh-guide-body { padding: 0 18px 18px; border-top: 1px solid rgba(220,165,76,0.13); }
.gmh-guide-description {
    font-size: 0.88rem;
    color: rgba(232,232,232,0.85);
    line-height: 1.6;
    margin: 14px 0 0;
}
.gmh-guide-relations {
    margin: 12px 0 4px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.gmh-relation-line {
    font-size: 0.82rem;
    color: rgba(232,232,232,0.75);
    line-height: 1.5;
    margin: 0;
}
.gmh-relation-line .gmh-col-green,
.gmh-relation-line .gmh-col-red {
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: 2px;
}
.gmh-guide-row { display: flex; align-items: center; gap: 8px; margin: 14px 0 6px; }
.gmh-dot { width: 8px; height: 8px; border-radius: 50%; }
.gmh-dot-green { background: #3ba55d; }
.gmh-dot-red { background: #e05a5a; }
.gmh-guide-row-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.gmh-guide-text { font-size: 0.85rem; color: rgba(232,232,232,0.75); line-height: 1.55; margin: 0 0 0 16px; }
.gmh-guide-advantage {
    margin-top: 14px;
    border: 1px solid rgba(74,212,224,0.2);
    background: rgba(74,212,224,0.06);
    border-radius: 6px;
    padding: 10px 14px;
}
.gmh-guide-advantage .gmh-guide-text { margin-left: 0; }

/* ── LFG form ── */
.gmh-lfg-form {
    background: #1a1b2a;
    border: 1px solid #2a2a3a;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
}
.gmh-lfg-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
@media (max-width: 720px) { .gmh-lfg-fields { grid-template-columns: 1fr; } }
.gmh-lfg-field label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.gmh-lfg-field input, .gmh-lfg-field select {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid #3a3a4a;
    background: #12132099;
    color: #fff;
    font-size: 0.9rem;
    font-family: var(--font-stack);
}
.gmh-lfg-field input:focus, .gmh-lfg-field select:focus { outline: none; border-color: var(--clockwork-gold); }
.gmh-generate-btn {
    height: 42px;
    padding: 0 24px;
    border-radius: 6px;
    border: none;
    background: var(--clockwork-gold);
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: var(--font-stack);
    transition: background 0.2s;
}
.gmh-generate-btn:hover:not(:disabled) { background: var(--clockwork-gold-hover); }
.gmh-generate-btn:disabled { opacity: 0.4; cursor: default; }

/* ── LFG output ── */
.gmh-lfg-preview {
    border: 2px solid var(--clockwork-gold);
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 20px;
    background: #1a1b2a;
}
.gmh-lfg-preview-eyebrow { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--clockwork-gold); margin-bottom: 4px; }
.gmh-lfg-preview-name { font-size: 1.4rem; color: #fff; margin-bottom: 4px; }
.gmh-lfg-preview-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 14px; }
.gmh-lfg-targets { background: rgba(220,165,76,0.08); border: 1px solid rgba(220,165,76,0.25); border-radius: 6px; padding: 14px; }
.gmh-lfg-targets-name { font-weight: 700; color: #fff; font-size: 0.95rem; margin-bottom: 4px; }
.gmh-lfg-targets-why { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; margin: 0; }

.gmh-script-card {
    background: #1a1b2a;
    border: 1px solid #2a2a3a;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 16px;
}
.gmh-script-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 12px; }
.gmh-script-head h4 { font-size: 0.95rem; color: #fff; margin: 0; }
.gmh-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border-radius: 6px;
    border: 1px solid #3a3a4a;
    background: transparent;
    color: rgba(232,232,232,0.8);
    font-size: 0.82rem;
    cursor: pointer;
    font-family: var(--font-stack);
    transition: border-color 0.15s, color 0.15s;
    white-space: nowrap;
}
.gmh-copy-btn:hover { border-color: var(--clockwork-gold); color: var(--clockwork-gold); }
.gmh-script-textarea {
    width: 100%;
    background: #12132099;
    border: 1px solid #2a2a3a;
    border-radius: 6px;
    padding: 14px;
    color: rgba(232,232,232,0.85);
    font-size: 0.85rem;
    line-height: 1.55;
    font-family: var(--font-stack);
    resize: vertical;
}
.gmh-script-textarea:focus { outline: none; border-color: var(--clockwork-gold); }
.gmh-script-hint { font-size: 0.72rem; color: #555; margin: 8px 0 0; }
