:root{--gold:#806126;--dark:#171717;--cream:#f7f4ee}.dap-app,.dap-login{font-family:Arial,sans-serif;color:#171717}.dap-app{max-width:1180px;margin:auto;background:var(--cream);min-height:70vh}.dap-app header{background:#111;color:white;padding:16px 24px;display:flex;align-items:center;justify-content:space-between}.dap-app header img{height:58px;width:auto}.dap-app header a{color:#e5c681}.dap-app nav{display:flex;gap:6px;padding:10px 18px;background:white;position:sticky;top:0;z-index:5;box-shadow:0 2px 8px #0001}.dap-app nav button,.dap-cards button,.dap-form button,.dap-change button{border:0;border-radius:10px;padding:13px 18px;cursor:pointer}.dap-app nav button:hover,.dap-form button,.dap-change button{background:var(--gold);color:white}.dap-app section{padding:24px}.dap-hero{height:210px;background:linear-gradient(#0002,#0002),var(--dap-bg) center/cover;border-radius:18px}.dap-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:22px 0}.dap-cards button{background:white;text-align:left;box-shadow:0 3px 18px #00000012;min-height:110px}.dap-cards b,.dap-cards span{display:block}.dap-cards b{font-size:18px;margin-bottom:8px}.dap-products{display:grid;gap:14px}.dap-product{background:white;border-radius:14px;padding:14px;display:grid;grid-template-columns:140px 1fr;gap:18px;box-shadow:0 3px 16px #00000010}.dap-product>img{width:140px;height:120px;object-fit:cover;border-radius:10px}.dap-product summary{color:var(--gold);font-weight:bold;cursor:pointer}.dap-form,.dap-change,.dap-box{background:white;border-radius:14px;padding:18px;margin:12px 0;box-shadow:0 3px 16px #00000010}.dap-form label,.dap-change label{display:block;font-weight:bold;margin:12px 0}.dap-form input,.dap-form textarea,.dap-form select,.dap-change textarea,.dap-change select,#dap-register input{width:100%;box-sizing:border-box;padding:11px;border:1px solid #ccc;border-radius:8px;margin-top:5px}.dap-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.dap-result{font-weight:bold;color:#6d531f}.dap-login{min-height:760px;background:linear-gradient(#0008,#0008),var(--dap-bg) center/cover;display:grid;place-items:center;padding:24px}.dap-login-card{width:min(430px,92vw);background:#fffffff0;padding:32px;border-radius:18px;box-shadow:0 20px 60px #0007}.dap-login-card>img{display:block;max-width:270px;margin:auto}.dap-login-card label{display:block;margin:12px 0;font-weight:bold}.dap-login-card input{width:100%;box-sizing:border-box;padding:12px;border:1px solid #bbb;border-radius:8px}.dap-login-card input[type=submit],#dap-register button{background:var(--gold);color:white;border:0;padding:12px 18px;border-radius:8px}.dap-login-card summary{cursor:pointer;color:var(--gold);font-weight:bold;margin-top:20px}@media(max-width:700px){.dap-cards{grid-template-columns:1fr 1fr}.dap-grid{grid-template-columns:1fr}.dap-product{grid-template-columns:95px 1fr}.dap-product>img{width:95px;height:95px}.dap-app nav{overflow:auto}.dap-app nav button{white-space:nowrap}.dap-app header img{height:44px}}
.dap-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:18px}.dap-page-head h1{margin-bottom:4px}.dap-filter{font-weight:bold;min-width:210px}.dap-filter select{display:block;width:100%;margin-top:5px;padding:10px;border:1px solid #bbb;border-radius:8px;background:white}.dap-product-status{display:flex;flex-wrap:wrap;gap:8px 16px;margin:7px 0 10px}.dap-product-status span{font-weight:600}.dap-red{color:#c40000!important;font-weight:800!important}.dap-product.dap-attention .dap-description{color:#c40000;font-weight:800}.dap-request-panel{margin-top:12px}.dap-help{font-size:14px;color:#555}.dap-change-row{border-top:1px solid #e5e1d9;padding:12px 0}.dap-change-row>label{display:flex;align-items:center;gap:9px;margin:0;font-weight:700}.dap-change-row input[type=checkbox]{width:auto;margin:0}.dap-change-input{margin:10px 0 2px 28px}.dap-change input[type=text],.dap-change input[type=number],.dap-change textarea,.dap-change select{width:100%;box-sizing:border-box;padding:11px;border:1px solid #ccc;border-radius:8px;margin-top:5px;background:white}@media(max-width:700px){.dap-page-head{display:block}.dap-filter{display:block;margin-top:14px}.dap-change-input{margin-left:0}}

/* Visibility fix: author CSS display rules must not override HTML hidden state. */
.dap-app [hidden]{display:none!important}

/* Hard page isolation: only the active portal page can render. */
.dap-app section[data-page]{display:none!important}
.dap-app section[data-page].dap-page-active{display:block!important}


/* Artist Portal shell: hide the WoodMart storefront header only on the page containing the portal shortcode.
   The theme's page-title/banner remains visible. */
body.doriva-artist-portal-page .whb-header,
body.doriva-artist-portal-page header.whb-header {display:none!important;}
/* v0.2.4 artwork grid and Add New Art refinements */
.dap-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}
.dap-product{display:block;padding:0;overflow:hidden;height:auto}
.dap-product>img{width:100%;height:250px;object-fit:cover;border-radius:0;display:block}
.dap-product-body{padding:16px}
.dap-product-body h3{margin:0 0 8px;font-size:19px}
.dap-product-status{display:block;margin:6px 0 10px}
.dap-product-status span{display:block;margin:3px 0}
.dap-product.dap-attention .dap-description{color:#c40000;font-weight:800}
.dap-other-input[hidden]{display:none!important}
.dap-other-input{margin-top:8px!important}
.dap-tags-help{margin-top:16px}
.dap-tags-help p{font-weight:normal;margin:6px 0 8px;line-height:1.5;color:#444}
.dap-form>textarea{width:100%;box-sizing:border-box;padding:11px;border:1px solid #ccc;border-radius:8px;min-height:105px}
@media(max-width:900px){.dap-products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.dap-products{grid-template-columns:1fr}.dap-product>img{height:auto;max-height:420px}}
/* v0.2.7: server-rendered navigation; no JavaScript required to change pages. */
.dap-app nav.dap-server-nav a{display:inline-block;border:0;border-radius:10px;padding:13px 18px;background:#f3f3f3;color:#222;text-decoration:none;font-weight:700;white-space:nowrap}
.dap-app nav.dap-server-nav a:hover{background:var(--gold);color:#fff}
.dap-cards a{display:block;background:white;color:#171717;text-decoration:none;text-align:left;box-shadow:0 3px 18px #00000012;min-height:110px;border-radius:10px;padding:18px;box-sizing:border-box}
.dap-cards a:hover{outline:2px solid var(--gold)}
/* v0.2.8 profile/contact fields */
.dap-form fieldset{border:1px solid #ddd6c8;border-radius:10px;padding:14px 16px;margin:18px 0}.dap-form legend{font-weight:700;padding:0 7px}.dap-optional{font-weight:400;color:#666;font-size:.9em}
/* v0.2.9: Show the complete artwork image in My Artwork cards without cropping. */
.dap-product>img{width:100%;height:250px;object-fit:contain;object-position:center;background:#f3f1ec;border-radius:0;display:block}
/* v0.3.0 messaging */
.dap-header-right{display:flex;align-items:center;gap:18px}.dap-bell{position:relative;font-size:25px;text-decoration:none!important;line-height:1}.dap-bell span,.dap-nav-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#c40000;color:#fff;font-size:12px;font-weight:800;box-sizing:border-box}.dap-bell span{position:absolute;top:-10px;right:-12px}.dap-message-alert{background:#fff4d7;border:2px solid #b88a2a;border-radius:10px;padding:14px 16px;margin-bottom:20px}.dap-message-alert a{font-weight:800}.dap-message{background:#fff;border:1px solid #ddd6c8;border-radius:12px;padding:20px;margin:0 0 18px}.dap-message.dap-action{border-left:6px solid #b88a2a}.dap-message-title{display:flex;gap:12px;align-items:center;justify-content:space-between}.dap-message-title h2{margin:0}.dap-message-date{color:#666;margin:5px 0 15px}.dap-action-badge{background:#fff0c7;border:1px solid #b88a2a;border-radius:999px;padding:5px 9px;font-weight:800;font-size:12px}.dap-complete{background:#edf8ee;border:1px solid #77a97d;border-radius:8px;padding:12px;font-weight:800;margin-top:15px}.dap-response{border-top:1px solid #ddd6c8;margin-top:18px;padding-top:16px}

/* v0.4.9 */
#dap-new-art .dap-other-input[hidden],#dap-add-story-fields[hidden]{display:none!important}
.dap-gallery-preview{display:flex;flex-wrap:wrap;gap:12px;margin:10px 0 4px}.dap-gallery-preview-item{position:relative;width:112px;border:1px solid #ddd;border-radius:8px;padding:6px;background:#fff}.dap-gallery-preview-item img{display:block;width:100%;height:88px;object-fit:cover;border-radius:5px}.dap-gallery-remove{position:absolute;top:-8px;right:-8px;width:26px;height:26px!important;min-height:0!important;padding:0!important;border-radius:50%!important;border:2px solid #fff!important;background:#c62828!important;color:#fff!important;font-size:18px!important;line-height:20px!important;font-weight:700!important;cursor:pointer}.dap-gallery-file-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;margin-top:5px}
/* v0.6.9: three one-at-a-time removable gallery image slots */
.dap-gallery-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:10px}.dap-gallery-slot{min-width:0}.dap-gallery-slot label{display:block}.dap-gallery-slot .dap-gallery-preview{margin-top:8px}.dap-gallery-slot .dap-gallery-preview-item{width:100%;max-width:150px}@media(max-width:700px){.dap-gallery-slots{grid-template-columns:1fr}}

.dap-file-limit{font-weight:400;font-size:.9em;opacity:.75}
/* v0.7.1 measurement guide */
.dap-measurement-guide{margin:20px 0 28px;padding:12px;background:#fff;border:1px solid #e6e1d8;border-radius:12px}
.dap-measurement-guide img{display:block;width:100%;height:auto;border-radius:8px}

/* v0.7.3 image crop / perspective correction */
.dap-crop-modal{position:fixed;inset:0;z-index:1000000;background:rgba(0,0,0,.82);display:flex;align-items:center;justify-content:center;padding:18px;box-sizing:border-box}.dap-crop-modal[hidden]{display:none!important}.dap-crop-dialog{width:min(980px,100%);max-height:94vh;overflow:auto;background:#fff;border-radius:14px;padding:20px;box-shadow:0 18px 60px rgba(0,0,0,.35)}.dap-crop-dialog h2{margin:0 0 6px}.dap-crop-help{margin:0 0 14px;color:#444}.dap-crop-stage{background:#1d1d1d;border-radius:8px;overflow:hidden;text-align:center}.dap-crop-stage canvas{display:block;max-width:100%;height:auto;margin:auto;touch-action:none;cursor:crosshair}.dap-crop-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}.dap-crop-actions button{border:1px solid #997126;background:#fff;color:#222;border-radius:6px;padding:10px 14px;font-weight:700;cursor:pointer}.dap-crop-actions .dap-crop-primary{background:#927024;color:#fff}.dap-crop-actions .dap-crop-cancel{margin-left:auto;border-color:#999}.dap-crop-note{font-size:13px;color:#555;margin-top:10px}.dap-crop-status{font-weight:700;margin-top:10px}.dap-crop-edit-btn{margin:7px 0 0;border:1px solid #927024;background:#fff;color:#795a18;border-radius:5px;padding:6px 10px;font-weight:700;cursor:pointer}@media(max-width:600px){.dap-crop-modal{padding:8px}.dap-crop-dialog{padding:12px}.dap-crop-actions button{flex:1 1 42%;margin-left:0!important}.dap-crop-actions .dap-crop-cancel{flex-basis:100%}}

/* v0.7.4 image verification disclosure */
.dap-image-verification{margin:10px 0 16px;padding:12px 14px;border-left:4px solid #b08a3c;background:#faf7ef;font-size:13px;line-height:1.45;color:#333}.dap-image-verification strong{color:#111}

/* v0.7.6 originality declaration */
.dap-originality-declaration{margin:24px 0 18px;padding:16px 18px;border:1px solid #d7c59e;border-radius:10px;background:#faf7ef}.dap-originality-declaration label{display:flex!important;align-items:flex-start;gap:10px;margin:0!important;font-weight:600!important;line-height:1.5}.dap-originality-declaration input[type=checkbox]{width:auto!important;min-width:18px;height:18px;margin:3px 0 0!important;flex:0 0 auto}.dap-optional{font-weight:400;color:#666;font-size:.92em}

/* v0.7.8: crop/straighten is optional after image selection. */
.dap-crop-edit-btn{display:inline-block;margin:8px 0 0 8px;}
@media(max-width:600px){.dap-crop-edit-btn{display:block;margin:8px 0 0;width:100%;}}
.dap-password-reset{margin-top:28px;padding-top:20px;border-top:1px solid #ddd}.dap-password-reset p{margin:6px 0 12px}.dap-reset-password-button{display:inline-block;background:#171717;color:#fff!important;text-decoration:none;padding:11px 16px;border-radius:8px;font-weight:700}
.dap-field-tip{display:block;margin-top:8px;font-size:.88em;font-weight:400;line-height:1.45;color:#666}

/* v0.9.6: streamlined, responsive shell; retain all existing artist workflows */
body.doriva-artist-portal-page .page-title,body.doriva-artist-portal-page .wd-page-title,body.doriva-artist-portal-page .title-wrapper,body.doriva-artist-portal-page .entry-header,body.doriva-artist-portal-page .main-page-wrapper>.container>.breadcrumbs {display:none!important}
#dap.dap-v096{max-width:none;width:100%;background:#fff;min-height:75vh;margin:0 auto}
#dap.dap-v096>header{display:flex;align-items:center;gap:16px;min-height:80px;padding:10px 22px;background:#0b0b0b}
#dap .dap-brand{display:flex;align-items:center;gap:18px;min-width:0}
#dap .dap-brand img{max-width:360px;max-height:60px;height:auto;width:auto;object-fit:contain}
#dap .dap-portal-title{color:#fff;border-left:1px solid #999;padding-left:18px;white-space:nowrap;font-size:16px;letter-spacing:.02em}
#dap .dap-back-site{display:inline-flex;align-items:center;gap:8px;color:#fff;text-decoration:none;font-weight:600;font-size:15px;white-space:nowrap}
#dap .dap-header-right{margin-left:auto;gap:18px}
#dap .dap-header-right>div{white-space:nowrap}
#dap .dap-layout{display:grid;grid-template-columns:235px minmax(0,1fr);min-height:70vh}
#dap nav.dap-server-nav{display:flex;flex-direction:column;align-items:stretch;position:static;overflow:visible;padding:28px 0;gap:0;background:#fafafa;box-shadow:none;border-right:1px solid #e6e6e6}
#dap nav.dap-server-nav a{border-radius:0;background:transparent;color:#292929;padding:18px 22px;font-weight:500;white-space:normal}
#dap nav.dap-server-nav a.dap-current{background:#f7f0df;color:#8c681f;font-weight:700}
#dap nav.dap-server-nav a:hover{background:#f5ebd6;color:#6f501b}
#dap .dap-main{min-width:0;padding:34px 28px}
#dap .dap-main>section{padding:0}
#dap .dap-main>section>h1:first-of-type{margin-top:0}
#dap .dap-mobile-toggle{display:none;border:0;background:transparent;color:#fff;font-size:29px;cursor:pointer}
#dap .dap-art-actions{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0 20px}
#dap .dap-art-actions a{padding:10px 14px;background:#111;color:#fff;border-radius:6px;text-decoration:none;font-weight:600}
#dap .dap-hero{display:none!important}
@media(max-width:800px){#dap.dap-v096>header{padding:12px;gap:9px;flex-wrap:nowrap;min-height:70px}#dap .dap-brand{gap:7px;flex:1 1 auto}#dap .dap-brand img{max-width:125px;max-height:44px}#dap .dap-portal-title{padding-left:8px;font-size:10px}#dap .dap-header-right{gap:10px}#dap .dap-back-site{font-size:12px;white-space:normal;max-width:92px;line-height:1.15}#dap .dap-bell,#dap .dap-header-right>div{display:none}#dap .dap-mobile-toggle{display:block}#dap .dap-layout{display:block}#dap nav.dap-server-nav{display:none;padding:0;border:0;border-bottom:1px solid #ddd}#dap nav.dap-server-nav.dap-nav-open{display:flex}#dap .dap-main{padding:28px 18px}#dap .dap-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){#dap .dap-brand img{max-width:94px}#dap .dap-portal-title{font-size:9px}#dap .dap-back-site{font-size:11px;max-width:78px}#dap .dap-main{padding:22px 14px}#dap .dap-cards{grid-template-columns:1fr}}

/* v0.9.7: improve gold logo contrast and artist-initiated message form */
#dap .dap-brand img{filter:brightness(1.65) saturate(1.1)}
#dap .dap-compose-message{margin-bottom:24px}
#dap .dap-compose-message summary{cursor:pointer;color:#9c741f;padding:4px 0}
#dap .dap-compose-message form{margin-top:18px}
#dap .dap-compose-message input,#dap .dap-compose-message textarea{width:100%;max-width:650px}

/* v0.9.9: mobile header with navigation actions inside the menu */
#dap nav.dap-server-nav a.dap-mobile-nav-extra{display:none}
@media(max-width:800px){
 #dap.dap-v096>header{display:flex;align-items:center;justify-content:space-between;min-height:70px;padding:12px 16px;gap:12px}
 #dap .dap-brand{flex:1 1 auto;min-width:0;gap:9px;overflow:hidden}
 #dap .dap-brand img{width:auto;max-width:min(43vw,155px);max-height:52px;object-fit:contain;flex:0 1 auto}
 #dap .dap-portal-title{font-size:clamp(9px,2.6vw,12px);padding-left:9px;white-space:nowrap;flex:0 0 auto}
 #dap .dap-header-right{flex:0 0 auto;margin-left:auto;gap:0}
 #dap .dap-header-right>.dap-back-site,#dap .dap-header-right>.dap-bell,#dap .dap-header-right>div{display:none!important}
 #dap .dap-mobile-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:44px;min-height:44px;padding:3px;font-size:30px;line-height:1}
 #dap nav.dap-server-nav a.dap-mobile-nav-extra{display:block}
 #dap nav.dap-server-nav .dap-mobile-back{border-top:1px solid #ddd;margin-top:8px}
 #dap nav.dap-server-nav .dap-mobile-logout{color:#6a2929}
}
@media(max-width:420px){#dap .dap-brand img{max-width:40vw}#dap .dap-portal-title{font-size:9px;padding-left:7px}}

.dap-crop-guide{border:1px solid #c6b98e;border-radius:10px;padding:16px;margin:14px 0;background:#faf8f0}.dap-crop-guide h3{margin:0 0 10px}.dap-crop-guide img{width:100%;height:auto;display:block;margin:12px 0}.dap-crop-check-status{padding:11px 14px;margin:10px 0;border-radius:6px;background:#fff4e5;color:#743e00}.dap-crop-pass{background:#e6f6e8;color:#14622b}.dap-crop-fail{background:#fff0ed;color:#942b21}.dap-crop-attest{display:block;margin:12px 0!important;font-weight:600}
