/* Purple credit system: scoped to dedicated agreements, independent of client branding. */
.da-dialog {width:min(940px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border:1px solid #dedde7;border-radius:18px;padding:0;margin:auto;background:#fff;color:#242331;box-shadow:0 24px 80px #21163d35;}
.da-dialog[open] {display:flex;flex-direction:column;overflow:hidden;}
.da-dialog::backdrop {background:#18142688;}
.da-dialog *, .da-dialog *::before {box-sizing:border-box;}
.da-header {display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:24px 28px;border-bottom:1px solid #e7e5ed;flex-shrink:0;}
.da-header h2 {font-size:1.35rem;line-height:1.3;margin:8px 0 0;overflow-wrap:anywhere;}
.da-eyebrow {font-size:.75rem;font-weight:650;color:#655184;}
.da-body {padding:24px 28px;overflow:auto;min-height:0;overscroll-behavior:contain;}
.da-footer {display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;padding:18px 28px;border-top:1px solid #e7e5ed;flex-shrink:0;background:#faf9fd;}
.da-button {display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 15px;border:1px solid #cfcbdc;border-radius:10px;background:#fff;color:#353044;font:inherit;font-size:.85rem;font-weight:600;line-height:1.4;cursor:pointer;}
.da-button:hover {background:#f3f0fa;}
.da-primary {background:#6940c6;color:#fff;border-color:#6940c6;}
.da-primary:hover {background:#5531a7;color:#fff;}
.da-button:focus-visible,.da-form input:focus-visible,.da-form select:focus-visible {outline:3px solid #8d68d9;outline-offset:3px;}
.da-button:disabled {opacity:.5;cursor:wait;}
.da-form {display:flex;flex-direction:column;gap:20px;}
.da-link-form {max-width:680px;margin-inline:auto;}
.da-link-form #dedicatedLinkFields {display:grid;gap:18px;}
.da-link-context {display:grid;gap:5px;padding:14px 16px;background:#f7f5fb;border-radius:12px;overflow-wrap:anywhere;}
.da-link-context>span {font-size:.75rem;color:#6d6579;}
.da-choice-list.da-link-people {display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));}
.da-link-people .member-identity {display:flex;align-items:center;gap:9px;min-width:0;}
.da-link-people .da-check {align-items:center;}
.da-link-options {border-top:1px solid #e7e3ed;padding-top:14px;}
.da-link-options>summary {cursor:pointer;font-size:.85rem;color:#62586e;padding:6px 0;}
.da-link-options>.da-check {margin-top:10px;}
.da-field {display:flex;flex-direction:column;gap:7px;min-width:0;font-size:.875rem;font-weight:600;color:#423b50;}
.da-form input:not([type=checkbox]),.da-form select {width:100%;min-width:0;min-height:46px;padding:10px 12px;font:inherit;font-size:.95rem;color:#252130;background:#fff;border:1px solid #c8c4d2;border-radius:9px;}
.da-form fieldset {border:1px solid #ded9e9;padding:16px;border-radius:12px;min-width:0;}
.da-form legend {padding:0 7px;font-size:.875rem;font-weight:600;}
.da-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;}
.da-grid-three {grid-template-columns:repeat(3,minmax(0,1fr));}
.da-economics {padding:20px;background:#f7f4fc;border:1px solid #ded5ef;border-radius:12px;}
.da-economics small,.da-totals small,.da-help {font-size:.8rem;line-height:1.6;color:#686173;}
.da-economics small {display:block;margin-top:7px;}
.da-help {margin:0;}
.da-dialog h3 {font-size:1rem;margin:24px 0 14px;}
.da-package-card {padding:20px!important;background:linear-gradient(150deg,#fff,#f4effc)!important;border:1px solid #cfc0e9!important;min-height:240px;}
.da-package-card h4 {font-size:1.13rem;font-weight:700;line-height:1.4;margin:16px 0 6px;overflow-wrap:anywhere;}
.da-card-top,.da-card-bottom,.da-summary-head,.da-progress-label,.da-meta,.da-entry-heading,.da-allocation {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.da-card-top>span:last-child {font-size:.7rem;color:#746385;}
.da-chip {display:inline-flex;gap:5px;padding:5px 9px;border-radius:7px;color:#613aa1;background:#ede5f9;font-size:.72rem;font-weight:650;line-height:1.4;}
.da-period {font-size:.8rem;color:#655d72;margin:6px 0 20px;}
.da-progress-label {font-size:.85rem;color:#5f5470;margin-top:16px;}
.da-package-card progress,.da-body progress {display:block;width:100%;height:9px;margin:10px 0;accent-color:#8151cf;border:0;border-radius:6px;overflow:hidden;background:#e6ddef;}
.da-package-card progress::-webkit-progress-bar,.da-body progress::-webkit-progress-bar {background:#e6ddef;}
.da-package-card progress::-webkit-progress-value,.da-body progress::-webkit-progress-value {background:#8151cf;}
.da-meta {font-size:.74rem;color:#655d72;line-height:1.5;}
.da-card-bottom {margin-top:22px;padding-top:14px;border-top:1px solid #e3d9ee;font-size:.8rem;}
.da-card-bottom strong {font-size:1rem;color:#4a267f;}
.da-small {font-size:.75rem;color:#716579;line-height:1.5;margin:7px 0;}
.da-totals {margin:24px 0;}
.da-totals>div {display:flex;flex-direction:column;gap:8px;background:#f7f4fb;padding:18px;border-radius:12px;font-size:.85rem;color:#665874;}
.da-totals strong {font-size:1.6rem;color:#4d287d;}
.da-private {padding:0 18px 8px;border:1px solid #e3dfeb;border-radius:12px;}
.da-private strong {display:block;margin-top:6px;font-size:1.2rem;}
.da-alert {padding:12px 14px;border:1px solid #e5d59e;background:#fff9e8;color:#775a13;border-radius:9px;font-size:.8rem;line-height:1.6;margin:18px 0;}
.da-alert-strong {background:#fff1eb;border-color:#f0c4ae;color:#944222;}
.da-entry-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.da-entry {padding:18px;border:1px solid #e0dbe9;border-radius:12px;overflow-wrap:anywhere;}
.da-entry-heading strong {font-size:.95rem;flex:1;min-width:0;}
.da-entry-people {display:flex;gap:8px;flex-wrap:wrap;margin:12px 0;font-size:.8rem;color:#62586e;}
.da-entry-people span {padding:5px 8px;background:#f4f1f8;border-radius:7px;}
.da-amount {font-size:.85rem;line-height:1.5;}
.da-entry .da-button {margin-top:8px;}
.da-transfer-label {font-size:.8rem;color:#62409a;background:#f4effb;padding:8px 10px;border-radius:7px;}
.da-allocation {padding:12px 0;border-bottom:1px solid #e7e3ed;font-size:.9rem;}
.da-check {display:flex;align-items:flex-start;gap:12px;padding:12px;border:1px solid #ddd7e7;border-radius:9px;line-height:1.5;font-size:.85rem;cursor:pointer;}
.da-check:has(input:checked) {background:#f0e9fb;border-color:#9877ca;}
.da-check input {width:20px;height:20px;flex-shrink:0;accent-color:#7244bd;margin:1px 0 0;}
.da-check small {display:block;color:#6d5b81;}
.da-choice-list,#dedicatedTransferChoices {display:flex;flex-direction:column;gap:10px;max-height:300px;overflow:auto;}
.da-empty {color:#716579;background:#f8f6fb;padding:20px;border-radius:12px;font-size:.9rem;line-height:1.6;grid-column:1/-1;}
.da-project-credit {display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;color:#643d9d;font-size:.78rem;padding:9px 0;}
.da-project-section {padding:18px;margin:16px 0;border:1px solid #dfd3f0;border-radius:12px;background:#f8f4fc;}
.da-project-section h4 {font-size:1rem;color:#623b93;margin:0 0 10px;}
.da-project-section p {font-size:.85rem;color:#655775;}
.da-project-section .da-button {margin-top:12px;}
#dedicatedNotice {font-size:.875rem;line-height:1.6;color:#514364;margin:16px 0 0;}
#dedicatedNotice:empty {display:none;}
#dedicatedNotice.is-error {color:#a32d24;}
#awAgencyEarningsDialog {width:min(1000px,calc(100vw - 32px));}
#awAgencyEarningsDialog .aw-metrics {display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;}
.da-dialog [hidden],.da-project-section[hidden],#newDedicatedType[hidden] {display:none!important;}
@media(max-width:640px){.da-header,.da-body {padding:18px;}.da-footer {padding:14px 18px;}.da-grid,.da-entry-list {grid-template-columns:1fr;}.da-grid-three {grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;}.da-header h2 {font-size:1.12rem;}.da-header .da-button {padding:9px 12px;}.da-footer .da-button {flex:1;}.da-totals strong {font-size:1.35rem;}}
@media(prefers-reduced-motion:reduce){.da-dialog *,.da-package-card * {scroll-behavior:auto!important;transition:none!important;}}
.da-seller-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid #ddd8ed;margin-bottom:12px;}
.da-seller-row p{margin:6px 0;}
