/* 06-controls.css: index.html@cd3fd3f lines 297-444 (global sections, mesh-mode options, toggles, FIRST .export-btn block).
   The first .export-btn block (lines 425-444) stays here: it supplies width: 100%,
   which the second block in 11-export.css (lines 824-843) does not override. Do not merge them.
   06 T4a (06 3.4, 3.5): role tokens. The section-title bar, the selected mesh-mode border and radio dot and the
   toggle's on-track are Signal Red (--color-accent) on opaque surfaces of at most #161616, never on a tint. The
   toggle keeps its geometry: its off ring is an inset shadow, so the box size does not change. The first .export-btn
   block is the neutral base (no gradient, no lift); .export-btn--primary is the one Pivot Gold element of the layout
   (#export-zip, R-B5), with a Morph Black inner ring on hover.
   Slice of the original <style>, rewritten to role tokens (css-slices.mjs --report-only lists the difference, 07 S7);
   link order = file number. Do not reorder rules across files. */
.global-section {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border-subtle);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 16px;
}

.global-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-text-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.global-section-title::before {
    content: '';
    width: 3px;
    height: 12px;
    background: var(--color-accent);
    border-radius: 0;
}

.mesh-mode-select {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.mesh-mode-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--color-surface-1);
    border: 1px solid var(--color-border-subtle);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mesh-mode-option:hover {
    border-color: var(--color-border-strong);
}

.mesh-mode-option.active {
    background: var(--color-surface-1);
    border-color: var(--color-accent);
}

.mesh-mode-option input {
    display: none;
}

.mesh-mode-radio {
    width: 16px;
    height: 16px;
    border: 2px solid var(--color-border-strong);
    border-radius: 50%;
    position: relative;
}

.mesh-mode-option.active .mesh-mode-radio {
    border-color: var(--color-accent);
}

.mesh-mode-option.active .mesh-mode-radio::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
}

.mesh-mode-label {
    font-size: 12px;
}

.toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.toggle-label {
    font-size: 13px;
}

.toggle {
    width: 44px;
    height: 24px;
    background: var(--color-bg-app);
    box-shadow: inset 0 0 0 1px var(--color-border-strong);
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease;
}

.toggle.active {
    background: var(--color-accent);
    box-shadow: inset 0 0 0 1px var(--color-accent);
}

.toggle::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--morph-white-1000);
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.3s ease;
}

.toggle.active::after {
    transform: translateX(20px);
}

.export-btn {
    width: 100%;
    padding: 14px;
    background: var(--color-surface-2);
    border: none;
    border-radius: 8px;
    color: var(--color-text-primary);
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.export-btn--primary {
    background: var(--cta-background);
    color: var(--color-on-cta);
    font-weight: 700;
}

.export-btn--primary:hover {
    box-shadow: inset 0 0 0 2px var(--color-on-cta);
}

/* ---- collapsible cards (ui/Collapsible.js; Mesh Options and Wall Pivot, the owner's request of 2026-10-17) ----------
   The title becomes a native button: no button chrome, the title type and red bar kept, a chevron on the right that
   turns like the section cards' (.section-toggle), and the shared :focus-visible ring (03-layout.css). Collapsed, the
   card is just its title bar. */
.collapsible-toggle {
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.collapsible.collapsed .collapsible-toggle {
    margin-bottom: 0;
}

.collapsible-toggle:hover .collapsible-chevron {
    color: var(--color-text-primary);
}

.collapsible-chevron {
    margin-left: auto;
    flex: none;
    color: var(--color-text-secondary);
    transition: transform 0.2s ease;
}

.collapsible.collapsed .collapsible-chevron {
    transform: rotate(-90deg);
}

.collapsible-body[hidden] {
    display: none;
}
