/* OOMN Documents Library — front-end styles (identical to the original page code). */

.oomn-layout{
  --text:#0f172a;
  --muted:#64748b;
  --border:#e2e8f0;
  --card:#ffffff;
  --shadow:0 10px 25px rgba(15,23,42,.08);
  --radius:16px;
  --primary:#111827;
  --primaryText:#ffffff;
  --soft:#f8fafc;

  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  display:grid;
  grid-template-columns:280px 1fr;
  gap:22px;
  align-items:start;
  width:100%;
}

.oomn-sidebar{ display:none; }
@media (min-width:1024px){
  .oomn-sidebar{ display:block; }
}

.oomn-sidebar__inner{
  position:sticky;
  top:18px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fff;
  box-shadow:0 1px 0 rgba(15,23,42,.04);
  padding:14px;
}
.oomn-sidebar__title{
  font-weight:700;
  margin:2px 0 10px;
  font-size:14px;
  letter-spacing:.2px;
}
.oomn-sidebar__nav{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.oomn-side-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid var(--border);
  text-decoration:none;
  color:var(--primary);
  background:#fff;
  font-size:13.5px;
}
.oomn-side-link:hover{ filter:brightness(.98); }
.oomn-side-link.is-active{
  background:var(--primary);
  color:var(--primaryText);
  border-color:rgba(17,24,39,.25);
}
.oomn-side-count{
  font-size:12px;
  opacity:.85;
}

.oomn-main{ min-width:0; }

.oomn-library__header{
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  margin:8px 0 18px;
}
.oomn-library__title{
  margin:0;
  font-size:clamp(20px,2.2vw,28px);
  line-height:1.2;
}
.oomn-library__search{
  min-width:260px;
  flex:1 1 320px;
  display:flex;
  justify-content:flex-end;
}
.oomn-library__search input{
  width:min(520px,100%);
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:999px;
  outline:none;
  background:#fff;
}
.oomn-library__search input:focus{
  box-shadow:0 0 0 3px rgba(17,24,39,.12);
  border-color:rgba(17,24,39,.35);
}

.oomn-category{
  margin:18px 0 28px;
  scroll-margin-top:18px;
}
.oomn-category__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
  flex-wrap:wrap;
}
.oomn-category__title{
  margin:0;
  font-size:18px;
  letter-spacing:.2px;
}
.oomn-category__count{
  color:var(--muted);
  font-size:13px;
  white-space:nowrap;
}
.oomn-category__desc{
  margin:6px 0 0;
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
  max-width:980px;
}

.oomn-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.oomn-card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--card);
  box-shadow:0 1px 0 rgba(15,23,42,.04);
  overflow:hidden;
  width:100%;
}
.oomn-card__top{
  padding:14px 14px 10px;
}
.oomn-card__title{
  margin:0;
  font-size:15px;
  line-height:1.35;
  font-weight:600;
}
.oomn-card__description{
  margin:8px 0 0;
  font-size:13.5px;
  line-height:1.5;
  color:var(--muted);
}
.oomn-card__meta{
  margin-top:10px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  color:var(--muted);
  font-size:12.5px;
}
.oomn-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#fff;
  color:var(--muted);
  font-size:12px;
  white-space:nowrap;
}

.oomn-card__actions{
  padding:0 14px 14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.oomn-select-wrap{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.oomn-label{
  font-size:12.5px;
  color:var(--muted);
}
.oomn-select{
  min-width:130px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  color:var(--text);
  font-size:13.5px;
  outline:none;
}
.oomn-select:focus{
  box-shadow:0 0 0 3px rgba(17,24,39,.12);
  border-color:rgba(17,24,39,.35);
}

.oomn-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--primary);
  text-decoration:none;
  font-size:13.5px;
  line-height:1;
  cursor:pointer;
  user-select:none;
}
.oomn-btn:hover{ filter:brightness(.98); }
.oomn-btn--primary{
  background:var(--primary);
  color:var(--primaryText);
  border-color:rgba(17,24,39,.25);
}
.oomn-btn--icon{
  width:42px;
  height:42px;
  padding:0;
  border-radius:12px;
}
.oomn-btn[disabled],
.oomn-btn.is-disabled{
  opacity:.5;
  pointer-events:none;
}

.oomn-card__footer{
  padding:10px 14px 12px;
  border-top:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:var(--muted);
  font-size:12.5px;
  background:#fcfcfd;
  flex-wrap:wrap;
}
.oomn-size{
  display:flex;
  align-items:center;
  gap:8px;
}
.oomn-size__dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:#cbd5e1;
}

.oomn-category.is-empty{ display:none; }

.oomn-modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:9999;
}
.oomn-modal.is-open{ display:block; }
.oomn-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.55);
  backdrop-filter:blur(3px);
}
.oomn-modal__panel{
  position:absolute;
  inset:4vh 4vw;
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  border:1px solid rgba(226,232,240,.8);
}
@media (min-width:1024px){
  .oomn-modal__panel{ inset:5vh 10vw; }
}
.oomn-modal__topbar{
  padding:12px 14px;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:#fcfcfd;
}
.oomn-modal__name{
  font-weight:700;
  font-size:14px;
  line-height:1.2;
}
.oomn-modal__sub{
  margin-top:3px;
  color:var(--muted);
  font-size:12.5px;
}
.oomn-modal__content{
  flex:1 1 auto;
  min-height:0;
  background:#0b1220;
}
.oomn-modal__frame{
  width:100%;
  height:100%;
  border:0;
  background:#0b1220;
}
.oomn-modal__footer{
  padding:12px 14px;
  border-top:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  background:#fff;
}
.oomn-modal__hint{
  color:var(--muted);
  font-size:12.5px;
  margin-left:auto;
}

@media (max-width:1023px){
  .oomn-layout{
    grid-template-columns:1fr;
  }
}
