/* XYZ 3D Studio — Grayscale Relief 0.18.96.261 */
.xyz3d-single-relief-step2-active .xyz3d-photo-single-settings > :not(.xyz3d-single-relief-step2){display:none!important}
.xyz3d-single-relief-step2-active .xyz3d-photo-single-stage > :not(.xyz3d-single-relief-stage){display:none!important}
.xyz3d-single-relief-step2,.xyz3d-single-relief-stage{min-height:0}
.xyz3d-single-relief-step2{display:flex;flex-direction:column;gap:12px}
.xyz3d-single-relief-step2[hidden],.xyz3d-single-relief-stage[hidden]{display:none!important}
.xyz3d-single-relief-step2 .xyz3d-single-panel-section{margin:0}
.xyz3d-single-relief-stage{height:100%;min-height:520px;display:flex;flex-direction:column;background:#06111c;border:1px solid rgba(93,205,239,.20);border-radius:12px;overflow:hidden}
.xyz3d-relief-toolbar{flex:0 0 auto;gap:12px;align-items:center}
.xyz3d-relief-toolbar>div:first-child{min-width:190px}
.xyz3d-relief-preview-tabs{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.xyz3d-relief-preview-tabs button{min-height:34px;padding:6px 10px;border:1px solid #17445a;background:#071d2b;color:#bceeff;border-radius:7px;font:inherit;cursor:pointer}
.xyz3d-relief-preview-tabs button.is-active{border-color:#5bd9ff;background:#0b3448;color:#fff;box-shadow:0 0 0 1px rgba(91,217,255,.18) inset}
.xyz3d-relief-stage-body{position:relative;flex:1 1 auto;min-height:420px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:radial-gradient(circle at 50% 36%,#0b2232 0,#05121d 55%,#030a11 100%)}
.xyz3d-relief-stage-body canvas{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;box-shadow:0 0 0 1px rgba(98,221,255,.16)}
.xyz3d-relief-viewer{position:absolute;inset:0;min-height:0}
.xyz3d-relief-viewer canvas{width:100%!important;height:100%!important;max-width:none;max-height:none;box-shadow:none}
.xyz3d-relief-export-grid{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:8px}
.xyz3d-relief-export-grid button{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;padding:10px 11px;border:1px solid #17445a;background:linear-gradient(180deg,#0a2b3d,#071a27);border-radius:8px;color:#e9f9ff;cursor:pointer}
.xyz3d-relief-export-grid button strong{font-size:12px}.xyz3d-relief-export-grid button span{font-size:10px;color:#70cce9}
.xyz3d-relief-export-grid button:first-child{border-color:#47caef;box-shadow:0 0 0 1px rgba(71,202,239,.14) inset}
.xyz3d-relief-export-grid button:disabled{opacity:.55;cursor:wait}
.xyz3d-single-relief-step2 [data-relief-status]{display:block;margin-top:8px;color:#62c9e8;line-height:1.35}
.xyz3d-single-relief-step2 [data-relief-source-mode]{width:100%}
@media (max-width:900px){.xyz3d-single-relief-stage{min-height:440px}.xyz3d-relief-stage-body{min-height:330px}.xyz3d-relief-toolbar{align-items:flex-start;flex-direction:column}.xyz3d-relief-preview-tabs{justify-content:flex-start}}

/* 0.18.96.254 — relief can be entered before a source is loaded. */
.xyz3d-relief-source-picker{position:relative;display:flex;flex-direction:column;gap:5px;padding:11px;border:1px dashed #23617b;border-radius:9px;background:#061923;cursor:pointer}
.xyz3d-relief-source-picker:hover{border-color:#55d8ff;background:#082231}
.xyz3d-relief-source-picker input,.xyz3d-relief-empty input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.xyz3d-relief-source-picker strong{font-size:12px;color:#e9faff}.xyz3d-relief-source-picker span{font-size:10px;color:#79cce7;line-height:1.35}
.xyz3d-relief-empty{position:relative;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:min(520px,80%);min-height:220px;padding:28px;border:1px dashed #2b6d87;border-radius:14px;background:rgba(4,18,29,.82);text-align:center;cursor:pointer}
.xyz3d-relief-empty[hidden]{display:none!important}
.xyz3d-relief-empty:hover,.xyz3d-relief-stage-body.is-dragover .xyz3d-relief-empty{border-color:#63ddff;background:rgba(8,39,54,.92);box-shadow:0 0 0 2px rgba(99,221,255,.08) inset}
.xyz3d-relief-empty strong{font-size:16px;color:#fff}.xyz3d-relief-empty span{font-size:12px;color:#8ddcf4}.xyz3d-relief-empty small{font-size:10px;color:#569fba;max-width:430px;line-height:1.4}
.xyz3d-single-relief-step2 [data-relief-refresh]:disabled,.xyz3d-relief-export-grid button:disabled{opacity:.45;cursor:not-allowed}

/* 0.18.96.255 — Auto Bas-Relief controls. */
.xyz3d-relief-auto-section{border-color:rgba(91,217,255,.34)!important;background:linear-gradient(180deg,rgba(8,37,52,.92),rgba(5,23,34,.92))}
.xyz3d-relief-auto-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:8px;align-items:end}
.xyz3d-relief-auto-row label{min-width:0}
.xyz3d-relief-auto-row select{width:100%}
.xyz3d-relief-auto-row button{min-height:54px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;padding:8px 10px;border:1px solid #4fd5fb;border-radius:8px;background:linear-gradient(180deg,#0b3a50,#072536);color:#fff;cursor:pointer;text-align:left}
.xyz3d-relief-auto-row button strong{font-size:12px}.xyz3d-relief-auto-row button span{font-size:9px;color:#8fe4fb;line-height:1.25}
.xyz3d-relief-auto-row button:disabled{opacity:.45;cursor:not-allowed}
.xyz3d-relief-analysis{display:block;margin:7px 0 3px;color:#71d5ef;line-height:1.35}
@media(max-width:760px){.xyz3d-relief-auto-row{grid-template-columns:1fr}}

/* 0.18.96.256 AI Depth block */
.xyz3d-relief-ai256{margin-top:12px;padding:12px;border:1px solid rgba(74,205,255,.22);border-radius:10px;background:rgba(8,35,49,.38)}
.xyz3d-relief-ai-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.xyz3d-relief-ai-actions button,.xyz3d-relief-mask-picker{min-height:54px;border:1px solid rgba(87,210,255,.35);border-radius:8px;background:linear-gradient(180deg,rgba(24,83,107,.72),rgba(8,32,45,.86));color:#e8fbff;padding:9px 10px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;cursor:pointer}
.xyz3d-relief-ai-actions button strong,.xyz3d-relief-mask-picker strong{font-size:12px}.xyz3d-relief-ai-actions button span,.xyz3d-relief-mask-picker span{font-size:10px;color:#79d9f4;margin-top:2px}.xyz3d-relief-mask-picker input{display:none}
.xyz3d-relief-ai256>[data-relief-ai-status]{display:block;margin-top:9px;color:#69d1ef;line-height:1.35}
@media(max-width:760px){.xyz3d-relief-ai-actions{grid-template-columns:1fr}}

/* 0.18.96.261 — protected 5-channel Pro Relief mixer */
.xyz3d-relief-mixer257{border-color:rgba(115,226,255,.38)!important;background:linear-gradient(180deg,rgba(9,39,55,.96),rgba(4,20,31,.96))}
.xyz3d-relief-preset257{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:center;gap:8px;margin-bottom:8px}
.xyz3d-relief-preset257 select{width:100%}
.xyz3d-relief-channels257{display:flex;flex-direction:column;gap:6px}
.xyz3d-relief-channel257{display:grid;grid-template-columns:30px 76px minmax(70px,1fr) 44px;gap:7px;align-items:center;padding:6px 7px;border:1px solid rgba(76,178,214,.18);border-radius:7px;background:rgba(2,18,28,.52)}
.xyz3d-relief-channel257 button{width:28px;height:28px;border:1px solid #22566c;border-radius:6px;background:#071c28;color:#6fcce8;cursor:pointer;padding:0}
.xyz3d-relief-channel257 button.is-active{border-color:#65ddff;background:#0a3d52;color:#fff;box-shadow:0 0 0 1px rgba(101,221,255,.18) inset}
.xyz3d-relief-channel257 strong{font-size:11px;color:#e9f9ff}.xyz3d-relief-channel257 small{font-size:10px;text-align:right;color:#72cee9}
.xyz3d-relief-channel-final257{grid-template-columns:30px 76px minmax(0,1fr)}.xyz3d-relief-channel-final257 span{font-size:9px;color:#6dbed7}
.xyz3d-relief-zshape257{margin-top:9px;padding-top:9px;border-top:1px solid rgba(93,205,239,.14)}
@media(max-width:760px){.xyz3d-relief-channel257{grid-template-columns:30px 64px minmax(60px,1fr) 40px}}


/* 0.18.96.281 — Single Photo light-theme final pass. Dark mode untouched. */
.xyz3d-app[data-ui-theme="light"] .xyz3d-photo-single-settings,
.xyz3d-app[data-ui-theme="light"] .xyz3d-single-vector-step2,
.xyz3d-app[data-ui-theme="light"] .xyz3d-single-relief-step2,
.xyz3d-app[data-ui-theme="light"] .xyz3d-vector-font250-picker,
.xyz3d-app[data-ui-theme="light"] :is(.xyz3d-vector-import214,.xyz3d-vector-mirror219,.xyz3d-relief-ai256,.xyz3d-cutter224-profile){
  background:linear-gradient(180deg,#eef1f3,#dfe4e7)!important;
  border-color:#aeb8bf!important;
  color:#18232c!important;
}
.xyz3d-app[data-ui-theme="light"] :is(.xyz3d-vector-node211 button,.xyz3d-vector-font213-buttons button,.xyz3d-vector-import214 button,.xyz3d-vs221-actions button,.xyz3d-vc219-actions button,.xyz3d-relief-preview-tabs button,.xyz3d-relief-export-grid button,.xyz3d-relief-auto-row button,.xyz3d-relief-ai-actions button,.xyz3d-relief-mask-picker,.xyz3d-vector-font250-head button,.xyz3d-vector-font250-item){
  background:linear-gradient(180deg,#ff923f,#f47a22 50%,#e56818)!important;
  border-color:#c9520d!important;
  color:#10283b!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.38),0 3px 8px rgba(164,72,18,.13)!important;
}
.xyz3d-app[data-ui-theme="light"] :is(.xyz3d-vector-node211 button,.xyz3d-vector-font213-buttons button,.xyz3d-vector-import214 button,.xyz3d-vs221-actions button,.xyz3d-vc219-actions button,.xyz3d-relief-preview-tabs button,.xyz3d-relief-export-grid button,.xyz3d-relief-auto-row button,.xyz3d-relief-ai-actions button,.xyz3d-relief-mask-picker,.xyz3d-vector-font250-head button,.xyz3d-vector-font250-item) :is(strong,span,small){color:#10283b!important}
.xyz3d-app[data-ui-theme="light"] :is(.xyz3d-vector-node211 input,.xyz3d-vs221-row input,.xyz3d-vs221-method select,.xyz3d-vector-font250-head input,.xyz3d-relief-ai256 input,.xyz3d-relief-ai256 select){
  background:linear-gradient(180deg,#d3d9dd,#c4cbd0)!important;
  border-color:#929ea7!important;
  color:#17232c!important;
}
.xyz3d-app[data-ui-theme="light"] :is(.xyz3d-vs221-check,.xyz3d-vs221-row label,.xyz3d-vs221-method,.xyz3d-vector-node211 .xyz3d-vn211-inline label,.xyz3d-vector-mirror219 span,.xyz3d-vector-font213-inline>small,.xyz3d-vector-font250-picker>small,.xyz3d-relief-analysis,[data-relief-status]){color:#526571!important}
.xyz3d-app[data-ui-theme="light"] .xyz3d-single-relief-stage,
.xyz3d-app[data-ui-theme="light"] .xyz3d-relief-stage-body{background:linear-gradient(145deg,#d8dde1,#c2c9ce)!important;border-color:#9faab2!important}
.xyz3d-app[data-ui-theme="light"] .xyz3d-relief-source-picker{background:#d3d9dd!important;border-color:#9ca7ae!important}
.xyz3d-app[data-ui-theme="light"] .xyz3d-relief-source-picker :is(strong,span){color:#17324a!important}
.xyz3d-app[data-ui-theme="light"] .xyz3d-relief-auto-section{background:linear-gradient(180deg,#e9edef,#d7dde1)!important;border-color:#a9b4bb!important}
.xyz3d-app[data-ui-theme="light"] .xyz3d-vector-font250-item:hover{background:#f7832d!important;color:#071d2f!important}
.xyz3d-app[data-ui-theme="light"] .xyz3d-vector-zoom200-badge{background:#f47a22!important;border-color:#c9520d!important;color:#10283b!important}
.xyz3d-app[data-ui-theme="light"] .xyz3d-single-photo-footer{background:linear-gradient(180deg,rgba(231,235,237,0),#e7ebed 28%)!important}
.xyz3d-app[data-ui-theme="light"] [data-single-solid-viewer]{background:#c7ced3!important}

.xyz3d-single-relief-step2 .xyz3d-relief-advanced{margin-top:7px;border-top:1px solid rgba(93,205,239,.2);padding-top:7px}
.xyz3d-single-relief-step2 .xyz3d-relief-advanced summary{cursor:pointer;color:#b4e9f5;font-size:12px;font-weight:650;line-height:1.4;list-style-position:inside}
.xyz3d-single-relief-step2 .xyz3d-relief-advanced[open] summary{margin-bottom:8px}
.xyz3d-app[data-ui-theme="light"] .xyz3d-single-relief-step2 .xyz3d-relief-advanced{border-color:#a7b5bd}
.xyz3d-app[data-ui-theme="light"] .xyz3d-single-relief-step2 .xyz3d-relief-advanced summary{color:#17384c!important}
.xyz3d-app[data-ui-theme="light"] .xyz3d-single-relief-step2 .xyz3d-relief-channel257{background:#dce4e8!important;border-color:#aab9c1!important}
.xyz3d-app[data-ui-theme="light"] .xyz3d-single-relief-step2 .xyz3d-relief-channel257 :is(strong,small,span){color:#223e50!important}


/* 0.18.96.282 — final Single Photo/Photogrammetry Light overrides. Dark untouched. */
.xyz3d-app[data-ui-theme="light"] :is(
 .xyz3d-photo-single-settings,.xyz3d-single-vector-step2,.xyz3d-single-relief-step2,
 .xyz3d-vector-edit200,.xyz3d-vector-node211,.xyz3d-vector-curve219,.xyz3d-vector-auto-stitch221,
 .xyz3d-vector-cleanup200,.xyz3d-backing-cutter224,.xyz3d-vector-font250-picker,
 .xyz3d-vector-import214,.xyz3d-vector-mirror219,.xyz3d-relief-ai256
){background:linear-gradient(180deg,#f2f5f6,#dce3e7)!important;border-color:#9eabb4!important;color:#17232d!important}
.xyz3d-app[data-ui-theme="light"] :is(
 .xyz3d-photo-single-settings .xyz3d-single-panel-section,
 .xyz3d-vector-edit200 .xyz3d-ve200-tools,.xyz3d-vector-node211,.xyz3d-vector-curve219,.xyz3d-vector-auto-stitch221,
 .xyz3d-vector-cleanup200,.xyz3d-backing-cutter224
){background:linear-gradient(180deg,#edf1f3,#d5dde2)!important;border-color:#a0adb5!important}
.xyz3d-app[data-ui-theme="light"] .xyz3d-photo-single-settings :is(strong,h3,h4){color:#132d42!important}
.xyz3d-app[data-ui-theme="light"] .xyz3d-photo-single-settings :is(p,small,label,span){color:#596c79}
.xyz3d-app[data-ui-theme="light"] .xyz3d-photo-single-settings :is(input,select,textarea){background:linear-gradient(180deg,#d5dce1,#c0cad0)!important;border-color:#8997a1!important;color:#172733!important}
.xyz3d-app[data-ui-theme="light"] .xyz3d-photo-single-settings select option{background:#cbd3d8!important;color:#142735!important}
.xyz3d-app[data-ui-theme="light"] .xyz3d-photo-single-settings button:not(:disabled){
 background:linear-gradient(180deg,#f8b27b,#e98a46)!important;border-color:#c96b2b!important;color:#132a3b!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.64),0 2px 5px rgba(88,61,43,.16)!important;filter:saturate(.82)!important
}
.xyz3d-app[data-ui-theme="light"] .xyz3d-photo-single-settings :is(button.active,button.is-active,button[aria-pressed="true"],button[aria-selected="true"]):not(:disabled){
 background:linear-gradient(180deg,#ffd0a7,#ff9b48 14%,#f5771f 54%,#d95308)!important;border-color:#b94406!important;color:#071f31!important;
 box-shadow:inset 0 2px 0 rgba(255,255,255,.72),inset 0 -3px 0 rgba(137,48,3,.24),0 3px 0 #9d3905,0 7px 14px rgba(130,59,13,.26)!important;filter:saturate(1.16)!important
}
.xyz3d-app[data-ui-theme="light"] .xyz3d-photo-single-settings button:disabled{background:linear-gradient(180deg,#e0c6b5,#cbb4a5)!important;border-color:#ad9a8e!important;color:#6a625d!important;filter:saturate(.35)!important;opacity:.72!important}
.xyz3d-app[data-ui-theme="light"] :is(.xyz3d-single-panel-head,.xyz3d-photo-single-settings .xyz3d-photo-single-head){background:linear-gradient(90deg,#ccd5da,#e9edef)!important;border-color:#a6b2ba!important}
.xyz3d-app[data-ui-theme="light"] .xyz3d-single-panel-head strong{color:#103a5a!important}

/* 0.18.96.299 — explicit Grayscale Relief density pass to keep this file
   self-sufficient even if it loads after the shared app CSS. */
@media (min-width:761px){
  .xyz3d-single-relief-step2{gap:8px!important}
  .xyz3d-single-relief-step2 .xyz3d-single-panel-section{padding:8px!important;border-radius:9px!important}
  .xyz3d-relief-source-picker{gap:4px!important;padding:9px!important;border-radius:8px!important}
  .xyz3d-relief-source-picker strong{font-size:11px!important}.xyz3d-relief-source-picker span{font-size:9px!important;line-height:1.3!important}
  .xyz3d-relief-auto-row,.xyz3d-relief-ai-actions{gap:6px!important}
  .xyz3d-relief-auto-row button,.xyz3d-relief-ai-actions button,.xyz3d-relief-mask-picker{min-height:42px!important;padding:7px 9px!important;border-radius:8px!important}
  .xyz3d-relief-auto-row button strong,.xyz3d-relief-ai-actions button strong,.xyz3d-relief-mask-picker strong{font-size:10.5px!important}
  .xyz3d-relief-auto-row button span,.xyz3d-relief-ai-actions button span,.xyz3d-relief-mask-picker span{font-size:8px!important;line-height:1.2!important}
  .xyz3d-relief-ai256{margin-top:8px!important;padding:8px!important;border-radius:9px!important}
  .xyz3d-relief-preset257{grid-template-columns:80px minmax(0,1fr)!important;gap:6px!important;margin-bottom:6px!important}
  .xyz3d-relief-channels257{gap:5px!important}
  .xyz3d-relief-channel257{grid-template-columns:26px 66px minmax(64px,1fr) 40px!important;gap:6px!important;padding:5px 6px!important;border-radius:7px!important}
  .xyz3d-relief-channel257 button{width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;border-radius:6px!important;font-size:10px!important}
  .xyz3d-relief-channel257 strong{font-size:10px!important;line-height:1.1!important}
  .xyz3d-relief-channel257 small,.xyz3d-relief-channel-final257 span{font-size:8px!important;line-height:1.15!important}
  .xyz3d-relief-channel-final257{grid-template-columns:26px 66px minmax(0,1fr)!important}
  .xyz3d-relief-zshape257{margin-top:7px!important;padding-top:7px!important}
  .xyz3d-relief-preview-tabs{gap:5px!important}.xyz3d-relief-preview-tabs button{min-height:32px!important;padding:5px 9px!important;border-radius:7px!important;font-size:10px!important}
  .xyz3d-relief-export-grid{gap:6px!important}.xyz3d-relief-export-grid button{padding:7px 9px!important;border-radius:8px!important}.xyz3d-relief-export-grid button strong{font-size:10px!important}.xyz3d-relief-export-grid button span{font-size:8px!important;line-height:1.25!important}
  .xyz3d-relief-empty{min-height:200px!important;padding:22px!important;border-radius:12px!important}.xyz3d-relief-empty strong{font-size:14px!important}.xyz3d-relief-empty span{font-size:11px!important}.xyz3d-relief-empty small{font-size:9px!important}
}
