/* Sample split test (/demo/split-testing/): the views on top of demo-app.css. */

.lbl { display: block; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); margin-bottom: 6px; }
.meter { flex: 1; height: 7px; border-radius: 99px; background: var(--gray-soft); overflow: hidden; min-width: 40px; }
.meter i { display: block; height: 100%; border-radius: 99px; transition: width .2s ease; }
.meter i.c-teal { background: #20c997; } .meter i.c-blue { background: var(--blue); } .meter i.c-red { background: #fa5252; }
.nowrap { white-space: nowrap; }
.err { color: var(--red); }
.btn-primary:disabled { opacity: .75; cursor: progress; }
.spin.light { border-color: rgba(255,255,255,.4); border-top-color: #fff; }
#view { display: flex; flex-direction: column; gap: 16px; min-width: 0; margin-bottom: 16px; }

/* List */
.bar-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Test header and tabs */
.crumb { color: var(--blue-ink); font-size: 13px; font-weight: 500; margin-bottom: -6px; }
.crumb:hover { text-decoration: underline; }
.test-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.test-title { font-size: 20px; font-weight: 600; font-family: var(--font); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.notify-note { font-size: 12.5px; color: var(--blue-ink); margin-top: 4px; }
.test-acts { display: flex; gap: 8px; align-items: center; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 25; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px rgba(14,26,43,.14); padding: 4px; display: flex; flex-direction: column; min-width: 190px; }
.menu-list button { border: 0; background: none; text-align: left; padding: 7px 10px; border-radius: 5px; font-size: 13px; }
.menu-list button:hover:not(:disabled) { background: var(--gray-soft); }
.menu-list button:disabled { color: #adb5bd; cursor: default; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 8px 14px; font-weight: 500; color: var(--dim); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--blue-ink); border-bottom-color: var(--blue); }
.rolled { background: var(--blue-soft); color: var(--blue-ink); border: 1px solid #cfe6fb; border-radius: 10px; padding: 10px 14px; }

/* Where it stands */
.standing { display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; border-left: 4px solid var(--blue); }
.standing.won { border-left-color: #20c997; background: linear-gradient(90deg, #f3fcf8, #fff 55%); }
.standing-main { flex: 1 1 420px; min-width: 0; }
.eyebrow { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.standing h3 { font-size: 20px; font-family: var(--display); font-weight: 650; margin: 2px 0 4px; }
.standing p { max-width: 70ch; }
.standing-side { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.sm-switch { font-size: 12.5px; }
.auto-row { display: inline-flex; align-items: center; gap: 6px; }
.btn-win { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 8px; background: #1f5c1f; color: #fff; font-weight: 600; font-size: 13.5px; padding: 9px 16px; box-shadow: 0 6px 16px rgba(31,92,31,.25); }
.btn-win:hover { background: #184a18; }

/* Totals */
.tiles.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tiles.six:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tile-btn { text-align: left; font: inherit; cursor: pointer; }
.tile-btn:hover { border-color: #c5d3e8; }
.tile-btn:hover .tile-sub { color: var(--blue-ink); text-decoration: underline; }
@media (max-width: 1100px) { .tiles.six, .tiles.six:has(> :nth-child(5):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tiles.six, .tiles.six:has(> :nth-child(5):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Arms table */
.arm-tag { display: inline-grid; place-items: center; min-width: 28px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 11.5px; font-weight: 500; flex: none; }
.arm-cell { display: flex; align-items: center; gap: 10px; min-width: 230px; }
.arm-link { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; border-radius: 6px; }
.arm-link:hover b, .arm-link:focus-visible b { color: var(--blue, #1a73e8); text-decoration: underline; text-underline-offset: 2px; }
.arm-card { transition: box-shadow .3s ease; }
.arm-card.flash { box-shadow: 0 0 0 2px var(--blue, #1a73e8); }
.arms td { white-space: nowrap; }
.arms td:first-child { white-space: normal; }
.arms tr.retired td { opacity: .55; }
.best-col { min-width: 150px; }
.chance { display: flex; align-items: center; gap: 8px; }
.chance b { min-width: 36px; text-align: right; }
.acts-col { text-align: right; }

/* Usage, guardrails, rounds, settings */
.stack { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--gray-soft); }
.stack i { display: block; height: 100%; }
.stack i.c-blue, .stack-key i.c-blue { background: var(--blue); }
.stack i.c-red, .stack-key i.c-red { background: #fa5252; }
.stack i.c-gray, .stack-key i.c-gray { background: #dee2e6; }
.stack-key { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; }
.stack-key i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.rails { display: flex; flex-direction: column; gap: 10px; }
.rail { display: grid; grid-template-columns: 120px minmax(0, 1fr) 48px 120px; gap: 10px; align-items: center; font-size: 13px; }
.rail b { text-align: right; }
@media (max-width: 560px) { .rail { grid-template-columns: 100px minmax(0, 1fr) 44px; } .rail .xs { grid-column: 2 / -1; } }
.rounds { display: flex; flex-direction: column; gap: 12px; }
.round { display: flex; flex-direction: column; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid #f0f2f5; }
.round:last-child { border-bottom: 0; padding-bottom: 0; }
.round-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rbar { display: flex; gap: 10px; align-items: center; }
.rbar .xs { min-width: 64px; text-align: right; }
.fixed { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin: 10px 0 0; font-size: 13px; }
.fixed dt { color: var(--dim); }
.fixed dd { margin: 0; color: var(--ink); }
.restart { text-align: center; font-size: 13px; }

/* Content studio */
.studio-test { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 800px) { .studio-test { grid-template-columns: minmax(0, 1fr); } }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.chipbtn { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 12px; font-size: 12.5px; font-weight: 500; }
.chipbtn.on { background: var(--blue-soft); border-color: #a5d8ff; color: var(--blue-ink); }
.studio-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.studio-tools .select { display: flex; align-items: center; gap: 8px; }
.arm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.arm-grid.mobile { grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; }
@media (max-width: 860px) { .arm-grid, .arm-grid.mobile { grid-template-columns: minmax(0, 1fr); } }
.arm-card { padding: 12px; display: flex; flex-direction: column; gap: 10px; box-shadow: none; background: #fbfcfe; }
.arm-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }
.mail { background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; overflow: hidden; }
.mail-row { padding: 7px 12px; border-bottom: 1px solid #f0f2f5; display: flex; gap: 10px; }
.mail-row .dim { width: 52px; flex: none; }
.mail-body { padding: 14px 12px 16px; line-height: 1.6; }
.arm-grid.mobile .mail-body { font-size: 15px; }
.tok { font-family: var(--mono); font-size: 12px; background: var(--violet-soft); color: #6741d9; padding: 0 4px; border-radius: 4px; }
.fill { background: #e7f5ff; border-radius: 3px; padding: 0 2px; }
.fill.fb { background: var(--yellow-soft); outline: 1px dashed #fcc419; }
.sms-wrap { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.sms { background: #e9ecef; border-radius: 18px 18px 18px 4px; padding: 10px 14px; max-width: 320px; font-size: 14px; line-height: 1.45; }
.callout-plain { margin-top: 12px; background: var(--yellow-soft); border: 1px solid #ffe8a1; border-radius: 8px; padding: 9px 12px; }
.studio-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Plan a round */
.plan { display: flex; flex-direction: column; gap: 18px; }
.seg.wide { flex-wrap: wrap; overflow: visible; }
.seg.wide button { padding: 6px 12px; font-size: 13px; }
.other-in, .rate-in { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; }
.other-in input, .rate-in input { width: 90px; border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; }
.plan p.xs { margin-top: 6px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.check input { accent-color: var(--blue); width: 16px; height: 16px; }
.split-head { display: flex; justify-content: space-between; align-items: center; }
.split-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 60px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #f0f2f5; }
.split-name { display: flex; flex-direction: column; min-width: 0; }
.stepper { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 7px; padding: 2px; }
.stepper b { min-width: 42px; text-align: center; }
.split-n { text-align: right; }
.power { background: var(--blue-soft); border: 1px solid #cfe6fb; border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.power b { color: var(--blue-ink); }
.btn-big { justify-content: center; font-size: 14px; padding: 11px 16px; border-radius: 8px; }

/* Replies and people */
.reply-list { display: flex; flex-direction: column; gap: 8px; }
.reply { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; box-shadow: none; }
.reply-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reply-top .dim { margin-left: auto; }
.reply-grade { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reply-grade .select select { min-width: 140px; }
.people { display: flex; flex-wrap: wrap; gap: 6px; }
.people span { background: var(--gray-soft); border-radius: 99px; padding: 3px 10px; font-size: 12.5px; }
.drawer-body > .btn-default { align-self: flex-start; }

/* Forms in modals */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label:not(.radio):not(.check):not(.rate-in) { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 500; flex: 1; }
.form input[type=text], .form select { border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; font-size: 13.5px; font-weight: 400; background: #fff; }
.form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.form .row { display: flex; gap: 12px; flex-wrap: wrap; }
.radio { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.radio:has(input:checked) { border-color: #a5d8ff; background: #f5faff; }
.radio input { margin-top: 3px; accent-color: var(--blue); }
.radio span { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.warn { background: var(--orange-soft); color: #c2410c; border-radius: 8px; padding: 9px 12px; font-size: 13px; }

/* Bounce and click reports */
.modal-card.wide { width: min(1160px, 100%); }
.modal-card.wide .modal-body { display: flex; flex-direction: column; gap: 14px; }
.btn-light { display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 6px; background: var(--blue-soft); color: var(--blue-ink); font-size: 12px; font-weight: 600; padding: 4px 10px; white-space: nowrap; cursor: pointer; }
.btn-light:hover { background: #d0ebff; }
summary.btn-light { list-style: none; }
.report-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.report-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.report td { vertical-align: top; }
.report .detail { max-width: 380px; }
.report .textlink { cursor: pointer; font-weight: 500; }
.report .textlink:hover { text-decoration: underline; }
.report tr.sub td { border-top: 0; }
.report td.indent { padding-left: 26px; }
.cstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 700px) { .cstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cstat { padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; box-shadow: none; min-width: 0; }
.cstat > b { font-size: 22px; font-weight: 600; color: var(--ink); }
.cstat .most { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.lnk { color: var(--blue-ink); text-decoration: underline; text-decoration-color: #a5d8ff; text-underline-offset: 2px; word-break: break-all; }
.lnk.strong { color: var(--ink); font-weight: 600; text-decoration: none; }
.pill-link { display: inline-flex; gap: 4px; align-items: center; background: var(--gray-soft); border-radius: 99px; padding: 3px 10px; font-size: 12.5px; font-weight: 500; color: #343a40; }
.chev-col { width: 36px; }
.chev { font-size: 18px; line-height: 1; transition: transform .12s; }
tr.open .chev { transform: rotate(90deg); }
tr.open td { background: #f8f9fa; }
.clicks-detail { margin-top: 10px; padding-left: 10px; border-left: 2px solid #dee2e6; display: flex; flex-direction: column; gap: 4px; }
.clicks-detail > div { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.clicks-detail .when { width: 190px; flex: none; }
.armbar-col { width: 300px; }
.armbar { display: flex; height: 10px; border-radius: 3px; overflow: hidden; background: var(--gray-soft); min-width: 120px; }
.armbar i { display: block; height: 100%; }
.armbar i.c-blue, .key.c-blue { background: var(--blue); }
.armbar i.c-grape, .key.c-grape { background: var(--grape); }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.round-links { margin-left: auto; display: inline-flex; gap: 12px; font-size: 12.5px; }
.link.bad { color: var(--red); }
