/* ============================================================================================================
   ACTIONS WITHOUT WAITING (InvokeAction - docs/claude/ACTIONS.md section 29; CONVERSATION-BUILDER.md "Call without
   waiting" + "When it starts / When it ends"). ONE stylesheet owns these classes (ConversationBuilderCssOwnershipTests):
   the Call-without-waiting editor's own parts (its gate line and its honest note) and the EDGE DRAWER (the start card's /
   an END's actions). The call picker, the call card and the input rows are the Call body's own classes (conv-drawer.css) -
   never restyled here. Only --theme-* / --conv-* tokens; the Action family's hue is --conv-act.
   ============================================================================================================ */

/* The editor - the call, what it needs, who has to say yes */

.conv-drawer .conv-invoke {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* WHO HAS TO SAY YES - one line, never hidden: calm for a read, the Action hue for a write, the warning hue for a write that
   could never run where it sits (or a call that holds something). */
.conv-drawer .conv-invoke-gate {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 4px;
    padding: 8px 10px;
    border-radius: var(--theme-radius-button);
    background: var(--theme-background-subtle);
    color: var(--theme-text);
    font-size: var(--theme-font-size-sm);
    line-height: 1.45;
}

.conv-drawer .conv-invoke-gate > .bi {
    margin-top: 2px;
    color: var(--theme-text-secondary);
}

.conv-drawer .conv-invoke-gate.is-write {
    background: var(--conv-act-soft, var(--theme-background-subtle));
}

.conv-drawer .conv-invoke-gate.is-write > .bi {
    color: var(--conv-act);
}

.conv-drawer .conv-invoke-gate.is-warn {
    background: color-mix(in srgb, var(--conv-issue-warn) 10%, var(--theme-background-raised));
}

.conv-drawer .conv-invoke-gate.is-warn > .bi {
    color: var(--conv-issue-warn);
}

/* THE HONEST LINE - the conversation never waits for the call and never reads its answer (and, on a moment, the way to use one). */
.conv-drawer .conv-invoke-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    padding: 9px 11px;
    border: 1px dashed color-mix(in srgb, var(--conv-act) 45%, var(--theme-border));
    border-radius: var(--theme-radius-button);
    background: var(--theme-background-raised);
    color: var(--theme-text-secondary);
    font-size: var(--theme-font-size-sm);
    line-height: 1.45;
}

.conv-drawer .conv-invoke-note > .bi {
    margin-top: 2px;
    color: var(--conv-act);
}

.conv-drawer .conv-invoke-note-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}

/* The edge drawer - When it starts / When it ends */

.conv-edge-drawer .conv-drawer-head .conv-seg {
    margin-top: 10px;
}

.conv-edge-drawer .conv-edge-empty {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 4px 0 12px;
    padding: 14px;
    border: 1px dashed var(--theme-border);
    border-radius: var(--theme-radius-card, var(--theme-radius-button));
    background: var(--theme-background-subtle);
}

.conv-edge-drawer .conv-edge-empty > .bi {
    color: var(--conv-act);
    font-size: 1.35rem;
    line-height: 1;
}

.conv-edge-drawer .conv-edge-empty-title {
    color: var(--theme-text-emphasis);
    font-weight: 600;
}

.conv-edge-drawer .conv-edge-empty-text {
    margin-top: 3px;
    color: var(--theme-text-secondary);
    font-size: var(--theme-font-size-sm);
    line-height: 1.45;
}

.conv-edge-drawer .conv-edge-list {
    margin-top: 2px;
}

.conv-edge-drawer .conv-edge-action-name {
    flex: 1;
    min-width: 0;
    color: var(--theme-text-emphasis);
    font-weight: 600;
}
