.mw-deliverables{--md-ink:#20232d;--md-mint:#e4f7ef;--md-blue:#e6f5ff;--md-purple:#eeeaff;clear:both;margin:24px 0;padding:24px;border:1px solid #b9b7c9;border-radius:20px;background:#fff;color:var(--md-ink)}
.mw-deliverables .md-title{display:flex;align-items:center;gap:14px;margin-bottom:12px}.mw-deliverables .md-title h3{margin:0;font-size:24px}.mw-deliverables .md-kicker{margin:0 0 4px;font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}.mw-deliverables .md-note{font-size:13px;line-height:1.5;color:#4c5061}.mw-deliverables .md-notice:not(:empty){padding:14px;margin:14px 0;background:#fff9cf;border-radius:12px}.mw-deliverables [data-delivery-progress]:not(:empty){padding:14px;background:var(--md-blue);margin:12px 0;font-weight:700;overflow-wrap:anywhere}.mw-deliverables .md-upload{background:var(--md-purple);padding:20px;border:1px dashed #7d7899;border-radius:16px;margin:18px 0}.mw-deliverables .md-pick{display:block;font-size:17px;font-weight:700}.mw-deliverables input[type=file]{display:block;max-width:100%;margin:12px 0}.mw-deliverables button,.mw-deliverables .md-button{min-height:44px;padding:10px 16px;border:1.5px solid var(--md-ink);border-radius:12px;background:var(--md-purple);color:var(--md-ink);cursor:pointer;text-decoration:none;font-weight:700}.mw-deliverables button:disabled{opacity:.55;cursor:wait}.mw-deliverables :is(button,a,input,select):focus-visible{outline:3px solid #1a57d6;outline-offset:3px}.mw-deliverables .md-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:18px 0}.mw-deliverables .md-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:20px;margin-top:22px}.mw-deliverables .md-file{min-width:0;border:1.5px solid var(--md-ink);border-radius:17px;overflow:hidden;box-shadow:0 4px 0 var(--md-ink)}.mw-deliverables .md-cover{aspect-ratio:4/3;display:grid;place-items:center;background:var(--md-mint);font-weight:700}.mw-deliverables .md-cover button{padding:0;width:100%;height:100%;border:0;border-radius:0;background:transparent}.mw-deliverables .md-cover img{display:block;width:100%;height:100%;max-height:260px;object-fit:cover}.mw-deliverables .md-file-body{padding:18px}.mw-deliverables .md-file h4{margin:4px 0 12px;font-size:17px;overflow-wrap:anywhere}.mw-deliverables .md-sharing{display:inline-block;padding:5px 9px;border-radius:8px;background:#eeeaff;font-size:13px}.mw-deliverables .md-sharing.is-shared{background:#b6ecd8}.mw-deliverables .md-file-actions{display:grid;gap:12px;margin:16px 0}.mw-deliverables .md-file-actions a{min-height:34px;display:inline-flex;align-items:center}.mw-deliverables details{margin-top:16px;padding-top:12px;border-top:1px dotted #9292a2}.mw-deliverables summary{cursor:pointer;min-height:36px;font-weight:700}.mw-deliverables form{display:grid;gap:12px;padding-top:12px}.mw-deliverables form label{display:grid;gap:5px;font-weight:700}.mw-deliverables form :is(input,select){width:100%;box-sizing:border-box;min-height:42px;padding:8px;border:1px solid #8f8b9f;border-radius:8px;background:#fff}.mw-deliverables .md-empty{padding:24px;background:#f6f5fb;border-radius:14px}
.mw-deliverables .md-viewer{width:min(1100px,94vw);max-width:94vw;max-height:90vh;box-sizing:border-box;overflow:auto;padding:24px;border:2px solid #20232d;border-radius:20px;background:#fff;color:#20232d}.mw-deliverables .md-viewer::backdrop{background:#151821bb}.mw-deliverables .md-viewer header,.mw-deliverables .md-viewer nav{display:flex;align-items:center;justify-content:space-between;gap:16px}.mw-deliverables .md-viewer h3{margin:0;overflow-wrap:anywhere}.mw-deliverables .md-light-images{display:grid;gap:20px;margin:20px 0}.mw-deliverables .md-light-images.is-pair{grid-template-columns:1fr 1fr}.mw-deliverables .md-light-images figure{margin:0;min-width:0}.mw-deliverables .md-light-images img{display:block;width:100%;height:auto;max-height:54vh;object-fit:contain;margin:8px 0;background:#f6f5fb}.mw-deliverables .md-light-images figcaption{font-size:14px;overflow-wrap:anywhere}.mw-deliverables .md-viewer nav{border-top:1px dotted #9292a2;padding-top:16px}
@media(max-width:600px){.mw-deliverables{padding:16px}.mw-deliverables .md-light-images.is-pair{grid-template-columns:1fr}.mw-deliverables .md-viewer{padding:16px}.mw-deliverables .md-viewer header{align-items:flex-start}.mw-deliverables .md-viewer h3{font-size:18px}.mw-deliverables .md-toolbar>*{width:100%;box-sizing:border-box}}

.mw-deliverables .md-collection{display:grid;gap:8px;font-weight:700;margin-bottom:10px}.mw-deliverables .md-collection input{box-sizing:border-box;width:min(100%,420px);min-height:44px;padding:10px 12px;border:1px solid #7d7899;border-radius:10px;background:white;font:inherit}.mw-deliverables .md-locked{padding:12px;border:1px dotted #a89b64;border-radius:12px;background:#fff9db;color:#4b432b;font-size:14px;line-height:1.5}.mw-deliverables .md-file-actions .md-locked{margin:0}

/* One work-bound next step, without changing the existing original-download gate. */
.mw-deliverables .md-payment-hint{display:flex;align-items:flex-start;gap:16px;margin:20px 0;padding:20px;background:var(--md-blue);border:1.5px solid var(--md-ink);border-radius:16px;box-shadow:0 3px 0 var(--md-ink)}
.mw-deliverables .md-payment-hint>div{min-width:0;flex:1}.mw-deliverables .md-payment-hint h4{margin:0 0 8px;font-size:20px}.mw-deliverables .md-payment-hint p{margin:0 0 14px;line-height:1.6;overflow-wrap:anywhere}
.mw-deliverables .md-payment-icon{display:block;flex:none;font-size:36px;line-height:1}.mw-deliverables .md-payment-icon .mw-own-icon{width:52px;height:52px}
.mw-deliverables .md-payment-hint .md-button{display:inline-flex;align-items:center;min-height:44px;box-sizing:border-box;white-space:normal;background:#fff9cf;margin:0 10px 8px 0}
.mw-deliverables .md-payment-hint .md-payment-refresh{display:inline-flex;align-items:center;min-height:44px;background:transparent;border-color:transparent;box-shadow:none;text-decoration:underline;font-weight:400;padding:8px 0;margin:0}
@media(max-width:540px){.mw-deliverables .md-payment-hint{flex-wrap:wrap;padding:16px;gap:10px}.mw-deliverables .md-payment-hint>div{flex-basis:100%}.mw-deliverables .md-payment-hint .md-button{width:100%;margin-right:0;justify-content:center}}

/* Private portfolio preparation reuses the original file cards and never changes customer sharing. */
.mw-deliverables .md-portfolio{margin:24px 0;padding:18px 20px;border:1.5px solid var(--md-ink);border-radius:16px;background:#fffdf5;min-width:0}
.mw-deliverables .md-portfolio>summary{font-size:19px;line-height:1.4;min-height:44px;align-content:center}
.mw-deliverables .md-portfolio>summary span{display:inline-block;margin-left:8px;padding:4px 9px;background:#fff1b0;border:1px solid #9d8642;border-radius:9px;font-size:13px;vertical-align:middle}
.mw-deliverables .md-portfolio-private{display:inline-block;font-weight:700;font-size:13px;background:#fff1b0;border:1px solid #9d8642;border-radius:8px;padding:7px 10px;margin:14px 0 6px}
.mw-deliverables .md-portfolio :is(p,li,label){line-height:1.5;overflow-wrap:anywhere}
.mw-deliverables .md-portfolio-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0 10px}
.mw-deliverables .md-portfolio-fields label{display:grid;gap:7px;font-weight:700;min-width:0}
.mw-deliverables .md-portfolio-fields select{width:100%;min-width:0;max-width:100%;box-sizing:border-box;min-height:44px;padding:9px;border:1px solid #91876a;border-radius:9px;background:#fff;color:var(--md-ink);font:inherit}
.mw-deliverables .md-portfolio-notice,.mw-deliverables .md-portfolio-current{padding:14px;background:#fff4cc;border-left:4px solid #94752c;border-radius:8px}
.mw-deliverables .md-portfolio-current p{margin:6px 0}.mw-deliverables .md-portfolio-current ol{margin:10px 0;padding-left:22px}
.mw-deliverables .md-portfolio-order-title{font-size:17px;margin:20px 0 10px}
.mw-deliverables .md-portfolio-order{padding:0;margin:0;list-style:none;display:grid;gap:10px}
.mw-deliverables .md-portfolio-order>li{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:10px;align-items:start;padding:12px;background:#fff;border:1px solid #b4ad99;border-radius:12px;min-width:0}
.mw-deliverables .md-portfolio-order>li>div{min-width:0}
.mw-deliverables .md-portfolio-position{display:grid;place-items:center;min-height:28px;background:#fff1b0;border:1px solid #9d8642;border-radius:8px;font-weight:700}
.mw-deliverables .md-portfolio-cover{display:flex;gap:8px;align-items:center;min-height:44px;font-size:13px;cursor:pointer}
.mw-deliverables :is(.md-portfolio-cover,.md-portfolio-pick) input{width:20px;height:20px;min-width:20px;max-width:20px;min-height:20px;margin:0;flex:none;accent-color:#715c1d}
.mw-deliverables .md-portfolio-order-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.mw-deliverables .md-portfolio-order-actions button{min-width:44px;padding:8px 10px;font-size:14px;background:#fff;border-color:#847957}
.mw-deliverables .md-portfolio-order-actions [data-portfolio-remove]{font-weight:400}
.mw-deliverables .md-portfolio-attention{padding-left:22px;margin:16px 0;color:#624b17;font-size:14px}
.mw-deliverables .md-portfolio-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.mw-deliverables .md-portfolio-actions button{background:#fff1b0;border-color:#544825;color:#302b1e;box-shadow:0 2px 0 #544825;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.mw-deliverables .md-portfolio-pick{display:flex;gap:10px;align-items:center;box-sizing:border-box;min-height:46px;width:100%;margin:0 0 14px;padding:10px;background:#faf8f0;border:1px solid #b4ad99;border-radius:10px;font-size:14px;font-weight:700;cursor:pointer;overflow-wrap:anywhere}
.mw-deliverables .md-portfolio-pick.is-selected{background:#fff1b0;border-color:#715c1d}
@media(max-width:650px){.mw-deliverables .md-portfolio{padding:16px}.mw-deliverables .md-portfolio-fields{grid-template-columns:1fr}.mw-deliverables .md-portfolio-order>li{grid-template-columns:28px minmax(0,1fr)}.mw-deliverables .md-portfolio-order-actions{grid-column:2}.mw-deliverables .md-portfolio-actions button{width:100%}.mw-deliverables .md-portfolio>summary span{margin:6px 0 0 6px}}

/* Keep the existing preview close control readable beside long filenames on narrow screens. */
.mw-deliverables .md-viewer header>h3{flex:1 1 0;min-width:0}
.mw-deliverables .md-viewer header>button[data-delivery-close]{box-sizing:border-box;flex:0 0 auto;min-inline-size:96px;white-space:nowrap;overflow-wrap:normal}

/* A transparent native scrollbar track preserves the existing rounded frame and its outer shadow. */
.mw-deliverables .md-viewer{scrollbar-color:#7b8090 transparent}

/* Owner-only saved portfolio preview: full aspect artwork, no original delivery or publication. */
.mw-deliverables .md-portfolio-preview{width:min(1000px,94vw);background:#fffdf5}
.mw-deliverables .md-portfolio-preview header>h3{flex:1 1 0;min-width:0}
.mw-deliverables .md-portfolio-preview header>button[data-portfolio-preview-close]{box-sizing:border-box;flex:0 0 auto;min-inline-size:96px;white-space:nowrap;overflow-wrap:normal;background:#fff1b0}
.mw-deliverables .md-portfolio-preview-destination{line-height:1.6;overflow-wrap:anywhere}
.mw-deliverables .md-portfolio-preview :is(figure,li){min-width:0}
.mw-deliverables .md-portfolio-preview figure{margin:0;border:1.5px solid var(--md-ink);border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 3px 0 var(--md-ink)}
.mw-deliverables .md-portfolio-preview figure>button{display:block;width:100%;padding:0;border:0;border-radius:0;background:var(--md-blue)}
.mw-deliverables .md-portfolio-preview img{display:block;width:100%;height:auto;max-height:52vh;object-fit:contain;background:#f4f7f5}
.mw-deliverables .md-portfolio-preview figcaption{padding:14px;overflow-wrap:anywhere;line-height:1.5}
.mw-deliverables .md-portfolio-preview figcaption p{margin:6px 0}.mw-deliverables .md-portfolio-preview figcaption small{color:#505866}
.mw-deliverables .md-portfolio-preview-cover{margin-block:20px!important}
.mw-deliverables .md-portfolio-preview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:20px;list-style:none;padding:0;margin:18px 0}
@media(max-width:600px){.mw-deliverables .md-portfolio-preview header{gap:10px}.mw-deliverables .md-portfolio-preview-grid{grid-template-columns:minmax(0,1fr)}.mw-deliverables .md-portfolio-preview figcaption{padding:12px}}

/* Explicit owner-only native concept step inside the verified saved preview. */
.mw-deliverables .md-native-draft-slot{margin-block:20px;padding:16px;border:1.5px solid var(--md-ink);border-radius:14px;background:#fff4bc;box-shadow:0 3px 0 var(--md-ink)}
.mw-deliverables .md-native-draft label{display:block;font-weight:700;margin-block:16px 6px}
.mw-deliverables .md-native-draft :is(input,textarea){display:block;box-sizing:border-box;width:100%;min-width:0;margin-top:6px;padding:10px 12px;border:1.5px solid var(--md-ink);border-radius:9px;background:#fffdf5;color:var(--md-ink);font:inherit;line-height:1.5}
.mw-deliverables .md-native-draft textarea{min-height:120px;resize:vertical}
.mw-deliverables .md-native-draft-actions{display:flex;flex-wrap:wrap;gap:10px;margin-block:16px}
.mw-deliverables .md-native-draft-slot :is(button,a){white-space:normal;overflow-wrap:anywhere;max-width:100%;min-height:44px}

/* Explicit public portfolio consent remains separate from private selection and draft save. */
.mw-deliverables .md-native-draft-actions>[data-native-publish-root]{flex:0 0 100%;min-width:0}
.mw-deliverables .md-native-publish{margin-top:20px;padding-top:18px;border-top:2px dashed var(--md-ink)}
.mw-deliverables .md-native-publish h5{margin:0 0 10px;font:inherit;font-weight:800}
.mw-deliverables .md-native-draft .md-native-publish-consent{display:flex;align-items:flex-start;gap:12px;line-height:1.5;font-weight:600}
.mw-deliverables .md-native-draft .md-native-publish-consent input{flex:0 0 22px;width:22px;height:22px;min-height:22px;padding:0;margin:2px 0 0;accent-color:#27825d}
.mw-deliverables .md-native-publish-consent span{min-width:0;overflow-wrap:anywhere}
.mw-deliverables .md-native-published{background:#e0f4e8;padding:16px;border-radius:10px}
.mw-deliverables .md-native-published-intro{white-space:pre-wrap;overflow-wrap:anywhere}

/* Give each original's preview room for its own proportions. */
.mw-deliverables .md-gallery {
    align-items: start;
}

.mw-deliverables .md-file .md-cover {
    box-sizing: border-box;
    aspect-ratio: auto;
    padding: 8px;
}

.mw-deliverables .md-file .md-cover > span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid #91b4a5;
    border-radius: 8px;
    background: #fffef8;
    color: #254a3d;
    font-size: 14px;
    text-align: center;
}

.mw-deliverables .md-cover > button[data-delivery-open] {
    display: grid;
    place-items: center;
    height: auto;
    border-radius: 8px;
}

.mw-deliverables .md-cover > button[data-delivery-open]:focus-visible {
    outline-offset: -3px;
}

.mw-deliverables .md-cover > button[data-delivery-open] > img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(55svh, 330px);
    border-radius: 7px;
    object-fit: contain;
}

.mw-deliverables :is(.md-file-actions, .md-file-preview figcaption) > a {
    box-sizing: border-box;
    min-height: 44px;
    width: fit-content;
    max-width: 100%;
    padding: 7px 11px;
    border: 1px solid #7ea695;
    border-radius: 9px;
    background: #eff8f1;
    color: #194539;
    font-weight: 650;
    text-underline-offset: .16em;
    overflow-wrap: anywhere;
}

.mw-deliverables :is(.md-file-actions, .md-file-preview figcaption) > a:hover {
    background: #d6f0e0;
}

/* Keep the close control with the visible lightbox across the full photo sequence. */
.mw-deliverables .md-file-preview {
    --md-preview-gutter: clamp(12px, 3vw, 24px);
    padding: 0;
    max-height: 90dvh;
    overscroll-behavior: contain;
}

.mw-deliverables .md-file-preview > header {
    position: sticky;
    top: 0;
    z-index: 1;
    align-items: center;
    padding: 12px var(--md-preview-gutter);
    border-bottom: 1px solid #bdcbd0;
    background: #e5f3fe;
}

.mw-deliverables .md-file-preview > header > h3 {
    min-width: 0;
    font-size: clamp(16px, 2.2vw, 22px);
    line-height: 1.25;
}

.mw-deliverables .md-file-preview > header > button {
    flex: none;
    min-width: 44px;
    padding-inline: 10px;
    border-radius: 10px;
    background: #fff;
}

.mw-deliverables .md-file-preview > :not(header) {
    margin-inline: var(--md-preview-gutter);
}

.mw-deliverables .md-file-preview > nav {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--md-preview-gutter);
}

.mw-deliverables .md-file-preview > nav > button {
    padding-inline: 8px;
}

.mw-deliverables .md-file-preview [data-delivery-zoom] {
    background: #dfedf9;
}
