.om-file-demo,.om-file-demo * { box-sizing:border-box; }
.om-file-demo { container:om-file-demo / inline-size; color:#18374e; isolation:isolate; }
.om-file-demo [hidden] { display:none!important; }
.om-file-stage {
  position:relative; aspect-ratio:3/2; overflow:hidden; border-radius:.8rem; isolation:isolate;
  background:#e9e2d7; touch-action:pan-y; user-select:none; -webkit-user-select:none;
}
.om-file-backdrop { position:absolute; inset:0; width:100%; height:100%; object-fit:fill; pointer-events:none; }
.om-file-windows-screen,.om-file-mac-screen { position:absolute; overflow:hidden; }
.om-file-windows-screen { left:4.49%; top:23.15%; width:44.65%; height:38.38%; }
.om-file-mac-screen { left:51.82%; top:23.24%; width:43.96%; height:36.72%; }
.om-file-explorer {
  position:absolute; inset:10% 6% 9%; display:grid; grid-template-rows:auto minmax(0,1fr); overflow:hidden;
  color:#132f47; background:#f5f8fc; border:1px solid #496785; border-radius:clamp(3px,.75cqw,8px);
  box-shadow:0 .4rem 1.3rem #00154fb0;
}
.om-file-explorer-title {
  display:flex; align-items:center; gap:.55em; background:#e8eff9; border-bottom:1px solid #bacddd;
  padding:.35em .6em; font:700 clamp(7px,1.5cqw,16px)/1.16 system-ui,sans-serif;
}
.om-file-folder-title { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.om-file-folder-icon {
  width:1.12em; height:.77em; flex-shrink:0; position:relative; border-radius:.11em;
  background:#e4aa25; border:1px solid #876210;
}
.om-file-folder-icon::before{content:"";position:absolute;left:.06em;top:-.21em;width:.47em;height:.24em;border-radius:.08em;background:#e4aa25;}
.om-file-file-grid {
  min-height:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-content:start; gap:.06em;
  padding:clamp(2px,.7cqw,9px); cursor:default; color:#173348; touch-action:none;
}
.om-file-source {
  width:100%; min-width:0; min-height:0; display:grid; justify-items:center; align-content:start; gap:.23em;
  border:1px solid transparent; border-radius:.28em; padding:.29em .12em .24em; appearance:none; background:transparent;
  color:inherit; cursor:grab; font:680 clamp(6px,1.28cqw,14px)/1.13 system-ui,sans-serif; touch-action:none;
}
.om-file-source:hover { background:#dceeff; }
.om-file-source[aria-pressed="true"] { background:#bee2ff; border-color:#2780be; }
.om-file-icon {
  display:grid; align-items:end; justify-items:center; width:2.02em; height:2.45em;
  padding-bottom:.25em; border:1px solid #45657b; border-radius:.24em; background:#fff;
  color:#163957; box-shadow:0 .12em .25em #15394a45; font-size:1.13em; font-weight:900;
  letter-spacing:-.05em; position:relative; line-height:1;
}
.om-file-icon::before {
  content:""; position:absolute; top:.24em; width:65%; height:.75em; border-radius:.12em;
  background:linear-gradient(135deg,#58a3e2,#8b64b8);
}
.om-file-icon-pdf::before { background:linear-gradient(135deg,#ff966e,#c53a59); }
.om-file-icon-text::before { background:repeating-linear-gradient(#5792b8 0 1px,#e4f1fa 1px 3px); }
.om-file-filename { max-width:100%; min-width:0; overflow-wrap:anywhere; text-align:center; }
.om-file-target-over {
  box-shadow:inset 0 0 0 2px #b8ffdfba; outline:2px solid #b8ffdfba; outline-offset:-2px;
}
.om-file-menu-bar {
  position:absolute; z-index:2; top:0; left:0; right:0; text-align:left; padding:.28em .65em; pointer-events:none;
  color:#08263e; background:#d6f6f2cb; font:750 clamp(7px,1.1cqw,15px)/1.15 system-ui,sans-serif;
}
.om-file-received { position:absolute; inset:0; touch-action:none; cursor:default; }
.om-file-received-file {
  position:absolute; width:23%; transform:translate(-50%,-32%); color:#fff;
  font:750 clamp(6px,1.22cqw,14px)/1.12 system-ui,sans-serif;
  text-shadow:0 1px 2px #00101f,0 1px 4px #00101f; background:#142c436b;
}
.om-file-received-file:hover,.om-file-received-file[aria-pressed="true"] {background:#164563;border-color:#a1e8dc;}
.om-file-actions {display:flex;flex-wrap:wrap;gap:.45rem;margin:.55rem 0 0;}
.om-file-action {border:1px solid #8bafb8;border-radius:.55rem;padding:.38rem .65rem;min-height:44px;color:#173348;background:#f0f7fa;font:650 .84rem/1.3 system-ui,sans-serif;}
.om-file-action:enabled {cursor:pointer;}
.om-file-action:enabled:hover {background:#dceeff;}
.om-file-action:disabled {opacity:.65;}
.om-file-action:focus-visible {outline:2px solid #00588b;outline-offset:2px;}
.om-file-received-file .om-file-icon { text-shadow:none; }
.om-file-stage :focus-visible { outline:2px solid #e9fff9; outline-offset:-3px; }
.om-file-stage .om-file-source:focus-visible { outline-color:#00588b; outline-offset:-1px; }
.om-file-marquee {
  position:absolute; z-index:2; border:1px solid #207bc4; background:#55b7ff41; pointer-events:none;
}
.om-file-ghost {
  position:absolute; z-index:3; display:flex; gap:.3em; align-items:center; transform:translate(.54em,.5em);
  color:#173348; font:750 clamp(9px,1.65cqw,16px)/1 system-ui,sans-serif; pointer-events:none;
}
.om-file-ghost-label { border:1px solid #2d6499; border-radius:.28em; background:#e1f4ff; padding:.2em; }
.om-file-hint { color:#3c586d; font-size:.87rem; margin:.5rem 0 0; }
.om-file-status { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.om-file-photo-missing { background:linear-gradient(150deg,#eae2d8,#d3b89c); }
.om-file-photo-missing .om-file-backdrop { display:none; }
.om-file-photo-missing .om-file-windows-screen { background:linear-gradient(120deg,#052e65,#2076c6); }
.om-file-photo-missing .om-file-mac-screen { background:linear-gradient(20deg,#00376e,#30988d); }
.om-file-photo-missing :is(.om-file-windows-screen,.om-file-mac-screen) { border:2px solid #304660; border-radius:5px; }
.om-file-cursor {
  position:absolute; z-index:4; width:24px; height:28px; pointer-events:none;
  filter:drop-shadow(0 2px 2px #06203986);
}
.om-file-cursor svg{display:block;width:100%;height:100%;overflow:visible;}
