:root {
    --tangible-bench-bg: radial-gradient(circle at top, #f6dbc8 0%, #f2efe7 42%, #d8e4df 100%);
    --tangible-bench-panel: rgba(252, 248, 242, 0.9);
    --tangible-bench-panel-border: rgba(73, 54, 41, 0.15);
    --tangible-bench-ink: #2f241d;
    --tangible-bench-muted: #645246;
    --tangible-bench-accent: #b5572f;
    --tangible-bench-accent-dark: #7b3417;
    --tangible-bench-track: #e1cec0;
    --tangible-bench-shadow: 0 20px 50px rgba(74, 52, 38, 0.12);
}

html {
    min-height: 100%;
    background: #f2efe7;
}

.tangible-bench-page {
    margin: 0;
    min-height: 100vh;
    color: var(--tangible-bench-ink);
    font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
}

.tangible-bench-page .tangible-bench-shell {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 64px;
    background: var(--tangible-bench-bg);
}

.tangible-bench-hero {
    margin-bottom: 24px;
}

.tangible-bench-eyebrow {
    margin: 0 0 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tangible-bench-accent-dark);
    font-size: 0.8rem;
    font-weight: 700;
}

.tangible-bench-hero h1,
.tangible-bench-results-header h2 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
}

.tangible-bench-hero h1 {
    max-width: 12ch;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 0.95;
}

.tangible-bench-intro {
    max-width: 720px;
    margin: 16px 0 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--tangible-bench-muted);
}

.tangible-bench-card {
    padding: 28px;
    border: 1px solid var(--tangible-bench-panel-border);
    border-radius: 28px;
    background: var(--tangible-bench-panel);
    box-shadow: var(--tangible-bench-shadow);
    backdrop-filter: blur(16px);
}

.tangible-bench-card + .tangible-bench-card {
    margin-top: 20px;
}

.tangible-bench-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.tangible-bench-page .tangible-bench-secret-field {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(73, 54, 41, 0.1);
}

.tangible-bench-page .tangible-bench-secret-label {
    font-weight: 700;
}

.tangible-bench-page .tangible-bench-secret-copy {
    color: var(--tangible-bench-muted);
    line-height: 1.5;
}

.tangible-bench-page #tangible-bench-form #tangible-bench-secret {
    appearance: none;
    -webkit-appearance: none;
    width: min(100%, 420px);
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(73, 54, 41, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--tangible-bench-ink);
    font: inherit;
    line-height: 1.4;
    box-sizing: border-box;
    box-shadow: none;
}

.tangible-bench-page #tangible-bench-form #tangible-bench-secret:focus {
    outline: 2px solid rgba(181, 87, 47, 0.22);
    outline-offset: 2px;
    border-color: rgba(181, 87, 47, 0.6);
}

.tangible-bench-slider {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(73, 54, 41, 0.08);
}

.tangible-bench-slider-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
}

.tangible-bench-slider-value {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    color: var(--tangible-bench-accent-dark);
}

.tangible-bench-slider input[type='range'] {
    width: 100%;
    accent-color: var(--tangible-bench-accent);
}

.tangible-bench-slider-copy,
.tangible-bench-secret-copy,
.tangible-bench-note,
#tangible-bench-summary {
    color: var(--tangible-bench-muted);
    line-height: 1.5;
}

.tangible-bench-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
}

#tangible-bench-submit {
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--tangible-bench-accent) 0%, var(--tangible-bench-accent-dark) 100%);
    color: #fff;
    padding: 14px 22px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
    box-shadow: 0 16px 32px rgba(123, 52, 23, 0.2);
}

#tangible-bench-submit:hover,
#tangible-bench-submit:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(123, 52, 23, 0.25);
}

#tangible-bench-submit:disabled {
    opacity: 0.72;
    cursor: wait;
    transform: none;
}

.tangible-bench-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

#tangible-bench-status {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(73, 54, 41, 0.08);
    font-size: 0.9rem;
    font-weight: 700;
}

#tangible-bench-status[data-mode='running'] {
    background: rgba(181, 87, 47, 0.14);
    color: var(--tangible-bench-accent-dark);
}

#tangible-bench-status[data-mode='complete'] {
    background: rgba(49, 123, 76, 0.14);
    color: #215133;
}

#tangible-bench-status[data-mode='failed'] {
    background: rgba(171, 42, 42, 0.14);
    color: #7a1e1e;
}

#tangible-bench-response {
    overflow-x: auto;
    margin: 16px 0 0;
    padding: 18px;
    border-radius: 18px;
    background: #201914;
    color: #f9f2e8;
    font-size: 0.9rem;
    line-height: 1.55;
}

@media (max-width: 800px) {
    .tangible-bench-page .tangible-bench-shell {
        width: min(100% - 20px, 1080px);
        padding: 24px 0 40px;
    }

    .tangible-bench-card {
        padding: 20px;
        border-radius: 22px;
    }

    .tangible-bench-grid {
        grid-template-columns: 1fr;
    }

    .tangible-bench-actions,
    .tangible-bench-results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tangible-bench-hero h1 {
        max-width: none;
    }
}