/* File library convergence: GDS tokens + the repository's existing Semi UI shell. */
.eva-native-page-host > .eva-drive,
body.eva-message-hierarchy-ready .eva-native-page-host > .eva-drive {
  position: relative;
  inset: 0;
  top: 0;
  width: 100%;
  height: 100%;
  grid-template-columns: 216px minmax(0, 1fr);
  overflow: hidden;
  color: var(--gds-color-text-primary, #1e1e1e);
  background: var(--gds-color-surface-primary, #fff);
  font-family: var(--gds-font-family-sans, "PingFang SC", sans-serif);
}

body.eva-message-hierarchy-ready .eva-native-page-host > .eva-drive .eva-drive__side {
  display: flex;
}

.eva-drive__side {
  border-right-color: var(--gds-color-border-faint, #ebebeb);
  background: var(--gds-color-surface-subtle, #f5f5f5);
}

.eva-drive__side-head {


  border-bottom-color: var(--gds-color-border-faint, #ebebeb);
}

.eva-drive__side-head strong {



}

.eva-drive__side-search { margin: 12px; }

.eva-drive__tree {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 2px 8px 12px;
}

.eva-drive__tree-group {
  margin: 14px 8px 5px;
  color: var(--gds-color-text-secondary-accessible, #6b7280);
  font-size: var(--gds-type-caption-font-size, 12px);
  line-height: var(--gds-type-caption-line-height, 16px);
}

.eva-drive__tree button {
  min-height: 34px;
  border-radius: var(--gds-radius-control, 8px);
  color: var(--gds-color-text-secondary, #4a4a4a);
  font-size: var(--gds-type-label-font-size, 14px);
}

.eva-drive__tree button:hover {
  background: var(--gds-color-overlay-hover, rgb(0 0 0 / 5%));
}

.eva-drive__tree button[aria-current="page"] {
  color: var(--gds-color-action-primary, #1563eb);
  background: rgb(21 99 235 / 9%);
  font-weight: var(--gds-font-weight-medium, 500);
}

.eva-drive__tree button.is-child {
  padding-left: 34px;
  font-size: 13px;
}

.eva-drive__tree-spacer {
  flex: 1;
}

body.eva-message-hierarchy-ready .eva-drive__main,
.eva-drive__main {
  grid-column: 2;
  overflow: hidden;
}

.eva-drive__header {
  box-sizing: border-box;



  border-bottom-color: var(--gds-color-border-faint, #ebebeb);
}

.eva-drive__header > div:first-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.eva-drive__header strong {


}

.eva-drive__header > div:first-child > span {
  overflow: hidden;
  color: var(--gds-color-text-secondary-accessible, #6b7280);
  font-size: var(--gds-type-caption-font-size, 12px);
  line-height: var(--gds-type-caption-line-height, 16px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eva-drive__header .eva-drive__role,
.eva-file-role-badge {
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--gds-color-border-subtle, #dbdbdb);
  border-radius: var(--gds-radius-full, 999px);
  display: inline-flex;
  align-items: center;
  color: var(--gds-color-text-secondary, #4a4a4a);
  background: var(--gds-color-surface-primary, #fff);
  font-size: var(--gds-type-caption-font-size, 12px);
  line-height: 24px;
  white-space: nowrap;
}

body.eva-message-hierarchy-ready .eva-drive__scroll,
.eva-drive__scroll {
  padding: 20px 24px 8px;
  flex: 0 0 auto;
}

body.eva-message-hierarchy-ready .eva-drive__actions,
.eva-drive__actions {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.eva-message-hierarchy-ready .eva-drive__action,
.eva-drive__action {
  box-sizing: border-box;
  width: auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--gds-color-border-default, #ccc);
  border-radius: var(--gds-radius-control, 8px);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gds-color-text-primary, #1e1e1e);
  background: var(--gds-color-surface-primary, #fff);
  box-shadow: none;
  font: inherit;
  font-size: var(--gds-type-label-font-size, 14px);
  cursor: pointer;
}

body.eva-message-hierarchy-ready .eva-drive__action:hover,
.eva-drive__action:hover {
  border-color: var(--gds-color-text-secondary-accessible, #6b7280);
  background: var(--gds-color-surface-subtle, #f5f5f5);
}

.eva-drive__action--primary,
body.eva-message-hierarchy-ready .eva-drive__action--primary {
  border-color: var(--gds-color-action-primary, #1563eb);
  color: var(--gds-color-action-primary-text, #fff);
  background: var(--gds-color-action-primary, #1563eb);
}

.eva-drive__action--primary:hover,
body.eva-message-hierarchy-ready .eva-drive__action--primary:hover {
  border-color: #0e54ca;
  background: #0e54ca;
}

.eva-drive__action > .eva-drive-icon {
  width: 16px;
  height: 16px;
}

.eva-drive__breadcrumbs {
  min-height: 26px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gds-color-text-secondary-accessible, #6b7280);
}

.eva-drive__pathbar {
  min-height: 30px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eva-drive__pathbar .eva-drive__breadcrumbs {
  min-width: 0;
  min-height: 26px;
  margin-top: 0;
  overflow: hidden;
}

.eva-drive__back-button {
  min-height: 28px;
  padding: 0 9px 0 7px;
  border: 1px solid var(--gds-color-border-default, #ccc);
  border-radius: var(--gds-radius-control, 8px);
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  color: var(--gds-color-text-secondary, #4a4a4a);
  background: var(--gds-color-surface-primary, #fff);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.eva-drive__back-button:hover {
  border-color: var(--gds-color-text-secondary-accessible, #6b7280);
  background: var(--gds-color-surface-subtle, #f5f5f5);
}

.eva-drive__back-button .eva-drive-icon {
  width: 14px;
  height: 14px;
  transform: rotate(180deg);
}

.eva-drive__breadcrumbs button {
  padding: 2px 4px;
  border: 0;
  border-radius: var(--gds-radius-small, 4px);
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.eva-drive__breadcrumbs button:not([aria-current="page"]):hover {
  color: var(--gds-color-action-primary, #1563eb);
  background: var(--gds-color-surface-subtle, #f5f5f5);
}

.eva-drive__breadcrumbs button[aria-current="page"] {
  color: var(--gds-color-text-primary, #1e1e1e);
  cursor: default;
}

.eva-drive__section-head {
  min-height: 70px;
  padding: 8px 24px 12px;
}

.eva-drive__section-head h1 {
  font-size: 20px;
  line-height: 28px;
}

.eva-drive__section-head p {
  color: var(--gds-color-text-secondary-accessible, #6b7280);
  font-size: var(--gds-type-caption-font-size, 12px);
}

.eva-drive__section-head .eva-drive__side-search {
  width: min(300px, 40%);
  margin: 0 0 0 auto;
}

body.eva-message-hierarchy-ready .eva-drive__table--with-source,
.eva-drive__table {
  min-width: 0;
  min-height: 0;
  max-width: calc(100% - 48px);
  flex: 1;
  margin: 0 24px 24px;
  overflow: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--gds-color-border-faint, #ebebeb);
}

body.eva-message-hierarchy-ready .eva-drive__table--with-source .eva-drive__table-head,
body.eva-message-hierarchy-ready .eva-drive__table--with-source .eva-drive__row,
.eva-drive__table-head,
.eva-drive__row {
  min-width: 900px;
  box-sizing: border-box;
  grid-template-columns: minmax(250px, 1.45fr) 104px minmax(190px, 1.05fr) 76px 124px 72px;
  gap: 14px;
}

.eva-drive__table-head {
  min-height: 38px;
  padding: 0 10px;
  color: var(--gds-color-text-secondary-accessible, #6b7280);
  background: var(--gds-color-surface-subtle, #f5f5f5);
}

.eva-drive__row {
  min-height: 64px;
  padding: 0 12px;
  border-bottom-color: var(--gds-color-border-faint, #ebebeb);
  background: var(--gds-color-surface-primary, #fff);
}

.eva-drive__row:hover {
  background: var(--gds-color-surface-subtle, #f5f5f5);
}

.eva-drive__row[aria-selected="true"] {
  background: rgb(21 99 235 / 7%);
}

.eva-drive__name-cell {
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.eva-drive__file-mark {
  position: relative;
  border-radius: var(--gds-radius-control, 8px);
}

.eva-drive__file-mark.is-shortcut {
  color: #315b92;
  background: #edf4ff;
}

.eva-drive__file-mark.is-external-link {
  color: var(--gds-color-action-primary, #1563eb);
  background: rgb(21 99 235 / 8%);
}

.eva-relation-chip.is-external {
  color: var(--gds-color-action-primary, #1563eb);
}

.eva-drive__file-mark.is-shortcut::after {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 17px;
  height: 17px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--gds-color-action-primary, #1563eb);
  content: "↗";
  font-size: 10px;
  line-height: 1;
}

.eva-drive__name-copy strong {
  color: var(--gds-color-text-primary, #1e1e1e);
  font-size: var(--gds-type-label-font-size, 14px);
}

.eva-drive__name-tags {
  min-width: 0;
  display: flex !important;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}

.eva-file-tag,
.eva-file-type,
.eva-file-readonly {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 20px;
  padding: 1px 7px;
  border-radius: var(--gds-radius-full, 999px);
  display: inline-flex !important;
  align-items: center;
  overflow: hidden;
  color: #315b92 !important;
  background: #edf4ff;
  font-size: 11px !important;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eva-file-type {
  color: var(--gds-color-text-secondary, #4a4a4a) !important;
  background: var(--gds-color-surface-subtle, #f5f5f5);
}

.eva-file-tag {
  color: var(--gds-color-text-secondary, #4a4a4a) !important;
  background: var(--gds-color-surface-subtle, #f5f5f5);
}

.eva-file-tag.is-more,
.eva-relation-more {
  flex: 0 0 auto;
  color: var(--gds-color-text-secondary-accessible, #6b7280) !important;
}

.eva-file-muted,
.eva-file-location-cell {
  overflow: hidden;
  color: var(--gds-color-text-secondary-accessible, #6b7280) !important;
  font-size: 12px !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eva-relation-cell {
  min-width: 0;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  overflow: hidden;
}

.eva-relation-chip {
  box-sizing: border-box;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  color: var(--gds-color-text-secondary, #4a4a4a) !important;
  font-size: 11px !important;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eva-relation-chip .eva-drive-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  color: var(--gds-color-text-secondary-accessible, #6b7280);
}

.eva-relation-chip.is-restricted {
  color: var(--gds-color-text-secondary-accessible, #6b7280) !important;
}

.eva-created-cell {
  min-width: 0;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  gap: 2px;
}

.eva-created-cell strong,
.eva-created-cell small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eva-created-cell strong {
  color: var(--gds-color-text-secondary, #4a4a4a);
  font-size: 12px;
  font-weight: var(--gds-font-weight-medium, 500);
}

.eva-created-cell small {
  color: var(--gds-color-text-secondary-accessible, #6b7280);
  font-size: 11px;
}

.eva-drive__name-copy span,
.eva-drive__row > span {
  color: var(--gds-color-text-secondary-accessible, #6b7280);
  font-size: var(--gds-type-caption-font-size, 12px);
}

.eva-drive__source-cell > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.eva-drive__source-cell strong,
.eva-drive__source-cell small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eva-drive__source-cell strong {
  color: var(--gds-color-text-secondary, #4a4a4a);
  font-size: 12px;
  font-weight: var(--gds-font-weight-medium, 500);
}

.eva-drive__source-cell small {
  color: var(--gds-color-text-secondary-accessible, #6b7280);
  font-size: 11px;
}

.eva-drive__row-more {
  width: 28px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--gds-radius-control, 8px);
  display: grid;
  place-items: center;
  color: var(--gds-color-text-secondary-accessible, #6b7280);
  background: transparent;
  cursor: pointer;
}

.eva-drive__row-more:hover,
.eva-drive__row-more[aria-expanded="true"] {
  background: var(--gds-color-overlay-hover, rgb(0 0 0 / 5%));
}

.eva-drive__row-more .eva-drive-icon {
  width: 18px;
  height: 18px;
}

.eva-drive__row-more:focus-visible {
  outline: 2px solid var(--eva-border-focus);
  outline-offset: 2px;
}

.eva-drive__row-actions {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex !important;
  align-items: center;
  gap: 4px;
  overflow: visible !important;
}

.eva-drive__row-menu {
  position: fixed;
  z-index: 320;
  box-sizing: border-box;
  width: 168px;
  max-height: calc(100vh - 24px);
  padding: 4px;
  border: 1px solid var(--gds-color-border-subtle, #dbdbdb);
  border-radius: 10px;
  display: flex !important;
  flex-direction: column;
  align-items: stretch !important;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--gds-color-surface-primary, #fff);
  box-shadow: 0 10px 28px rgb(0 0 0 / 14%);
}

.eva-drive__row-menu > button {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  color: var(--gds-color-text-primary, #1e1e1e);
  background: transparent;
  font: inherit;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.eva-drive__row-menu > button:hover {
  background: var(--gds-color-surface-subtle, #f5f5f5);
}

.eva-drive__row-menu > button.is-danger {
  color: #c53b3b;
}

.eva-drive-projects {
  margin: 0 24px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 12px;
}

.eva-drive-project-card {
  min-width: 0;
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--gds-color-border-subtle, #dbdbdb);
  border-radius: var(--gds-radius-panel, 12px);
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 12px;
  color: var(--gds-color-text-primary, #1e1e1e);
  background: var(--gds-color-surface-primary, #fff);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.eva-drive-project-card:hover {
  border-color: var(--gds-color-border-default, #ccc);
  background: var(--gds-color-surface-subtle, #f5f5f5);
}

.eva-drive-project-card__mark {
  width: 40px;
  height: 40px;
  border-radius: var(--gds-radius-panel, 12px);
  display: grid;
  place-items: center;
  color: var(--gds-color-action-primary-text, #fff);
  background: var(--gds-color-action-primary, #1563eb);
  font-weight: var(--gds-font-weight-semibold, 600);
}

.eva-drive-project-card__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.eva-drive-project-card__copy strong,
.eva-drive-project-card__copy small,
.eva-drive-project-card__copy > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eva-drive-project-card__copy strong {
  font-size: var(--gds-type-label-font-size, 14px);
  font-weight: var(--gds-font-weight-semibold, 600);
}

.eva-drive-project-card__copy small,
.eva-drive-project-card__copy > span {
  color: var(--gds-color-text-secondary-accessible, #6b7280);
  font-size: var(--gds-type-caption-font-size, 12px);
  line-height: var(--gds-type-caption-line-height, 16px);
}

.eva-drive-project-card__role {
  padding: 3px 8px;
  border-radius: var(--gds-radius-full, 999px);
  color: var(--gds-color-text-secondary, #4a4a4a);
  background: var(--gds-color-surface-subtle, #f5f5f5);
  font-size: var(--gds-type-caption-font-size, 12px);
}

.eva-file-preview-sidebar {
  position: absolute;
  z-index: 82;
  top: 0;
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  width: min(560px, calc(100% - 24px));
  min-width: 360px;
  overflow: hidden;
  border-left: 1px solid var(--gds-color-border-faint, #ebebeb);
  display: flex;
  flex-direction: column;
  background: var(--gds-color-surface-primary, #fff);
  box-shadow: -12px 0 28px rgb(31 35 41 / 10%);
}

.eva-file-preview-sidebar__head {
  min-height: 52px;
  padding: 0 16px 0 20px;
  border-bottom: 1px solid var(--gds-color-border-faint, #ebebeb);
  display: flex;
  align-items: center;
  gap: 12px;
}

.eva-file-preview-sidebar__head h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  flex: 1;
  font-size: var(--gds-type-header-font-size, 16px);
  line-height: var(--gds-type-header-line-height, 24px);
  font-weight: var(--gds-font-weight-medium, 500);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eva-file-preview-sidebar__head button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--gds-radius-control, 8px);
  color: var(--gds-color-text-secondary, #4a4a4a);
  background: transparent;
  font: inherit;
  font-size: 20px;
  cursor: pointer;
}

.eva-file-preview-sidebar__head button:hover {
  background: var(--gds-color-overlay-hover, rgb(0 0 0 / 5%));
}

.eva-file-preview-sidebar__body {
  min-height: 0;
  overflow: auto;
  flex: 1;
  background: var(--gds-color-surface-subtle, #f5f5f5);
}

.eva-file-detail__identity {
  min-width: 0;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.eva-file-detail__identity--with-action {
  grid-template-columns: 42px minmax(0, 1fr) 32px;
}

.eva-file-detail__identity-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.eva-file-detail__copy-link {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--gds-radius-control, 8px);
  display: grid;
  place-items: center;
  color: var(--gds-color-text-secondary, #4a4a4a);
  background: transparent;
  cursor: pointer;
}

.eva-file-detail__copy-link:hover {
  background: var(--gds-color-overlay-hover, rgb(0 0 0 / 5%));
}

.eva-file-detail__copy-link:focus-visible {
  outline: var(--gds-border-focus, 2px) solid var(--gds-color-border-focus, #1563eb);
  outline-offset: 2px;
}

.eva-file-detail__copy-link .eva-drive-icon {
  width: 16px;
  height: 16px;
}

.eva-file-detail__identity strong,
.eva-file-detail__identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eva-file-detail__identity strong {
  font-size: 14px;
  font-weight: var(--gds-font-weight-semibold, 600);
}

.eva-file-detail__identity small {
  color: var(--gds-color-text-secondary-accessible, #6b7280);
  font-size: 12px;
}

.eva-drive__preview {
  height: 128px;
  border-color: var(--gds-color-border-faint, #ebebeb);
  border-radius: var(--gds-radius-panel, 12px);
  color: var(--gds-color-action-primary, #1563eb);
  background: var(--gds-color-surface-subtle, #f5f5f5);
}

.eva-drive__management-actions {
  margin: 12px 0 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.eva-drive__management-actions button,
.eva-drive-dialog button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--gds-color-border-default, #ccc);
  border-radius: var(--gds-radius-control, 8px);
  color: var(--gds-color-text-primary, #1e1e1e);
  background: var(--gds-color-surface-primary, #fff);
  font: inherit;
  cursor: pointer;
}

.eva-drive__management-actions button:hover,
.eva-drive-dialog button:hover {
  background: var(--gds-color-surface-subtle, #f5f5f5);
}

.eva-drive__management-actions button.is-danger,
.eva-drive-dialog button.is-danger {
  border-color: #f0b8b8;
  color: #c53b3b;
}

.eva-file-detail__section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--gds-color-border-faint, #ebebeb);
}

.eva-file-detail__section-head {
  min-height: 26px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eva-file-detail__section-head h3 {
  margin: 0;
  flex: 1;
  color: var(--gds-color-text-primary, #1e1e1e);
  font-size: 13px;
  font-weight: var(--gds-font-weight-semibold, 600);
}

.eva-file-detail__section-head button {
  min-height: 26px;
  padding: 0 7px;
  border: 0;
  border-radius: var(--gds-radius-control, 8px);
  color: var(--gds-color-action-primary, #1563eb);
  background: transparent;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.eva-file-detail__section-head button:hover {
  background: rgb(21 99 235 / 7%);
}

.eva-file-readonly {
  color: var(--gds-color-text-secondary-accessible, #6b7280) !important;
  background: var(--gds-color-surface-subtle, #f5f5f5);
}

.eva-file-detail__classification {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.eva-file-relations {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eva-file-relation {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--gds-color-border-faint, #ebebeb);
  border-radius: var(--gds-radius-control, 8px);
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 9px;
  background: var(--gds-color-surface-subtle, #f5f5f5);
}

.eva-file-relation__action {
  align-self: center;
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  color: var(--gds-color-action-primary, #1563eb);
  background: transparent;
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.eva-file-relation__action:hover,
.eva-file-relation__action:focus-visible {
  background: rgb(21 99 235 / 8%);
}

.eva-file-relation__icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--gds-color-action-primary, #1563eb);
  background: #fff;
}

.eva-file-relation__icon .eva-drive-icon {
  width: 15px;
  height: 15px;
}

.eva-file-relation > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.eva-file-relation small,
.eva-file-relation strong,
.eva-file-relation em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eva-file-relation small,
.eva-file-relation em {
  color: var(--gds-color-text-secondary-accessible, #6b7280);
  font-size: 11px;
  font-style: normal;
}

.eva-file-relation strong {
  color: var(--gds-color-text-primary, #1e1e1e);
  font-size: 12px;
  font-weight: var(--gds-font-weight-medium, 500);
}

.eva-file-detail__empty {
  margin: 0;
  color: var(--gds-color-text-secondary-accessible, #6b7280);
  font-size: 12px;
  line-height: 20px;
}

.eva-drive__meta {
  gap: 12px;
  border-top: 0;
}

.eva-drive__meta dt {
  color: var(--gds-color-text-secondary-accessible, #6b7280);
  font-size: var(--gds-type-caption-font-size, 12px);
}

.eva-drive__meta dd {
  color: var(--gds-color-text-secondary, #4a4a4a);
  font-size: var(--gds-type-caption-font-size, 12px);
  overflow-wrap: anywhere;
}

.eva-drive-dialog {
  position: absolute;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
}

.eva-drive-dialog .eva-drive-dialog__mask,
.eva-drive-dialog .eva-drive-dialog__mask:hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgb(15 23 42 / 28%);
  cursor: default;
}

.eva-drive-dialog__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: calc(100% - 48px);
  overflow: hidden;
  width: min(420px, calc(100% - 40px));
  border: 1px solid var(--gds-color-border-subtle, #dbdbdb);
  border-radius: var(--gds-radius-window, 20px);
  background: var(--gds-color-surface-primary, #fff);
  box-shadow: var(--gds-shadow-floating, 0 12px 30px rgb(0 0 0 / 15%));
}

.eva-drive-dialog__panel header,
.eva-drive-dialog__panel footer {
  flex-shrink: 0;
  min-height: 52px;
  padding: 0 24px;
  display: flex;
  align-items: center;
}

.eva-drive-dialog__panel header {
  border-bottom: 1px solid var(--gds-color-border-faint, #ebebeb);
}

.eva-drive-dialog__panel header h2 {
  margin: 0;
  flex: 1;
  font-size: var(--gds-type-header-font-size, 16px);
}

.eva-drive-dialog__panel header button {
  width: 32px;
  padding: 0;
  border: 0;
  font-size: 20px;
}

.eva-drive-dialog__body {
  min-height: 0;
  overflow: auto;
  padding: 24px;
}

.eva-drive-dialog__body p {
  margin: 0;
  color: var(--gds-color-text-secondary, #4a4a4a);
  font-size: var(--gds-type-body-font-size, 14px);
  line-height: var(--gds-type-body-line-height, 22px);
}

.eva-file-preview-sidebar__frame {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: 0;
  display: block;
  background: #fff;
}

.eva-file-preview-sidebar__image {
  width: 100%;
  height: 100%;
  padding: 24px;
  box-sizing: border-box;
  object-fit: contain;
}

.eva-file-preview-sidebar__empty {
  height: 100%;
  min-height: 360px;
  padding: 28px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--gds-color-text-secondary-accessible, #6b7280);
  text-align: center;
}

.eva-file-preview-sidebar__empty > .eva-drive__file-mark {
  width: 54px;
  height: 54px;
}

.eva-file-preview-sidebar__empty > strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--gds-color-text-primary, #1e1e1e);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eva-file-preview-sidebar__empty > span,
.eva-file-preview-sidebar__empty > p {
  color: var(--gds-color-text-secondary-accessible, #6b7280) !important;
  font-size: 12px !important;
}

.eva-word-preview {
  min-height: 100%;
  padding: 24px 20px 40px;
  box-sizing: border-box;
  overflow: auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 18px;
  background: #eceef2;
}

.eva-word-preview__page {
  position: relative;
  width: min(100%, 460px);
  min-height: 590px;
  padding: 48px 44px 54px;
  box-sizing: border-box;
  color: #24262b;
  background: #fff;
  box-shadow: 0 3px 14px rgb(31 35 41 / 12%);
}

.eva-word-preview__kicker {
  color: #767c87;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eva-word-preview__page h2 {
  margin: 14px 0 8px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 24px;
  line-height: 1.35;
}

.eva-word-preview__page h3 {
  margin: 24px 0 8px;
  font-size: 15px;
}

.eva-word-preview__page p {
  margin: 10px 0;
  color: #3d4149;
  font-size: 13px;
  line-height: 1.9;
  text-align: justify;
}

.eva-word-preview__page .eva-word-preview__subtitle {
  margin-bottom: 26px;
  color: #858b96;
  font-size: 11px;
  text-align: left;
}

.eva-word-preview__page footer {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  color: #9aa0aa;
  font-size: 11px;
  text-align: center;
}

.eva-sheet-preview {
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 38px minmax(0, 1fr) 38px;
  background: #fff;
}

.eva-sheet-preview__formula {
  padding: 0 12px;
  border-bottom: 1px solid #dfe3e8;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #59616c;
  font-size: 12px;
}

.eva-sheet-preview__formula strong {
  color: #16845b;
  font-family: Georgia, serif;
  font-style: italic;
}

.eva-sheet-preview__viewport {
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

.eva-sheet-preview table {
  min-width: 720px;
  border-spacing: 0;
  border-collapse: separate;
  color: #34383f;
  font-size: 12px;
}

.eva-sheet-preview th,
.eva-sheet-preview td {
  min-width: 118px;
  height: 34px;
  padding: 0 10px;
  box-sizing: border-box;
  border-right: 1px solid #e2e5e9;
  border-bottom: 1px solid #e2e5e9;
  overflow: hidden;
  background: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eva-sheet-preview thead th {
  position: sticky;
  z-index: 2;
  top: 0;
  color: #48505a;
  background: #f3f5f7;
  font-weight: 600;
}

.eva-sheet-preview tbody th,
.eva-sheet-preview .is-corner {
  position: sticky;
  z-index: 1;
  left: 0;
  min-width: 42px;
  width: 42px;
  color: #727985;
  background: #f3f5f7;
  text-align: center;
}

.eva-sheet-preview .is-corner {
  z-index: 3;
}

.eva-sheet-preview__tabs {
  padding: 0 10px;
  border-top: 1px solid #dfe3e8;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f6f7f8;
}

.eva-sheet-preview__tabs button {
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #5d6470;
  background: transparent;
  cursor: pointer;
}

.eva-sheet-preview__tabs button.is-active {
  border-bottom-color: #16845b;
  color: #126b4b;
  background: #fff;
  font-weight: 600;
}

.eva-sheet-preview__tabs > span {
  margin-left: auto;
  color: #858b96;
  font-size: 11px;
}

.eva-presentation-preview {
  height: 100%;
  min-height: 480px;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 78px 36px;
  gap: 12px;
  color: #fff;
  background: #20232b;
}

.eva-presentation-preview__stage {
  min-height: 0;
  display: flex;
  align-items: center;
}

.eva-presentation-preview__slide {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 38px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  background: linear-gradient(135deg, #5146b8, #2d275f);
  box-shadow: 0 12px 30px rgb(0 0 0 / 28%);
}

.eva-presentation-preview__slide.is-blue { background: linear-gradient(135deg, #1469a8, #18365f); }
.eva-presentation-preview__slide.is-orange { background: linear-gradient(135deg, #d65e32, #71351f); }
.eva-presentation-preview__slide.is-green { background: linear-gradient(135deg, #198060, #16483b); }

.eva-presentation-preview__slide small {
  margin-bottom: 12px;
  opacity: .74;
  font-size: 11px;
  letter-spacing: .08em;
}

.eva-presentation-preview__slide h2 {
  max-width: 88%;
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.25;
}

.eva-presentation-preview__slide p {
  max-width: 80%;
  margin: 14px 0 0;
  color: rgb(255 255 255 / 82%);
  font-size: 13px;
}

.eva-presentation-preview__slide ul {
  margin: 18px 0 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.8;
}

.eva-presentation-preview__metric {
  margin-top: 20px;
  font-size: 28px;
}

.eva-presentation-preview__thumbs {
  overflow-x: auto;
  display: flex;
  gap: 8px;
}

.eva-presentation-preview__thumbs button {
  min-width: 112px;
  padding: 8px;
  border: 1px solid #4a4f5c;
  border-radius: 5px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  color: #d7d9df;
  background: #2d3039;
  text-align: left;
  cursor: pointer;
}

.eva-presentation-preview__thumbs button.is-active {
  border-color: #a99fff;
  box-shadow: inset 0 0 0 1px #a99fff;
}

.eva-presentation-preview__thumbs small {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eva-presentation-preview__controls {
  display: grid;
  grid-template-columns: 84px 1fr 84px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-align: center;
}

.eva-presentation-preview__controls button {
  height: 32px;
  border: 1px solid #505664;
  border-radius: 6px;
  color: #fff;
  background: #30343e;
  cursor: pointer;
}

.eva-presentation-preview__controls button:disabled {
  opacity: .4;
  cursor: default;
}

.eva-markdown-preview {
  min-height: 100%;
  padding: 0 28px 44px;
  box-sizing: border-box;
  color: #2f3339;
  background: #fff;
}

.eva-markdown-preview__toolbar {
  position: sticky;
  z-index: 2;
  top: 0;
  margin: 0 -28px 28px;
  padding: 10px 18px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  gap: 4px;
  background: rgb(255 255 255 / 96%);
}

.eva-markdown-preview__toolbar button {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: #6b7280;
  background: transparent;
  cursor: pointer;
}

.eva-markdown-preview__toolbar button.is-active {
  color: #5548c8;
  background: #f0eefe;
  font-weight: 600;
}

.eva-markdown-preview article {
  max-width: 680px;
  margin: 0 auto;
}

.eva-markdown-preview h1 {
  margin: 0 0 12px;
  font-size: 26px;
}

.eva-markdown-preview h2 {
  margin: 30px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eceef1;
  font-size: 18px;
}

.eva-markdown-preview p,
.eva-markdown-preview li {
  font-size: 14px;
  line-height: 1.8;
}

.eva-markdown-preview__summary {
  color: #68707c;
}

.eva-markdown-preview__source {
  margin: 0;
  padding: 20px;
  border-radius: 8px;
  overflow: auto;
  color: #d9dce3;
  background: #20232b;
  font: 12px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
}

.eva-archive-preview {
  min-height: 100%;
  padding: 22px;
  box-sizing: border-box;
  color: #34383f;
  background: #fff;
}

.eva-archive-preview__summary {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid #e3e6ea;
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  background: #f8f9fa;
}

.eva-archive-preview__summary span {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
}

.eva-archive-preview__summary strong {
  font-size: 16px;
}

.eva-archive-preview__summary small,
.eva-archive-preview__row small {
  color: #7b828e;
  font-size: 11px;
}

.eva-archive-preview__head,
.eva-archive-preview__row {
  min-width: 0;
  min-height: 42px;
  padding: 0 10px;
  border-bottom: 1px solid #eceef1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px 68px;
  align-items: center;
  gap: 8px;
}

.eva-archive-preview__head {
  min-height: 34px;
  color: #7b828e;
  background: #f5f6f8;
  font-size: 11px;
}

.eva-archive-preview__row > span {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eva-archive-preview__row i {
  width: 18px;
  display: inline-block;
  color: #7c6ee6;
  font-style: normal;
  text-align: center;
}

.eva-file-detail-dialog__panel {
  width: min(720px, calc(100% - 48px));
}

.eva-file-detail-dialog__panel .eva-drive-dialog__body {
  max-height: min(680px, calc(100vh - 180px));
}

.eva-file-detail-dialog__content {
  font: 400 14px/22px var(--eva-font-sans, "PingFang SC", sans-serif);
}

.eva-file-detail-dialog__content .eva-drive__inspector-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.eva-shortcut-source {
  min-width: 0;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--gds-color-border-faint, #ebebeb);
  border-radius: var(--gds-radius-control, 8px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--gds-color-surface-subtle, #f5f5f5);
}

.eva-shortcut-source span,
.eva-shortcut-source small {
  color: var(--gds-color-text-secondary-accessible, #6b7280);
  font-size: 11px;
}

.eva-shortcut-source strong {
  overflow: hidden;
  color: var(--gds-color-text-primary, #1e1e1e);
  font-size: 13px;
  font-weight: var(--gds-font-weight-medium, 500);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eva-drive-dialog__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eva-drive-dialog__field + .eva-drive-dialog__field {
  margin-top: 24px;
}

.eva-drive-dialog__field span {
  color: var(--gds-color-text-secondary, #4a4a4a);
  font-size: var(--gds-type-caption-font-size, 12px);
}

.eva-drive-dialog__field input,
.eva-drive-dialog__field select,
.eva-drive-dialog__field textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--gds-color-border-default, #ccc);
  border-radius: var(--gds-radius-control, 8px);
  color: var(--gds-color-text-primary, #1e1e1e);
  background: var(--gds-color-surface-primary, #fff);
  font: inherit;
}

.eva-external-link-warning {
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid var(--semi-color-warning-light-active, #f0d79a);
  border-radius: var(--gds-radius-control, 8px);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--gds-color-text-secondary, #4a4a4a);
  background: var(--semi-color-warning-light-default, #fff7e6);
  font-size: var(--gds-type-caption-font-size, 12px);
  line-height: 18px;
}

.eva-external-link-warning .eva-drive-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.eva-drive-dialog__field textarea {
  min-height: 80px;
  padding: 9px 10px;
  line-height: 20px;
  resize: vertical;
}

.eva-tag-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eva-tag-editor__label {
  color: var(--gds-color-text-secondary, #4a4a4a);
  font-size: var(--gds-type-caption-font-size, 12px);
}

.eva-tag-editor__selected {
  min-height: 30px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.eva-tag-editor__chip {
  min-width: 0;
  height: 26px;
  padding: 0 4px 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--gds-color-text-secondary, #4a4a4a);
  background: var(--gds-color-surface-subtle, #f2f2f2);
  font-size: 12px;
}

.eva-tag-editor__chip > span {
  overflow: hidden;
  max-width: 180px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eva-tag-editor__chip > button {
  width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--gds-color-text-secondary-accessible, #6b7280);
  background: transparent;
  line-height: 18px;
  cursor: pointer;
}

.eva-tag-editor__chip > button:hover {
  color: var(--gds-color-text-primary, #1e1e1e);
  background: var(--gds-color-surface-hover, #e8e8e8);
}

.eva-tag-editor__control {
  min-height: 38px;
  border: 1px solid var(--gds-color-border-default, #ccc);
  border-radius: var(--gds-radius-control, 8px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  background: var(--gds-color-surface-primary, #fff);
}

.eva-tag-editor__control:focus-within {
  border-color: var(--gds-color-brand-primary, #1769e0);
  box-shadow: 0 0 0 2px rgba(23, 105, 224, .12);
}

.eva-tag-editor__control > input {
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 0;
  outline: 0;
  color: var(--gds-color-text-primary, #1e1e1e);
  background: transparent;
  font: inherit;
}

.eva-tag-editor__toggle {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 8px;
  border: 0 !important;
  color: var(--gds-color-text-secondary-accessible, #6b7280) !important;
  background: transparent !important;
  cursor: pointer;
}

.eva-tag-editor__toggle .eva-drive-icon {
  width: 16px;
  height: 16px;
}

.eva-tag-editor__dropdown {
  max-height: 144px;
  padding: 4px;
  border: 1px solid var(--gds-color-border-faint, #ebebeb);
  border-radius: var(--gds-radius-control, 8px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--gds-color-surface-primary, #fff);
  box-shadow: var(--gds-shadow-menu, 0 8px 24px rgba(0, 0, 0, .08));
}

.eva-tag-editor__option {
  min-height: 32px;
  padding: 0 9px;
  border: 0 !important;
  border-radius: 6px !important;
  color: var(--gds-color-text-primary, #1e1e1e) !important;
  background: transparent !important;
  text-align: left;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.eva-tag-editor__option:hover,
.eva-tag-editor__option:focus-visible {
  background: var(--gds-color-surface-subtle, #f5f5f5) !important;
  outline: 0;
}

.eva-tag-editor__empty {
  padding: 6px 8px;
  color: var(--gds-color-text-secondary-accessible, #6b7280);
  font-size: 12px;
}

.eva-drive-dialog__hint {
  margin-top: 10px !important;
  color: var(--gds-color-text-secondary-accessible, #6b7280) !important;
  font-size: var(--gds-type-caption-font-size, 12px) !important;
}

.eva-drive-dialog__panel footer {
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--gds-color-border-faint, #ebebeb);
}

.eva-drive-dialog button.is-primary {
  border-color: var(--gds-color-action-primary, #1563eb);
  color: var(--gds-color-action-primary-text, #fff);
  background: var(--gds-color-action-primary, #1563eb);
}

/* Project > Team Files uses the same file primitives without the global space tree. */
.eva-project-files {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--gds-color-text-primary, #1e1e1e);
  background: var(--gds-color-surface-primary, #fff);
}

.eva-project-files__header {
  min-height: 72px;
  padding: 16px 24px 10px;
  border-bottom: 1px solid var(--gds-color-border-faint, #ebebeb);
  display: flex;
  align-items: center;
  gap: 10px;
}

.eva-project-files__header > div:first-child {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.eva-project-files__header h1 {
  margin: 0;
  color: var(--gds-color-text-strong, #1e1e1e);
  font-size: 20px;
  line-height: 28px;
  font-weight: var(--gds-font-weight-semibold, 600);
}

.eva-project-files__header p {
  margin: 1px 0 0;
  overflow: hidden;
  color: var(--gds-color-text-secondary-accessible, #6b7280);
  font-size: var(--gds-type-caption-font-size, 12px);
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eva-project-files__toolbar {
  min-height: 58px;
  padding: 12px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.eva-project-files__toolbar .eva-drive__side-search {
  width: min(320px, 42%);
  margin: 0 0 0 auto;
}

.eva-project-files__content {
  min-height: 0;
  overflow: auto;
  flex: 1;
}

.eva-project-files__table,
body.eva-message-hierarchy-ready .eva-project-files__table {
  min-width: 760px;
  margin: 0 24px 24px;
}

.eva-project-files > .eva-drive__breadcrumbs {
  flex: 0 0 auto;
  margin: 0 24px 10px;
}

.eva-project-files > .eva-drive__pathbar {
  flex: 0 0 auto;
  margin: 0 24px 10px;
}

.eva-project-files__empty {
  min-height: 240px;
  display: grid;
  place-items: center;
  color: var(--gds-color-text-secondary-accessible, #6b7280);
  font-size: var(--gds-type-body-font-size, 14px);
}

.eva-file-detail-dialog__content .eva-drive__inspector-actions > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.eva-file-detail-dialog__content .eva-drive__management-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eva-project-files-dialog {
  position: absolute;
  z-index: 110;
}

.eva-project-files-dialog.eva-file-detail-dialog {
  z-index: 100;
}

.eva-project-files-dialog__panel--wide {
  width: min(900px, calc(100% - 48px));
}

.eva-project-files-dialog__panel--wide .eva-drive-dialog__body {
  max-height: min(680px, calc(100vh - 180px));
  overflow: auto;
}

.eva-project-files__error {
  margin-top: 6px;
  color: #c53b3b;
  font-size: 12px;
}

.eva-project-files__notice {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  max-width: min(360px, calc(100% - 48px));
  padding: 10px 14px;
  border: 1px solid var(--gds-color-border-faint, #e5e7eb);
  border-radius: 10px;
  color: var(--gds-color-text-primary, #1e1e1e);
  background: var(--gds-color-surface-primary, #fff);
  box-shadow: 0 8px 24px rgb(0 0 0 / 14%);
  font-size: 13px;
  line-height: 20px;
}

.eva-project-file-preview {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.eva-project-file-preview-sidebar .eva-members-notice {
  flex: 0 0 auto;
  margin: 12px;
}

.eva-project-file-preview-sidebar .wk-file-preview-panel {
  min-height: 0;
  flex: 1;
}

.eva-file-trash-list {
  display: flex;
  flex-direction: column;
}

.eva-file-trash-row {
  min-height: 58px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gds-color-border-faint, #ebebeb);
  display: flex;
  align-items: center;
  gap: 16px;
}

.eva-file-trash-row > div:first-child {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.eva-file-trash-row strong {
  overflow: hidden;
  color: var(--gds-color-text-primary, #1e1e1e);
  font-size: var(--gds-type-label-font-size, 14px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eva-file-trash-row small {
  color: var(--gds-color-text-secondary-accessible, #6b7280);
  font-size: var(--gds-type-caption-font-size, 12px);
}

.collab-drive-head {
  gap: 8px;
}

@media (max-width: 1080px) {
  .eva-native-page-host > .eva-drive,
  body.eva-message-hierarchy-ready .eva-native-page-host > .eva-drive {
    grid-template-columns: 184px minmax(0, 1fr);
  }

  .eva-drive__header > div:first-child > span {
    display: none;
  }

  .eva-project-files__toolbar .eva-drive__side-search {
    width: 100%;
    margin-left: 0;
  }

  body.eva-message-hierarchy-ready .eva-drive__table--with-source .eva-drive__table-head,
  body.eva-message-hierarchy-ready .eva-drive__table--with-source .eva-drive__row,
  .eva-drive__table-head,
  .eva-drive__row {
    grid-template-columns: minmax(210px, 1.4fr) 88px minmax(145px, .9fr) 62px 108px 68px;
    gap: 10px;
  }

}

/* Shared file surfaces: readable metadata, bounded scroll and keyboard targets. */
.eva-drive__side { background: var(--eva-surface-glass); backdrop-filter: blur(var(--eva-blur-glass)); }
.eva-drive__table-head { position: sticky; top: 0; z-index: 2; font: 500 12px/16px var(--eva-font-sans); }
.eva-drive__row { font: 400 14px/22px var(--eva-font-sans); }
.eva-drive__table:focus-visible { outline: 2px solid var(--eva-border-focus); outline-offset: -2px; }
.eva-drive-dialog__panel header h2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 16px/24px var(--eva-font-sans); }
.eva-drive-dialog__field span { font: 500 14px/22px var(--eva-font-sans); color: var(--eva-text-primary); }
.eva-drive-dialog__field :is(input,select,textarea):focus-visible { outline: 2px solid var(--eva-border-focus); outline-offset: 2px; }
.eva-drive__meta :is(dt,dd) { font: 400 12px/16px var(--eva-font-sans); }
@media (prefers-reduced-motion: reduce) { .eva-drive__inspector { transition: none; } }
