/* docs.css — docs page only (DOES NOT style global header/buttons) */

/* Field / search */
.field{ display:block; margin:10px 0 14px; }
.label{
  display:block;
  font-size:12px;
  color:#5f6b7a;
  margin-bottom:6px;
}
.input{
  width:100%;
  border:1px solid #e6e9ee;
  border-radius:12px;
  padding:12px;
  font-size:15px;
  outline:none;
}
.input:focus{
  border-color:#1f6fd6;
  box-shadow:0 0 0 3px rgba(31,111,214,0.12);
}

/* Sections */
.section{ margin-top:12px; }
.section-title{
  font-size:12px;
  color:#5f6b7a;
  margin-bottom:8px;
  text-transform:uppercase;
  letter-spacing:0.08em;
}
.meta{
  font-size:12px;
  color:#8a94a6;
  margin:6px 0 10px;
}

/* Breadcrumbs */
.crumbs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin: 6px 0 10px;
}
.crumb{
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  border-radius:999px;
  padding:8px 10px;
  font-size:13px;
  font-weight:650;
  cursor:pointer;
}
.crumb:active{ transform: translateY(1px); }

/* Folder tiles (single column) */
.folder-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}

.folder-tile{
  width:100%;
  text-align:left;
  border:1px solid #e6e9ee;
  background:#ffffff;
  border-radius:14px;
  padding:12px;
  cursor:pointer;
  display:flex;
  gap:12px;
  align-items:center;
}
.folder-tile:active{ transform: translateY(1px); }

.folder-ico{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #f3f5f8;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 22px;
  line-height: 1;
}

.folder-title{
  font-weight:750;
  font-size:14px;
  color:#1f2937;
  line-height:1.2;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.folder-sub{
  margin-top:3px;
  font-size:12px;
  color:#5f6b7a;
  line-height:1.2;
}

/* Files list */
.list{ display:grid; gap:10px; }

/* ✅ GRID ROW: never lets right-side action spill outside */
.item{
  width:100%;
  text-align:left;
  border:1px solid #e6e9ee;
  background:#ffffff;
  border-radius:14px;
  padding:12px;
  cursor:pointer;

  display:grid;
  grid-template-columns: 1fr auto; /* left grows, right stays inside */
  align-items:center;
  gap:12px;

  overflow:hidden; /* hard safety: nothing can render outside the rounded card */
}
.item:active{ transform: translateY(1px); }

.item-left{
  display:flex;
  align-items:flex-start;
  gap:10px;
  min-width: 0;  /* required for ellipsis to work inside grid cell */
}

.icon{
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #f3f5f8;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 auto;
}

.item-text{ min-width: 0; }

.item-title{
  font-weight:750;
  font-size:14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.item-sub{
  margin-top:3px;
  font-size:13px;
  color:#5f6b7a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.item-action{
  font-size:12px;
  font-weight:750;
  color:#1f6fd6;
  white-space:nowrap;
  justify-self:end;  /* stick to the right edge inside the card */
}

/* Infinite scroll sentinel */
.sentinel{ height: 1px; }
