#fileLibraryView {
  --explorer-ink: #17252f;
  --explorer-muted: #60717d;
  --explorer-border: #c8d2d8;
  --explorer-border-strong: #aebdc6;
  --explorer-surface: #f7f9fa;
  --explorer-panel: #ffffff;
  --explorer-hover: #eef4f7;
  --explorer-selected: #dcebf5;
  --explorer-blue: #176a9a;
  --explorer-blue-dark: #0f4f75;
  color: var(--explorer-ink);
}

#fileLibraryView .file-explorer {
  overflow: hidden;
  width: 100%;
  min-height: 620px;
  border: 1px solid var(--explorer-border-strong);
  border-radius: 8px;
  background: var(--explorer-panel);
  box-shadow: 0 12px 30px rgba(24, 46, 58, 0.1);
}

#fileLibraryView .file-explorer-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 92px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--explorer-border);
  background: linear-gradient(180deg, #f9fbfc, #edf2f4);
}

#fileLibraryView .file-explorer-titlebar h2,
#fileLibraryView .file-explorer-titlebar p {
  margin: 0;
}

#fileLibraryView .file-explorer-titlebar h2 {
  color: var(--explorer-ink);
  font-size: 28px;
  line-height: 1.1;
}

#fileLibraryView .file-explorer-titlebar .eyebrow {
  margin-bottom: 4px;
  color: var(--explorer-blue);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

#fileLibraryView .file-explorer-titlebar h2 + p {
  margin-top: 5px;
  color: var(--explorer-muted);
  font-size: 14px;
}

#fileLibraryView .file-explorer-live-state {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid #a9c9b5;
  border-radius: 999px;
  background: #edf8f0;
  color: #285e3a;
  font-size: 12px;
  font-weight: 750;
}

#fileLibraryView .file-explorer-toolbar {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) minmax(220px, 330px);
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--explorer-border);
  background: #fff;
}

#fileLibraryView .file-explorer-nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

#fileLibraryView .explorer-toolbar-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  box-shadow: none;
  color: #304654;
  font-family: Arial, sans-serif;
  font-size: 19px;
  line-height: 1;
}

#fileLibraryView .explorer-toolbar-icon:hover:not(:disabled) {
  border-color: var(--explorer-border);
  background: var(--explorer-hover);
}

#fileLibraryView .explorer-toolbar-icon:disabled {
  opacity: 0.35;
  cursor: default;
}

#fileLibraryView .file-explorer-breadcrumbs {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 36px;
  overflow-x: auto;
  border: 1px solid var(--explorer-border);
  border-radius: 5px;
  background: #fff;
  scrollbar-width: thin;
}

#fileLibraryView .file-explorer-breadcrumbs button {
  flex: 0 0 auto;
  min-width: 0;
  height: 34px;
  padding: 0 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #2e4655;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

#fileLibraryView .file-explorer-breadcrumbs button:hover {
  background: var(--explorer-hover);
}

#fileLibraryView .file-explorer-breadcrumbs span {
  color: #8a9aa3;
  font-size: 13px;
}

#fileLibraryView .file-explorer-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--explorer-border);
  border-radius: 5px;
  background: #fff;
}

#fileLibraryView .file-explorer-search:focus-within {
  border-color: var(--explorer-blue);
  box-shadow: 0 0 0 2px rgba(23, 106, 154, 0.12);
}

#fileLibraryView .file-explorer-search img {
  width: 16px;
  height: 16px;
  opacity: 0.62;
}

#fileLibraryView .file-explorer-search input {
  min-width: 0;
  width: 100%;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--explorer-ink);
  font-family: inherit;
  font-size: 13px;
}

#fileLibraryView .file-explorer-commandbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--explorer-border);
  background: var(--explorer-surface);
}

#fileLibraryView .file-explorer-commandbar > span {
  margin-left: auto;
  color: var(--explorer-muted);
  font-size: 12px;
}

#fileLibraryView .explorer-toolbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 34px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--explorer-border-strong);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(24, 46, 58, 0.08);
  color: #243b49;
  font-family: inherit;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

#fileLibraryView .explorer-toolbar-button.primary {
  border-color: var(--explorer-blue-dark);
  background: var(--explorer-blue-dark);
  color: #fff;
}

#fileLibraryView .explorer-toolbar-button img {
  width: 15px;
  height: 15px;
}

#fileLibraryView .explorer-toolbar-button.primary img {
  filter: brightness(0) invert(1);
}

#fileLibraryView .file-explorer-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 472px;
}

#fileLibraryView .file-explorer-sidebar {
  padding: 12px 8px;
  border-right: 1px solid var(--explorer-border);
  background: #f3f6f7;
}

#fileLibraryView .file-explorer-sidebar p {
  margin: 16px 10px 6px;
  color: #6c7c86;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

#fileLibraryView .file-explorer-sidebar button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 100%;
  min-height: 36px;
  margin: 1px 0;
  padding: 7px 10px;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  color: #304654;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
}

#fileLibraryView .file-explorer-sidebar button:hover {
  background: #e5ecef;
}

#fileLibraryView .file-explorer-sidebar button.active {
  background: var(--explorer-selected);
  color: #123f5d;
}

#fileLibraryView .file-explorer-sidebar img {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

#fileLibraryView .file-explorer-content {
  position: relative;
  min-width: 0;
  background: #fff;
}

#fileLibraryView .file-explorer-drop-overlay {
  position: absolute;
  z-index: 20;
  inset: 10px;
  display: none;
  place-content: center;
  justify-items: center;
  gap: 7px;
  padding: 28px;
  border: 2px dashed #4a829f;
  border-radius: 7px;
  background: rgba(240, 247, 250, 0.96);
  color: var(--explorer-ink);
  text-align: center;
  pointer-events: none;
}

#fileLibraryView [data-file-library-drop-zone].drag-active .file-explorer-drop-overlay,
#fileLibraryView [data-file-library-drop-zone].drop-busy .file-explorer-drop-overlay {
  display: grid;
}

#fileLibraryView [data-file-library-drop-zone].drop-busy .file-explorer-drop-overlay {
  border-style: solid;
  pointer-events: auto;
}

#fileLibraryView .file-explorer-drop-overlay img {
  width: 42px;
  height: 42px;
  opacity: 0.72;
}

#fileLibraryView .file-explorer-drop-overlay strong {
  font-size: 17px;
}

#fileLibraryView .file-explorer-drop-overlay span {
  max-width: 460px;
  color: var(--explorer-muted);
  font-size: 12px;
}

.file-library-transfer-tracker {
  position: fixed;
  z-index: 10020;
  right: 18px;
  bottom: 84px;
  width: min(390px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid #aebdc6;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(18, 38, 49, 0.24);
  color: #17252f;
}

.file-library-transfer-tracker[hidden] {
  display: none;
}

.file-library-transfer-tracker header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 11px;
  border-bottom: 1px solid #d4dde2;
  background: #f4f7f8;
}

.file-library-transfer-tracker.success header {
  background: #edf7f0;
}

.file-library-transfer-tracker.warning header {
  background: #fff8e7;
}

.file-library-transfer-tracker.error header {
  background: #fff0f0;
}

.file-library-transfer-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: #dfeaf0;
}

.file-library-transfer-tracker.success .file-library-transfer-icon {
  background: #d8eddf;
}

.file-library-transfer-tracker.warning .file-library-transfer-icon {
  background: #f8e9b8;
}

.file-library-transfer-tracker.error .file-library-transfer-icon {
  background: #f4d4d4;
}

.file-library-transfer-icon img {
  width: 21px;
  height: 21px;
}

.file-library-transfer-tracker header > span:nth-child(2) {
  min-width: 0;
}

.file-library-transfer-tracker header strong,
.file-library-transfer-tracker header small {
  display: block;
}

.file-library-transfer-tracker header strong {
  font-size: 13px;
}

.file-library-transfer-tracker header small {
  margin-top: 2px;
  overflow: hidden;
  color: #60717d;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-library-transfer-tracker header button {
  min-width: 60px;
  min-height: 30px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid #b9c6cd;
  border-radius: 5px;
  background: #fff;
  box-shadow: none;
  color: #294453;
  font-family: inherit;
  font-size: 10px;
  font-weight: 750;
}

.file-library-transfer-tracker header button:disabled {
  border-color: transparent;
  background: transparent;
  color: #526671;
  cursor: default;
}

.file-library-transfer-progress {
  position: relative;
  height: 5px;
  overflow: hidden;
  background: #e3e9ec;
}

.file-library-transfer-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: #176a9a;
  transition: width 180ms ease;
}

.file-library-transfer-tracker.success .file-library-transfer-progress > span {
  width: 100% !important;
  background: #2e8050;
}

.file-library-transfer-tracker.warning .file-library-transfer-progress > span {
  width: 100% !important;
  background: #b37a11;
}

.file-library-transfer-tracker.error .file-library-transfer-progress > span {
  background: #b63a3a;
}

.file-library-transfer-tracker.indeterminate .file-library-transfer-progress > span {
  width: 36% !important;
  animation: file-library-transfer-pulse 1.1s ease-in-out infinite;
}

.file-library-transfer-tracker > p {
  min-height: 42px;
  margin: 0;
  padding: 10px 12px 6px;
  color: #344b58;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.file-library-transfer-counts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 7px;
  background: #edf1f3;
}

.file-library-transfer-counts span {
  padding: 6px 3px;
  background: #fff;
  color: #6a7982;
  font-size: 9px;
  text-align: center;
  text-transform: uppercase;
}

.file-library-transfer-counts strong {
  display: block;
  margin-bottom: 2px;
  color: #203844;
  font-size: 14px;
}

@keyframes file-library-transfer-pulse {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(310%);
  }
}

#fileLibraryView .file-explorer-location {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 65px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--explorer-border);
}

#fileLibraryView .file-explorer-location h3,
#fileLibraryView .file-explorer-location p {
  margin: 0;
}

#fileLibraryView .file-explorer-location h3 {
  color: var(--explorer-ink);
  font-size: 18px;
}

#fileLibraryView .file-explorer-location p,
#fileLibraryView .file-explorer-loading {
  margin-top: 3px;
  color: var(--explorer-muted);
  font-size: 12px;
}

#fileLibraryView .explorer-columns,
#fileLibraryView .explorer-row {
  display: grid;
  grid-template-columns: minmax(250px, 2.2fr) minmax(110px, 0.8fr) minmax(135px, 0.9fr) 80px minmax(100px, 0.8fr) minmax(170px, auto);
  align-items: center;
  column-gap: 12px;
}

#fileLibraryView .explorer-columns {
  min-height: 33px;
  padding: 0 14px;
  border-bottom: 1px solid var(--explorer-border);
  background: #f7f9fa;
  color: #637580;
  font-size: 11px;
  font-weight: 750;
}

#fileLibraryView .explorer-row {
  min-height: 54px;
  padding: 5px 14px;
  border-bottom: 1px solid #e1e7ea;
  background: #fff;
  color: var(--explorer-ink);
}

#fileLibraryView .explorer-row:hover {
  background: var(--explorer-hover);
}

#fileLibraryView .explorer-folder-row {
  cursor: pointer;
}

#fileLibraryView .explorer-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

#fileLibraryView .explorer-name-cell > img {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
}

#fileLibraryView .explorer-name-cell > span {
  min-width: 0;
}

#fileLibraryView .explorer-name-cell strong,
#fileLibraryView .explorer-name-cell small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#fileLibraryView .explorer-name-cell strong {
  color: #203844;
  font-size: 13px;
  font-weight: 700;
}

#fileLibraryView .explorer-name-cell small {
  margin-top: 2px;
  color: #71808a;
  font-size: 11px;
}

#fileLibraryView .explorer-type-cell,
#fileLibraryView .explorer-date-cell,
#fileLibraryView .explorer-size-cell,
#fileLibraryView .explorer-owner-cell {
  min-width: 0;
  overflow: hidden;
  color: #526671;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#fileLibraryView .explorer-actions-cell {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

#fileLibraryView .explorer-action {
  min-width: 0;
  min-height: 27px;
  height: 27px;
  padding: 0 8px;
  border: 1px solid var(--explorer-border);
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
  color: #294453;
  font-family: inherit;
  font-size: 10px;
  font-weight: 750;
}

#fileLibraryView .explorer-action:hover {
  background: #edf2f4;
}

#fileLibraryView .explorer-action.danger {
  border-color: #d8b6b6;
  color: #a22727;
}

.file-library-action-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
}

.file-library-action-panel {
  width: 100%;
  max-width: none;
  padding: 22px;
}

.file-library-action-panel > label {
  display: grid;
  gap: 6px;
}

.file-library-action-panel select {
  width: 100%;
  min-height: 210px;
  padding: 6px;
  border: 1px solid #b8c8cf;
  border-radius: 6px;
  background: #fff;
  color: #18313d;
  font-family: inherit;
}

.project-file-library-link-dialog {
  --link-explorer-ink: #17252f;
  --link-explorer-muted: #60717d;
  --link-explorer-border: #c8d2d8;
  --link-explorer-hover: #eef4f7;
  --link-explorer-selected: #dcebf5;
  --link-explorer-blue: #176a9a;
  width: min(1120px, calc(100vw - 28px));
  height: min(820px, calc(100dvh - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--link-explorer-ink);
}

.project-file-library-link-panel {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  color: var(--link-explorer-ink) !important;
  display: grid;
}

.project-file-link-heading {
  position: relative;
  min-height: 88px;
  padding: 17px 68px 15px 20px;
  border-bottom: 1px solid var(--link-explorer-border);
  background: linear-gradient(180deg, #f9fbfc, #edf2f4);
}

.project-file-link-heading h2,
.project-file-link-heading p {
  margin: 0;
}

.project-file-link-heading .eyebrow {
  margin-bottom: 3px;
  color: var(--link-explorer-blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-file-link-heading h2 {
  color: var(--link-explorer-ink);
  font-size: 24px;
  line-height: 1.1;
}

.project-file-link-heading .helper {
  margin-top: 5px;
  color: var(--link-explorer-muted);
  font-size: 12px;
}

.project-file-link-destination {
  display: grid;
  grid-template-columns: auto minmax(220px, 410px);
  align-items: center;
  justify-content: end;
  gap: 10px;
  min-height: 54px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--link-explorer-border);
  background: #f7f9fa;
}

.project-file-link-destination label {
  color: #405764;
  font-size: 12px;
  font-weight: 750;
}

.project-file-link-destination select,
.project-file-library-link-panel #projectFileLinkPhaseSelect {
  width: 100%;
  min-height: 36px;
  height: 36px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #b8c8cf;
  border-radius: 5px;
  background: #fff;
  color: #18313d;
  font-family: inherit;
  font-size: 13px;
}

.project-file-link-explorer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.project-file-link-toolbar {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) minmax(220px, 320px);
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--link-explorer-border);
  background: #fff;
}

.project-file-link-nav-actions {
  display: flex;
  align-items: center;
  gap: 3px;
}

.project-file-link-nav-actions button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  box-shadow: none;
  color: #304654;
  font-family: Arial, sans-serif;
  font-size: 18px;
  line-height: 1;
}

.project-file-link-nav-actions button:hover:not(:disabled) {
  border-color: var(--link-explorer-border);
  background: var(--link-explorer-hover);
}

.project-file-link-nav-actions button:disabled {
  opacity: 0.35;
  cursor: default;
}

.project-file-link-breadcrumbs {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 36px;
  overflow-x: auto;
  border: 1px solid var(--link-explorer-border);
  border-radius: 5px;
  background: #fff;
  scrollbar-width: thin;
}

.project-file-link-breadcrumbs button {
  flex: 0 0 auto;
  min-width: 0;
  height: 34px;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #2e4655;
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.project-file-link-breadcrumbs button:hover {
  background: var(--link-explorer-hover);
}

.project-file-link-breadcrumbs span {
  color: #8a9aa3;
  font-size: 12px;
}

.project-file-link-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--link-explorer-border);
  border-radius: 5px;
  background: #fff;
}

.project-file-link-search:focus-within {
  border-color: var(--link-explorer-blue);
  box-shadow: 0 0 0 2px rgba(23, 106, 154, 0.12);
}

.project-file-link-search img {
  width: 16px;
  height: 16px;
  opacity: 0.62;
}

.project-file-link-search input {
  min-width: 0;
  width: 100%;
  height: 32px;
  min-height: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--link-explorer-ink);
  font-family: inherit;
  font-size: 13px;
}

.project-file-link-browser {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.project-file-link-sidebar {
  min-height: 0;
  padding: 10px 7px;
  overflow-y: auto;
  border-right: 1px solid var(--link-explorer-border);
  background: #f3f6f7;
}

.project-file-link-sidebar p {
  margin: 14px 9px 5px;
  color: #6c7c86;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-file-link-sidebar button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  margin: 1px 0;
  padding: 6px 9px;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  color: #304654;
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
}

.project-file-link-sidebar button:hover {
  background: #e5ecef;
}

.project-file-link-sidebar button.active {
  background: var(--link-explorer-selected);
  color: #123f5d;
}

.project-file-link-sidebar button img {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

.project-file-link-sidebar button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-file-link-content {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.project-file-link-location {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--link-explorer-border);
}

.project-file-link-location h3,
.project-file-link-location p {
  margin: 0;
}

.project-file-link-location h3 {
  color: var(--link-explorer-ink);
  font-size: 16px;
}

.project-file-link-location p {
  margin-top: 2px;
  color: var(--link-explorer-muted);
  font-size: 11px;
}

.project-file-link-columns,
.project-file-link-row {
  display: grid;
  grid-template-columns: minmax(260px, 2.2fr) minmax(100px, 0.8fr) minmax(125px, 0.9fr) 72px minmax(95px, 0.8fr);
  align-items: center;
  column-gap: 10px;
}

.project-file-link-columns {
  min-height: 31px;
  padding: 0 12px;
  border-bottom: 1px solid var(--link-explorer-border);
  background: #f7f9fa;
  color: #637580;
  font-size: 10px;
  font-weight: 750;
}

.project-file-link-rows {
  min-height: 0;
  overflow: auto;
}

.project-file-link-row {
  min-height: 52px;
  padding: 5px 12px;
  border-bottom: 1px solid #e1e7ea;
  background: #fff;
  color: var(--link-explorer-ink);
  cursor: pointer;
}

.project-file-link-row:hover {
  background: var(--link-explorer-hover);
}

.project-file-link-row.selected {
  outline: 1px solid #83aec7;
  outline-offset: -1px;
  background: var(--link-explorer-selected);
}

.project-file-link-name {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.project-file-link-name > img {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
}

.project-file-link-name > span {
  min-width: 0;
}

.project-file-link-name strong,
.project-file-link-name small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-file-link-name strong {
  color: #203844;
  font-size: 12px;
  font-weight: 700;
}

.project-file-link-name small {
  margin-top: 2px;
  color: #71808a;
  font-size: 10px;
}

.project-file-link-row > span:not(.project-file-link-name) {
  min-width: 0;
  overflow: hidden;
  color: #526671;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-file-link-empty {
  display: grid;
  place-items: center;
  min-height: 230px;
  padding: 26px;
  color: var(--link-explorer-muted);
  text-align: center;
}

.project-file-link-empty img {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  opacity: 0.45;
}

.project-file-link-empty strong {
  color: #344b58;
  font-size: 14px;
}

.project-file-link-empty span {
  margin-top: 4px;
  font-size: 11px;
}

.project-file-link-footer {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 9px 12px;
  border-top: 1px solid var(--link-explorer-border);
  background: #f7f9fa;
  box-shadow: 0 -4px 12px rgba(23, 37, 47, 0.08);
}

.project-file-link-selection {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.project-file-link-selection > img {
  width: 28px;
  height: 28px;
}

.project-file-link-selection strong,
.project-file-link-selection small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-file-link-selection strong {
  color: #203844;
  font-size: 12px;
}

.project-file-link-selection small {
  margin-top: 2px;
  color: var(--link-explorer-muted);
  font-size: 10px;
}

.project-file-link-selection a {
  color: #145f8b;
  font-size: 11px;
  font-weight: 750;
}

.project-file-link-footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-file-link-footer menu {
  display: flex;
  gap: 7px;
  margin: 0;
  padding: 0;
}

.project-file-link-status {
  min-width: 180px;
  color: #536b77;
  font-size: 11px;
  text-align: right;
}

.project-file-library-link-panel #projectFileLinkSubmit:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.project-file-library-link-panel [hidden] {
  display: none !important;
}

.project-file-library-link {
  white-space: normal;
  line-height: 1.15;
}

.file-library-input-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  min-width: 0;
  min-height: 34px;
  margin-top: 7px;
  padding: 6px 11px;
  border: 1px solid #8ba9ad;
  border-radius: 6px;
  background: #f4f8f8;
  color: #17343a;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

.file-library-input-link:hover,
.file-library-input-link:focus-visible {
  border-color: #087f89;
  background: #e8f3f3;
  color: #075b63;
  transform: none;
}

.file-library-input-link img {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.file-input-stack > .file-library-input-link {
  align-self: flex-start;
}

.service-request-files > .project-file-library-link {
  justify-self: start;
}

#fileLibraryView .file-explorer-empty {
  display: grid;
  place-items: center;
  min-height: 250px;
  padding: 30px;
  color: var(--explorer-muted);
  text-align: center;
}

#fileLibraryView .file-explorer-empty img {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  opacity: 0.45;
}

#fileLibraryView .file-explorer-empty strong {
  color: #344b58;
  font-size: 15px;
}

#fileLibraryView .file-explorer-empty span {
  margin-top: 4px;
  font-size: 12px;
}

@media (max-width: 1100px) {
  #fileLibraryView .file-explorer-toolbar {
    grid-template-columns: auto minmax(180px, 1fr);
  }

  #fileLibraryView .file-explorer-search {
    grid-column: 1 / -1;
  }

  #fileLibraryView .file-explorer-body {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  #fileLibraryView .explorer-columns,
  #fileLibraryView .explorer-row {
    grid-template-columns: minmax(220px, 2fr) minmax(100px, 0.8fr) minmax(120px, 0.9fr) 70px minmax(165px, auto);
  }

  #fileLibraryView .explorer-owner-cell,
  #fileLibraryView .explorer-columns span:nth-child(5) {
    display: none;
  }
}

@media (max-width: 760px) {
  .file-library-action-panel {
    padding: 16px;
  }

  .file-library-action-panel select {
    min-height: 180px;
  }

  .project-file-library-link-dialog {
    width: calc(100vw - 10px);
    height: calc(100dvh - 10px);
    max-height: calc(100dvh - 10px);
    border-radius: 6px;
  }

  .project-file-link-heading {
    min-height: 76px;
    padding: 13px 62px 11px 13px;
  }

  .project-file-link-heading h2 {
    font-size: 20px;
  }

  .project-file-link-heading .helper {
    font-size: 10px;
    line-height: 1.25;
  }

  .project-file-link-destination {
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 3px;
    min-height: 65px;
    padding: 6px 9px;
  }

  .project-file-link-destination label {
    font-size: 10px;
  }

  .project-file-link-toolbar {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px;
    padding: 6px;
  }

  .project-file-link-search {
    grid-column: 1 / -1;
  }

  .project-file-link-browser {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
  }

  .project-file-link-sidebar {
    display: flex;
    gap: 3px;
    min-height: 46px;
    padding: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--link-explorer-border);
    scrollbar-width: thin;
  }

  .project-file-link-sidebar p {
    display: none;
  }

  .project-file-link-sidebar button {
    flex: 0 0 auto;
    width: auto;
    min-height: 33px;
  }

  .project-file-link-content {
    min-height: 0;
    overflow: hidden;
  }

  .project-file-link-columns {
    display: none;
  }

  .project-file-link-row {
    grid-template-columns: minmax(0, 1fr);
    min-height: 61px;
    padding: 6px 9px;
  }

  .project-file-link-row > span:not(.project-file-link-name) {
    display: none;
  }

  .project-file-link-name strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .project-file-link-name small {
    max-width: 76vw;
  }

  .project-file-link-footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    min-height: 105px;
    padding: 7px 9px;
  }

  .project-file-link-footer-actions {
    justify-content: space-between;
    min-width: 0;
  }

  .project-file-link-status {
    min-width: 0;
    text-align: left;
  }

  .project-file-link-footer menu {
    flex: 0 0 auto;
  }

  .file-library-transfer-tracker {
    right: 10px;
    bottom: 72px;
    width: calc(100vw - 20px);
  }

  #fileLibraryView .file-explorer {
    min-height: 0;
    border-radius: 6px;
  }

  #fileLibraryView .file-explorer-titlebar {
    min-height: 76px;
    padding: 14px;
  }

  #fileLibraryView .file-explorer-titlebar h2 {
    font-size: 23px;
  }

  #fileLibraryView .file-explorer-titlebar h2 + p {
    display: none;
  }

  #fileLibraryView .file-explorer-toolbar {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 8px;
  }

  #fileLibraryView .file-explorer-nav-actions {
    order: 1;
  }

  #fileLibraryView .file-explorer-breadcrumbs {
    order: 2;
  }

  #fileLibraryView .file-explorer-search {
    grid-column: auto;
    order: 3;
  }

  #fileLibraryView .file-explorer-commandbar {
    flex-wrap: wrap;
    padding: 8px;
  }

  #fileLibraryView .file-explorer-commandbar > span {
    width: 100%;
    margin-left: 2px;
  }

  #fileLibraryView .file-explorer-body {
    display: block;
    min-height: 0;
  }

  #fileLibraryView .file-explorer-sidebar {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 7px;
    border-right: 0;
    border-bottom: 1px solid var(--explorer-border);
    scrollbar-width: thin;
  }

  #fileLibraryView .file-explorer-sidebar p {
    display: none;
  }

  #fileLibraryView .file-explorer-sidebar button {
    flex: 0 0 auto;
    width: auto;
    min-height: 34px;
    padding: 6px 9px;
  }

  #fileLibraryView .file-explorer-location {
    min-height: 56px;
    padding: 10px 12px;
  }

  #fileLibraryView .explorer-columns {
    display: none;
  }

  #fileLibraryView .explorer-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 66px;
    padding: 7px 10px;
  }

  #fileLibraryView .explorer-type-cell,
  #fileLibraryView .explorer-date-cell,
  #fileLibraryView .explorer-size-cell,
  #fileLibraryView .explorer-owner-cell {
    display: none;
  }

  #fileLibraryView .explorer-actions-cell {
    max-width: 150px;
    flex-wrap: wrap;
  }

  #fileLibraryView .explorer-name-cell strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #fileLibraryView .explorer-name-cell small {
    max-width: 58vw;
  }
}

@media (max-width: 430px) {
  .project-file-link-heading {
    min-height: 63px;
  }

  .project-file-link-heading .helper {
    display: none;
  }

  .project-file-link-footer-actions {
    align-items: flex-end;
  }

  .project-file-link-status {
    max-width: 110px;
    font-size: 9px;
  }

  .project-file-link-footer menu button {
    min-width: 0;
    padding-inline: 10px;
    font-size: 10px;
  }

  .file-library-transfer-tracker header {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 7px;
  }

  .file-library-transfer-icon {
    width: 34px;
    height: 34px;
  }

  .file-library-transfer-counts span {
    font-size: 8px;
  }

  #fileLibraryView .file-explorer-live-state {
    display: none;
  }

  #fileLibraryView .explorer-toolbar-button {
    flex: 1 1 calc(50% - 4px);
  }

  #fileLibraryView .file-explorer-commandbar > span {
    text-align: left;
  }
}
