/* Shared clipboard control. Keep text and its icon in normal inline flow. */
.app-copy-row { display: block; }
.app-copy-row > :is(span, code) { min-width: 0; overflow-wrap: anywhere; }
.app-copy-field { display: flex; align-items: center; gap: 8px; }
.app-copy-field > .form-control { flex: 1; min-width: 0; }
.app-copy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    min-width: 24px;
    height: 24px;
    min-height: 24px;
    margin: 0 0 0 4px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    line-height: 1;
    vertical-align: -4px;
    color: var(--accent-dark);
    background: transparent;
    cursor: pointer;
}
.app-copy-field > .app-copy-icon { width: 40px; height: 40px; margin: 0; }
.app-copy-icon::before {
    content: '';
    width: 18px;
    height: 18px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='12' height='12' rx='2'/%3E%3Cpath d='M16 8V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.app-copy-icon.is-copied::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E");
}
.app-copy-icon:hover, .app-copy-icon.is-copied { background: var(--accent-soft); }
.app-copy-icon:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
