/* ═══════════════════════════════════════════════════════════════════════
   conv-surface-send.css - SEND A SURFACE in the drawer (PLAN 4.7 - surface-outbound;
   docs/claude/CONVERSATION-BUILDER.md "Send a surface"). This stylesheet OWNS every conv-surfsend-* class
   (ConversationBuilderCssOwnershipTests): the surface picker, the pin, and "How it looks" - the email in a
   sandboxed frame, the card stack as bubbles. The Action family's hue (--conv-act); --theme-* / --conv-* only.
   ═══════════════════════════════════════════════════════════════════════ */

.conv-drawer .conv-surfsend {
    display: flex;
    flex-direction: column;
}

.conv-drawer .conv-surfsend-picked {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 6px;
    padding: 6px 10px;
    border: 1px solid var(--conv-act);
    border-radius: var(--theme-radius-button);
    background: var(--conv-act-soft, var(--theme-background-subtle));
}

.conv-drawer .conv-surfsend-picked .bi {
    color: var(--conv-act);
}

.conv-drawer .conv-surfsend-picked-name {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
    color: var(--theme-text);
    overflow-wrap: anywhere;
}

.conv-drawer .conv-surfsend-list {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--theme-border-subtle);
    border-radius: var(--theme-radius-button);
    background: var(--theme-background-raised);
}

.conv-drawer .conv-surfsend-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 6px 10px;
    border: 0;
    border-bottom: 1px solid var(--theme-border-subtle);
    background: transparent;
    color: var(--theme-text);
    text-align: left;
    cursor: pointer;
}

.conv-drawer .conv-surfsend-item:hover,
.conv-drawer .conv-surfsend-item:focus-visible {
    background: var(--conv-act-soft, var(--theme-background-subtle));
}

.conv-drawer .conv-surfsend-item.is-on {
    box-shadow: inset 3px 0 0 var(--conv-act);
}

.conv-drawer .conv-surfsend-item-name {
    font-weight: 600;
}

.conv-drawer .conv-surfsend-item-handle {
    font-size: var(--theme-font-size-xs);
    color: var(--theme-text-secondary);
    font-family: var(--theme-font-mono, monospace);
}

.conv-drawer .conv-surfsend-look {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
    padding: 10px;
    border: 1px dashed var(--conv-act);
    border-radius: var(--theme-radius-card, var(--theme-radius-button));
}

.conv-drawer .conv-surfsend-look-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.conv-drawer .conv-surfsend-subject {
    font-size: var(--theme-font-size-sm);
    color: var(--theme-text-secondary);
}

.conv-drawer .conv-surfsend-frame {
    width: 100%;
    height: 360px;
    border: 1px solid var(--theme-border-subtle);
    border-radius: var(--theme-radius-button);
    /* The email draws its own page (its layout's colours) - the frame only frames it. */
    background: var(--theme-background-raised);
}

.conv-drawer .conv-surfsend-stack {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.conv-drawer .conv-surfsend-bubble {
    align-self: flex-start;
    max-width: 92%;
    padding: 8px 12px;
    border-radius: var(--theme-radius-card, var(--theme-radius-button));
    background: var(--conv-act-soft, var(--theme-background-subtle));
    color: var(--theme-text);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: var(--theme-font-size-sm);
}

.conv-drawer .conv-surfsend-warnings {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: var(--theme-font-size-xs);
    color: var(--theme-text-secondary);
}

.conv-drawer .conv-surfsend-warnings .bi {
    color: var(--theme-warning);
}

/* AR2 - a Slack person is a target: the pick list's two plain groups (Channels, People). */
.conv-surfsend-group {
    padding: 6px 10px 2px;
    font-size: var(--theme-font-size-xs);
    font-weight: 600;
    color: var(--theme-text-secondary);
    list-style: none;
}

/* THE START ROW - Which record (the kick-off addendum's section 3): one key line per thing the code takes, its offers in two groups. */
.conv-start-keys {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.conv-start-key-field {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.conv-start-key-field > :first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.conv-start-offers {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--theme-border-subtle);
    border-radius: var(--theme-radius-button);
    background: var(--theme-background-raised);
}

.conv-start-offer-group {
    padding: 6px 10px 2px;
    font-size: var(--theme-font-size-xs);
    font-weight: 600;
    color: var(--theme-text-secondary);
}

.conv-start-offer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 5px 10px;
    border: 0;
    border-bottom: 1px solid var(--theme-border-subtle);
    background: transparent;
    color: var(--theme-text);
    text-align: left;
    cursor: pointer;
}

.conv-start-offer:hover:not(:disabled),
.conv-start-offer:focus-visible {
    background: var(--theme-background-subtle);
}

.conv-start-offer:disabled {
    cursor: not-allowed;
    color: var(--theme-text-secondary);
}

.conv-start-offer-name {
    font-size: var(--theme-font-size-sm);
}

.conv-start-offer-handle {
    font-size: var(--theme-font-size-xs);
    color: var(--theme-text-secondary);
    font-family: var(--theme-font-mono, monospace);
    overflow-wrap: anywhere;
}
