.fr-page {
  --fr-blue: #0757d8;
  --fr-blue-dark: #073a9f;
  --fr-line: #dbe4f1;
  --fr-muted: #53627c;
  --fr-text: #061536;
  --fr-soft: #f4f8ff;
  --fr-card: #ffffff;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 22px 28px;
  color: var(--fr-text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.fr-page * {
  box-sizing: border-box;
}

.fr-sidebar,
.fr-rightbar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fr-panel,
.fr-table-panel,
.fr-folder-card {
  background: var(--fr-card);
  border: 1px solid var(--fr-line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(13, 53, 112, 0.08);
}

.fr-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  background: linear-gradient(135deg, var(--fr-blue), #0046b8);
  border-radius: 8px 8px 0 0;
}

.fr-menu-mark,
.fr-menu-mark::before,
.fr-menu-mark::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  content: "";
}

.fr-menu-mark::before {
  transform: translateY(-6px);
}

.fr-menu-mark::after {
  transform: translateY(4px);
}

.fr-menu-list {
  display: flex;
  flex-direction: column;
}

.fr-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 10px 16px;
  color: #081942;
  text-decoration: none;
  border-bottom: 1px solid #eef3fb;
}

.fr-menu-item.is-active {
  color: #004ed0;
  font-weight: 700;
  background: #eaf2ff;
}

.fr-menu-icon,
.fr-folder-art {
  display: inline-block;
  position: relative;
  width: 24px;
  height: 18px;
  flex: 0 0 auto;
  background: #ffc439;
  border: 1px solid #f0a600;
  border-radius: 3px;
}

.fr-menu-icon::before,
.fr-folder-art::before {
  position: absolute;
  top: -5px;
  left: 2px;
  width: 11px;
  height: 6px;
  background: #ffd768;
  border: 1px solid #f0a600;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  content: "";
}

.fr-box-title {
  padding: 14px 20px;
  color: #004ed0;
  font-weight: 800;
  background: linear-gradient(180deg, #edf5ff, #fff);
  border-bottom: 1px solid var(--fr-line);
  border-radius: 8px 8px 0 0;
}

.fr-stat-list {
  margin: 0;
  padding: 8px 20px 16px;
}

.fr-stat-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}

.fr-stat-list dt {
  color: #17254b;
  font-weight: 500;
}

.fr-stat-list dd {
  margin: 0;
  color: #061d54;
  font-weight: 700;
}

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

.fr-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--fr-muted);
  font-size: 14px;
}

.fr-breadcrumbs a {
  color: #004ecb;
  text-decoration: none;
}

.fr-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--fr-line);
}

.fr-title-cluster {
  display: flex;
  gap: 22px;
  align-items: center;
}

.fr-repo-avatar {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  background: #e5f0ff;
}

.fr-repo-avatar span {
  display: block;
  width: 48px;
  height: 36px;
  background: #ffc439;
  border: 2px solid #f0a600;
  border-radius: 5px;
  box-shadow: 0 10px 0 #0b63ee;
}

.fr-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: 0;
}

.fr-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--fr-muted);
  font-size: 16px;
}

.fr-actions,
.fr-view-toggle,
.fr-row-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.fr-button,
.fr-view-toggle button,
.fr-icon-button,
.fr-action-button {
  min-height: 40px;
  color: #082154;
  background: #fff;
  border: 1px solid #bcd0eb;
  border-radius: 6px;
  cursor: pointer;
}

.fr-button {
  padding: 0 18px;
  font-weight: 700;
}

.fr-view-toggle {
  justify-content: flex-end;
  margin: 22px 0;
}

.fr-view-toggle button {
  padding: 0 20px;
  font-weight: 800;
}

.fr-view-toggle button.is-active {
  color: #fff;
  background: var(--fr-blue);
  border-color: var(--fr-blue);
}

.fr-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 20px;
}

.fr-content {
  min-width: 0;
}

.fr-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 230px 52px;
  gap: 12px;
  margin-bottom: 22px;
}

.fr-toolbar input,
.fr-toolbar select {
  min-height: 44px;
  width: 100%;
  padding: 0 16px;
  color: #17254b;
  background: #fff;
  border: 1px solid #cbd8ec;
  border-radius: 6px;
}

.fr-icon-button {
  position: relative;
  width: 52px;
}

.fr-icon-button::before {
  position: absolute;
  inset: 12px;
  border: 3px solid var(--fr-blue);
  border-left-color: transparent;
  border-radius: 50%;
  content: "";
}

.fr-back-link {
  display: inline-block;
  margin: 0 0 16px;
  color: #004ed0;
  font-weight: 700;
  text-decoration: none;
}

.fr-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.fr-folder-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 34px;
  gap: 16px;
  min-height: 92px;
  align-items: center;
  padding: 18px 20px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.fr-folder-card:hover,
.fr-folder-card:focus-visible {
  border-color: #8db7f4;
  box-shadow: 0 14px 30px rgba(13, 53, 112, 0.14);
  transform: translateY(-1px);
  outline: 0;
}

.fr-folder-art {
  width: 48px;
  height: 36px;
}

.fr-folder-copy {
  display: block;
  min-width: 0;
}

.fr-folder-name {
  display: block;
  color: #061536;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.28;
  overflow-wrap: break-word;
  word-break: normal;
}

.fr-folder-meta {
  display: block;
  margin-top: 8px;
  color: #004ed0;
  font-size: 14px;
  font-weight: 700;
}

.fr-chevron {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: #edf5ff;
  border: 1px solid #c9daf5;
  border-radius: 50%;
}

.fr-chevron::before {
  color: #0b4dbd;
  font-size: 22px;
  line-height: 1;
  content: ">";
}

.fr-table-panel {
  overflow: hidden;
}

.fr-table-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--fr-line);
}

.fr-table-header h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.fr-table-header span {
  color: var(--fr-muted);
  font-size: 14px;
}

.fr-table-wrap {
  overflow-x: auto;
}

.fr-file-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.fr-file-table th,
.fr-file-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #eef2f8;
  text-align: left;
  vertical-align: middle;
}

.fr-file-table th {
  color: #101d3d;
  font-weight: 800;
  background: #edf5ff;
}

.fr-file-name {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 650;
}

.fr-file-name a {
  color: #004cae;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.fr-file-name a:hover,
.fr-file-name a:focus-visible {
  color: #00317a;
  text-decoration: underline;
}

.fr-file-icon {
  display: inline-grid;
  width: 28px;
  height: 30px;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: #165fe3;
  border-radius: 5px;
}

.fr-file-icon--pdf {
  background: #e72727;
}

.fr-file-icon--doc,
.fr-file-icon--docx {
  background: #2b6eea;
}

.fr-file-icon--xls,
.fr-file-icon--xlsx,
.fr-file-icon--csv {
  background: #12945d;
}

.fr-file-icon--ppt,
.fr-file-icon--pptx {
  background: #ee7a28;
}

.fr-file-icon--png,
.fr-file-icon--jpg,
.fr-file-icon--jpeg,
.fr-file-icon--gif,
.fr-file-icon--webp {
  background: #66a847;
}

.fr-badge {
  display: inline-block;
  min-width: 54px;
  padding: 6px 10px;
  color: #0143a6;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  background: #e7f0ff;
  border-radius: 6px;
}

.fr-badge--pdf {
  color: #bf1d1d;
  background: #ffe8ea;
}

.fr-badge--xls,
.fr-badge--xlsx,
.fr-badge--csv {
  color: #047244;
  background: #dff7eb;
}

.fr-action-button {
  position: relative;
  display: inline-grid;
  width: 44px;
  min-height: 34px;
  place-items: center;
  border-color: #0b63ee;
}

.fr-action-button i {
  color: var(--fr-blue);
  font-size: 16px;
  line-height: 1;
}

.fr-entry-count,
.fr-empty {
  margin: 0;
  padding: 16px 20px;
  color: var(--fr-muted);
}

.fr-type-list {
  display: flex;
  flex-direction: column;
  padding: 8px 14px 14px;
}

.fr-type-list button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 38px;
  padding: 8px 6px;
  color: #061536;
  font: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.fr-type-list button:hover,
.fr-type-list button.is-active {
  color: var(--fr-blue);
}

.fr-type-list strong {
  color: #17346d;
}

.fr-recent-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 16px 18px 20px;
  list-style: none;
}

.fr-recent-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.fr-recent-list a {
  color: #061536;
  font-weight: 700;
  text-decoration: none;
}

.fr-recent-list small {
  display: block;
  margin-top: 3px;
  color: var(--fr-muted);
}

.fr-note {
  margin: 24px -28px -22px;
  padding: 16px 28px;
  color: #1d315d;
  background: #eaf3ff;
}

.fr-page.is-list .fr-card-grid {
  display: none;
}

.fr-page:not(.is-list) .fr-table-panel {
  display: block;
}

.fr-page .is-hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .fr-page {
    grid-template-columns: 1fr;
  }

  .fr-workspace {
    grid-template-columns: 1fr;
  }

  .fr-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .fr-page {
    padding: 16px;
  }

  .fr-hero,
  .fr-table-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .fr-toolbar {
    grid-template-columns: 1fr;
  }

  .fr-card-grid {
    grid-template-columns: 1fr;
  }

  .fr-note {
    margin: 20px -16px -16px;
    padding: 14px 16px;
  }
}

.fr-gallery-panel {
  margin: 0 0 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--fr-line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(13, 53, 112, 0.08);
}

.fr-gallery-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  background: #edf5ff;
  border-bottom: 1px solid var(--fr-line);
}

.fr-gallery-header h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.fr-gallery-header span {
  color: var(--fr-muted);
  font-size: 14px;
}

.fr-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  padding: 18px;
}

.fr-image-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  color: #061536;
  background: #fff;
  border: 1px solid #d7e2f3;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(13, 53, 112, 0.07);
}

.fr-image-card:hover,
.fr-image-card:focus-visible {
  border-color: #0b63ee;
  outline: 0;
}

.fr-image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #edf5ff;
  border-radius: 6px;
}

.fr-image-card span {
  overflow: hidden;
  color: #004cae;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fr-lightbox[hidden] {
  display: none;
}

.fr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(1, 10, 31, 0.82);
}

.fr-lightbox figure {
  position: relative;
  max-width: min(1100px, 92vw);
  max-height: 90vh;
  margin: 0;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.fr-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 6px;
}

.fr-lightbox figcaption {
  margin-top: 12px;
  color: #061536;
  font-weight: 800;
  text-align: center;
}

.fr-lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  cursor: pointer;
}

@media (max-width: 760px) {
  .fr-gallery-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .fr-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
  }
}
