.file-browser {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 24px 28px;
  box-sizing: border-box;
  color: #dce8f5;
}
.fb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-shrink: 0;
}
.fb-header h1 {
  font-size: 29px;
  margin: 6px 0 8px;
  font-weight: 650;
  letter-spacing: -0.7px;
}
.fb-header h1 span {
  color: #74f4e1;
}
.fb-header p {
  margin: 0;
  color: #899bb4;
  font-size: 13px;
}
.fb-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.fb-header-actions button {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fb-connection {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #8498ad;
}
.fb-connection > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6c7383;
}
.fb-connection.connected > span {
  background: #72e3c5;
  box-shadow: 0 0 10px #72e3c530;
}
.fb-shell {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 20px;
  flex: 1;
  min-height: 0;
}
.fb-places {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 9px 0;
}
.fb-places > small {
  color: #75859c;
  font-size: 10px;
  letter-spacing: 1.5px;
  margin: 0 12px 12px;
}
.fb-places > button {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  padding: 11px 12px;
  color: #98abc3;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  min-width: 0;
}
.fb-places > button.active {
  background: #14303465;
  border-color: #3a7c7859;
  color: #9af5e2;
}
.fb-places > button:hover {
  background: #172439;
}
.fb-places > button:disabled {
  opacity: 0.4;
  cursor: default;
}
.fb-places > button .ui-icon:last-child {
  margin-left: auto;
}
.fb-place-note {
  display: flex;
  gap: 8px;
  margin: 24px 10px;
  color: #768a9d;
  font-size: 11px;
  line-height: 1.8;
}
.fb-place-note .ui-icon {
  flex-shrink: 0;
  margin-top: 3px;
}
.fb-place-note p {
  margin: 0;
}
.fb-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  min-width: 0;
  min-height: 0;
}
.fb-main.has-detail {
  grid-template-columns: minmax(0, 1fr) 322px;
}
.fb-directory {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: #0d1421aa;
  border: 1px solid #263346;
  border-radius: 16px;
  padding: 18px 20px;
  box-sizing: border-box;
}
.fb-location {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.fb-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  min-width: 0;
}
.fb-breadcrumbs > span {
  display: flex;
  gap: 2px;
  align-items: center;
  min-width: 0;
}
.fb-breadcrumbs button {
  padding: 5px 6px;
  background: transparent;
  color: #92b6cc;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.fb-breadcrumbs button:disabled {
  color: #e2edf7;
  cursor: default;
}
.fb-icon-button {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 0;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  background: transparent;
  color: #8fa6ba;
  cursor: pointer;
}
.fb-icon-button:hover {
  background: #233047;
  color: #bdf7ee;
}
.fb-search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #2c4057;
  border-radius: 10px;
  background: #0a101d;
  padding: 6px 8px 6px 12px;
  margin: 0 0 15px;
  color: #688aa4;
}
.fb-search input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #e0eef8;
  font: inherit;
  font-size: 13px;
  width: 100%;
  min-width: 0;
  outline: 0 !important;
  padding: 5px 0;
}
.fb-search button {
  border: 0;
  background: #1c2b40;
  color: #bfd8e8;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.fb-search .fb-clear {
  background: transparent;
  padding: 4px;
  font-size: 19px;
}
.fb-directory-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: #7c90a5;
  margin: 14px 1px 12px;
}
.fb-directory-caption span:last-child {
  color: #62788c;
}
.fb-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fb-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 12px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #cfdceb;
  cursor: pointer;
  min-width: 0;
  box-sizing: border-box;
}
.fb-item:hover {
  background: #172439;
  border-color: #2a3d55;
}
.fb-item.selected {
  background: #152c34;
  border-color: #427f80;
}
.fb-item-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fb-item strong {
  font-size: 14px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.fb-item small {
  font-size: 11px;
  color: #7f94ac;
  line-height: 1.6;
}
.fb-item-end {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #60829b;
  flex-shrink: 0;
}
.fb-item.selected .fb-item-end {
  color: #91e7d8;
}
.fb-index {
  font-size: 10px;
  padding: 4px 7px;
  border-radius: 5px;
  color: #8297ad;
  background: #203044;
}
.fb-index.searchable {
  color: #95d9c8;
  background: #173733;
}
.fb-glyph {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
  background: #1a2940;
  color: #a5bada;
}
.fb-glyph.folder {
  background: #213448;
  color: #9bbddd;
}
.fb-glyph.image {
  background: #29253e;
  color: #bfb4e9;
}
.fb-glyph.document {
  background: #153340;
  color: #88cdd8;
}
.fb-more {
  display: block;
  margin: 18px auto 6px;
  color: #9fc9d9;
  background: #15263a;
  border: 1px solid #2a475d;
  border-radius: 9px;
  padding: 9px 18px;
  font-size: 12px;
  cursor: pointer;
}
.fb-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid #202c3d;
  font-size: 10px;
  color: #60758c;
  overflow-wrap: anywhere;
}
.fb-footer span {
  margin-left: auto;
}
.fb-empty {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 55px 15px;
  gap: 10px;
  color: #5d7c97;
}
.fb-empty h2 {
  font-size: 17px;
  margin: 8px 0 0;
  color: #b9cbdc;
  font-weight: 500;
}
.fb-empty p {
  font-size: 12px;
  line-height: 1.9;
  color: #7f93a9;
  max-width: 330px;
  margin: 3px 0 12px;
}
.fb-empty button {
  border: 1px solid #345366;
  border-radius: 9px;
  background: #142b3d;
  color: #b6e5e9;
  padding: 9px 16px;
  cursor: pointer;
  font-size: 12px;
}
.fb-error {
  font-size: 12px;
  color: #ffaeb9;
  border: 1px solid #673746;
  background: #2b1725;
  border-radius: 9px;
  padding: 12px;
  margin: 15px 0;
}
.fb-error button {
  border: 0;
  background: transparent;
  color: #b7d3e9;
  margin-left: 10px;
  text-decoration: underline;
  cursor: pointer;
}
.fb-loading {
  padding: 35px;
  text-align: center;
  color: #869eb5;
  font-size: 13px;
}
.fb-detail {
  overflow: auto;
  min-height: 0;
  min-width: 0;
  padding: 18px 20px;
  background: #101a29;
  border: 1px solid #2b3d53;
  border-radius: 16px;
  box-sizing: border-box;
}
.fb-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #7b91a7;
  margin-bottom: 18px;
}
.fb-detail h2 {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 550;
  margin: 18px 0 8px;
  overflow-wrap: anywhere;
}
.fb-detail-path {
  color: #7791aa;
  font-size: 11px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  margin: 0 0 18px;
}
.fb-protected {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #162e30;
  color: #9fd9c9;
  font-size: 11px;
  border-radius: 8px;
  padding: 10px;
  margin: 15px 0;
}
.fb-detail dl {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.fb-detail dl > div {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 12px;
}
.fb-detail dt {
  color: #748ba4;
  flex-shrink: 0;
}
.fb-detail dd {
  margin: 0;
  color: #b1c5d8;
  text-align: right;
  overflow-wrap: anywhere;
  min-width: 0;
}
.fb-export {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  color: #819ab1;
  margin-bottom: 20px;
}
.fb-export select {
  padding: 8px;
  background: #15243a;
  border: 1px solid #304963;
  border-radius: 8px;
  color: #c8dfec;
  min-width: 0;
}
.fb-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fb-detail-actions button,
.fb-detail-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #2c4960;
  background: #16293b;
  color: #afcddd;
  padding: 11px 10px;
  border-radius: 9px;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}
.fb-detail-actions .primary {
  background: #65e7d1;
  color: #092a29;
  border-color: #65e7d1;
  font-weight: 600;
}
.fb-detail-actions button:disabled {
  opacity: 0.45;
  cursor: default;
}
.fb-detail-note {
  font-size: 11px;
  color: #6f89a0;
  line-height: 1.9;
  margin-top: 22px;
}
.fb-detail-back {
  display: none;
}
@media (max-width: 1100px) {
  .file-browser {
    padding: 22px 18px;
  }
  .fb-shell {
    grid-template-columns: 134px minmax(0, 1fr);
    gap: 13px;
  }
  .fb-main.has-detail {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 13px;
  }
  .fb-directory {
    padding: 15px;
  }
  .fb-item {
    gap: 10px;
    padding: 13px 8px;
  }
  .fb-index {
    display: none;
  }
}
@media (max-width: 760px) {
  .file-browser {
    padding: 18px 12px 12px;
  }
  .fb-header {
    display: block;
    margin-bottom: 18px;
  }
  .fb-header h1 {
    font-size: 25px;
  }
  .fb-header-actions {
    margin-top: 16px;
    justify-content: space-between;
    gap: 10px;
  }
  .fb-header-actions button {
    font-size: 12px;
    padding: 9px 12px;
  }
  .fb-shell {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .fb-places {
    display: flex;
    flex-direction: row;
    gap: 6px;
    padding: 0;
    flex-shrink: 0;
    overflow: auto;
  }
  .fb-places > small,
  .fb-place-note {
    display: none;
  }
  .fb-places > button {
    white-space: nowrap;
    flex: 1;
    justify-content: center;
    font-size: 12px;
    padding: 9px 7px;
    gap: 6px;
    background: #111d2d;
    border-color: #273b51;
  }
  .fb-places > button > .ui-icon:last-child {
    margin-left: 0;
  }
  .fb-places > button > .ui-icon:first-child {
    display: none;
  }
  .fb-main {
    flex: 1;
    min-height: 0;
  }
  .fb-main.has-detail {
    grid-template-columns: minmax(0, 1fr);
  }
  .fb-main.has-detail .fb-directory {
    display: none;
  }
  .fb-directory {
    padding: 14px 12px;
  }
  .fb-item {
    gap: 9px;
    padding: 13px 5px;
  }
  .fb-item strong {
    font-size: 13px;
  }
  .fb-item small {
    font-size: 10px;
  }
  .fb-glyph {
    width: 35px;
    height: 39px;
    border-radius: 8px;
  }
  .fb-search {
    gap: 7px;
    padding-left: 9px;
  }
  .fb-search input {
    font-size: 12px;
  }
  .fb-search button {
    padding: 6px 8px;
  }
  .fb-directory-caption {
    font-size: 10px;
  }
  .fb-footer span {
    margin-left: 0;
    flex-basis: 100%;
  }
  .fb-detail {
    padding: 16px;
  }
  .fb-detail-back {
    display: inline;
  }
  .fb-detail-header .fb-icon-button {
    display: flex;
    gap: 4px;
    width: auto;
    font-size: 12px;
  }
  .fb-empty {
    padding: 35px 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .file-browser * {
    scroll-behavior: auto !important;
    animation: none !important;
  }
}
