.chat-mode-content {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
}

body.native-touchup-active .chat-mode-content {
    display: none;
}

.touchup-panel {
    display: none;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.85rem;
    box-sizing: border-box;
    position: static;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    border-left: 1px solid rgba(45, 125, 125, 0.16);
    pointer-events: none;
}

.touchup-panel.active {
    display: flex;
    pointer-events: auto;
}

.touchup-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.touchup-panel-title {
    min-width: 0;
}

.touchup-eyebrow {
    margin: 0 0 0.2rem;
    color: var(--text-secondary, #607070);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.touchup-panel-title h3 {
    margin: 0;
    color: var(--text-primary, #121c2d);
    font-size: 1.05rem;
    line-height: 1.2;
}

.touchup-panel-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    flex-wrap: wrap;
}

/* builder.css forces .btn-secondary heights (40px/52px !important, including
   the mobile-preview body-class modes) but never .btn-primary, so Discard and
   Done render at different sizes. The ID anchor outranks every one of those
   rules, making all four header buttons identical. */
#touchupPanel .touchup-panel-actions .btn-secondary,
#touchupPanel .touchup-panel-actions .btn-primary {
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    padding: 0 0.7rem !important;
    font-size: 0.78rem !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

#touchupPanel .touchup-panel-actions .touchup-icon-btn {
    width: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    font-size: 1.05rem !important;
}

.touchup-status {
    min-height: 1.2rem;
    padding: 0.55rem 0.65rem;
    color: var(--text-secondary, #55636b);
    background: rgba(45, 125, 125, 0.06);
    border: 1px solid rgba(45, 125, 125, 0.1);
    border-radius: 0.75rem;
    font-size: 0.83rem;
    line-height: 1.35;
}

.touchup-status:empty {
    display: none;
}

.touchup-status[data-tone="success"],
.touchup-status.is-success {
    color: #225f4a;
    background: rgba(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.22);
}

.touchup-status[data-tone="warning"],
.touchup-status.is-warning {
    color: #8a5a12;
    background: rgba(245, 166, 35, 0.12);
    border-color: rgba(245, 166, 35, 0.28);
}

.touchup-status[data-tone="invalid"],
.touchup-status.is-invalid {
    color: var(--error-color, #b23b3b);
    background: rgba(231, 76, 60, 0.08);
    border-color: rgba(231, 76, 60, 0.22);
}

.touchup-status[data-tone="error"],
.touchup-status.is-error {
    color: var(--error-color, #b23b3b);
    background: rgba(231, 76, 60, 0.08);
    border-color: rgba(231, 76, 60, 0.2);
}

.touchup-muted {
    color: rgba(18, 28, 45, 0.45);
    font-size: 0.78rem;
}

.touchup-inspector {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    max-height: min(54vh, 620px);
    flex-direction: column;
    gap: 0.6rem;
    overflow-y: auto;
    padding-right: 0.15rem;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.touchup-inspector::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.touchup-inspector::-webkit-scrollbar-thumb {
    background: rgba(45, 125, 125, 0.28);
    border-radius: 999px;
}

.touchup-empty-state {
    padding: 1rem;
    color: rgba(18, 28, 45, 0.58);
    background: rgba(45, 125, 125, 0.06);
    border: 1px dashed rgba(45, 125, 125, 0.2);
    border-radius: 0.85rem;
    font-size: 0.88rem;
    line-height: 1.4;
    text-align: center;
}

.touchup-empty-state p {
    margin: 0 0 0.35rem;
}

.touchup-empty-state p:last-child {
    margin-bottom: 0;
}

.touchup-selected-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 0;
    flex-wrap: wrap;
}

.touchup-selected-line strong {
    color: var(--text-primary, #121c2d);
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.touchup-chip {
    flex: 0 0 auto;
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(45, 125, 125, 0.22);
    border-radius: 999px;
    background: rgba(45, 125, 125, 0.06);
    color: var(--primary-color, #2d7d7d);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
}

.touchup-chip:hover {
    border-color: rgba(45, 125, 125, 0.45);
    background: rgba(45, 125, 125, 0.12);
}

.touchup-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.7rem;
    border: 1px solid rgba(45, 125, 125, 0.11);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.82);
}

.touchup-card h4 {
    margin: 0;
    color: var(--text-primary, #121c2d);
    font-size: 0.82rem;
}

.touchup-card summary {
    color: var(--text-primary, #121c2d);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 800;
}

.touchup-help {
    margin: 0;
    color: rgba(18, 28, 45, 0.56);
    font-size: 0.73rem;
    line-height: 1.35;
}

.touchup-button-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.touchup-field-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 0;
    color: rgba(18, 28, 45, 0.62);
    font-size: 0.74rem;
    font-weight: 700;
}

.touchup-field {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    color: rgba(18, 28, 45, 0.62);
    font-size: 0.74rem;
    font-weight: 700;
}

.touchup-field input,
.touchup-field textarea,
.touchup-field select {
    width: 100%;
    padding: 0.5rem 0.55rem;
    border: 1px solid rgba(45, 125, 125, 0.16);
    border-radius: 0.65rem;
    background: rgba(248, 250, 255, 0.92);
    color: var(--text-primary, #121c2d);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 500;
    box-sizing: border-box;
}

.touchup-field input:focus,
.touchup-field textarea:focus,
.touchup-field select:focus,
.touchup-font-picker input:focus,
.touchup-size-custom:focus {
    outline: none;
    border-color: rgba(45, 125, 125, 0.5);
    box-shadow: 0 0 0 3px rgba(45, 125, 125, 0.1);
}

.touchup-mini-btn,
.touchup-wide-btn {
    border: 1px solid rgba(45, 125, 125, 0.22);
    border-radius: 0.6rem;
    background: rgba(45, 125, 125, 0.08);
    color: var(--primary-color, #2d7d7d);
    cursor: pointer;
    font-weight: 800;
}

.touchup-mini-btn {
    padding: 0.45rem 0.5rem;
    font-size: 0.72rem;
}

.touchup-mini-btn.ghost {
    background: transparent;
    color: rgba(18, 28, 45, 0.62);
}

.touchup-mini-btn.danger {
    border-color: rgba(178, 59, 59, 0.26);
    background: rgba(231, 76, 60, 0.08);
    color: var(--error-color, #b23b3b);
}

.touchup-mini-btn[disabled],
.touchup-wide-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.touchup-wide-btn {
    width: 100%;
    padding: 0.55rem 0.7rem;
    font-size: 0.8rem;
}

/* The library and mobile-fix actions sit directly in the panel flex column
   below the header actions; never let the inspector squeeze them. */
.touchup-library-action {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.touchup-mobile-fix-action {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.55rem;
}

.touchup-mobile-fix-action[hidden] {
    display: none;
}

.touchup-mobile-fix-action .touchup-wide-btn {
    flex: 1 1 auto;
    width: auto;
}

.touchup-mini-btn:hover,
.touchup-wide-btn:hover {
    border-color: rgba(45, 125, 125, 0.45);
    background: rgba(45, 125, 125, 0.13);
}

.touchup-size-custom {
    width: 64px;
    padding: 0.4rem 0.45rem;
    border: 1px solid rgba(45, 125, 125, 0.16);
    border-radius: 0.6rem;
    background: rgba(248, 250, 255, 0.92);
    color: var(--text-primary, #121c2d);
    font: inherit;
    font-size: 0.78rem;
}

.touchup-swatch-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.touchup-swatch {
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid rgba(18, 28, 45, 0.18);
    border-radius: 0.5rem;
    cursor: pointer;
}

.touchup-swatch:hover {
    transform: scale(1.1);
    border-color: rgba(45, 125, 125, 0.55);
}

.touchup-swatch-custom {
    width: 34px;
    height: 26px;
    padding: 0;
    border: 1px solid rgba(45, 125, 125, 0.22);
    border-radius: 0.5rem;
    background: transparent;
    cursor: pointer;
}

.touchup-font-current {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.touchup-font-picker {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.touchup-font-picker input {
    width: 100%;
    padding: 0.45rem 0.55rem;
    border: 1px solid rgba(45, 125, 125, 0.16);
    border-radius: 0.65rem;
    background: rgba(248, 250, 255, 0.92);
    color: var(--text-primary, #121c2d);
    font: inherit;
    font-size: 0.82rem;
    box-sizing: border-box;
}

.touchup-font-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.touchup-font-list::-webkit-scrollbar {
    width: 6px;
}

.touchup-font-list::-webkit-scrollbar-thumb {
    background: rgba(45, 125, 125, 0.28);
    border-radius: 999px;
}

.touchup-font-choice {
    padding: 0.45rem 0.55rem;
    border: 1px solid rgba(45, 125, 125, 0.1);
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary, #121c2d);
    cursor: pointer;
    font-size: 1rem;
    text-align: left;
}

.touchup-font-choice:hover {
    border-color: rgba(45, 125, 125, 0.45);
    background: rgba(45, 125, 125, 0.08);
}

.touchup-footer {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 0.55rem;
}

/* "Add to this page" primitive tiles */
.touchup-add-body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding-top: 0.55rem;
    max-height: 38vh;
    overflow-y: auto;
}

.touchup-add-group {
    margin: 0.15rem 0 0;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(17, 24, 39, 0.55);
}

.touchup-add-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.touchup-tile {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid rgba(45, 125, 125, 0.22);
    border-radius: 0.55rem;
    background: #ffffff;
    color: #111827;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: grab;
    text-align: left;
    /* Touch drags must not become native scrolls (pointercancel kills the gesture). */
    touch-action: none;
    user-select: none;
}

.touchup-tile svg {
    flex: 0 0 auto;
    color: #2d7d7d;
}

.touchup-tile:hover {
    border-color: rgba(45, 125, 125, 0.5);
    background: rgba(45, 125, 125, 0.06);
}

.touchup-tile.armed {
    border-color: #2d7d7d;
    background: rgba(45, 125, 125, 0.14);
    cursor: pointer;
}

.touchup-tile-cancel {
    display: none;
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 700;
    color: #b91c1c;
}

.touchup-tile.armed .touchup-tile-cancel {
    display: inline;
}

.touchup-icon-flyout {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.3rem;
    padding: 0.4rem;
    border: 1px solid rgba(45, 125, 125, 0.22);
    border-radius: 0.55rem;
    background: #ffffff;
}

.touchup-icon-choice {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0;
    border: 1px solid transparent;
    border-radius: 0.45rem;
    background: transparent;
    color: #111827;
    cursor: pointer;
}

.touchup-icon-choice:hover {
    border-color: rgba(45, 125, 125, 0.45);
    background: rgba(45, 125, 125, 0.08);
}

.touchup-site-rows {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding-top: 0.55rem;
}

.touchup-site-thumb {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border: 1px solid rgba(45, 125, 125, 0.22);
    border-radius: 0.4rem;
    background: #ffffff;
    object-fit: contain;
}

.touchup-site-thumb.cover {
    object-fit: cover;
}

@media (max-width: 1200px) {
    .touchup-panel {
        width: 340px;
    }
}

@media (max-width: 1024px) {
    .touchup-inspector {
        max-height: 42vh;
    }
}

@media (max-width: 768px) {
    .touchup-panel {
        padding: 0.75rem;
        border-top: 1px solid rgba(45, 125, 125, 0.16);
        border-left: none;
    }

    .touchup-panel-header {
        align-items: center;
    }

    .touchup-eyebrow {
        display: none;
    }

    .touchup-panel-title h3 {
        font-size: 0.95rem;
        white-space: nowrap;
    }

    #touchupPanel .touchup-panel-actions .btn-secondary,
    #touchupPanel .touchup-panel-actions .btn-primary {
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
        padding: 0 0.6rem !important;
    }

    #touchupPanel .touchup-panel-actions .touchup-icon-btn {
        width: 38px !important;
        padding: 0 !important;
    }

    .touchup-status {
        padding: 0.45rem 0.55rem;
        font-size: 0.78rem;
    }

    .touchup-inspector {
        max-height: min(42vh, 360px);
    }

    .touchup-mini-btn,
    .touchup-wide-btn,
    .touchup-field input,
    .touchup-field textarea,
    .touchup-field select {
        min-height: 40px;
    }
}

/* ---------- Mobile Touch Up: bottom sheet ---------- */

/* builder.css pins .chat-panel to a fixed 90px bottom bar whenever body has
   mobile-developer-preview (any phone/tablet UA or <=768px viewport, kept
   current on resize) at up to (0,4,1) specificity — the ID is what outranks
   it. Keyed on both body classes so desktop Touch Up stays untouched. */
body.mobile-developer-preview.native-touchup-active #chatPanel {
    height: 34vh; /* dvh fallback */
    height: min(34dvh, 360px);
    max-height: calc(100vh - 72px);
}

/* The sheet is the single scroll context: sections must keep natural height
   (flex-shrink would squash them to fit instead of letting the panel
   overflow) and the inspector gives up its inner scroll. */
body.mobile-developer-preview.native-touchup-active .touchup-panel {
    width: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
}

body.mobile-developer-preview.native-touchup-active .touchup-panel > * {
    flex-shrink: 0;
}

body.mobile-developer-preview.native-touchup-active .touchup-inspector {
    max-height: none;
    overflow-y: visible;
}

/* Keep the visible site clear of the sheet (base is the 90px chat bar). */
body.mobile-developer-preview.native-touchup-active .preview-panel {
    padding-bottom: 34vh;
    padding-bottom: min(34dvh, 360px);
}

/* The right-edge pills stack up from the chat bar (90px + 56px steps); while
   the sheet is open they ride above it instead. builder.css sets bottom
   without !important, so the later file wins the (0,3,1) tie. */
body.mobile-developer-preview.native-touchup-active .mobile-edit-pill {
    bottom: 34vh;
    bottom: min(34dvh, 360px);
}

body.mobile-developer-preview.native-touchup-active .mobile-saves-pill {
    bottom: calc(34vh + var(--mobile-pill-gap));
    bottom: calc(min(34dvh, 360px) + var(--mobile-pill-gap));
}

body.mobile-developer-preview.native-touchup-active .mobile-device-pill {
    bottom: calc(34vh + (var(--mobile-pill-gap) * 2));
    bottom: calc(min(34dvh, 360px) + (var(--mobile-pill-gap) * 2));
}

/* The support bubble is the 4th item in that column (support-chat.js pins it
   at 90px + gap*3 via a plain #vo-support-btn rule, no !important — the two
   classes here outrank it). Keep it one step above the device pill. */
body.mobile-developer-preview.native-touchup-active #vo-support-btn {
    bottom: calc(34vh + (var(--mobile-pill-gap) * 3));
    bottom: calc(min(34dvh, 360px) + (var(--mobile-pill-gap) * 3));
}

/* ---------- Lasso: visual selection carried to chat ---------- */

/* The Lasso card floats over the preview near the bottom (about 8/10ths of
   the way down), centered — a white card with a teal accent so it never
   blends into the site's own header. */
.lasso-card {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 420px;
    max-width: calc(100% - 24px);
    max-height: 45%;
    background: #ffffff;
    color: #111827;
    border: 1px solid rgba(45, 125, 125, 0.35);
    border-top: 3px solid #2d7d7d;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.35);
    font-size: 0.85rem;
}

.lasso-card[hidden] {
    display: none;
}

/* Mobile: the fixed right-edge pills (z-index 101, --mobile-pill-width wide)
   always paint above the card — .preview-panel's backdrop-filter caps the
   card's z-index inside its own stacking context — so anchor the card left
   and reserve the pill column instead of centering. Must stay AFTER the base
   .lasso-card rule above: media queries add no specificity, order decides. */
@media (max-width: 768px) {
    .lasso-card {
        left: 12px;
        transform: none;
        max-width: calc(100% - var(--mobile-pill-width, 100px) - 24px);
    }
}

.lasso-card-close {
    position: absolute;
    top: 6px;
    right: 8px;
    appearance: none;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
}

.lasso-card-close:hover {
    color: #111827;
}

.lasso-card-rows {
    overflow-y: auto;
    min-height: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-right: 18px;
}

/* Upload chips mirrored from the chat box (#videoUploadChips twin) — the
   card's own padding replaces the strip's. */
.lasso-card-uploads {
    padding: 0;
}

/* Empty state: ghost-outline card with the house brutalist shadow. */

.lasso-card-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px;
    padding: 10px 12px;
    border: 1px dashed #9ca3af;
    border-radius: 8px;
    color: #6b7280;
    box-shadow: 3px 3px 0px #236060;
}

.lasso-card-empty-icon {
    flex: none;
    display: inline-flex;
    color: #6b7280;
}

.lasso-card-empty-text {
    font-size: 0.8rem;
    font-weight: 600;
}

.lasso-card-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 8px;
}

.lasso-card-row-num {
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2d7d7d;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.lasso-card-row-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lasso-card-row-label {
    font-size: 0.8rem;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lasso-card-row-note {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 4px 8px;
    font: inherit;
    font-size: 0.78rem;
}

.lasso-card-row-remove {
    flex: none;
    appearance: none;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
}

.lasso-card-row-remove:hover {
    color: #7f1d1d;
}

.lasso-card-row-done {
    flex: none;
    appearance: none;
    border: 0;
    background: transparent;
    color: #2d7d7d;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
}

.lasso-card-row-done:hover {
    color: #1a5252;
}

/* Row attachments: paperclip in the actions cluster, thumbnails under the note. */

.lasso-card-row-attach {
    flex: none;
    appearance: none;
    border: 0;
    background: transparent;
    color: #6b7280;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
}

.lasso-card-row-attach:hover {
    color: #2d7d7d;
}

.lasso-card-row-files {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lasso-card-row-file {
    position: relative;
    flex: none;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

.lasso-card-row-file img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

.lasso-card-row-file-icon {
    font-size: 0.9rem;
    line-height: 1;
}

.lasso-card-row-file-remove {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 14px;
    height: 14px;
    appearance: none;
    border: 0;
    border-radius: 50%;
    background: #374151;
    color: #ffffff;
    font-size: 10px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.lasso-card-row-file-remove:hover {
    background: #7f1d1d;
}

.lasso-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lasso-card-count {
    color: #4b5563;
    font-size: 0.78rem;
    font-weight: 600;
    margin-right: auto;
}

.lasso-card-btn {
    appearance: none;
    border: 1px solid #d1d5db;
    background: transparent;
    color: #374151;
    border-radius: 8px;
    padding: 6px 14px;
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
}

.lasso-card-btn:hover {
    background: #f3f4f6;
}

.lasso-card-btn.lasso-card-send {
    background: #2d7d7d;
    border-color: #2d7d7d;
    color: #ffffff;
    font-weight: 600;
}

.lasso-card-btn.lasso-card-send:hover {
    background: #266a6a;
}

.lasso-card-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

/* Locked rows: committed instructions go read-only behind a padlock. */

.lasso-card-row-locked {
    background: #f8fafc;
}

.lasso-card-row-locked .lasso-card-row-note {
    background: transparent;
    border-color: transparent;
    color: #374151;
    padding-left: 0;
}

.lasso-card-row-lock {
    flex: none;
    appearance: none;
    border: 0;
    background: transparent;
    color: #2d7d7d;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
}

.lasso-card-row-lock:hover {
    color: #1a5252;
}

/* Ghost row: a quiet hint that more picks can be added. */

.lasso-card-row-hint {
    border-style: dashed;
    border-color: #d1d5db;
    color: #6b7280;
    align-items: center;
}

.lasso-card-row-num-ghost {
    background: transparent;
    border: 1px dashed #9ca3af;
    color: #6b7280;
    margin-top: 0;
}

.lasso-card-row-hint-text {
    font-size: 0.78rem;
}

/* Site files expander: switch pages without leaving the lasso session. */

.lasso-card-files {
    border-top: 1px solid #e5e7eb;
    padding-top: 6px;
}

.lasso-card-files-summary {
    cursor: pointer;
    color: #374151;
    font-size: 0.8rem;
    font-weight: 600;
    user-select: none;
}

.lasso-card-files-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 20vh;
    overflow-y: auto;
    margin-top: 6px;
}

.lasso-card-files-status {
    margin: 0;
    color: #6b7280;
    font-size: 0.78rem;
}

.lasso-card-file {
    display: flex;
    align-items: center;
    gap: 6px;
    appearance: none;
    border: 0;
    background: transparent;
    color: #374151;
    font: inherit;
    font-size: 0.8rem;
    text-align: left;
    border-radius: 6px;
    padding: 5px 8px;
    cursor: pointer;
}

.lasso-card-file:hover {
    background: #f3f4f6;
}

.lasso-card-file-current {
    background: rgba(45, 125, 125, 0.08);
    color: #1a5252;
    font-weight: 600;
}

.lasso-card-file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lasso-card-file-dots {
    display: inline-flex;
    gap: 3px;
    margin-left: auto;
    flex: none;
}

.lasso-card-file-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

#touchupLassoBtn.touchup-lasso-on {
    background: #2d7d7d;
    color: #ffffff;
    border-color: #2d7d7d;
}

/* Chat composer: selection chip + otter button */

.lasso-chip-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    margin-bottom: 6px;
    background: rgba(45, 125, 125, 0.08);
    border: 1px solid rgba(45, 125, 125, 0.35);
    border-radius: 10px;
    font-size: 0.8rem;
    color: #1f2937;
}

.lasso-chip-container[hidden] {
    display: none;
}

.lasso-chip {
    font-weight: 600;
    color: #2d7d7d;
}

.lasso-chip-remove {
    appearance: none;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 1rem;
    cursor: pointer;
    padding: 0 4px;
}

.lasso-chip-remove:hover {
    color: #7f1d1d;
}

/* Lasso button in the chat input row — base look comes from .attach-btn,
   icon teal by default, white on the teal fill while selecting is on. */

.lasso-point-btn {
    color: #2d7d7d;
}

.lasso-point-btn.lasso-otter-active {
    background: #2d7d7d;
    border-color: #2d7d7d;
    color: #ffffff;
}

.send-btn.lasso-send-mode {
    width: auto;
    padding: 0 14px;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}
