/* Interactive replicas of app screens. Sizes are the app's dp values at about 0.85. */

/* ── Frame and screen structure ─────────────────────── */

/* One size everywhere; only a viewport narrower than the phone shrinks it. */
.phone {
    width: 340px;
    max-width: calc(100vw - 32px);
    height: 700px;
    flex: none;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 48px;
    background: #0b0b0b;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 32px 64px rgba(0, 0, 0, 0.45);
}

.screen {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 38px;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.3 var(--font-body);
    user-select: none;
    -webkit-user-select: none;
}

.screen-body {
    flex: 1;
    min-height: 0;
    overflow: hidden auto;
    padding-bottom: 12px;
    scrollbar-width: none;
}

.screen-body::-webkit-scrollbar {
    display: none;
}

/* Touch screens: the page scrolls, never the phone, so a swipe on it can't trap the reader. */
@media (hover: none) {
    .screen-body {
        overflow: hidden;
    }
}

/* Subset holding only the icons the screens use. Re-download it from Google Fonts with
   the new icon_names list when adding an icon. Block, so icon names never flash as text. */
@font-face {
    font-family: "Material Symbols Rounded";
    font-weight: 400;
    font-display: block;
    src: url("/static/fonts/material-symbols-rounded.woff2") format("woff2");
}

.ms {
    font-family: "Material Symbols Rounded";
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    font-variation-settings: "FILL" 0;
    font-feature-settings: "liga";
    white-space: nowrap;
}

.ms.filled {
    font-variation-settings: "FILL" 1;
}

.ms.muted,
.muted {
    color: var(--muted);
}

.status-bar {
    flex: none;
    height: 36px;
    padding: 14px 28px 0;
    font: 500 13px/1 var(--font-body);
}

.tab-bar {
    display: grid;
    flex: none;
    grid-template-columns: repeat(4, 1fr);
    height: 60px;
    border-top: 1px solid var(--raised);
    background: var(--bg);
}

.tab-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--muted);
    font: 11px/1 var(--font-mono);
}

.tab-item .ms {
    font-size: 22px;
}

.tab-item + .tab-item::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;
    width: 1px;
    background: var(--raised);
}

.tab-item.active {
    color: var(--accent);
}

.tab-item.active::after {
    content: "";
    position: absolute;
    top: 0;
    width: 24px;
    height: 2px;
    border-radius: 1px;
    background: var(--accent);
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px 12px 20px;
}

.page-title .screen-heading,
.app-bar .screen-heading {
    margin: 0;
    font: 400 24px/1.25 var(--font-display);
    text-wrap: balance;
}

.page-title .ms {
    font-size: 24px;
}

.app-bar {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
    padding: 4px 16px 8px 8px;
}

.app-bar .screen-heading {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-size: 21px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.app-bar .icon-btn {
    cursor: pointer;
}

.app-bar-icon {
    margin-left: 12px;
    font-size: 22px;
}

.thumb {
    flex: none;
    border-radius: 50%;
    background: #fff;
    object-fit: cover;
}

.icon-btn {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--raised);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
}

.icon-btn.plain {
    width: 32px;
    border: 0;
    background: none;
}

.icon-btn.small {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

/* A Vigor AI feature's icon: black glyph on a lime tile. */
.feature-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--accent);
}

.feature-icon.small {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

/* ── Workout screen ─────────────────────────────────── */

.wk-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 8px;
}

.rest-pill {
    display: none;
    align-items: center;
    gap: 2px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--accent);
    border-radius: 10px;
    background: rgba(186, 230, 70, 0.12);
    color: var(--accent);
    font: 500 17px/1 var(--font-body);
    font-variant-numeric: tabular-nums;
}

.resting .rest-pill {
    display: flex;
}

.resting .timer-btn {
    display: none;
}

.finish-btn {
    margin-left: auto;
    padding: 8px 12px;
    border: 1px solid var(--accent);
    border-radius: 10px;
    color: var(--accent);
    font-size: 14px;
    white-space: nowrap;
}

.wk-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 16px 0 20px;
}

.wk-title .screen-heading {
    margin: 0;
    font: 400 26px/1.2 var(--font-display);
    text-wrap: balance;
}

.wk-clock {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 20px 12px;
    color: var(--text-2);
    font-size: 22px;
    font-variant-numeric: tabular-nums;
}

.wk-clock span:last-child {
    color: var(--text);
}

.ex {
    margin: 0 8px 12px;
    border: 1px solid var(--raised);
    border-radius: 16px;
    background: var(--surface);
}

.ex-head {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 12px 8px 16px;
    border-bottom: 1px solid var(--raised);
}

.ex-name {
    flex: 1;
    min-width: 0;
}

.ex-name strong {
    display: block;
    color: var(--accent);
    font: 400 17px/1.25 var(--font-display);
}

.ex-name span {
    color: var(--muted);
    font-size: 13px;
}

.ex-head .icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.ex-head .ms {
    font-size: 18px;
}

.ex-head .icon-btn.live {
    cursor: pointer;
}

.ex-gap {
    height: 8px;
}

.set-grid {
    display: grid;
    grid-template-columns: 28px 1fr 64px 52px 36px;
    align-items: center;
    gap: 6px;
}

.set-labels {
    padding: 12px 12px 4px 16px;
    color: var(--text-2);
    font: 11px/1 var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.set-labels span:nth-child(3),
.set-labels span:nth-child(4) {
    text-align: center;
}

.sets {
    padding: 0 8px;
}

.set-row {
    position: relative;
    margin: 4px 0;
    border-radius: 10px;
    touch-action: pan-y;
}

.set-row .set-grid {
    position: relative;
    z-index: 1;
    padding: 4px 4px 4px 8px;
    border-radius: 10px;
    background: var(--surface);
    transition: background-color 200ms var(--ease), transform 200ms var(--ease);
}

.set-row.dragging .set-grid {
    transition: background-color 200ms var(--ease);
}

.set-num {
    padding: 8px 0;
    border: 0;
    background: none;
    color: var(--text);
    font: 500 16px/1 var(--font-body);
    text-align: center;
    cursor: pointer;
}

.set-row.warmup .set-num {
    color: var(--warmup);
}

.set-prev {
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.set-input {
    display: grid;
    place-items: center;
    width: 100%;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: var(--raised);
    color: var(--text);
    font: 16px/1 var(--font-body);
    text-align: center;
    user-select: text;
}

.set-input:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 0;
}

/* Autopilot's values: soft white with a dot in the corner until ticked. */
.set-input.suggested {
    position: relative;
    color: #b9b9b9;
}

.set-input.suggested::after {
    content: "";
    position: absolute;
    top: 5px;
    right: 5px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
}

.set-check {
    display: grid;
    place-items: center;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: var(--raised);
    color: var(--muted);
    cursor: pointer;
    transition: background-color 150ms var(--ease), color 150ms var(--ease);
}

span.set-check {
    cursor: default;
}

.set-row.done .set-grid {
    background: #4a5a1e;
}

.set-row.done .set-prev {
    color: var(--accent);
}

.set-row.done .set-input {
    background: #1c1c1c;
}

.set-row.done .set-check {
    background: var(--accent);
    color: var(--on-accent);
}

/* Revealed under a set while it is swiped away. */
.set-delete {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 16px;
    border-radius: 10px;
    background: #8b1e1e;
    color: var(--text);
    opacity: 0;
}

.set-row.dragging .set-delete,
.set-row.removing .set-delete {
    opacity: 1;
}

.add-set {
    display: block;
    width: calc(100% - 32px);
    margin: 8px 16px 16px;
    padding: 10px;
    border: 1px solid var(--raised);
    border-radius: 10px;
    background: none;
    color: var(--accent);
    font: 17px/1.2 var(--font-display);
    cursor: pointer;
}

/* Autopilot's message above the sets: what to do and why. */
.ap-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 12px 0;
    padding: 8px 10px;
    border: 1px solid var(--raised);
    border-radius: 12px;
    background: var(--raised);
}

.ap-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent);
    color: var(--on-accent);
}

.ap-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ap-text strong {
    font-weight: 500;
    font-size: 14px;
}

.ap-text span {
    color: var(--text-2);
    font-size: 12px;
}

.ap-pill.changed .ap-text {
    animation: pill-rise 300ms var(--ease);
}

@keyframes pill-rise {
    from {
        transform: translateY(6px);
        opacity: 0;
    }
}

/* ── History screen ─────────────────────────────────── */

.cal {
    margin: 0 12px 12px;
    padding: 12px 8px;
    border: 1px solid var(--raised);
    border-radius: 16px;
    background: var(--surface);
}

.cal-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
}

.cal-arrow {
    color: var(--accent);
}

.cal-arrow.muted {
    color: var(--muted);
}

.cal-month {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--raised);
    font: 500 16px/1 var(--font-display);
}

.cal-month .ms {
    color: var(--accent);
}

.cal-count {
    margin: 8px 0 4px;
    color: var(--text-2);
    font-size: 13px;
    text-align: center;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 2px;
    justify-items: center;
}

.cal-weekday {
    padding: 4px 0;
    color: var(--text-2);
    font-size: 12px;
}

.cal-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 2px 0 4px;
    border: 0;
    background: none;
    color: var(--muted);
    font: 13px/1 var(--font-body);
}

.cal-day span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.cal-day::after {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

.cal-day.has {
    color: var(--text);
    cursor: pointer;
}

.cal-day.has::after {
    background: var(--accent);
}

.cal-day.has:hover span {
    background: var(--raised);
}

.cal-day.selected span,
.cal-day.selected:hover span {
    background: var(--accent);
    color: var(--on-accent);
}

.hist-card {
    margin: 0 12px;
    border: 1px solid var(--raised);
    border-radius: 16px;
    background: var(--surface);
}

.hist-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px 0 16px;
}

.hist-top .screen-heading {
    margin: 0;
    font: 400 20px/1.2 var(--font-display);
}

.hist-top .screen-heading span {
    color: var(--accent);
}

.hist-date {
    margin: 2px 16px 0;
    color: var(--muted);
    font-size: 13px;
}

.hist-meta {
    display: flex;
    justify-content: space-between;
    padding: 8px 16px 12px;
    border-bottom: 1px solid var(--raised);
    color: var(--muted);
    font-size: 13px;
}

.hist-meta > span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hist-meta .ms {
    font-size: 16px;
}

.hist-ex {
    padding: 12px 16px 16px;
}

.hist-ex-head,
.hist-ex li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.hist-ex-head {
    margin-bottom: 4px;
    font: 500 14px/1.4 var(--font-display);
}

.hist-ex ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hist-ex li {
    padding: 3px 0;
    color: var(--text-2);
    font-size: 13px;
}

.hist-ex li span:first-child {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hist-ex li span:last-child {
    flex: none;
    font-variant-numeric: tabular-nums;
}

/* ── Exercises list and details ─────────────────────── */

.lib-filter {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 4px 16px 12px 20px;
}

.lib-filter > span:first-child {
    font: 500 13px/1 var(--font-body);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lib-select {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--raised);
    font-weight: 500;
}

.lib-select .ms {
    color: var(--accent);
}

.lib-group {
    margin: 0;
    padding: 12px 20px 8px;
    border-bottom: 1px solid var(--raised);
    color: var(--accent);
    font: 500 18px/1.2 var(--font-display);
    text-transform: uppercase;
}

.lib-row {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 6px 16px;
    border: 0;
    border-bottom: 1px solid var(--raised);
    background: none;
    color: var(--text);
    font: 15px/1.3 var(--font-body);
    text-align: left;
    cursor: pointer;
    transition: background-color 150ms var(--ease);
}

.lib-row:hover {
    background: var(--surface);
}

.lib-row img {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #fff;
    object-fit: cover;
}

.detail {
    padding: 0 16px 16px;
}

.section-label {
    margin: 16px 0 8px;
    color: var(--accent);
    font: 500 17px/1.2 var(--font-display);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.detail .section-label:first-child {
    margin-top: 8px;
}

/* How to perform: the image, or the video's thumbnail with the app's play button. */
.seg.light {
    margin-bottom: 8px;
    background: var(--surface);
}

.demo-media {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 480 / 340;
}

.demo-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.demo-media [hidden] {
    display: none;
}

.demo-video {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.demo-video img {
    position: absolute;
    inset: 0;
}

.play-button {
    position: relative;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--on-accent);
}

.play-button .ms {
    font-size: 32px;
}

.info-card {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 8px 12px;
    padding: 12px 16px;
    border: 1px solid var(--raised);
    border-radius: 14px;
    background: var(--surface);
}

.info-card > span {
    color: var(--muted);
}

.info-card.muscles strong {
    color: var(--accent);
    font-weight: 500;
}

.info-card .secondary {
    color: var(--text);
}

.info-card.stats {
    grid-template-columns: 1fr auto;
}

.info-card.stats > span {
    color: var(--text-2);
}

.info-card.stats strong {
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* ── Templates screen ───────────────────────────────── */

.start-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    margin: 0 16px 16px;
    border-radius: 12px;
    background: var(--accent);
    color: var(--on-accent);
    font: 500 17px/1 var(--font-display);
}

.list-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px 4px 20px;
}

.list-head span:first-child {
    flex: 1;
    font: 500 14px/1 var(--font-display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.list-head .ms {
    color: var(--accent);
    font-size: 24px;
}

.folder-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px 8px 12px;
    color: var(--text-2);
}

.folder-row strong {
    color: var(--text);
    font: 400 20px/1 var(--font-display);
}

.folder-share {
    margin-left: auto;
    color: var(--text);
}

.tpl-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 12px 8px 32px;
}

.tpl-card {
    padding: 12px;
    border: 1px solid var(--raised);
    border-radius: 14px;
    background: var(--surface);
}

.tpl-top {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.tpl-top > div {
    flex: 1;
}

.tpl-top strong {
    display: block;
    font: 400 20px/1.2 var(--font-display);
}

.tpl-top div span {
    color: var(--muted);
    font-size: 12px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.tag {
    padding: 3px 10px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    background: rgba(186, 230, 70, 0.1);
    color: var(--accent);
    font: 12px/1.3 var(--font-mono);
}

.share-btn {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--text);
}

button.share-btn {
    background: var(--raised);
    color: var(--accent);
    cursor: pointer;
    transition: background-color 150ms var(--ease);
}

button.share-btn:hover {
    background: #333333;
}

/* ── Sheets ─────────────────────────────────────────── */

.scrim {
    position: absolute;
    z-index: 2;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.sheet {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 8px 20px 24px;
    border-radius: 24px 24px 0 0;
    background: var(--surface);
    animation: sheet-in 300ms var(--ease);
}

.scrim[hidden],
.sheet[hidden] {
    display: none;
}

@keyframes sheet-in {
    from {
        transform: translateY(24px);
        opacity: 0;
    }
}

.sheet-handle {
    width: 36px;
    height: 4px;
    margin: 0 auto 16px;
    border-radius: 2px;
    background: #444444;
}

.sheet-title {
    margin: 0;
    font: 400 20px/1.3 var(--font-display);
}

.sheet-text {
    margin: 8px 0 0;
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.45;
}

.sheet-link {
    margin: 16px 0;
    padding: 10px 12px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--deep);
    color: var(--text-2);
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sheet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.sheet-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    border: 1px solid var(--raised);
    border-radius: 10px;
    background: none;
    color: var(--text);
    font: 14px/1 var(--font-body);
    text-decoration: none;
    cursor: pointer;
}

span.sheet-btn {
    cursor: default;
}

.sheet-btn .ms {
    font-size: 18px;
}

.sheet-btn.primary {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--on-accent);
}

.sheet-btn.filled {
    background: var(--raised);
}

/* Segmented control: a dark track with equal cells; .accent marks the pick in lime, like the Smart Split form. */
.seg {
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: var(--bg);
}

.seg-item {
    height: 34px;
    padding: 0 4px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: none;
    color: var(--text-2);
    font: 500 13px/1 var(--font-body);
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 150ms var(--ease), color 150ms var(--ease);
}

.seg-item.active {
    background: #303030;
    color: var(--text);
}

.seg.accent .seg-item.active {
    border-color: var(--accent);
    background: rgba(186, 230, 70, 0.1);
    color: var(--accent);
}

/* ── Smart Swap sheet ───────────────────────────────── */

.swap-sheet {
    display: flex;
    flex-direction: column;
}

.swap-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.swap-head > span:last-child {
    display: flex;
    flex-direction: column;
}

.swap-label {
    color: var(--text-2);
    font: 500 11px/1.4 var(--font-body);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.swap-head strong {
    font: 500 20px/1.2 var(--font-display);
}

.picks {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 12px 0;
}

.pick {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
}

.pick.best {
    margin-bottom: 4px;
    padding: 12px;
    border-color: var(--accent);
    border-radius: 16px;
    background: rgba(186, 230, 70, 0.1);
}

.pick-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pick-label {
    color: var(--accent);
    font: 500 10px/1.4 var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pick strong {
    font-weight: 400;
    font-size: 15px;
}

.pick.best strong {
    font-weight: 500;
}

.pick-reason {
    color: var(--text-2);
    font-size: 13px;
}

.pick.best .pick-reason {
    color: #b9b9b9;
}

.pick-history {
    color: var(--accent);
    font-size: 13px;
}

/* ── Smart Split ────────────────────────────────────── */

[data-split-demo]:not(.on-plan) {
    background: var(--surface);
}

.split-head {
    display: flex;
    flex: none;
    align-items: center;
    gap: 10px;
    padding: 4px 16px 8px 8px;
}

.split-head .screen-heading {
    margin: 0;
    font: 400 22px/1.2 var(--font-display);
    text-wrap: balance;
}

.split-head sup {
    font-size: 11px;
}

.split-head .icon-btn {
    cursor: pointer;
}

/* Questions spread evenly over the screen, and scroll once Home's equipment needs the room. */
.split-form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 16px 8px;
}

.form-label {
    margin: 0 0 6px;
    font: 500 13px/1 var(--font-body);
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.form-sub {
    margin: 8px 0 6px;
    color: var(--text-2);
    font-size: 13px;
    text-align: center;
}

.form-chips {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.form-chip {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid #3a3a3a;
    border-radius: 15px;
    color: var(--text-2);
    font-size: 13px;
}

.form-chip.active {
    border-color: var(--accent);
    background: rgba(186, 230, 70, 0.1);
    color: var(--text);
}

.form-chip .ms {
    color: var(--accent);
    font-size: 15px;
}

.pinned {
    flex: none;
    padding: 12px 16px 16px;
}

.build-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: var(--on-accent);
    font: 500 17px/1 var(--font-display);
    cursor: pointer;
}

span.build-btn {
    cursor: default;
}

.pinned-note {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.plan {
    padding: 0 12px 12px;
}

.plan-card {
    margin-bottom: 10px;
    padding: 12px 14px 4px;
    border: 1px solid var(--raised);
    border-radius: 12px;
    background: #1a1a1a;
}

.plan-card .screen-heading {
    margin: 0 0 10px;
    font: 500 18px/1.2 var(--font-display);
}

.plan-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.plan-row > span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.plan-row strong {
    overflow: hidden;
    font-weight: 400;
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.plan-row > span > span {
    color: var(--text-2);
    font-size: 13px;
}

.plan-row b {
    color: var(--accent);
    font-weight: 600;
}
