#xopen-single-result .fold-toggle {
  position:absolute;
  left:var(--materials-toggle-left);
  top:var(--materials-toggle-top);
  z-index:5;
  display:grid;
  place-items:center;
  width:32px;
  min-height:64px;
  padding:0;
  transform:translateX(-50%);
  border:1px solid #d6d6d6;
  border-radius:10px;
  background:#fff;
  color:#202020;
  box-shadow:0 3px 12px #0000000d;
}
#xopen-single-result .fold-toggle::before,
#xopen-single-result .fold-close::before {
  content:"";
  width:7px;
  height:7px;
  border-top:2px solid currentColor;
  border-right:2px solid currentColor;
  transform:rotate(45deg);
}
#xopen-single-result .fold-toggle:hover { background:#f2f2f2; }
#xopen-single-result .fold-toggle:active { transform:translateX(-50%) translateY(1px); }
#xopen-single-result .materials-open > .fold-toggle { visibility:hidden; }
#xopen-single-result .materials-shell { min-width:0; overflow:hidden; visibility:hidden; }
#xopen-single-result .materials-open > .materials-shell { visibility:visible; overflow:visible; }
#xopen-single-result .materials-drawer {
  position:relative;
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  width:100%;
  height:var(--materials-panel-height);
  min-height:0;
  margin-left:0;
  border:1px solid #dedede;
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 28px #00000008;
}
#xopen-single-result .materials-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:16px;
  border-bottom:1px solid #e7e7e7;
}
#xopen-single-result .materials-heading h2 { font-size:17px; }
#xopen-single-result .group-controls { display:flex; gap:10px; align-items:center; }
#xopen-single-result .group-counter { color:#6b6b6b; font-size:12px; white-space:nowrap; font-variant-numeric:tabular-nums; }
#xopen-single-result .add-group { display:grid; place-items:center; width:34px; height:34px; padding:0; border-radius:9px; background:#202020; border-color:#202020; color:#fff; font-size:24px; font-weight:400; }
#xopen-single-result .add-group:disabled { color:#a8a8a8; background:#f5f5f5; border-color:#e5e5e5; }
#xopen-single-result .fold-close {
  position:absolute;
  right:-16px;
  top:46%;
  display:grid;
  place-items:center;
  z-index:5;
  width:32px;
  min-height:64px;
  padding:0;
  border:1px solid #d6d6d6;
  border-radius:10px;
  background:#ffffff;
  color:#202020;
  box-shadow:0 3px 12px #0000000d;
}
#xopen-single-result .fold-close::before { transform:rotate(-135deg); }
#xopen-single-result .material-groups {
  display:grid;
  grid-template-rows:repeat(var(--group-count,2),minmax(0,1fr));
  gap:12px;
  min-height:0;
  padding:12px;
}
#xopen-single-result .material-group {
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  min-width:0;
  min-height:0;
  overflow:hidden;
  border:1px solid #e2e2e2;
  border-radius:12px;
  background:#fff;
}
#xopen-single-result .material-group-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:9px 12px; background:#f7f7f7; border-bottom:1px solid #e8e8e8; }
#xopen-single-result .material-group-heading h3 { display:flex; align-items:center; gap:7px; font-size:14px; font-weight:650; }
#xopen-single-result .material-group-heading h3::before { content:""; width:5px; height:5px; background:#333333; border-radius:50%; }
#xopen-single-result .group-optional { color:#767676; font-size:11px; }
#xopen-single-result .material-group-body { display:grid; align-content:start; gap:12px; overflow:auto; min-height:0; padding:12px; scrollbar-width:thin; scrollbar-color:#c8c8c8 transparent; overscroll-behavior:contain; }
#xopen-single-result .material-field { display:grid; gap:6px; min-width:0; }
#xopen-single-result .material-field > label,
#xopen-single-result .material-field > .field-caption { font-size:12px; color:#3c3c3c; font-weight:600; }
#xopen-single-result .material-field small { margin-left:4px; color:#858585; font-size:11px; font-weight:400; }
#xopen-single-result .material-mode,
#xopen-single-result .material-notes,
#xopen-single-result .material-url {
  width:100%;
  min-width:0;
  border:1px solid #e7e7e7;
  border-radius:8px;
  background:#f6f6f6;
  color:#292929;
  font:inherit;
  font-size:12px;
}
#xopen-single-result .material-mode { min-height:36px; padding:6px 9px; cursor:pointer; }
#xopen-single-result .material-notes { min-height:72px; height:76px; padding:9px 10px; resize:vertical; line-height:1.6; }
#xopen-single-result .material-notes::placeholder,
#xopen-single-result .material-url::placeholder { color:#929292; }
#xopen-single-result .asset-methods { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
#xopen-single-result .asset-methods button { display:flex; justify-content:center; align-items:center; gap:6px; min-height:36px; padding:4px 5px; border-color:#e7e7e7; background:#f6f6f6; color:#555555; font-size:11px; font-weight:500; white-space:nowrap; }
#xopen-single-result .asset-methods button:hover { background:#eeeeee; border-color:#c8c8c8; }
#xopen-single-result .material-files { display:grid; gap:4px; margin:0; padding:0; list-style:none; }
#xopen-single-result .material-file { display:flex; align-items:center; gap:7px; min-width:0; padding:5px 7px; border:1px solid #e8e8e8; border-radius:6px; background:#fcfcfc; font-size:11px; }
#xopen-single-result .material-file .file-text { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1; }
#xopen-single-result .material-file button { min-height:22px; width:22px; padding:0; border:0; background:transparent; color:#7b7b7b; font-size:16px; }
#xopen-single-result .material-force { display:flex; align-items:flex-start; gap:7px; color:#606060; font-size:11px; line-height:1.5; }
#xopen-single-result .material-force input { accent-color:#202020; width:14px; height:14px; margin:1px 0 0; flex:none; }
#xopen-single-result .material-link-entry { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px; }
#xopen-single-result .material-url { min-height:34px; padding:6px 8px; }
#xopen-single-result .material-link-entry button { min-height:34px; color:#202020; }
#xopen-single-result .material-error { color:#444444; font-size:11px; }
#xopen-single-result .material-file-input { display:none; }
#xopen-single-result :is(.material-mode,.material-notes,.material-url,.add-group,.fold-toggle,.fold-close):focus-visible { outline:2px solid #555555; outline-offset:3px; }

#xopen-single-result .workspace.materials-enabled { position:relative; }
#xopen-single-result .workspace.materials-open {
  grid-template-columns:minmax(0,var(--materials-settings-width)) clamp(340px,28vw,460px) minmax(0,1fr);
}
#xopen-single-result .materials-shell { display:none; --ink:#202020; --green:#202020; --mint:#eeeeee; --well:#f6f6f6; --line:#e1e1e1; --sheet:#fff; color:#202020; }
#xopen-single-result .materials-open > .materials-shell { display:block; }
#xopen-single-result .materials-drawer [hidden] { display:none; }
#xopen-single-result .fold-toggle { --green:#202020; --mint:#eeeeee; --line:#d6d6d6; }
#xopen-single-result .materials-drawer .add-group:hover:not(:disabled) { background:#383838; border-color:#383838; color:#fff; }
@media(max-width:1100px) {
  #xopen-single-result .workspace.materials-open { grid-template-columns:minmax(0,3fr) minmax(0,7fr); }
  #xopen-single-result .materials-shell { position:absolute; top:0; left:var(--materials-toggle-left); width:min(400px,calc(100vw - var(--materials-toggle-left) - 60px)); z-index:10; }
  #xopen-single-result .materials-drawer { box-shadow:12px 8px 35px #00000026; }
}
@media(max-width:740px) {
  #xopen-single-result .workspace.materials-open { grid-template-columns:minmax(0,1fr); }
  #xopen-single-result .materials-shell { position:fixed; inset:12px 12px auto; width:auto; height:calc(100dvh - 24px); }
  #xopen-single-result .materials-drawer { height:100%; }
  #xopen-single-result .fold-toggle { left:auto; right:-10px; top:280px; transform:none; min-height:44px; }
  #xopen-single-result .fold-toggle:active { transform:translateY(1px); }
  #xopen-single-result .fold-close { right:-7px; min-height:44px; }
  #xopen-single-result .materials-heading { padding-right:24px; }
  #xopen-single-result .add-group { min-height:44px; min-width:44px; }
  #xopen-single-result .material-mode,
  #xopen-single-result .asset-methods button { min-height:40px; font-size:13px; }
}
@media(prefers-reduced-motion:reduce) {
  #xopen-single-result :is(.materials-drawer,.fold-toggle,.fold-close) { transition:none; }
}

#xopen-single-result .materials-heading { padding:20px; border-bottom:0; }
#xopen-single-result .materials-heading h2 { font-size:18px; font-weight:700; letter-spacing:-.2px; }
#xopen-single-result .material-groups { padding:0 20px 12px; gap:0; }
#xopen-single-result .material-group { border:0; border-top:1px solid #eaeaea; border-radius:0; background:#fff; }
#xopen-single-result .material-group-heading { padding:16px 0 12px; background:#fff; border-bottom:0; }
#xopen-single-result .material-group-heading h3 { font-size:15px; font-weight:650; }
#xopen-single-result .material-group-heading h3::before { display:none; }
#xopen-single-result .group-optional { color:#999; }
#xopen-single-result .material-group-body { gap:16px; padding:0 4px 16px 0; scrollbar-color:#d7d7d7 transparent; }
#xopen-single-result .material-field { gap:8px; }
#xopen-single-result .material-mode-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:3px; padding:4px; border-radius:11px; background:#f2f2f2; }
#xopen-single-result .material-mode-option { position:relative; min-width:0; cursor:pointer; }
#xopen-single-result .material-mode-option .material-mode { position:absolute; width:1px; height:1px; min-height:1px; min-width:1px; opacity:0; margin:0; padding:0; border:0; clip-path:inset(50%); }
#xopen-single-result .material-mode-option span { display:flex; align-items:center; justify-content:center; min-height:34px; border-radius:8px; font-size:11px; white-space:nowrap; color:#777; transition:background-color 140ms,color 140ms; }
#xopen-single-result .material-mode-option:hover span { background:#e9e9e9; color:#222; }
#xopen-single-result .material-mode:checked + span { background:#252525; color:#fff; box-shadow:0 2px 4px #00000010; }
#xopen-single-result .material-mode:focus-visible + span { outline:2px solid #666; outline-offset:2px; }
#xopen-single-result .asset-methods { display:block; }
#xopen-single-result .materials-drawer .upload-material { display:flex; align-items:center; justify-content:flex-start; gap:8px; width:100%; min-height:44px; padding:10px 12px; background:#f4f4f4; border:0; border-radius:10px; color:#555; font-size:12px; font-weight:500; }
#xopen-single-result .materials-drawer .upload-material span { font-size:20px; line-height:1; }
#xopen-single-result .materials-drawer .upload-material:hover { background:#ececec; color:#222; }
#xopen-single-result .materials-drawer .upload-material:focus-visible { outline:2px solid #666; outline-offset:3px; }
#xopen-single-result textarea.material-notes { padding:10px 12px; min-height:76px; height:76px; border:1px solid #ececec; border-radius:10px; background:#fafafa; color:#333; }
#xopen-single-result .material-notes::placeholder { color:#a0a0a0; }
#xopen-single-result .material-force { color:#858585; }
#xopen-single-result .material-file { border:0; border-radius:7px; background:#f8f8f8; }
@media(max-width:740px) {
  #xopen-single-result .material-mode-option span { min-height:40px; font-size:12px; }
}
@media(prefers-reduced-motion:reduce) {
  #xopen-single-result .material-mode-option span { transition:none; }
}

#xopen-single-result .material-mode-options { grid-template-columns:repeat(2,minmax(0,1fr)); }
#xopen-single-result .materials-drawer .upload-material { justify-content:center; min-height:52px; color:#b5b5b5; }
#xopen-single-result .material-upload-icon { display:block; width:25px; height:25px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
#xopen-single-result .materials-drawer .upload-material:hover { color:#919191; }

#xopen-single-result .material-mode-options { grid-template-columns:minmax(0,1fr); }
#xopen-single-result .material-mode-option span { gap:8px; }
#xopen-single-result .material-video-icon { width:19px; height:19px; fill:none; stroke:#b7b7b7; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

#xopen-single-result .upload-material .material-video-icon { width:27px; height:27px; }
#xopen-single-result .material-position-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
#xopen-single-result .material-position-option { position:relative; min-width:0; cursor:pointer; }
#xopen-single-result .material-position-option input { position:absolute; width:1px; height:1px; opacity:0; margin:0; clip-path:inset(50%); }
#xopen-single-result .material-position-option span { display:flex; align-items:center; justify-content:center; min-height:36px; border-radius:8px; background:#f1f1f1; color:#222; font-size:12px; transition:background-color 140ms,color 140ms; }
#xopen-single-result .material-position-option:hover span { background:#e7e7e7; }
#xopen-single-result .material-position-option input:checked + span { background:#252525; color:#fff; }
#xopen-single-result .material-position-option input:focus-visible + span { outline:2px solid #666; outline-offset:3px; }
@media(max-width:740px) { #xopen-single-result .material-position-option span { min-height:40px; } }
@media(prefers-reduced-motion:reduce) { #xopen-single-result .material-position-option span { transition:none; } }

#xopen-single-result .material-upload-field .asset-methods { position:relative; }
#xopen-single-result .materials-drawer .upload-material { position:relative; height:52px; max-height:52px; overflow:hidden; }
#xopen-single-result .selling-video-preview { position:absolute; inset:0; display:block; width:100%; height:100%; max-height:none; object-fit:cover; pointer-events:none; border-radius:inherit; }
#xopen-single-result .has-selling-video .material-video-icon { visibility:hidden; }
#xopen-single-result .materials-drawer .selling-remove-video { position:absolute; top:5px; right:5px; z-index:2; display:grid; place-items:center; width:24px; min-height:24px; padding:0; border:1px solid #ffffff80; border-radius:7px; background:#222e; color:#fff; font-size:18px; line-height:1; }
#xopen-single-result .materials-drawer .selling-remove-video:hover { background:#111; color:#fff; }
#xopen-single-result .materials-drawer .selling-remove-video[hidden],
#xopen-single-result .materials-drawer .selling-video-preview[hidden] { display:none; }
