[hidden] { display: none !important; }
.artwork-image-wrap { align-self:start; }
.artwork-image-link { display:block; max-width:100%; cursor:zoom-in; }
.inline-model { width:100%; min-width:0; }
.inline-model .model-stage { height:min(65vh,620px); }
.inline-model .model-toolbar { margin:12px 0 0; }
.model-toolbar label { display:flex; align-items:center; gap:8px; }
.model-toolbar select { min-width:120px; }
#model-viewer { width:min(1000px,96vw); max-width:96vw; padding:18px; background:#202b36; color:#edf4fc; border:1px solid #72899e; border-radius:10px; }
#model-viewer::backdrop { background:rgba(0,0,0,.82); }
.model-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-bottom:12px; }
.model-toolbar h2 { flex:1; margin:0; font-size:20px; }
.model-stage { height:min(65vh,620px); min-height:220px; position:relative; }
.model-canvas { display:block; width:100%; height:100%; }
.model-status { position:absolute; z-index:3; left:10px; right:10px; bottom:10px; margin:0; padding:8px; color:#f1f5f9; background:#202b36; font-size:12px; pointer-events:none; }
.art-image-wrap .model-canvas { position:absolute; inset:0; z-index:2; pointer-events:none; }
.site-header { flex-wrap: wrap; gap: 18px 24px; }
.main-nav { align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.header-account { flex-wrap: wrap; gap: 10px 14px; }
.header-account .upload-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; white-space: nowrap; font-weight: 700; }
@media(max-width:700px) { .header-account { margin-left: 0; width: 100%; } .header-account .upload-cta { margin-right: auto; } }
.prototype-badge { font-size: 11px; padding: 6px 10px; border: 1px solid #71808e; border-radius: 4px; white-space: nowrap; }
.prototype-about { max-width: 820px; margin: 50px auto; padding: 0 24px; }
.prototype-about h1 { font: bold 32px Georgia, serif; }
.filter-status { min-height: 1.6em; margin: 6px 0; color: var(--muted); }
#gallery-results { transition: opacity .18s ease; }
#gallery-results[aria-busy="true"] { opacity: .55; }
.art-image { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; }
.artwork-description { white-space: pre-wrap; }
#image-viewer { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; padding: 0; background: #111; color: white; overflow: auto; }
#image-viewer img { display: block; max-width: 100%; min-height: 0; height: auto; margin: auto; }
#close-viewer { position: fixed; right: 18px; top: 18px; z-index: 1; }
body:has(#image-viewer[open]) { overflow: hidden; }
@media (max-width: 700px) { .prototype-badge { white-space: normal; max-width: 110px; text-align: center; } .gallery-controls > label { min-width: 0; } .main-nav { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { #gallery-results { transition: none; } }

.prototype-form-page, .prototype-account, .prototype-admin { width: min(1180px, calc(100% - 40px)); margin: 36px auto 60px; }
.prototype-form-page { max-width: 520px; } .wide-form { max-width: 780px; }
.prototype-form { display: grid; gap: 18px; }
.prototype-form label { display: grid; gap: 7px; font-weight: 700; }
.prototype-form input, .prototype-form select, .prototype-form textarea { width: 100%; min-width: 0; padding: 11px; border: 1px solid #71808e; border-radius: 4px; }
.prototype-form button { justify-self: start; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-error { padding: 12px 16px; border: 1px solid #d89797; background: #493338; color: #ffe1df; border-radius: 5px; }
.notice { padding: 12px 16px; border: 1px solid #80b1a3; background: #263f3c; color: #d5f0e6; border-radius: 5px; }
.prototype-panel { margin: 24px 0; padding: 24px; border: 1px solid #536675; border-radius: 8px; background: #2a333c; }
.prototype-panel h2 { margin-top: 0; }
.account-toolbar, .review-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.member-upload-grid, .review-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,280px),1fr)); gap: 20px; }
.member-upload, .review-card { min-width: 0; overflow: hidden; border: 1px solid #526777; border-radius: 7px; background: #323e49; }
.member-upload { padding: 16px; } .member-upload img, .review-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.review-body { padding: 18px; } .review-body h3 { margin-top: 12px; font-size: 20px; }
.status-pill { display: inline-block; padding: 3px 9px; font-size: 11px; font-weight: bold; color: #e4e1b6; background: #4a4934; border-radius: 20px; }
.trust-control { margin-top: 18px; padding-top: 16px; border-top: 1px solid #526777; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.trust-toggle { font-size: 12px; } .trust-toggle[aria-pressed="true"] { background: #b2dac8; border-color: #b2dac8; color: #193a2f; }
.admin-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 24px 0; }
.admin-metrics > div { padding: 20px; border: 1px solid #536675; border-radius: 7px; background: #2a333c; }
.admin-metrics strong { display: block; font-size: 28px; } .admin-metrics span { color: var(--muted); }
.table-scroll { overflow-x: auto; } .member-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.member-table td, .member-table th { padding: 14px 12px; border-bottom: 1px solid #526777; vertical-align: middle; }
.member-table th { color: var(--muted); } .member-table time { white-space: nowrap; }
.activity-list p { padding-bottom: 12px; border-bottom: 1px solid #435362; } .activity-list .help { display: block; }
@media(max-width:700px) { .admin-metrics { grid-template-columns: 1fr; } .form-pair { grid-template-columns: 1fr; } .prototype-panel { padding: 16px; } .header-account { flex-wrap: wrap; } }

.prototype-admin-nav { display: flex; flex-wrap: wrap; gap: 6px; width: min(1180px,calc(100% - 40px)); margin: 24px auto 0; }
.prototype-admin-nav a { padding: 8px 12px; border: 1px solid #526777; border-radius: 5px; }
.prototype-admin-nav a[aria-current="page"] { background: #b8cfe5; color: #172b3c; font-weight: bold; }
.admin-filter-form { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.admin-filter-form input, .admin-filter-form select { padding: 10px; border: 1px solid #71808e; border-radius: 4px; min-width: 0; }
.admin-filter-form input { flex: 1; min-width: min(100%,240px); }
.checkbox-field { display: flex !important; align-items: center; gap: 10px; }
.checkbox-field input { width: auto; }
.member-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.prototype-panel summary { cursor: pointer; } .prototype-panel[open] summary { margin-bottom: 20px; }
.prototype-panel > form + form { margin-top: 16px; }
.artwork-comments { margin-top: 36px; }
.comment { padding: 20px 0; border-top: 1px solid #526777; }
.comment:first-of-type { margin-top: 28px; }
.comment-heading { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.comment-heading > span { color: var(--muted); font-size: 11px; }
.comment-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }

.time-utc { display: block; color: var(--muted); font-size: 10px; line-height: 1.6; }

.collection-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.collection-tabs a { display: inline-flex; align-items: center; gap: 12px; border: 1px solid #526777; border-radius: 6px; padding: 10px 16px; }
.collection-tabs a[aria-current="page"] { background: #b8cfe5; color: #172b3c; font-weight: bold; }
.collection-tabs span { opacity: .8; font-size: 12px; }
.artwork-actions { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
.artwork-actions > form { margin: 0; }
.artwork-actions .button, .artwork-actions button, .artwork-management .button, .artwork-management button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; margin: 0; padding: 10px 15px; border-radius: 5px; font-size: 12px; line-height: 1.4; text-align: center; }
.artwork-actions .artwork-view-button { background: #bdd8ed; color: #172b3c; border-color: #bdd8ed; font-weight: 700; }
.artwork-management { margin-top: 26px; padding-top: 20px; border-top: 1px solid #526777; }
.artwork-management h2 { margin: 0 0 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
.artwork-management-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.artwork-management-actions form { margin: 0; }
.artwork-management .button, .artwork-management button { background: transparent; border: 1px solid #71808e; color: #dbe8f2; }
.artwork-management .artwork-delete { color: #f0b6b2; border-color: #996d70; }
.artwork-view-help { margin-top: 22px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.artwork-view-help summary { cursor: pointer; width: fit-content; }
.artwork-view-help p { margin: 8px 0 0; max-width: 48ch; }
.artwork-stats { gap: 20px 28px; }
.artwork-stats > span { line-height: 1.8; }
.artwork-actions > .download-panel { flex-basis: 100%; }
@media(max-width:700px) { .artwork-actions > .button, .artwork-actions > form { width: 100%; } .artwork-actions > form > button { width: 100%; } }
.download-panel { border: 1px solid #526777; border-radius: 6px; padding: 16px; margin: 8px 0; width: 100%; }
.download-panel h2 { margin-top: 0; font-size: 17px; }
.download-panel .button { margin: 4px 6px 4px 0; }

.analytics-choice { position:fixed; bottom:18px; left:18px; right:18px; z-index:30; max-width:920px; margin:auto; background:#26313b; color:#f1f5fa; border:1px solid #8193a4; border-radius:10px; box-shadow:0 8px 32px #0005; padding:20px 24px; display:flex; align-items:center; gap:24px; font:13px/1.6 Arial,sans-serif; }
.analytics-choice p { margin:5px 0 0; color:#d4dfe9; }
.analytics-choice a { color:#d0e5ff; text-decoration:underline; }
.analytics-choice-actions { display:flex; flex-wrap:wrap; gap:10px; flex-shrink:0; }
.analytics-choice-actions button { min-height:42px; }
.analytics-preferences { background:transparent; border:0; padding:0; color:inherit; font:inherit; text-decoration:underline; }
@media(max-width:700px) { .analytics-choice { bottom:10px; left:10px; right:10px; padding:16px; flex-direction:column; align-items:stretch; gap:14px; } .analytics-choice-actions>* { flex:1; } }

.artwork-comments .comment { padding:20px; grid-template-columns:38px minmax(0,1fr); }
.comment-content { min-width:0; }
.artwork-comments .comment-heading { align-items:flex-start; gap:8px 20px; }
.comment-date { flex-shrink:0; color:#b8c6d1; text-align:right; font-size:11px; }
.artwork-comments .comment-body { margin:10px 0 0; }
.comment-compose .comment-compose-footer .help { margin:0; }
@media(max-width:700px) { .artwork-comments .comment { padding:16px 12px; grid-template-columns:30px minmax(0,1fr); } .comment-date { text-align:left; } }
.comment-sort { display:flex; justify-content:flex-end; gap:10px; margin:0 0 18px; }
.comment-sort label { display:flex; align-items:center; gap:10px; font-size:12px; }
.comment-sort select { width:auto; }
.software-card-label[data-software="bryce"] { background:#dceafb; color:#244d7b; }
.software-card-label[data-software="blender"] { background:#ffdfbd; color:#713800; }
.software-card-label[data-software="daz-studio"] { background:#e6ddf8; color:#50357b; }
.software-card-label[data-software="vue"] { background:#d6eddb; color:#245d35; }
.software-card-label[data-software="terragen"] { background:#cce9e7; color:#205752; }
.software-card-label[data-software="other"] { background:#e5e7eb; color:#394454; }

.gallery-brand-icon{width:36px;height:36px;object-fit:contain;flex-shrink:0}
.admin-logo .gallery-brand-icon{width:30px;height:30px}
