/* Shared compose shell: Notes / Research / SMS / Phone / Predictions */

.dk-compose {
    flex-shrink: 0;
}

.dk-compose--dock {
    margin-top: auto;
    padding-top: 8px;
}

.dk-compose__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(227, 219, 204, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.dk-compose__input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 40px;
    max-height: 120px;
    margin: 0;
    padding: 10px 2px;
    border: none;
    background: transparent;
    color: var(--secondary-color, #e3dbcc);
    font: inherit;
    font-size: 15px;
    line-height: 20px;
    box-sizing: border-box;
    resize: none;
    outline: none;
}

.dk-compose__input::placeholder {
    color: rgba(227, 219, 204, 0.38);
}

.dk-compose__field {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    min-height: 40px;
}

.dk-compose__display {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 2px;
    font-size: 15px;
    line-height: 20px;
    color: var(--secondary-color, #e3dbcc);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dk-compose__display:empty::before {
    content: 'Type';
    color: rgba(227, 219, 204, 0.38);
}

.dk-compose__field.is-editing .dk-compose__display {
    display: none;
}

.dk-compose__field.is-editing .dk-compose__input {
    display: block;
}

.dk-compose__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.dk-compose__add-wrap {
    position: relative;
}

.dk-compose__add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--secondary-color, #e3dbcc);
    cursor: pointer;
}

.dk-compose__add:hover,
.dk-compose__add[aria-expanded='true'] {
    background: rgba(255, 255, 255, 0.06);
}

.dk-compose__add__icon,
.dk-compose__add svg.lucide {
    width: 20px;
    height: 20px;
    stroke: var(--secondary-color, #e3dbcc);
    color: var(--secondary-color, #e3dbcc);
}

.dk-compose__menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 30;
    width: min(260px, calc(100vw - 48px));
    padding: 8px;
    border: 1px solid rgba(227, 219, 204, 0.16);
    border-radius: 12px;
    background: rgba(28, 26, 24, 0.96);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dk-compose__menu[hidden] {
    display: none !important;
}

.dk-compose__menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--secondary-color, #e3dbcc);
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.dk-compose__menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.dk-compose__menu-item--danger {
    color: color-mix(in srgb, var(--cal-accent, #f2133c) 92%, transparent);
}

.dk-compose__menu-icon,
.dk-compose__menu-item svg.lucide {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.dk-compose__menu-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 2px 8px;
    border-bottom: 1px solid rgba(227, 219, 204, 0.1);
}

.dk-compose__menu-label {
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(227, 219, 204, 0.45);
}

.dk-compose__menu-select {
    width: 100%;
    padding: 8px 28px 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(227, 219, 204, 0.16);
    background: rgba(0, 0, 0, 0.25);
    color: var(--secondary-color, #e3dbcc);
    font: inherit;
    font-size: 13px;
    font-weight: 400;
}

/* DigiknackSelect face: bordered box with padding past the chevron */
.dk-compose__menu-block > .dk-select {
    display: flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(227, 219, 204, 0.16);
    background: rgba(0, 0, 0, 0.25);
    color: var(--secondary-color, #e3dbcc);
    font-size: 13px;
    font-weight: 400;
}

.dk-compose__menu-block > .dk-select .dk-select__trigger,
.dk-compose__menu-block > .dk-select .dk-select__face {
    width: max-content;
    max-width: 100%;
}

.dk-compose__menu-block > .dk-select .dk-select__value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 400;
    color: var(--dk-select-ink, #e3dbcc);
}

.dk-compose__send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: color-mix(in srgb, var(--cal-accent, #f2133c) 10%, transparent);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.dk-compose__send__icon,
.dk-compose__send svg.lucide {
    width: 18px;
    height: 18px;
    stroke: var(--secondary-color, #e3dbcc);
    color: var(--secondary-color, #e3dbcc);
}

.dk-compose__send svg.lucide path,
.dk-compose__send svg.lucide line,
.dk-compose__send svg.lucide polyline {
    stroke: var(--secondary-color, #e3dbcc);
}

.dk-compose__send:disabled {
    cursor: not-allowed;
    opacity: 0.85;
}

.dk-compose__send.dk-compose__send--ready:not(:disabled) {
    background: var(--admin-nav-idle, #e3dbcc);
}

.dk-compose__send.dk-compose__send--ready:not(:disabled) .dk-compose__send__icon,
.dk-compose__send.dk-compose__send--ready:not(:disabled) svg.lucide,
.dk-compose__send.dk-compose__send--ready:not(:disabled) svg.lucide path,
.dk-compose__send.dk-compose__send--ready:not(:disabled) svg.lucide line,
.dk-compose__send.dk-compose__send--ready:not(:disabled) svg.lucide polyline {
    stroke: #2a241c;
    color: #2a241c;
}

.dk-compose__send:not(:disabled):active {
    transform: scale(0.96);
}

.dk-compose__msg {
    margin: 8px 0 0;
    min-height: 1.2em;
}

.dk-compose__msg:empty {
    display: none;
}

/* Cursor-style queued messages while a reply is in flight */
.dk-compose-queue {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 8px;
}

.dk-compose-queue[hidden] {
    display: none !important;
}

.dk-compose-queue__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 4px 8px 4px 6px;
    border-radius: 8px;
    border: 1px dashed rgba(227, 219, 204, 0.28);
    background: rgba(255, 255, 255, 0.04);
    font-size: 12px;
    line-height: 1.3;
    color: rgba(227, 219, 204, 0.78);
}

.dk-compose-queue__tag {
    flex-shrink: 0;
    padding: 1px 5px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--cal-accent, #f2133c) 18%, transparent);
    color: rgba(227, 219, 204, 0.9);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dk-compose-queue__text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dk-compose-queue__remove {
    flex-shrink: 0;
    margin: 0;
    padding: 0 2px;
    border: none;
    background: transparent;
    color: rgba(227, 219, 204, 0.45);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.dk-compose-queue__remove:hover {
    color: var(--secondary-color, #e3dbcc);
}
