/* Shared photo stages retain a stable height; the gallery chrome stays light. */
#sxEvidenceApp .sx-ev-gallery-pair{align-items:stretch;row-gap:0;grid-template-rows:auto auto auto auto auto auto;}
#sxEvidenceApp .sx-ev-gallery-pair>.sx-ev-gallery{display:grid;grid-template-rows:auto auto auto auto auto auto;grid-row:auto;align-self:stretch;min-width:0;row-gap:0;border:1px solid rgba(218,234,242,.22);border-radius:4px;background:linear-gradient(145deg,rgba(231,244,251,.065),rgba(231,244,251,.025));box-shadow:inset 0 1px rgba(255,255,255,.045);overflow:hidden;}
#sxEvidenceApp :is(.sx-ev-product-photos,.sx-ev-site-photos) .sx-ev-gallery>.sx-ev-photo-label{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;grid-row:1;min-height:60px;padding:13px 16px;font-size:20px;line-height:1.4;text-align:left;}
#sxEvidenceApp .sx-ev-gallery-total{padding:3px 6px;border:1px solid rgba(220,234,242,.18);border-radius:3px;color:#c4d2da;background:rgba(224,238,246,.04);font-size:12px;font-weight:500;line-height:1.3;white-space:nowrap;font-variant-numeric:tabular-nums;}
#sxEvidenceApp .sx-ev-gallery.is-busy .sx-ev-photo-label::after{display:none;}
#sxEvidenceApp .sx-ev-gallery>.sx-ev-photo-image{grid-row:2;aspect-ratio:auto;height:320px;min-height:0;align-self:stretch;touch-action:pan-y;}
#sxEvidenceApp .sx-ev-gallery .sx-ev-photo-image img{inset:0;left:0;width:100%;height:100%;max-width:100%;object-fit:contain;transform:none;}
#sxEvidenceApp .sx-ev-gallery-open{display:block;position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;padding:0;border:0;background:transparent;cursor:zoom-in;color:inherit;}
#sxEvidenceApp .sx-ev-gallery-icon,.sx-ev-gallery-dialog .sx-ev-gallery-icon{display:block;flex:0 0 auto;width:18px;height:18px;}
#sxEvidenceApp .sx-ev-gallery-empty-action{display:grid;place-items:center;position:absolute;inset:0;z-index:1;width:100%;height:auto;padding:22px 14px;border:0;appearance:none;-webkit-appearance:none;background:linear-gradient(145deg,rgba(222,239,247,.035),transparent);color:#c4d4dd;text-align:center;font:inherit;cursor:pointer;transition:background-color .22s,color .22s;}
/* Keep the label in ordinary flow: native button layout must not compress its text on iOS. */
#sxEvidenceApp .sx-ev-gallery-empty-content{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-width:0;max-width:100%;}
#sxEvidenceApp .sx-ev-gallery-empty-content>*{flex:none;max-width:100%;}
#sxEvidenceApp .sx-ev-gallery-empty-content>.sx-ev-gallery-icon,#sxEvidenceApp .sx-ev-gallery .sx-ev-photo-empty>.sx-ev-gallery-icon{width:40px;height:40px;padding:8px;box-sizing:content-box;border:1px solid rgba(214,234,244,.18);border-radius:8px;background:rgba(224,240,249,.045);color:#bdd3df;transition:transform .22s,border-color .22s;}
#sxEvidenceApp .sx-ev-gallery-empty-action strong{color:#e5edf2;font-size:17px;font-weight:600;line-height:1.4;}
#sxEvidenceApp .sx-ev-gallery-empty-action small{color:#aebfc9;font-size:13px;line-height:1.5;}
#sxEvidenceApp .sx-ev-gallery-empty-action:hover{background-color:rgba(225,240,248,.045);}
#sxEvidenceApp .sx-ev-gallery-empty-action:hover .sx-ev-gallery-empty-content>.sx-ev-gallery-icon{transform:translateY(-2px);border-color:rgba(214,234,244,.38);}
#sxEvidenceApp .sx-ev-gallery .sx-ev-photo-empty{gap:12px;}
#sxEvidenceApp .sx-ev-gallery .sx-ev-photo-empty small{font-size:14px;line-height:1.5;}
#sxEvidenceApp .sx-ev-gallery-cover{position:absolute;z-index:2;top:11px;left:11px;display:flex;align-items:center;gap:5px;padding:5px 8px;border:1px solid rgba(212,234,224,.3);border-radius:3px;background:rgba(20,35,37,.72);color:#d4ecdf;font-size:12px;font-weight:500;pointer-events:none;}
#sxEvidenceApp .sx-ev-gallery-cover .sx-ev-gallery-icon{width:13px;height:13px;}
#sxEvidenceApp .sx-ev-gallery-zoom{position:absolute;right:11px;bottom:11px;display:grid;place-items:center;width:32px;height:32px;border:1px solid rgba(222,237,245,.3);border-radius:3px;background:rgba(20,31,39,.6);color:#ecf3f6;transition:background-color .22s,transform .22s;}
#sxEvidenceApp .sx-ev-gallery-open:hover .sx-ev-gallery-zoom{background:rgba(40,60,72,.88);transform:scale(1.06);}
#sxEvidenceApp .sx-ev-gallery>.sx-ev-gallery-nav{grid-row:3;}
#sxEvidenceApp .sx-ev-gallery>.sx-ev-gallery-caption{grid-row:4;}
#sxEvidenceApp .sx-ev-gallery>.sx-ev-gallery-thumbs{grid-row:5;}
#sxEvidenceApp .sx-ev-gallery>.sx-ev-photo-controls{grid-row:6;}
@supports(grid-template-rows:subgrid){
  #sxEvidenceApp .sx-ev-gallery-pair>.sx-ev-gallery{grid-template-rows:subgrid;grid-row:span 6;}
  #sxEvidenceApp.sx-ev-preview .sx-ev-gallery-pair{grid-template-rows:auto auto auto auto auto auto;}
  #sxEvidenceApp.sx-ev-preview .sx-ev-gallery-pair>.sx-ev-gallery{grid-template-rows:subgrid;grid-row:span 6;}
}
#sxEvidenceApp .sx-ev-gallery-nav{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;align-items:center;gap:8px;padding:5px 10px;border-top:1px solid var(--ev-line);min-width:0;background:rgba(223,239,246,.025);}
#sxEvidenceApp .sx-ev-gallery-nav>span{color:var(--ev-muted);text-align:center;font-size:14px;font-weight:500;font-variant-numeric:tabular-nums;}
#sxEvidenceApp .sx-ev-gallery-nav button{display:grid;place-items:center;min-width:0;min-height:32px;padding:5px;border:1px solid transparent;border-radius:3px;background:transparent;color:var(--ev-ink);font:inherit;font-size:20px;cursor:pointer;transition:background-color .2s,border-color .2s;}
#sxEvidenceApp .sx-ev-gallery-nav button:hover{border-color:var(--ev-edge);background:rgba(225,236,242,.07);}
#sxEvidenceApp .sx-ev-gallery-nav button:disabled{opacity:.3;cursor:default;}
#sxEvidenceApp .sx-ev-gallery-caption{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;padding:10px 14px;min-width:0;text-align:center;}
#sxEvidenceApp .sx-ev-gallery-caption:empty{padding-block:0;}
#sxEvidenceApp .sx-ev-gallery-caption p{margin:0;font-size:15px;line-height:1.65;color:#d1dde3;overflow-wrap:anywhere;white-space:pre-wrap;max-width:100%;}
#sxEvidenceApp .sx-ev-gallery-caption:has(p:empty){padding-block:0;}
#sxEvidenceApp .sx-ev-gallery-caption:not(.is-expanded) p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;}
#sxEvidenceApp .sx-ev-gallery-caption button{min-height:32px;padding:3px 8px;font:inherit;font-size:13px;color:var(--ev-muted);background:none;border:0;text-decoration:underline;text-underline-offset:3px;cursor:pointer;}
#sxEvidenceApp .sx-ev-gallery-thumbs{display:flex;align-items:center;justify-content:flex-start;gap:7px;min-width:0;max-width:100%;padding:8px 12px 12px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;scrollbar-width:thin;scrollbar-color:rgba(196,218,232,.4) transparent;}
#sxEvidenceApp .sx-ev-gallery-thumbs:empty{padding:0;}
#sxEvidenceApp .sx-ev-gallery[data-ev-photo$=Before]{--gallery-accent:var(--ev-before,#dfad79);}
#sxEvidenceApp .sx-ev-gallery[data-ev-photo$=After]{--gallery-accent:var(--ev-after,#8dbaff);}
#sxEvidenceApp .sx-ev-gallery-thumbs button,.sx-ev-gallery-dialog .sx-ev-gallery-thumb{position:relative;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 18px;place-items:stretch;gap:0;flex:0 0 68px;width:68px;height:68px;min-width:0;min-height:0;padding:3px;overflow:hidden;background:rgba(219,235,242,.04);border:1px solid rgba(215,228,235,.22);border-radius:3px;cursor:pointer;opacity:.72;transition:opacity .22s,border-color .22s,background-color .22s;}
#sxEvidenceApp .sx-ev-gallery-thumbs button:hover,#sxEvidenceApp .sx-ev-gallery-thumbs button[aria-current=true],.sx-ev-gallery-dialog .sx-ev-gallery-thumb:hover,.sx-ev-gallery-dialog .sx-ev-gallery-thumb[aria-current=true]{opacity:1;border-color:var(--gallery-accent,#cbdde7);background:rgba(219,235,242,.095);}
#sxEvidenceApp .sx-ev-gallery-thumb-media,.sx-ev-gallery-dialog .sx-ev-gallery-thumb-media{position:relative;display:grid;place-items:center;min-width:0;min-height:0;width:100%;height:100%;overflow:hidden;border-radius:1px;background:rgba(229,242,249,.025);}
#sxEvidenceApp .sx-ev-gallery-thumbs .sx-ev-gallery-thumb-media img,.sx-ev-gallery-dialog .sx-ev-gallery-thumb-media img{position:absolute;inset:0;display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain;}
#sxEvidenceApp .sx-ev-gallery-thumb-media img:not([src]),.sx-ev-gallery-dialog .sx-ev-gallery-thumb-media img:not([src]){display:none;}
#sxEvidenceApp .sx-ev-gallery-thumb-media:has(img[src])>.sx-ev-gallery-icon,.sx-ev-gallery-dialog .sx-ev-gallery-thumb-media:has(img[src])>.sx-ev-gallery-icon{display:none;}
#sxEvidenceApp .sx-ev-gallery-thumb-meta,.sx-ev-gallery-dialog .sx-ev-gallery-thumb-meta{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:0;height:18px;border-top:1px solid rgba(212,232,243,.09);color:#b7cad7;}
#sxEvidenceApp .sx-ev-gallery-thumbs .sx-ev-gallery-thumb-number,.sx-ev-gallery-dialog .sx-ev-gallery-thumb-number{position:static;padding:0;background:none;color:inherit;font-size:11px;line-height:1;font-variant-numeric:tabular-nums;}
#sxEvidenceApp .sx-ev-gallery-thumbs .sx-ev-gallery-thumb-primary,.sx-ev-gallery-dialog .sx-ev-gallery-thumb-primary{position:static;display:block;flex:0 0 auto;width:5px;height:5px;padding:0;border-radius:50%;background:#b9dbc8;}
#sxEvidenceApp :is(.sx-ev-product-photos,.sx-ev-site-photos) .sx-ev-gallery .sx-ev-photo-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:8px;padding:10px 12px;}
#sxEvidenceApp .sx-ev-gallery .sx-ev-photo-controls .sx-ev-btn{display:flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:6px 9px;border-radius:3px;font-size:14px;line-height:1.4;}
#sxEvidenceApp .sx-ev-gallery .sx-ev-gallery-add{border:1px solid rgba(211,230,240,.28);background:rgba(218,237,246,.075);}
#sxEvidenceApp .sx-ev-gallery .sx-ev-gallery-manage{border-color:transparent;background:transparent;color:#c5d6e0;}
#sxEvidenceApp .sx-ev-gallery .sx-ev-photo-controls .sx-ev-btn:hover{border-color:rgba(211,230,240,.42);background:rgba(218,237,246,.12);}
#sxEvidenceApp .sx-ev-gallery :is(button,[tabindex]):focus-visible{outline:2px solid #dae8ef;outline-offset:2px;}
#sxEvidenceApp .sx-ev-case-namebar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:14px;margin-bottom:20px;}
#sxEvidenceApp .sx-ev-case-name-editor{margin:0 auto 20px;max-width:1120px;padding:16px 18px;border:1px solid var(--ev-edge);background:linear-gradient(120deg,rgba(225,237,242,.055),rgba(225,237,242,.015));}
#sxEvidenceApp .sx-ev-case-name-editor>.sx-ev-field{grid-template-columns:100px minmax(0,1fr);grid-template-rows:auto;align-items:center;gap:14px;}
#sxEvidenceApp .sx-ev-case-name-editor>.sx-ev-field>span{justify-content:center;align-items:flex-start;font-size:15px;font-weight:500;}
#sxEvidenceApp .sx-ev-case-name-editor input{font-size:18px;text-align:left;padding-inline:14px;}
#sxEvidenceApp .sx-ev-case-choice .sx-ev-case-name,.sx-ev-select-menu .sx-ev-case-name{display:block;min-width:0;font-size:16px;line-height:1.4;overflow-wrap:anywhere;}
#sxEvidenceApp .sx-ev-case-choice .sx-ev-case-tags,.sx-ev-select-menu .sx-ev-case-tags{display:block;margin-top:4px;font-size:12px;line-height:1.35;font-weight:400;color:#bdcdd5;}
#sxEvidenceApp .sx-ev-case-choice .sx-ev-select-trigger{height:auto;min-height:58px;}
#sxEvidenceApp .sx-ev-case-namebar label{display:grid;gap:8px;min-width:0;color:var(--ev-muted);font-size:14px;}
#sxEvidenceApp .sx-ev-case-namebar input{font-size:18px;text-align:left;padding-inline:14px;}
#sxEvidenceApp .sx-ev-case-tags{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:center;min-width:0;}
#sxEvidenceApp .sx-ev-case-tags>span{padding:5px 10px;border:1px solid var(--ev-line);background:rgba(219,235,242,.04);color:var(--ev-muted);font-size:13px;line-height:1.4;white-space:nowrap;}
.sx-ev-select-menu .sx-ev-case-option-meta{display:block;margin-top:4px;font-size:12px;font-weight:400;color:#bac8d2;}
@media(min-width:761px){
  #sxEvidenceApp :is(.sx-ev-sheets,.sx-ev-controlbar,.sx-ev-case-namebar,.sx-ev-case-settings,.sx-ev-client-title,.sx-ev-create,.sx-ev-extensions,.sx-ev-supplements){width:100%;max-width:1120px;margin-left:auto;margin-right:auto;}
  #sxEvidenceApp .sx-ev-sheet{padding:24px;}
  #sxEvidenceApp .sx-ev-spec-table{width:100%;table-layout:fixed;font-size:18px;}
  #sxEvidenceApp .sx-ev-spec-table :is(th,td){padding:17px 12px;text-align:center;font-size:18px;line-height:1.5;vertical-align:middle;}
  #sxEvidenceApp .sx-ev-spec-table :is(th,td):first-child{width:28%;}
  #sxEvidenceApp .sx-ev-spec-table :is(th,td):nth-child(2),#sxEvidenceApp .sx-ev-spec-table :is(th,td):nth-child(3){width:36%;}
  #sxEvidenceApp .sx-ev-spec-table td{white-space:nowrap;font-variant-numeric:tabular-nums;}
  #sxEvidenceApp .sx-ev-spec-table tr[data-ev-spec-key=model] td{white-space:normal;overflow-wrap:anywhere;word-break:normal;}
  #sxEvidenceApp .sx-ev-spec-table small{font-size:inherit;color:inherit;white-space:nowrap;}
  #sxEvidenceApp .sx-ev-product-photos+.sx-ev-table-wrap{margin-top:22px;}
  #sxEvidenceApp .sx-ev-gallery-pair~[data-ev-advantages] .sx-ev-visual-grid{padding-top:24px;margin-top:12px;border-top:0;}
}
@media(max-width:760px){
  #sxEvidenceApp :is(.sx-ev-product-photos,.sx-ev-site-photos) .sx-ev-gallery>.sx-ev-photo-label{min-height:62px;padding:10px 8px;gap:5px;font-size:16px;}
  #sxEvidenceApp .sx-ev-gallery-total{padding:2px 4px;font-size:11px;}
  #sxEvidenceApp .sx-ev-gallery-empty-action{padding:12px 6px;}
  #sxEvidenceApp .sx-ev-gallery-empty-content{gap:7px;}
  #sxEvidenceApp .sx-ev-gallery-empty-content>.sx-ev-gallery-icon,#sxEvidenceApp .sx-ev-gallery .sx-ev-photo-empty>.sx-ev-gallery-icon{width:27px;height:27px;padding:7px;border-radius:6px;}
  #sxEvidenceApp .sx-ev-gallery-empty-action strong{font-size:14px;}
  #sxEvidenceApp .sx-ev-gallery-empty-action small{font-size:12px;}
  #sxEvidenceApp .sx-ev-gallery-cover{top:6px;left:6px;padding:4px 5px;font-size:11px;}
  #sxEvidenceApp .sx-ev-gallery-zoom{right:6px;bottom:6px;width:28px;height:28px;}
  #sxEvidenceApp .sx-ev-gallery>.sx-ev-photo-image{height:auto;aspect-ratio:1;}
  #sxEvidenceApp .sx-ev-gallery>.sx-ev-photo-image:has(.sx-ev-gallery-empty-action){min-height:144px;}
  #sxEvidenceApp .sx-ev-gallery-nav{grid-template-columns:32px minmax(0,1fr) 32px;gap:0;padding:4px;}
  #sxEvidenceApp .sx-ev-gallery-nav>span{font-size:12px;}
  #sxEvidenceApp .sx-ev-gallery-nav button{min-height:36px;}
  #sxEvidenceApp .sx-ev-gallery-caption{padding:8px;}
  #sxEvidenceApp .sx-ev-gallery-caption p{font-size:13px;line-height:1.55;}
  #sxEvidenceApp .sx-ev-gallery-thumbs{padding:6px 6px 9px;gap:5px;}
  #sxEvidenceApp .sx-ev-gallery-thumbs button{flex-basis:48px;width:48px;height:54px;grid-template-rows:minmax(0,1fr) 16px;padding:2px;}
  #sxEvidenceApp .sx-ev-gallery-thumb-meta{height:16px;}
  #sxEvidenceApp :is(.sx-ev-product-photos,.sx-ev-site-photos) .sx-ev-gallery .sx-ev-photo-controls{grid-template-columns:minmax(0,1fr);padding:6px;gap:3px;}
  #sxEvidenceApp .sx-ev-gallery .sx-ev-photo-controls .sx-ev-btn{min-height:33px;padding:5px 6px;font-size:13px;}
  #sxEvidenceApp .sx-ev-case-namebar{grid-template-columns:minmax(0,1fr);gap:9px;}
  #sxEvidenceApp .sx-ev-case-namebar input{font-size:16px;}
  #sxEvidenceApp .sx-ev-case-tags{justify-content:flex-start;}
  #sxEvidenceApp .sx-ev-case-name-editor{padding:12px 10px;}
  #sxEvidenceApp .sx-ev-case-name-editor>.sx-ev-field{grid-template-columns:minmax(0,1fr);gap:8px;}
  #sxEvidenceApp .sx-ev-case-name-editor input{font-size:16px;}
}
/* The manager lives in the top layer, outside the stacked glass surfaces. */
body>.sx-ev-gallery-dialog{box-sizing:border-box;position:fixed;inset:0;width:min(960px,calc(100vw - 40px));max-width:none;height:fit-content;max-height:calc(100dvh - 48px);margin:auto;padding:0;border:1px solid rgba(224,235,244,.34);border-radius:6px;color:#e5edf3;background:linear-gradient(145deg,rgba(47,63,74,.98),rgba(23,36,45,.98));box-shadow:0 24px 80px rgba(0,0,0,.4),inset 0 1px rgba(255,255,255,.1);font-family:inherit;overflow:hidden;}
body>.sx-ev-gallery-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;animation:sx-gallery-dialog-in .24s cubic-bezier(.2,.75,.2,1) both;}
body>.sx-ev-gallery-dialog::backdrop{background:rgba(5,11,18,.68);}
body>.sx-ev-gallery-dialog *{box-sizing:border-box;}
body>.sx-ev-gallery-dialog [hidden]{display:none!important;}
.sx-ev-gallery-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px;border-bottom:1px solid rgba(206,225,230,.18);background:linear-gradient(115deg,rgba(231,243,248,.055),transparent);}
.sx-ev-gallery-dialog-head>div{min-width:0;}
.sx-ev-gallery-dialog-kicker{margin:0 0 5px;color:#aebfca;font-size:13px;font-weight:500;line-height:1.4;letter-spacing:.04em;}
.sx-ev-gallery-dialog-head h2{margin:0;color:#e5edf3;font-family:inherit;font-size:23px;font-weight:650;line-height:1.4;overflow-wrap:anywhere;}
.sx-ev-gallery-dialog[data-gallery-tone=before]{--gallery-accent:#dfad79;}
.sx-ev-gallery-dialog[data-gallery-tone=after]{--gallery-accent:#8dbaff;}
body>.sx-ev-gallery-manager{width:min(1060px,calc(100vw - 40px));height:min(820px,calc(100dvh - 48px));}
.sx-ev-gallery-dialog [data-ev-gallery-body]{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;}
.sx-ev-gallery-manager [data-ev-gallery-body]{overflow:hidden;}
.sx-ev-gallery-workspace{display:grid;grid-template-columns:126px minmax(0,1fr);height:100%;min-width:0;min-height:0;}
.sx-ev-gallery-workspace.is-empty{display:grid;grid-template-columns:minmax(0,1fr);place-items:center;}
.sx-ev-gallery-manager-list{min-width:0;min-height:0;margin:0;padding:18px 14px;overflow:auto;overscroll-behavior:contain;border-right:1px solid rgba(211,232,242,.16);background:rgba(229,243,250,.025);scrollbar-width:thin;scrollbar-color:rgba(190,212,226,.35) transparent;}
.sx-ev-gallery-rail-title{margin:0 0 14px;color:#acbfcd;font-size:13px;line-height:1.4;text-align:center;}
.sx-ev-gallery-manager-thumbs{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0;min-height:0;}
.sx-ev-gallery-dialog .sx-ev-gallery-manager-thumbs .sx-ev-gallery-thumb{width:100%;height:90px;flex:none;}
.sx-ev-gallery-editor{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:18px;min-width:0;min-height:0;padding:20px 24px 24px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;}
.sx-ev-gallery-editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;min-height:28px;}
.sx-ev-gallery-position{color:#cad8e1;font-size:15px;font-weight:500;line-height:1.5;font-variant-numeric:tabular-nums;}
.sx-ev-gallery-primary-mark{display:flex;align-items:center;gap:5px;padding:4px 8px;border:1px solid rgba(176,220,196,.3);border-radius:3px;background:rgba(139,196,163,.08);color:#c5e5d3;font-size:13px;white-space:nowrap;}
.sx-ev-gallery-primary-mark .sx-ev-gallery-icon{width:14px;height:14px;}
.sx-ev-gallery-editor-visual{min-width:0;}
.sx-ev-gallery-manager-preview{position:relative;display:grid;place-items:center;width:100%;height:clamp(220px,36dvh,360px);min-width:0;min-height:0;overflow:hidden;border:1px solid rgba(207,229,242,.18);border-radius:4px;background:linear-gradient(145deg,rgba(233,245,252,.065),rgba(233,245,252,.025));}
.sx-ev-gallery-manager-preview>img{position:absolute;inset:12px;display:block;width:calc(100% - 24px);height:calc(100% - 24px);min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain;}
.sx-ev-gallery-manager-preview>img:not([src]){display:none;}
.sx-ev-gallery-preview-placeholder{display:grid;justify-items:center;gap:10px;color:#9eb4c4;font-size:14px;}
.sx-ev-gallery-preview-placeholder>.sx-ev-gallery-icon{width:34px;height:34px;}
.sx-ev-gallery-manager-preview:has(img[src])>.sx-ev-gallery-preview-placeholder{display:none;}
.sx-ev-gallery-image-status{margin:9px 0 0;color:#b8cbd8;font-size:14px;line-height:1.5;}
.sx-ev-gallery-image-status.is-error{color:#e0b5ad;}
.sx-ev-gallery-note{display:grid;gap:9px;min-width:0;color:#c8d7df;font-size:15px;font-weight:500;line-height:1.5;}
.sx-ev-gallery-dialog textarea{display:block;min-width:0;width:100%;min-height:96px;resize:vertical;padding:12px 14px;border:1px solid rgba(206,225,230,.25);border-radius:3px;background:rgba(9,23,32,.22);color:#e5edf3;font:400 16px/1.6 system-ui,sans-serif;transition:background-color .2s,border-color .2s;}
.sx-ev-gallery-dialog textarea::placeholder{color:#95aab8;}
.sx-ev-gallery-dialog textarea:focus{border-color:rgba(206,229,242,.65);background:rgba(9,23,32,.3);}
.sx-ev-gallery-item-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;min-width:0;padding-top:16px;border-top:1px solid rgba(214,233,245,.14);}
.sx-ev-gallery-order-actions,.sx-ev-gallery-edit-actions{display:flex;flex-wrap:wrap;gap:8px;min-width:0;}
.sx-ev-gallery-dialog button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:36px;padding:7px 10px;border:1px solid rgba(206,225,230,.25);border-radius:3px;background:rgba(218,235,242,.055);color:#e5edf3;font:500 14px/1.4 system-ui,sans-serif;cursor:pointer;transition:background-color .2s,border-color .2s,opacity .2s;}
.sx-ev-gallery-dialog button>span{min-width:0;}
.sx-ev-gallery-dialog button:hover{background:rgba(218,235,242,.12);border-color:rgba(206,225,230,.6);}
.sx-ev-gallery-dialog button:disabled{opacity:.35;cursor:default;}
.sx-ev-gallery-dialog :is(button,textarea):focus-visible{outline:2px solid #dce9ef;outline-offset:2px;}
.sx-ev-gallery-dialog .sx-ev-danger{color:#e0bdb8;border-color:rgba(205,150,144,.35);background:rgba(139,77,75,.08);}
.sx-ev-gallery-dialog [data-ev-gallery-action=remove]{color:#e0bdb8;border-color:rgba(205,150,144,.35);background:rgba(139,77,75,.08);}
.sx-ev-gallery-dialog [data-ev-gallery-action=primary]:disabled{opacity:1;color:#aad9bf;border-color:rgba(155,208,178,.4);background:rgba(116,174,145,.08);}
.sx-ev-gallery-dialog-footer{display:flex;align-items:center;gap:18px;padding:16px 24px;border-top:1px solid rgba(206,225,230,.2);background:rgba(231,243,249,.035);}
.sx-ev-gallery-dialog-footer [data-ev-gallery-action=add]{background:rgba(216,236,248,.13);border-color:rgba(220,239,248,.4);}
.sx-ev-gallery-capacity{display:grid;grid-template-columns:auto minmax(48px,1fr);align-items:center;gap:5px 10px;flex:1;max-width:230px;min-width:0;margin-inline:auto;color:#c2d0d8;font-size:14px;font-variant-numeric:tabular-nums;}
.sx-ev-gallery-capacity [data-ev-gallery-count]{white-space:nowrap;}
.sx-ev-gallery-capacity progress{appearance:none;display:block;min-width:0;width:100%;height:5px;overflow:hidden;border:0;border-radius:3px;background:rgba(218,237,247,.12);color:#b5cedb;}
.sx-ev-gallery-capacity progress::-webkit-progress-bar{background:rgba(218,237,247,.12);border-radius:3px;}
.sx-ev-gallery-capacity progress::-webkit-progress-value{background:#b5cedb;border-radius:3px;transition:width .24s;}
.sx-ev-gallery-capacity progress::-moz-progress-bar{background:#b5cedb;border-radius:3px;}
.sx-ev-gallery-capacity [data-ev-gallery-batch]{grid-column:1/-1;font-size:12px;line-height:1.4;text-align:center;}
.sx-ev-gallery-capacity:has([data-ev-gallery-upload-error]:not([hidden])){max-width:480px;}
.sx-ev-gallery-capacity [data-ev-gallery-upload-error]{grid-column:1/-1;color:#e4b5ad;font-size:13px;line-height:1.5;overflow-wrap:anywhere;}
.sx-ev-gallery-manager-empty{display:grid;justify-items:center;gap:12px;padding:36px 20px 48px;color:#b9cbd6;text-align:center;}
.sx-ev-gallery-manager-empty>.sx-ev-gallery-icon{width:40px;height:40px;}
.sx-ev-gallery-manager-empty p{margin:0;font-size:15px;}
body>.sx-ev-gallery-viewer[open]{grid-template-rows:auto minmax(0,1fr) auto;}
.sx-ev-gallery-view-image{display:flex;align-items:center;justify-content:center;min-height:0;max-height:calc(100dvh - 300px);margin:16px 20px 0;padding:12px;overflow:hidden;border:1px solid rgba(217,236,247,.13);border-radius:3px;background:rgba(226,240,249,.045);}
.sx-ev-gallery-view-image img{display:block;width:100%;height:auto;max-height:calc(100dvh - 328px);object-fit:contain;}
.sx-ev-gallery-viewer .sx-ev-gallery-nav{display:flex;gap:20px;align-items:center;justify-content:center;padding:8px 16px;}
.sx-ev-gallery-viewer .sx-ev-gallery-nav>span{font-size:14px;font-variant-numeric:tabular-nums;color:#c4d0d6;}
.sx-ev-gallery-viewer .sx-ev-gallery-caption{max-height:100px;overflow:auto;padding:6px 24px 16px;text-align:center;font-size:15px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;}
.sx-ev-gallery-viewer .sx-ev-gallery-caption p{margin:0;}
.sx-ev-gallery-viewer .sx-ev-gallery-thumbs{display:flex;justify-content:flex-start;gap:8px;min-width:0;max-width:100%;padding:8px 20px 16px;overflow:auto;scrollbar-width:thin;}
.sx-ev-gallery-viewer .sx-ev-gallery-thumbs button{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 18px;place-items:stretch;flex:0 0 68px;width:68px;height:68px;min-width:0;min-height:0;padding:3px;overflow:hidden;opacity:.72;}
.sx-ev-gallery-viewer .sx-ev-gallery-thumbs button[aria-current=true]{border-color:#dce9ef;}
.sx-ev-gallery-viewer .sx-ev-gallery-thumbs button[aria-current=true],.sx-ev-gallery-viewer .sx-ev-gallery-thumbs button:hover{opacity:1;background:rgba(218,237,247,.13);}
.sx-ev-gallery-viewer .sx-ev-gallery-thumbs img{min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain;}
.sx-ev-gallery-viewer .sx-ev-gallery-capacity{display:block;margin:0;max-width:none;}
@media(max-width:600px){
  body>.sx-ev-gallery-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 24px);}
  .sx-ev-gallery-dialog-head{padding:16px;gap:10px;}
  .sx-ev-gallery-dialog-head h2{font-size:19px;}
  .sx-ev-gallery-dialog-kicker{font-size:12px;}
  body>.sx-ev-gallery-manager{height:calc(100dvh - 24px);}
  .sx-ev-gallery-manager [data-ev-gallery-body]{overflow:auto;}
  .sx-ev-gallery-workspace{height:auto;display:grid;grid-template-columns:minmax(0,1fr);gap:14px;padding:16px;}
  .sx-ev-gallery-editor{display:contents;}
  .sx-ev-gallery-editor-head{grid-row:1;min-width:0;gap:8px;}
  .sx-ev-gallery-position{font-size:14px;}
  .sx-ev-gallery-primary-mark{font-size:12px;padding:3px 6px;}
  .sx-ev-gallery-editor-visual{grid-row:2;}
  .sx-ev-gallery-manager-preview{height:clamp(180px,31dvh,280px);}
  .sx-ev-gallery-manager-preview>img{inset:8px;width:calc(100% - 16px);height:calc(100% - 16px);}
  .sx-ev-gallery-manager-list{grid-row:3;max-width:100%;padding:0 0 8px;overflow-x:auto;overflow-y:hidden;border:0;background:transparent;}
  .sx-ev-gallery-rail-title{display:none;}
  .sx-ev-gallery-manager-thumbs{display:flex;width:max-content;gap:8px;}
  .sx-ev-gallery-dialog .sx-ev-gallery-manager-thumbs .sx-ev-gallery-thumb{flex:0 0 70px;width:70px;height:76px;}
  .sx-ev-gallery-note{grid-row:4;font-size:14px;}
  .sx-ev-gallery-dialog textarea{min-height:86px;padding:10px 12px;font-size:16px;}
  .sx-ev-gallery-item-actions{grid-row:5;display:grid;gap:8px;padding-top:14px;}
  .sx-ev-gallery-order-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;}
  .sx-ev-gallery-edit-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  .sx-ev-gallery-dialog button{padding:7px 8px;min-height:38px;gap:5px;font-size:13px;}
  .sx-ev-gallery-order-actions button{padding-inline:5px;}
  .sx-ev-gallery-order-actions [data-ev-gallery-action=primary]>.sx-ev-gallery-icon{display:none;}
  .sx-ev-gallery-dialog-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:12px 16px;gap:10px;}
  .sx-ev-gallery-capacity{grid-row:1;grid-column:1/-1;max-width:none;width:100%;font-size:13px;}
  .sx-ev-gallery-dialog-footer [data-ev-gallery-action=add]{grid-row:2;justify-self:start;}
  .sx-ev-gallery-dialog-footer [data-ev-gallery-action=close]{grid-row:2;}
  .sx-ev-gallery-viewer .sx-ev-gallery-dialog-footer [data-ev-gallery-action=close]{grid-row:1;grid-column:2;}
  .sx-ev-gallery-viewer .sx-ev-gallery-capacity{grid-column:1;}
  .sx-ev-gallery-view-image{margin:12px 12px 0;padding:8px;}
  .sx-ev-gallery-viewer .sx-ev-gallery-thumbs{padding:8px 12px 14px;}
}
@keyframes sx-gallery-dialog-in{from{opacity:.88;transform:translateY(7px);}to{opacity:1;transform:none;}}
@media(prefers-reduced-motion:reduce){
  #sxEvidenceApp .sx-ev-gallery *,body>.sx-ev-gallery-dialog,body>.sx-ev-gallery-dialog *{animation:none!important;transition:none!important;scroll-behavior:auto!important;}
}
