/* Design tokens */
:root {
    --bg: #f7f7f7;
    --bg-elev: #ffffff;
    --text: #0b0d12;
    --muted: hsl(217, 12%, 41%);
    --primary: #a80d22;
    --primary-faded: #B00D2390;
    --primary-600: #9A0B1F;
    --primary-300: #bc0e25;
    --primary-600-faded: #9A0B1F72;
    --primary-300-faded: #fe485f72;
    --primary-ultra-600: #2f1eca;
    --primary-ultra-300: #8b81d1;
    --primary-ultra-600-faded: #2e1eca90;
    --primary-ultra-300-faded: #8b81d172;
    --accent: #B00D23;
    --danger: #89726f;
    --danger-300: #f08686;
    --success: #61890b;
    --success-300: #88be14;
    --border: #e5e9f2;
    --card: #ffffff;
    --shadow: 0 6px 12px rgba(18,32,60,0.08);
    --radius: 12px;
    --radius-lg: 16px;
    --container: 1120px;
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
}

.site-main { min-height: calc(100vh - 160px); display: flex; flex-direction: column; padding: 20px 0 0 0;}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
a.btn-primary:hover { color: var(--bg); }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.section { padding: 32px 0; }
.section-title { font-size: 28px; margin: 0 0 16px; letter-spacing: 0.2px; }
.lead { font-size: 18px; color: var(--muted); max-width: 60ch; }
.display { font-size: 48px; line-height: 1.05; margin: 0 0 12px; }
/* Text utilities */
.muted { color: var(--muted); }

/* Clamp text to a fixed number of lines with ellipsis */
.line-clamp-5 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
    line-clamp: 7;
    overflow: hidden;
}

.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 8px 24px; border-radius: 999px; border: 1px solid var(--border); color: var(--text); background: transparent; cursor: pointer; transition: all .2s ease; text-decoration: none; font-size: 14px;}
.btn:hover { transform: translateY(-1px); color: white}
.btn-lg { height: 48px; padding: 0 20px;  }
.btn-primary { padding: 0 30px; background: linear-gradient(45deg, var(--primary), var(--primary-300)); color: #ffffff; border: none; box-shadow: 0 6px 12px rgba(176, 13, 35, .25); }
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 8px 12px rgba(176, 13, 35, .35); }
.btn-primary-ultra { padding: 0 30px; background: linear-gradient(45deg, var(--primary-ultra-600), var(--primary-ultra-300)); color: #ffffff; border: none; box-shadow: 0 6px 12px rgba(48, 7, 255, 0.35); }
.btn-primary-ultra:hover { filter: brightness(1.05); box-shadow: 0 8px 12px rgba(48, 7, 255, 0.35); }
.btn-ghost { background: white; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: #f9f9f9; color: var(--accent); }

/* Upgrade buttons: compact but high-contrast */
.btn-upgrade { padding: 0 28px; background: linear-gradient(45deg, var(--primary), var(--primary-300)); color: #fff; border: none; box-shadow: 0 6px 14px rgba(176,13,35,.28); letter-spacing: .2px; }
.btn-upgrade:hover { filter: brightness(1.06); box-shadow: 0 8px 16px rgba(176,13,35,.35); }

/* Brand buttons */
.btn-google { background: linear-gradient(45deg, #fbfbfb, #ffffff); color: var(--text); border-color: #ebebeb; box-shadow: 0 6px 12px rgba(66,133,244,.12); }
.btn-google:hover { background: linear-gradient(45deg, #f0f0f0, #ffffff);  color: var(--text); }
.btn-facebook { background: linear-gradient(45deg, #1770e4, #4C8DF8); color: #ffffff; border: none; box-shadow: 0 6px 12px rgba(24,119,242,.25); }
.btn-facebook:hover { filter: brightness(1.06); box-shadow: 0 8px 12px rgba(24,119,242,.35); }

/* Button icons */
.btn .icon { width: 18px; height: 18px; margin-right: 8px; flex: 0 0 auto; vertical-align: middle; }

/* Buttons: semantic variants */
.btn-danger { background: linear-gradient(45deg, var(--danger), var(--danger-300)); color: #ffffff; border: none; box-shadow: 0 6px 12px rgba(227, 91, 91, .25); }
.btn-danger:hover { filter: brightness(1.03); box-shadow: 0 8px 12px rgba(227, 91, 91, .35); }
.btn-success { background: linear-gradient(45deg, var(--success), var(--success-300)); color: #ffffff; border: none; box-shadow: 0 6px 12px rgba(22, 163, 74, .25); }
.btn-success:hover { filter: brightness(1.05); box-shadow: 0 8px 12px rgba(22, 163, 74, .35); }

/* Header rows layout (key/value/remove on one line) */
.headers-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px 14px; align-items: end; }

/* Navbar */
.navbar { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.2) blur(5px); background: rgba(255, 255, 255, 0.7); border-bottom: 1px solid #eaeef5; box-shadow: 0 6px 12px rgba(18,32,60,0.06); }
.navbar.is-hidden { transform: translateY(-100%); transition: transform .22s ease; }
.navbar { transition: transform .22s ease; }
.nav-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; }
.brand-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--primary)); color: #0b0d12; font-weight: 900; }
.brand-logo { display: inline-block; width: 38px; height: 38px; border-radius: 6px; object-fit: contain; }
.brand-name { letter-spacing: 0.3px; }
.nav-links { display: flex; gap: 16px; justify-content: center; }
.nav-link { color: var(--muted); }
.nav-link:hover { color: var(--text); }
.projects-menu { position: relative; }
.projects-menu .dropdown { display: none; position: absolute; left: 0; top: 100%; background: rgba(255, 255, 255, 0.98); backdrop-filter: saturate(1.2) blur(6px); -webkit-backdrop-filter: saturate(1.2) blur(6px); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); padding: 8px; min-width: 240px; z-index: 70; }
.projects-menu.right .dropdown { right: 0; left: auto; }
.projects-menu:hover .dropdown { display: block; }
.projects-menu .dropdown-item { display: block; padding: 8px 10px; color: var(--text); text-decoration: none; }
.projects-menu .dropdown-item:hover { background: rgba(0,0,0,0.04); }
.projects-menu .dropdown-item:not(:last-child) { border-bottom: 1px solid var(--border); }
.nav-cta { display: flex; gap: 10px; }

/* Account hover dropdown */
/* Account badge */
.account-btn { position: relative; }
.account-btn .badge { display: none; position: absolute; top: -6px; background: var(--primary-300); color: #fff; border-radius: 999px; border: 2px solid white; padding: 2px 6px; font-size: 12px; line-height: 1; }
.account-btn .badge.left { left: 0; transform: translateX(-33%); background: var(--muted); }
.account-btn .badge.right { right: 0; transform: translateX(33%);}
.account-btn .badge:not(:empty) { display: inline-block; }

/* Homepage */
.homepage {
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

.hero-shell {
    display: grid;
    gap: 56px;
    position: relative;
    z-index: 1;
}

.hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    position: relative;
    z-index: 1;
}

.home-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
}

.home-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.home-brand-name {
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.home-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 15px;
    padding-left: 64px;
}

.home-nav a {
    color: var(--muted);
}

.home-nav a:hover {
    color: var(--text);
}

.home-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}


.hero {
    position: relative;
    background: #f7f7f7;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-copy {
    text-align: center;
    padding: 0 240px;
    position: relative;
    z-index: 1;
}

.hero-copy h1 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 36px;
    line-height: 1.04;
}

.hero-copy .lead {
    margin: 0;
    font-size: 17px;
    color: rgba(11, 13, 18, 0.72);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px 0;
}

.btn-link {
    color: var(--text);
    font-weight: 600;
}

.btn-link:hover {
    color: var(--primary);
}

.hero-visual {
    position: relative;
    max-width: 880px;
    width: 100%;
    margin: 0 auto;
    justify-self: center;
}

.hero-gif-frame {
    position: relative;
    border-radius: 32px;
    padding: 0;
    background: none;
    box-shadow: none;
    display: block;
    max-width: 880px;
    margin: 0 auto;
}

.hero-gif-frame video {
    border-radius: 30px;
}


.hero-gif-body {
    background: radial-gradient(140% 120% at 14% 18%, rgba(44,53,92,0.94), rgba(5,6,12,0.98));
    border-radius: 32px;
    padding: 4px;
    box-shadow: -150px 152px 370px #a80d2233, 150px 0px 570px #a80d2244;
    
}

.hero-gif-body img {
    display: block;
    width: 100%;
    border-radius: 28px;
    border: 2px solid rgba(255,255,255,0.12);
    background: #050810;
    box-shadow: 0 34px 76px rgba(1,3,8,0.62);
    aspect-ratio: 16 / 9;
}

.capabilities {
    z-index: 10;
    padding-top: 40px;
    padding-bottom: 40px;
    background: #fff;
    position: relative;
    margin-top: -12vw;
}

.capabilities > .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.demo-preview {
    padding: 96px 0 120px;
    background: linear-gradient(180deg, rgba(247,247,247,1) 0%, rgba(255,255,255,1) 65%, rgba(247,247,247,1) 100%);
}

.demo-preview-card {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    justify-items: center;
    gap: 28px;
    text-align: center;
}

.demo-preview-icon {
    width: 72px;
    height: 72px;
}

.demo-preview-card h2 {
    margin: 0;
    font-size: 38px;
}

.demo-preview-subtitle {
    margin: 0;
    max-width: 480px;
    color: rgba(11,13,18,0.7);
    font-size: 17px;
    line-height: 1.5;
}

.demo-preview-form {
    width: 100%;
    display: grid;
    gap: 18px;
}

.demo-preview-form input,
.demo-preview-form textarea {
    width: 100%;
    border: 1px solid rgba(229, 233, 242, 0.9);
    border-radius: 10px;
    padding: 18px 26px;
    font-size: 16px;
    font-family: inherit;
    background: #f7f7f7;
    color: var(--muted);
}
.demo-preview-form textarea {
    min-height: 140px;
    resize: vertical;
}

.demo-preview-form input:focus, .demo-preview-form textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.demo-preview-button {
    height: 54px;
    font-size: 16px;
    border-radius: 999px;
    justify-self: center;
}

.demo-preview-button[disabled] {
    filter: saturate(0.88);
    opacity: 0.92;
    cursor: not-allowed;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 480px)
{
    .hero-top .btn-ghost {
        display: none;
    }
}

@media (max-width: 600px) {
    .demo-preview-card h2 {
        font-size: 24px;
    }

    .demo-preview-card {
        gap: 12px;
    }

    .demo-preview-icon {
        width: 42px;
        height: 42px;
    }

    .demo-preview-form input,
    .demo-preview-form textarea {
        padding: 16px 20px;
        font-size: 15px;
    }

    .demo-preview-button {
        height: 50px;
    }
}

.highlight-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 22px;
}

.highlight-content h2 {
    margin: 0;
    font-size: 34px;
}

.highlight-content p {
    margin: 0;
    font-size: 16px;
    max-width: 40ch;
    color: rgba(255,255,255,0.75);
}

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

.capabilities-grid .capability {
    height: 100%;
}

.capability.capability--lead {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: var(--primary);
    color: #fff;
}

.capability .capability-copy {
    display: grid;
    gap: 16px;
}

.capability-cta {
    margin-top: auto;
}

.capability {
    display: grid;
    gap: 16px;
    padding: 32px;
    border-radius: 24px;
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(229, 233, 242, 0.8);
    box-shadow: 0 18px 32px rgba(12, 17, 29, 0.08);
}

.capability-icon img {
    width: 48px;
    height: 48px;
}

.capability h3 {
    margin: 0;
    font-size: 20px;
}

.capability p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

@media (max-width: 1100px) {
    .hero-copy {
        padding: 0;
        margin: 0 auto;
        text-align: center;
        align-items: center;
    }

    .hero-visual {
        order: -1;
        justify-self: center;
        margin: 0 auto;
    }

    .capabilities > .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {

    .hero-copy h1 {
        font-size: clamp(36px, 8vw, 48px);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-gif-frame {
        border-radius: 8px;
    }

    .hero-gif-frame video {
        border-radius: 8px;
    }

    .hero-gif-body {
        padding: 2px;
    }
    
    .hero-gif-body {
        border-radius: 8px;
    }

    .capabilities {
        padding: 24px 0;
    }

    .capability {
        padding: 24px;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
    }

    .capabilities-grid .capability {
        margin: 0 !important;
    }

    .demo-preview {
        padding: 24px 0;
    }
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card p { color: var(--muted); margin-bottom: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card.status-passed { border-color: #b7f0ca; box-shadow: 0 0 0 2px rgba(183,240,202,.25) inset; }
.card.status-failed { border-color: #f0b7b7; box-shadow: 0 0 0 2px rgba(240,183,183,.25) inset; }
.card.status-needs-info { border-color: #f2e39a; box-shadow: 0 0 0 2px rgba(242,227,154,.35) inset; }
.card.status-in-progress { border-color: #b7e1f0; box-shadow: 0 0 0 2px rgba(183,225,240,.35) inset; }

/* Scenario running state */
.card.is-running { position: relative; border-style: dashed; animation: borderPulse 1.2s ease-in-out infinite; }
.card.is-running::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); border: 2px dashed var(--run-color, #0b5e7a); pointer-events: none; opacity: .7; }
.spinner { width: 14px; height: 14px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; }
.pill.progress .spinner { border-top-color: #0b5e7a; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes borderPulse { 0%, 100% { --run-color: #0b5e7a; } 50% { --run-color: #3a8aa7; } }

.pill { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--muted); font-size: 14px; }
.pill.ok { color: #0b7a2a; background: #eafff2; border-color: #b7f0ca; }
.pill.bad { color: #7a0b0b; background: #ffecec; border-color: #f0b7b7; }
.pill.info { color: #7a5f0b; background: #fffbea; border-color: #f2e39a; }
.pill.progress { color: #0b5e7a; background: #eaf7ff; border-color: #b7e1f0; }
label.pill.selectable { display: inline-flex; align-items: center; gap: 8px; padding:6px 18px; cursor: pointer; user-select: none; }
label.pill.selectable.selected { padding:6px 18px; border: 2px solid var(--primary); background: rgb(250, 250, 250); color: var(--text); }

/* Add scenario card */
.add-card { display:flex; align-items:center; justify-content:center; text-align:center; min-height:120px; border: 1px dashed var(--border); color: var(--muted); text-decoration: none; }
.add-card:hover { border-color: var(--primary); color: var(--primary); }
.add-card .add-card-inner { display:inline-grid; place-items:center; }
.add-card .add-card-icon { font-size:28px; line-height:1; }
.add-card .add-card-title { margin-top:6px; font-weight:600; }

/* CTA banner */
.cta-banner { position: relative; margin: 48px 0; padding: 28px 0; background: linear-gradient(180deg, rgba(123, 109, 255, .08), rgba(255,255,255,0)); border-top: 1px solid #eaeef5; border-bottom: 1px solid #eaeef5; overflow: hidden; }
.cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.cta-actions { display: flex; gap: 10px; }
.orb { position: absolute; border-radius: 50%; filter: blur(30px); opacity: .5; }
.orb-1 { width: 220px; height: 220px; background: var(--accent); right: -40px; bottom: -40px; }
.orb-2 { width: 260px; height: 260px; background: var(--primary); left: -60px; top: -60px; opacity: .25; }

/* FAQ */
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; }
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { color: var(--muted); }

/* Footer */
.site-footer { padding: 32px 0; border-top: 1px solid #eaeef5; background: var(--bg-elev); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.footer-brand .brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; text-decoration: none; }
.footer-brand .brand-logo { display: inline-block; width: 38px; height: 38px; border-radius: 6px; object-fit: contain; }
.footer-brand .brand-name { letter-spacing: 0.3px; }
.footer-links { display: flex; gap: 12px; justify-content: center; }
.footer-copy { text-align: right; color: var(--muted); }


/* Trust logos */
.logos .logo-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; align-items: center; }
.logos .logo { height: 48px; display: grid; place-items: center; color: var(--muted); border: 1px dashed #eaeef5; border-radius: var(--radius); background: #ffffff; font-weight: 700; letter-spacing: 0.4px; }

/* Testimonials */
.testimonials .card p { margin: 0 0 8px; }
.testimonials .author { color: var(--muted); font-size: 14px; }

/* Responsive */
@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; }
    .display { font-size: 40px; }
}

/* Forms (dashboard) */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-weight: 600; font-size: 14px; color: var(--muted); }
.input, .select, .textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
}
.input, .select { height: 40px; }
.select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6575' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px 14px;
    padding-right: 42px; /* room for caret */
    cursor: pointer;
}
.textarea { resize: vertical; min-height: 120px; font-family: inherit; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(176,13,35,0.15); }
.actions { margin-top: 18px; display: flex; gap: 10px; align-items: center; }
.actions.stack { flex-direction: column; align-items: stretch; }
.btn-block { width: 100%; }

/* Utilities */
.mt-12 { margin-top: 12px; }
.text-center { text-align: center; }

.result-wrap { margin-top: 10px; }
.result-wrap summary { cursor: pointer; color: var(--muted); }
.result { background: #fbfcff; border: 1px solid var(--border); border-radius: 10px; padding: 12px; overflow: auto; max-height: 300px; }

/* Notice blocks */
.notice { border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.notice.info { background: #fffbea; border-color: #f2e39a; }
.notice.progress { background: #eaf7ff; border-color: #b7e1f0; }

@media (max-width: 700px) {
    .form-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-links { flex-direction: column; align-items: center; }
    .footer-copy { text-align: center; }
    .home-nav { display: none; }
}

.select-btn { position: relative; }
.select-btn .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: all .15s ease; }
.select-btn.is-selected .dot { background: var(--primary); transform: scale(1.8); }
.select-btn.is-selected { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(176,13,35,0.15); }

/* Inline control layout */
.inline-field { display: inline-flex; align-items: center; gap: 10px; }
.inline-field .label { margin: 0; }

/* Suite bottom action bar */
.suite-bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; backdrop-filter: saturate(1.2) blur(5px); -webkit-backdrop-filter: saturate(1.2) blur(5px); background: rgba(255, 255, 255, 0.7); border-top: 1px solid #eaeef5; box-shadow: 0 -6px 12px rgba(18,32,60,0.06); }
.suite-bottom-bar .toolbar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 10px 0; }
.section.has-bottom-bar { padding-bottom: 112px; }

/* Segmented control */
.segmented {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}
.segmented label.pill.selectable {
    position: relative;
    border: 0;
    border-radius: 0;
    padding: 8px 16px;
    flex: 1 1 0;
    justify-content: center;
    color: var(--muted);
    background: transparent;
}
.segmented label.pill.selectable + label.pill.selectable { border-left: 1px solid var(--border); }
.segmented label.pill.selectable.selected {
    background: rgba(176, 13, 35, 0.031);
    color: var(--text);
    border: 1px solid var(--primary-600);
    border-radius: 8px 0 0 8px;
}

.segmented label.pill.selectable.selected + label.pill.selectable.selected {
    border-radius: 0 8px 8px 0;
}
.segmented .pill.selectable[data-role="reader"].selected + .pill.selectable[data-role="editor"].selected {
    /* When both selected, emphasize combined state with subtle gradient */
    background: linear-gradient(90deg, rgba(176,13,35,0.06), rgba(176,13,35,0.10));
}
.segmented label.pill.selectable input[type="radio"] { appearance: none; width: 0; height: 0; position: absolute; }
.segmented label.pill.selectable .seg-icon { font-size: 16px; }