/* ═══════════════════════════════════════════════════════════════════════════
   AudioGarden OS — Admin Detail v9.3.49
   Apple-level design polish: calm hierarchy, generous whitespace,
   consistent 12px radius, subtle shadows, no visual noise.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ══════ 0. BACK LINK ══════ */
.agos-detail .agos-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 0 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ag-text-secondary, #6B7280);
    text-decoration: none;
    transition: color .15s;
}
.agos-detail .agos-back-link:hover {
    color: var(--ag-accent, #2563EB);
}

/* ══════ 1. HEADER BAR (non-sticky — never overlaps back-link) ══════ */
.agos-sticky-header {
    position: relative;
    z-index: 1;
    background: #fff;
    border: 1px solid var(--ag-border-subtle, #f0f1f4);
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    padding: 16px 24px;
    margin: 0 0 28px 0;
    border-radius: 12px;
}
@media (max-width: 782px) {
    .agos-sticky-header { padding: 14px 16px; margin: 0 0 20px; }
}

/* ── Header top row ── */
.agos-sh-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.agos-sh-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1;
}
.agos-sh-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Hero title: Artist — Track ── */
.agos-sh-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--ag-text, #1e293b);
    letter-spacing: -.02em;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 520px;
}

/* ── Meta chips ── */
.agos-sh-uid {
    font-size: 11px;
    font-weight: 500;
    color: var(--ag-text-tertiary, #94a3b8);
    letter-spacing: .01em;
}
.agos-sh-deadline {
    font-size: 11px;
    color: var(--ag-text-tertiary, #94a3b8);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Action buttons row ── */
.agos-sh-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* ══════ 2. STATUS PROGRESS STEPPER ══════ */
.agos-sh-stepper { padding: 16px 0 0; }
.agos-sh-stepper-track {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}
.agos-sh-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    position: relative;
    z-index: 2;
}
.agos-sh-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 13px;
    left: calc(50% + 13px);
    right: calc(-50% + 13px);
    height: 2px;
    background: var(--ag-border, #E5E7EB);
    z-index: 1;
    border-radius: 1px;
}
.agos-sh-step--done:not(:last-child)::after {
    background: var(--ag-success, #22C55E);
}
.agos-sh-step--active:not(:last-child)::after {
    background: linear-gradient(90deg, var(--ag-accent, #2563EB) 0%, var(--ag-border, #E5E7EB) 100%);
}
.agos-sh-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    position: relative;
    z-index: 3;
    flex-shrink: 0;
}
.agos-sh-step--done .agos-sh-circle {
    background: var(--ag-success, #22C55E);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(34,197,94,.08);
}
.agos-sh-step--done .agos-sh-circle svg {
    animation: agosAdmCheck .35s cubic-bezier(.34,1.56,.64,1) both;
}
.agos-sh-step--active .agos-sh-circle {
    background: var(--ag-accent, #2563EB);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,.1), 0 1px 4px rgba(37,99,235,.08);
    animation: agosAdmPop .4s cubic-bezier(.34,1.56,.64,1) both;
}
.agos-sh-step--upcoming .agos-sh-circle {
    background: var(--ag-bg, #F7F8FA);
    border: 1.5px solid var(--ag-border, #D1D5DB);
    color: #9CA3AF;
}
.agos-sh-label {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
    line-height: 1.2;
}
.agos-sh-step--done .agos-sh-label { color: var(--ag-text-tertiary, #9CA3AF); }
.agos-sh-step--active .agos-sh-label { color: var(--ag-text, #1E293B); font-weight: 600; }
.agos-sh-step--upcoming .agos-sh-label { color: #C4C9D2; }
@keyframes agosAdmCheck {
    from { opacity: 0; transform: scale(.5); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes agosAdmPop {
    0%   { transform: scale(.9); }
    60%  { transform: scale(1.04); }
    100% { transform: scale(1); }
}
.agos-sh-stepper-mobile { display: none; }
@media (max-width: 640px) {
    .agos-sh-stepper-track { display: none; }
    .agos-sh-stepper-mobile {
        display: flex; align-items: center; gap: 10px; padding-top: 10px;
    }
    .agos-sh-stepper-mobile-step {
        font-size: 11px; font-weight: 600; text-transform: uppercase;
        letter-spacing: .03em; color: var(--ag-text-tertiary); white-space: nowrap;
    }
    .agos-sh-stepper-mobile-label { font-size: 13px; font-weight: 600; color: var(--ag-text); }
    .agos-sh-stepper-mobile-bar {
        flex: 1; height: 4px; background: var(--ag-border); border-radius: 2px; overflow: hidden;
    }
    .agos-sh-stepper-mobile-fill {
        height: 100%; background: var(--ag-accent); border-radius: 2px; transition: width .5s ease;
    }
}

/* ══════ 3. ACTION BUTTONS ══════ */
.agos-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 8px 18px;
    border-radius: 10px;
    font-family: var(--ag-font, system-ui, sans-serif);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .15s ease;
    text-decoration: none;
    line-height: 1.3;
    white-space: nowrap;
    letter-spacing: -.006em;
}
.agos-action-btn:disabled { opacity: .4; pointer-events: none; }
.agos-action-btn:active { transform: scale(.97); }
.agos-action-btn--primary {
    background: var(--ag-accent, #2563EB); color: #fff;
    box-shadow: 0 1px 2px rgba(37,99,235,.2);
}
.agos-action-btn--primary:hover { background: var(--ag-accent-hover, #1D4ED8); }
.agos-action-btn--success {
    background: var(--ag-success, #16A34A); color: #fff;
    box-shadow: 0 1px 2px rgba(22,163,74,.2);
}
.agos-action-btn--success:hover { background: #15803D; }
.agos-action-btn--secondary {
    background: var(--ag-bg, #F7F8FA); color: var(--ag-text, #1E293B);
    box-shadow: 0 0 0 1px var(--ag-border-subtle, #E5E7EB);
}
.agos-action-btn--secondary:hover { background: #EEF0F4; }
.agos-action-btn--warning {
    background: #FEF3C7; color: #92400E;
}
.agos-action-btn--warning:hover { background: #FDE68A; }
.agos-action-btn--danger {
    background: #FEE2E2; color: #991B1B;
}
.agos-action-btn--danger:hover { background: #FECACA; }

/* ══════ 4. UNIFIED BUTTON OVERRIDES ══════ */
.agos-detail .agos-btn,
.agos-detail .agos-dbtn,
.agos-detail .ag-c-btn,
.agos-detail .agos-pd-state-opt,
.agos-detail button[class*="agos-btn"],
.agos-detail button[class*="agos-dbtn"] {
    border-radius: 10px;
    font-family: var(--ag-font, system-ui, sans-serif);
    letter-spacing: -.006em;
    transition: all .15s ease;
}
.agos-detail .agos-btn:focus-visible,
.agos-detail .agos-dbtn:focus-visible,
.agos-detail .ag-c-btn:focus-visible,
.agos-detail .agos-action-btn:focus-visible {
    outline: 2px solid var(--ag-accent, #2563EB);
    outline-offset: 2px;
}

/* ══════ 5. STATUS BADGES ══════ */
.agos-sh-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 10px; border-radius: 100px;
    font-size: 11px; font-weight: 600; white-space: nowrap;
}
.agos-sh-badge--neutral { background: #F1F5F9; color: #64748B; }
.agos-sh-badge--active  { background: #EDE9FE; color: #6D28D9; }
.agos-sh-badge--review  { background: #ECFDF5; color: #059669; }
.agos-sh-badge--warning { background: #FEF3C7; color: #92400E; }
.agos-sh-badge--danger  { background: #FEE2E2; color: #991B1B; }
.agos-sh-badge--done    { background: #ECFDF5; color: #059669; }
.agos-sh-badge--express { background: #FFFBEB; color: #B45309; }
.agos-self-assigned-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 10px; border-radius: 100px;
    font-size: 11px; font-weight: 600; background: #EDE9FE; color: #6D28D9;
}

/* ══════ 6. ACCORDION — minimal Apple-like ══════ */
.ag-d-details-summary {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 14px 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ag-text, #1E293B);
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background .12s;
}
.ag-d-details-summary::-webkit-details-marker { display: none; }
.ag-d-details-summary::marker { content: ''; }
.ag-d-details-summary::after {
    content: '';
    width: 6px; height: 6px;
    border-right: 1.5px solid var(--ag-text-tertiary, #9CA3AF);
    border-bottom: 1.5px solid var(--ag-text-tertiary, #9CA3AF);
    transform: rotate(45deg);
    transition: transform .2s ease;
    flex-shrink: 0;
    margin-left: auto;
}
.ag-d-details[open] > .ag-d-details-summary::after {
    transform: rotate(-135deg);
}
.ag-d-details-summary:hover { background: rgba(0,0,0,.015); }
.ag-d-details-body {
    padding: 4px 24px 24px;
    animation: agosDetailOpen .2s ease-out;
}
@keyframes agosDetailOpen {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.agos-pd-main .ag-d-details.agos-card,
.agos-pd-aside .ag-d-details.agos-card { margin-bottom: 12px; }
.ag-d-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
    background: var(--ag-accent-subtle, #EFF6FF); color: var(--ag-accent, #2563EB);
    font-size: 11px; font-weight: 600; margin-left: 8px; margin-right: auto; line-height: 1;
}
.ag-d-badge-val {
    margin-left: auto; margin-right: 12px;
    font-size: 12px; font-weight: 600; color: var(--ag-text-secondary, #6B7280);
}
.ag-d-details--danger > .ag-d-details-summary { color: var(--ag-danger, #DC2626); }
.ag-d-details--danger[open] > .ag-d-details-summary { border-bottom-color: rgba(220,38,38,.1); }
.ag-d-details--danger > .ag-d-details-summary::after { border-color: rgba(220,38,38,.4); }
.agos-pd-aside .ag-d-details-summary { padding: 12px 20px; font-size: 12px; }
.agos-pd-aside .ag-d-details-body { padding: 4px 20px 20px; }

/* ══════ 7. COLLAPSE/EXPAND TOGGLE — matches action button style ══════ */
.ag-d-toggle-all { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.ag-d-toggle-all-btn {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 36px; padding: 8px 18px; border-radius: 10px; border: none;
    background: var(--ag-bg, #F7F8FA); color: var(--ag-text, #1E293B);
    box-shadow: 0 0 0 1px var(--ag-border-subtle, #E5E7EB);
    font-family: var(--ag-font, system-ui, sans-serif);
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: all .15s; letter-spacing: -.006em;
}
.ag-d-toggle-all-btn:hover { background: #EEF0F4; }
.ag-d-toggle-all-btn:active { transform: scale(.97); }
.ag-d-toggle-all-btn svg { transition: transform .15s; }

/* ══════ 8. ADMIN MODAL — onboarding-level design ══════ */
.agos-modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(15,23,42,.25);
    -webkit-backdrop-filter: blur(8px) saturate(180%);
    backdrop-filter: blur(8px) saturate(180%);
    align-items: center; justify-content: center;
    padding: 24px; overflow-y: auto;
    opacity: 0; transition: opacity .2s ease-out;
}
.agos-modal-overlay.open { display: flex; opacity: 1; }
.agos-modal-overlay.agos-modal--closing { opacity: 0; }
.agos-modal {
    background: #fff; border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.03);
    width: 100%; max-width: 720px; overflow: hidden;
    animation: agosModalCardIn .22s cubic-bezier(.16,1,.3,1) both;
}
.agos-modal--closing .agos-modal {
    animation: agosModalCardOut .18s ease-in both;
}
@keyframes agosModalCardIn {
    from { opacity: 0; transform: scale(.96) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes agosModalCardOut {
    from { opacity: 1; transform: scale(1) translateY(0); }
    to   { opacity: 0; transform: scale(.96) translateY(8px); }
}
.agos-modal-header,
.agos-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid var(--ag-border-subtle, #F0F1F4);
}
.agos-modal-header h3, .agos-modal-header h2,
.agos-modal-head h2, .agos-modal-head h3 {
    margin: 0; font-size: 16px; font-weight: 700; color: var(--ag-text); letter-spacing: -.01em;
}
.agos-modal-close {
    width: 32px; height: 32px; border-radius: 8px; border: none;
    background: transparent; color: var(--ag-text-tertiary, #9CA3AF);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 400; transition: all .12s; flex-shrink: 0;
}
.agos-modal-close:hover { background: var(--ag-bg); color: var(--ag-text); }
.agos-modal-body { padding: 24px; }
.agos-modal-section { margin-bottom: 20px; }
.agos-modal-section:last-child { margin-bottom: 0; }
.agos-modal-section-title {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .04em; color: var(--ag-text-tertiary); margin-bottom: 10px;
}
.agos-modal-kv {
    display: grid; grid-template-columns: 100px 1fr; gap: 4px 16px; font-size: 13px;
}
.agos-modal-kv dt { color: var(--ag-text-secondary); padding: 3px 0; }
.agos-modal-kv dd { padding: 3px 0; font-weight: 500; }
.agos-modal-danger {
    padding: 14px 16px; border: 1px solid #FECACA; border-radius: 12px;
    background: var(--ag-danger-subtle); margin-top: 16px;
}

/* ── Deadline modal specifics ── */
.agos-dl-modal .agos-modal { max-width: 420px; }
.agos-dl-info {
    font-size: 13px; color: var(--ag-text-secondary, #6B7280);
    margin-bottom: 16px; line-height: 1.5;
}
.agos-dl-label {
    display: block; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em;
    color: var(--ag-text-secondary); margin-bottom: 6px;
}
.agos-dl-input {
    width: 100%; padding: 10px 14px; font-size: 14px;
    border: 1px solid var(--ag-border, #D1D5DB); border-radius: 10px;
    background: #fff; color: var(--ag-text);
    transition: border-color .15s, box-shadow .15s;
}
.agos-dl-input:focus {
    outline: none; border-color: var(--ag-accent, #2563EB);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.agos-dl-warn {
    display: none; margin-top: 8px; font-size: 12px;
    color: var(--ag-danger, #DC2626);
}
.agos-dl-actions {
    display: flex; align-items: center; gap: 8px;
    margin-top: 20px; justify-content: flex-end;
}

/* ══════ 9. COUNTDOWN ══════ */
.agos-countdown { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 100px; }
.agos-countdown-ok { background: #ECFDF5; color: #059669; }
.agos-countdown-warn { background: #FEF3C7; color: #92400E; }
.agos-countdown-overdue { background: #FEE2E2; color: #991B1B; }

/* ══════ 10. OLD HERO / PILLS HIDE ══════ */
.agos-detail.agos-v2-layout .agos-pd-hero { display: none; }
.agos-detail.agos-v2-layout > .agos-pd-pills { display: none; }

/* ══════ 11. GUIDANCE ══════ */
.agos-detail .agos-guidance { border-radius: 12px; margin-bottom: 16px; }

/* ══════ 12. ASSIGNMENT CALLOUT ══════ */
.agos-assign-callout {
    background: var(--ag-accent-subtle, #EFF6FF);
    border: 1px solid rgba(37,99,235,.12);
    border-radius: 12px; padding: 20px; text-align: center; margin-bottom: 16px;
}
.agos-assign-callout h4 { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--ag-accent); }
.agos-assign-callout p { margin: 0 0 14px; font-size: 13px; color: var(--ag-text-secondary); }

/* ══════ 13. CHAT inside details ══════ */
.ag-d-details .agos-chat-tabs {
    margin: -4px -24px 16px; padding: 0 24px;
    border-bottom: 1px solid var(--ag-border-subtle, #E5E7EB);
}

/* ══════ 14. OLD ACCORDION NEUTRALIZE ══════ */
.agos-detail .agos-accordion-trigger,
.agos-detail .agos-accordion-chevron,
.agos-detail .agos-accordion-body,
.agos-detail .agos-accordion-inner { all: unset; display: contents; }

/* ══════════════════════════════════════════════════════════════════════════
   15. APPLE-LEVEL POLISH — v9.3.49
   Unified radius, calm shadows, generous whitespace, clean hierarchy.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── 15a. CARD OVERRIDES — unified 12px, barely-there border ── */
.agos-detail .agos-card {
    border-radius: 12px;
    border: 1px solid var(--ag-border-subtle, #F0F1F4);
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
    padding: 0; /* accordion handles internal padding */
    transition: box-shadow .15s ease;
    overflow: hidden;
}
.agos-detail .agos-card:hover {
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
/* Remove double border when details is open */
.agos-detail .ag-d-details.agos-card[open] {
    border-color: var(--ag-border, #E5E7EB);
}

/* ── 15b. GRID — generous gap, better proportion ── */
.agos-detail .agos-pd-grid {
    gap: 24px;
}
.agos-detail .agos-pd-main {
    gap: 16px;
}
.agos-detail .agos-pd-aside {
    gap: 16px;
}

/* ── 15c. ACCORDION OPEN STATE — subtle separator ── */
.agos-detail .ag-d-details[open] > .ag-d-details-summary {
    border-bottom: 1px solid var(--ag-border-subtle, #F0F1F4);
}

/* ── 15d. GUIDANCE BAR — clean left-accent, no icons ── */
.agos-detail .agos-guidance {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    border-left: 3px solid var(--ag-accent, #2563EB);
    background: var(--ag-accent-subtle, #EFF6FF);
    font-size: 13px;
    line-height: 1.5;
    color: var(--ag-text, #1E293B);
    margin-bottom: 20px;
}
.agos-detail .agos-guidance-text {
    flex: 1;
    font-size: 13px;
    line-height: 1.5;
}
/* Danger guidance variant */
.agos-detail .agos-guidance[style*="danger-subtle"] {
    border-left-color: var(--ag-danger, #DC2626);
}
/* Success guidance variant */
.agos-detail .agos-guidance[style*="success-subtle"] {
    border-left-color: var(--ag-success, #16A34A);
}

/* ── 15e. CLIENT CARD — clean meta list ── */
.agos-detail .agos-pd-client {
    margin-bottom: 12px;
}
.agos-detail .agos-pd-avatar {
    width: 36px;
    height: 36px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px; /* Apple: squircle, not circle */
}
.agos-detail .agos-pd-client-name {
    font-size: 14px;
}
.agos-detail .agos-pd-client-meta {
    font-size: 12px;
    line-height: 1.7;
    color: var(--ag-text-secondary, #6B7280);
    margin-top: 8px;
}

/* ── 15f. FINANCE — clean rows ── */
.agos-detail .agos-pd-fin-row {
    padding: 8px 0;
    font-size: 13px;
    border-bottom-color: var(--ag-border-subtle, #F0F1F4);
}
.agos-detail .agos-pd-fin-label {
    font-size: 12px;
    color: var(--ag-text-tertiary, #9CA3AF);
}
.agos-detail .agos-pd-fin-val {
    font-size: 14px;
}

/* ── 15g. FIELD LABELS — Apple style ── */
.agos-detail .agos-field label,
.agos-detail label[style*="font-size:.72rem"],
.agos-detail label[style*="font-size:.78rem"] {
    font-size: 12px !important;
    font-weight: 500;
    color: var(--ag-text-secondary, #6B7280);
    margin-bottom: 6px;
    display: block;
}

/* ── 15h. INPUTS — unified border-radius ── */
.agos-detail .agos-input,
.agos-detail .agos-select,
.agos-detail .agos-textarea,
.agos-detail .agos-finance-input {
    border-radius: 10px;
    font-size: 13px;
}
.agos-detail .agos-input:focus,
.agos-detail .agos-select:focus,
.agos-detail .agos-textarea:focus {
    border-color: var(--ag-accent, #2563EB);
    box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}

/* ── 15i. DROPZONE — calm dashed ── */
.agos-detail .ag-c-dropzone {
    border: 2px dashed var(--ag-border, #D1D5DB);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    background: var(--ag-bg, #F7F8FA);
}
.agos-detail .ag-c-dropzone:hover,
.agos-detail .ag-c-dropzone[style*="border-color"] {
    border-color: var(--ag-accent, #2563EB);
    background: var(--ag-accent-subtle, #EFF6FF);
}

/* ── 15j. BRIEF GRID — clean card ── */
.agos-detail .ag-d-details-body [style*="display:grid"][style*="grid-template-columns:1fr 1fr"] {
    gap: 8px 2rem;
}

/* ── 15k. TIMELINE — minimal ── */
.agos-detail .agos-timeline-item {
    padding: 12px 0;
}
.agos-detail .agos-timeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ag-border, #D1D5DB);
    flex-shrink: 0;
    margin-top: 5px;
}
.agos-detail .agos-timeline-transition {
    font-size: 13px;
    font-weight: 600;
    color: var(--ag-text, #1E293B);
}
.agos-detail .agos-timeline-meta {
    font-size: 11px;
    color: var(--ag-text-tertiary, #9CA3AF);
}
.agos-detail .agos-timeline-notes {
    font-size: 12px;
    color: var(--ag-text-secondary, #6B7280);
    margin-top: 4px;
    font-style: italic;
}

/* ── 15l. APPROVAL BUTTONS — calm spacing ── */
.agos-detail .ag-c-approval-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.agos-detail .ag-c-approval-player audio {
    width: 100%;
    border-radius: 8px;
}
.agos-detail .ag-c-approval-return-panel {
    margin-top: 12px;
    padding: 14px;
    border-radius: 10px;
    background: var(--ag-bg, #F7F8FA);
    border: 1px solid var(--ag-border-subtle, #F0F1F4);
}

/* ── 15m. DANGER ZONE — more breathing room ── */
.agos-detail .ag-d-details--danger {
    margin-top: 24px;
}
.agos-detail .ag-d-details--danger .ag-d-details-body {
    padding-bottom: 20px;
}

/* ── 15n. OR DIVIDER — refined ── */
.agos-detail [style*="NEBO"] {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ── 15o. AUDIO DEBUG DETAILS — subdued ── */
.agos-detail details[style*="font-size:11px"] > summary {
    font-size: 11px;
    font-weight: 500;
    color: var(--ag-text-tertiary, #9CA3AF);
    padding: 6px 0;
}

/* ── 15p. REUPLOAD WARNING — unified radius ── */
.agos-detail [style*="background:#fef3c7"] {
    border-radius: 12px;
}

/* ══════ 16. RESPONSIVE ══════ */
@media (max-width: 782px) {
    .agos-sh-top { flex-direction: column; align-items: flex-start; }
    .agos-sh-right { width: 100%; }
    .agos-action-btn { flex: 1; min-width: 0; justify-content: center; font-size: 12px; padding: 8px 14px; min-height: 34px; }
    .agos-sh-title { max-width: 100%; font-size: 18px; }
    .ag-d-details-body { padding: 4px 20px 20px; }
    .ag-d-details-summary { padding: 12px 20px; }
    .ag-d-details .agos-chat-tabs { margin: -4px -20px 12px; padding: 0 20px; }
    .agos-detail .agos-pd-grid { gap: 16px; }
}
@media (max-width: 480px) {
    .agos-action-btn { width: 100%; }
    .ag-d-details-body { padding: 4px 16px 16px; }
    .ag-d-details-summary { padding: 12px 16px; font-size: 12px; }
    .agos-sh-title { font-size: 17px; }
}
@media (max-width: 900px) {
    .agos-modal { max-width: 100%; border-radius: 12px; }
    .agos-detail .agos-pd-grid { grid-template-columns: 1fr; }
}
