/* PAIMONVERSE Drive | action hierarchy and menu controls
 * Scoped extension over the existing KMS-inspired design tokens.
 * Shared CDN Remix Icon is the only icon font used.
 */
:root {
  --pv-menu-shadow: 0 10px 30px rgba(24, 37, 67, .14), 0 2px 6px rgba(24, 37, 67, .06);
}
.pv-menu-trigger, .pv-settings-trigger {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--pv-radius-sm, 6px);
  background: transparent;
  color: #556277;
  font-size: 18px;
  font-weight: 550;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
}
.pv-menu-trigger:hover, .pv-settings-trigger:hover,
.pv-menu-trigger[aria-expanded="true"], .pv-settings-trigger[aria-expanded="true"] {
  background: #f0f3f9;
  border-color: #dfe5ef;
  color: var(--pv-action, #516be1);
}
.pv-menu-trigger:focus-visible, .pv-settings-trigger:focus-visible,
.pv-action-popover button:focus-visible {
  outline: 2px solid var(--pv-focus, #5370ec) !important;
  outline-offset: 2px;
}
.pv-menu-trigger i, .pv-settings-trigger i { font-size: 20px; line-height: 1; pointer-events: none; }
.pv-menu-batch {
  width: auto;
  min-width: 40px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d6dfea;
  background: #fff;
  color: #344054;
  font-size: 13px;
  font-weight: 620;
}
.pv-menu-batch i { font-size: 17px; }
.pv-action-popover {
  position: fixed;
  z-index: 2147482900;
  box-sizing: border-box;
  overflow: auto;
  padding: 5px;
  border: 1px solid #e1e6ef;
  border-radius: 9px;
  background: #fff;
  box-shadow: var(--pv-menu-shadow);
  color: var(--pv-text, #202838);
  overscroll-behavior: contain;
}
.pv-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  gap: 11px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #273244;
  text-align: left;
  font-size: 13px;
  font-weight: 530;
  white-space: normal;
  cursor: pointer;
}
.pv-menu-item i { flex: 0 0 18px; font-size: 17px; color: #68768a; line-height: 1; }
.pv-menu-item:hover:not(:disabled), .pv-menu-item:focus-visible { background: #f1f4fa; }
.pv-menu-item:disabled { opacity: .4; cursor: not-allowed; }
.pv-menu-item.pv-menu-danger { color: #b42332; }
.pv-menu-item.pv-menu-danger i { color: #b42332; }
.pv-menu-item.pv-menu-danger:hover { background: #fff2f2; }
.pv-menu-item.pv-menu-danger:not(:first-child) { border-top: 1px solid #eef0f4; border-radius: 0 0 5px 5px; margin-top: 4px; padding-top: 10px; }
/* The source commands stay mounted for the existing event handlers, but not visible. */
.pv-enhanced .minas-folder-actions > button:not(.pv-menu-trigger),
.pv-enhanced .minas-row-actions > button:not(.pv-menu-trigger),
.pv-enhanced .minas-file-actions > button:not(.pv-menu-trigger),
.pv-enhanced .minas-file-actions > .minas-share-action-group,
.pv-enhanced .minas-mobile-share-btn,
.pv-enhanced .minas-mobile-detail-btn,
.pv-enhanced .minas-mobile-file-detail-btn { display: none !important; }
.pv-enhanced .minas-selection-actions > button:not(.pv-menu-trigger),
.pv-enhanced .minas-file-selection-actions > button:not(#btnDownloadSelectedFiles):not(.pv-menu-trigger) { display: none !important; }
.pv-enhanced .minas-folder-actions,
.pv-enhanced .minas-file-action-col,
.pv-enhanced .minas-file-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0 !important;
  min-width: 36px;
  padding: 0 !important;
  margin: 0 !important;
}
.pv-enhanced .minas-file-actions { grid-column: auto !important; }
.pv-enhanced .minas-grid-public select[data-pv-visibility],
.pv-enhanced .minas-file-public-col select[data-pv-visibility] { display: none !important; }
.pv-visibility-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  width: max-content;
  padding: 3px 9px;
  border-radius: 5px;
  background: #f0f2f6;
  color: #5b6577;
  font-size: 12px;
  font-weight: 540;
  line-height: 1.4;
  white-space: nowrap;
}
.pv-visibility-badge.is-public { background: #edf2ff; color: #425dc1; }
/* Header and folder records share identical tracks and spacing; never position
   headers with the old legacy .minas-file-row columns. */
.minas-folder-list, .minas-folder-section { --pv-folder-columns: 32px minmax(160px,1fr) 132px 124px 44px; }
.minas-folder-list > .minas-file-head,
.minas-folder-section > .minas-file-head.minas-child-folder-head {
  display: grid !important;
  grid-template-columns: var(--pv-folder-columns) !important;
  column-gap: 12px !important;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pv-secondary, #687487);
}
.minas-folder-list > .minas-file-head .minas-file-public-col,
.minas-folder-list > .minas-file-head .minas-file-time-col,
.minas-folder-section > .minas-child-folder-head .minas-file-public-col,
.minas-folder-section > .minas-child-folder-head .minas-file-time-col {
  display: flex !important;
  align-items: center;
}
.minas-folder-list > .minas-file-head .minas-file-check,
.minas-folder-section > .minas-child-folder-head .minas-file-check { display: flex !important; }
/* Owner's file/folder list: checkbox, identity, metadata, one menu. */
.minas-folder-row.pv-enhanced,
.minas-child-folder-row.pv-enhanced {
  display: grid !important;
  grid-template-columns: var(--pv-folder-columns) !important;
  column-gap: 12px !important;
  padding: 0 10px !important;
  min-height: 58px;
  align-items: center;
  min-width: 0;
}
.minas-folder-row.pv-enhanced > .minas-mobile-action-col,
.minas-child-folder-row.pv-enhanced > .minas-mobile-action-col { display: none !important; }
.minas-folder-row.pv-enhanced > .minas-file-check { display: flex !important; align-items: center; justify-content: center; }
.minas-folder-row.pv-enhanced > .minas-file-action-col { display: flex !important; grid-column: 5; }
.minas-folder-row.pv-enhanced > .minas-file-public-col,
.minas-folder-row.pv-enhanced > .minas-file-time-col { display: flex !important; align-items: center; }
.minas-folder-list .minas-file-time-col strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--pv-secondary, #687487);
}
.minas-folder-list .minas-file-name-col { min-width: 0; }
.minas-folder-list .minas-file-name-col .minas-list-name { font-weight: 600; }

.minas-file-item.pv-enhanced {
  display: grid !important;
  grid-template-columns: 30px 48px minmax(150px, 1fr) 86px 120px 46px !important;
  align-items: center !important;
}
.minas-file-item.pv-enhanced > .minas-file-check { display: flex !important; align-items: center; justify-content: center; }
.minas-file-item.pv-enhanced > .minas-file-actions { display: flex !important; justify-content: flex-end !important; }
.minas-file-item.pv-enhanced > .minas-file-main { min-width: 0; }
/* Nested folder headers use the same table tracks. The folder page injects an old
   five-column style later; explicit scoped specificity keeps it from overriding
   the aligned folder presentation without changing its file-list layout. */
.minas-folder-section > .minas-file-head.minas-child-folder-head,
.minas-folder-section > .minas-folder-row.pv-enhanced {
  grid-template-columns: var(--pv-folder-columns) !important;
  column-gap: 12px !important;
  padding: 0 10px !important;
}
.minas-folder-section > .minas-folder-row.pv-enhanced > .minas-file-time-col { display: flex !important; }
@media (max-width: 900px) {
  .minas-folder-section { --pv-folder-columns: 28px minmax(0,1fr) 42px; }
  .minas-folder-section > .minas-file-head.minas-child-folder-head { display: none !important; }
  .minas-folder-section > .minas-child-folder-row.pv-enhanced {
    grid-template-columns: var(--pv-folder-columns) !important;
    column-gap: 7px !important;
  }
  .minas-folder-section > .minas-child-folder-row.pv-enhanced > .minas-file-check { grid-column: 1 !important; }
  .minas-folder-section > .minas-child-folder-row.pv-enhanced > .minas-file-name-col { grid-column: 2 !important; min-width: 0; }
  .minas-folder-section > .minas-child-folder-row.pv-enhanced > .minas-file-action-col { display: flex !important; grid-column: 3 !important; }
  .minas-folder-section > .minas-child-folder-row.pv-enhanced > .minas-file-public-col,
  .minas-folder-section > .minas-child-folder-row.pv-enhanced > .minas-file-time-col { display: none !important; }
}
/* Selection actions are visible only while actual selections exist. */
#selectionBar.pv-enhanced:not([hidden]), #fileSelectionBar.pv-enhanced:not([hidden]) {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #f4f6ff;
  border: 1px solid #dbe3ff;
  border-radius: 8px;
  padding: 9px 12px;
}
#selectionBar[hidden], #fileSelectionBar[hidden] { display: none !important; }
.pv-enhanced .minas-selection-actions, .pv-enhanced .minas-file-selection-actions { display: flex !important; align-items: center; gap: 8px; }
#btnDownloadSelectedFiles { display: inline-flex; align-items: center; gap: 7px; }
/* Header settings contain the advanced share URL preference, not a global topbar switch. */
.pv-settings { position: relative; display: inline-flex; align-items: center; flex: none; }
.pv-settings-panel {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 100;
  width: min(290px, calc(100vw - 24px));
  padding: 15px;
  background: #fff;
  border: 1px solid var(--pv-border, #e4e8f1);
  border-radius: 9px;
  box-shadow: var(--pv-menu-shadow);
}
.pv-settings-panel[hidden] { display: none !important; }
.pv-settings-panel .minas-short-share-toggle {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 4px 0;
  background: none;
  border: 0;
  font-size: 13px;
}
/* The view-mode selector replaces the ambiguous second toolbar icon. */
.pv-view-picker { position: relative; display: inline-flex; align-items: center; flex: none; }
.pv-view-picker-trigger {
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  width: 52px; height: 40px; padding: 0 7px;
  background: #fff; color: #41506a;
  border: 1px solid #d9e0eb; border-radius: 7px;
  box-shadow: none; cursor: pointer;
}
.pv-view-picker-trigger:hover, .pv-view-picker-trigger[aria-expanded="true"] {
  background: #f5f7fc; border-color: #c4cfe6;
}
.pv-view-picker-trigger:focus-visible, .pv-view-option:focus-visible {
  outline: 2px solid var(--pv-focus, #5370ec); outline-offset: 2px;
}
.pv-view-current { font-size: 19px; line-height: 1; }
.pv-view-chevron { font-size: 15px; line-height: 1; color: #64748b; }
.pv-view-picker-panel {
  position: absolute; top: calc(100% + 7px); right: 0; z-index: 110;
  min-width: 174px; padding: 5px;
  border: 1px solid var(--pv-border, #e4e8f1); border-radius: 8px;
  background: #fff; box-shadow: var(--pv-menu-shadow);
}
.pv-view-picker-panel[hidden] { display: none !important; }
.pv-view-option {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 40px; padding: 7px 9px;
  border: none; border-radius: 5px; background: transparent;
  color: #334155; text-align: left; font-size: 13px;
  font-weight: 550; white-space: nowrap; cursor: pointer;
}
.pv-view-option > i:first-child { font-size: 18px; color: #64748b; }
.pv-view-option > span { flex: 1; }
.pv-view-option:hover, .pv-view-option:focus-visible { background: #f3f5fb; }
.pv-view-option[aria-pressed="true"] { color: #415bd4; background: #f1f4ff; }
.pv-view-option[aria-pressed="true"] > i:first-child { color: #415bd4; }
.pv-view-option .pv-view-check { display: none; color: #415bd4; font-size: 15px; }
.pv-view-option[aria-pressed="true"] .pv-view-check { display: inline-block; }
/* Explain the short-link limitation without exposing an arbitrary expiry time. */
.pv-settings-panel .minas-short-share-toggle { cursor: pointer; }
.pv-settings-panel .minas-short-share-label { white-space: normal; line-height: 1.4; font-weight: 600; }
.pv-settings-panel .minas-short-share-toggle:focus-within {
  outline: 2px solid var(--pv-focus, #5370ec); outline-offset: 2px;
  border-radius: 5px; box-shadow: none;
}
.pv-settings-short-warning {
  margin: 9px 0 0; padding: 9px 0 0;
  border-top: 1px solid #edf0f4;
  color: #667085; font-size: 12px; line-height: 1.65;
  overflow-wrap: anywhere;
}
/* Read-only server assignment in the existing preferences panel. */
.pv-settings-server {
  margin-top: 14px; padding-top: 14px; min-width: 0;
  border-top: 1px solid #e7ebf2;
}
.pv-settings-server-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pv-settings-server-label { color: #667085; font-size: 13px; }
.pv-settings-server-value { color: #263448; font-size: 13px; font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.pv-settings-server-details[hidden] { display: none !important; }
.pv-settings-server-details { margin-top: 8px; font-size: 12px; }
.pv-settings-server-more { display: inline-flex; align-items: center; gap: 3px; color: #53627a; cursor: pointer; border-radius: 3px; list-style: none; }
.pv-settings-server-more::-webkit-details-marker { display: none; }
.pv-settings-server-more::marker { content: ''; }
.pv-settings-server-chevron { font-size: 16px; line-height: 1; transition: transform .15s ease; }
.pv-settings-server-details[open] .pv-settings-server-chevron { transform: rotate(90deg); }
.pv-settings-server-more:hover { color: var(--pv-action, #516be1); }
.pv-settings-server-more:focus-visible { outline: 2px solid var(--pv-focus, #5370ec); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .pv-settings-server-chevron { transition: none; } }
.pv-settings-server-region { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0 2px; }
.pv-settings-server-region-label { color: #667085; }
.pv-settings-server-region-value { color: #263448; font: inherit; overflow-wrap: anywhere; text-align: right; }
/* Storage quota: limited accounts show actual usage; unlimited accounts show 100% available. */
.pv-settings-storage {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e7ebf2;
  min-width: 0;
}
.pv-storage-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pv-storage-title { color: #263448; font-size: 13px; font-weight: 650; }
.pv-storage-percent { color: #53627a; font-size: 12px; font-variant-numeric: tabular-nums; }
.pv-storage-track { width: 100%; height: 7px; overflow: hidden; background: #e9edf5; border-radius: 999px; }
.pv-storage-fill { display: block; width: 0; height: 100%; background: var(--pv-action, #516be1); border-radius: inherit; transition: width .18s ease; }
.pv-storage-near-limit .pv-storage-fill { background: #b26b26; }
.pv-storage-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.pv-storage-metric { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pv-storage-metric-label { color: #748094; font-size: 11px; }
.pv-storage-metric-value { color: #263448; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pv-storage-status { color: #667085; font-size: 12px; line-height: 1.55; margin: 9px 0 0; }
.pv-settings-storage [hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .pv-storage-fill { transition: none; } }
/* General details and toolbar polish. Icon-only controls never rely on an unexplained glyph. */
.minas-detail-close, .minas-modal-close, .minas-selection-clear {
  font-family: inherit;
  font-weight: 400;
}
.minas-file-row:not(.minas-file-head):focus-within,
.minas-file-item:focus-within { background: #fafbff; }
.minas-view-btn { min-width: 36px; min-height: 36px; }
.minas-path-actions { gap: 8px !important; }
@media (max-width: 800px) {
  .minas-folder-list { --pv-folder-columns: 28px minmax(0,1fr) 42px; }
  .minas-folder-list > .minas-file-head { display: none !important; }
  .minas-folder-row.pv-enhanced, .minas-child-folder-row.pv-enhanced {
    grid-template-columns: 28px minmax(0,1fr) 42px !important;
    column-gap: 7px !important;
    padding: 8px 3px !important;
  }
  .minas-folder-row.pv-enhanced > .minas-file-check { grid-column: 1 !important; grid-row: 1 !important; }
  .minas-folder-row.pv-enhanced > .minas-file-name-col { grid-column: 2 !important; grid-row: 1 !important; min-width: 0; }
  .minas-folder-row.pv-enhanced > .minas-file-action-col { grid-column: 3 !important; grid-row: 1 !important; }
  .minas-folder-row.pv-enhanced > .minas-file-public-col,
  .minas-folder-row.pv-enhanced > .minas-file-time-col { display: none !important; }
  .minas-file-item.pv-enhanced {
    grid-template-columns: 28px 42px minmax(0,1fr) 42px !important;
    gap: 6px !important;
    padding: 9px 3px !important;
  }
  .minas-file-item.pv-enhanced > .minas-file-check { display: flex !important; grid-column: 1 !important; }
  .minas-file-item.pv-enhanced > .minas-file-preview { grid-column: 2 !important; }
  .minas-file-item.pv-enhanced > .minas-file-main { grid-column: 3 !important; min-width: 0; }
  .minas-file-item.pv-enhanced > .minas-file-actions { grid-column: 4 !important; }
  .minas-file-item.pv-enhanced > .minas-file-size,
  .minas-file-item.pv-enhanced > .minas-file-time { display: none !important; }
  .pv-menu-trigger { width: 40px; height: 40px; }
  .pv-menu-batch { width: auto; padding: 0 11px; }
  #selectionBar.pv-enhanced:not([hidden]), #fileSelectionBar.pv-enhanced:not([hidden]) { gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .pv-menu-trigger, .pv-settings-trigger, .pv-action-popover { transition: none !important; }
}
/* Folder grid — one stable layout at all breakpoints.
   Cards need enough width for checkbox, folder title and menu; old 122px columns
   were forcing Chinese metadata into one-character lines. */
.minas-folder-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)) !important;
  align-items: stretch;
  gap: 14px !important;
  padding: 6px 0 !important;
}
.minas-folder-card.pv-enhanced {
  box-sizing: border-box;
  position: relative;
  display: grid !important;
  grid-template-columns: 26px minmax(0, 1fr) 36px !important;
  grid-template-rows: minmax(38px, auto) minmax(17px, auto) !important;
  align-content: center !important;
  align-items: center !important;
  column-gap: 9px !important;
  row-gap: 1px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 86px !important;
  height: auto !important;
  padding: 12px 12px !important;
  border: 1px solid var(--pv-border, #e4e8f1) !important;
  border-radius: 8px !important;
  background: var(--pv-surface, #fff) !important;
  text-align: left !important;
}
.minas-folder-card.pv-enhanced:hover { border-color: var(--pv-brand-border, #ced8ff) !important; }
.minas-folder-card.pv-enhanced.is-selected { background: var(--pv-brand-soft, #eef2ff) !important; }
.minas-folder-card.pv-enhanced > .minas-grid-check {
  display: flex !important;
  position: static !important;
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  width: 26px !important;
  margin: 0 !important;
}
.minas-folder-card.pv-enhanced > .minas-folder-open {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 38px !important;
  height: auto !important;
  gap: 9px !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: left !important;
}
.minas-folder-card.pv-enhanced .minas-folder-icon {
  flex: 0 0 31px !important;
  width: 31px !important;
  height: 31px !important;
  margin: 0 !important;
}
.minas-folder-card.pv-enhanced .minas-folder-icon .pv-folder-glyph {
  width: 31px; height: 31px; font-size: 27px;
}
.minas-folder-card.pv-enhanced .minas-folder-name {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  color: var(--pv-text, #202838) !important;
  font-size: 14px !important;
  font-weight: 620 !important;
  line-height: 1.5 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  overflow-wrap: normal !important;
  text-align: left !important;
}
.minas-folder-card.pv-enhanced > .minas-mobile-card-meta {
  display: block !important;
  grid-column: 2 !important;
  grid-row: 2 !important;
  align-self: start !important;
  justify-self: stretch !important;
  min-width: 0 !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  color: var(--pv-secondary, #687487) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-align: left !important;
}
.minas-folder-card.pv-enhanced > .minas-grid-public,
.minas-folder-card.pv-enhanced > .minas-mobile-share-btn,
.minas-folder-card.pv-enhanced > .minas-mobile-detail-btn { display: none !important; }
.minas-folder-card.pv-enhanced > .minas-folder-actions {
  display: flex !important;
  grid-column: 3 !important;
  grid-row: 1 / span 2 !important;
  z-index: 1;
  align-self: center !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  min-width: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* Reduce duplicate text: the breadcrumb already names the current drive. */
body[data-page="minas-home"] .minas-page-head > .minas-subtitle { display: none; }
.minas-path-actions .minas-btn-primary, .minas-path-actions #btnNewSubfolder {
  min-height: 36px;
  padding: 0 13px;
}
.minas-selection-clear i, .minas-detail-close i, .minas-upload-close i,
.minas-modal-close i { font-size: 19px; line-height: 1; }
@media (max-width: 800px) {
  .minas-folder-grid { grid-template-columns: 1fr !important; gap: 8px !important; }
  .minas-folder-card.pv-enhanced { min-height: 72px !important; padding: 9px 11px !important; }
  .minas-folder-card.pv-enhanced .minas-folder-name { font-size: 14px !important; }
}

/* Folder details — consistent labels, compact, accessible secondary commands. */
#folderDetailSheet .minas-detail-body { padding: 16px 20px; }
#folderDetailSheet .minas-detail-row {
  display: grid;
  grid-template-columns: minmax(94px, 112px) minmax(0,1fr);
  column-gap: 12px;
  align-items: start;
  padding: 10px 0;
}
#folderDetailSheet .minas-detail-label { font-size: 13px; font-weight: 580; color: #475467; }
#folderDetailSheet .minas-detail-value {
  font-size: 14px;
  color: #53647d;
  line-height: 1.55;
  word-break: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 420px) {
  #folderDetailSheet .minas-detail-body { padding: 12px 16px; }
  #folderDetailSheet .minas-detail-row { grid-template-columns: 96px minmax(0,1fr); gap: 8px; }
}

/* Direct rename: name and an unobtrusive pencil in the three-dot menu and detail heading. */
.pv-menu-namebar { display:flex; align-items:center; min-width:0; gap:5px; padding:8px 8px 10px 12px; margin:0 0 5px; border-bottom:1px solid #e5e9f2; }
.pv-menu-object-name { flex:1; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:13px; font-weight:600; color:#25344d; }
.pv-rename-edit { flex:0 0 30px; width:30px; height:30px; border:0; background:transparent; border-radius:6px; color:#5c6e89; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; font-size:16px; }
.pv-rename-edit:hover { background:#eef2ff; color:#516be1; }
.pv-rename-edit:focus-visible,.pv-rename-confirm:focus-visible,.pv-rename-cancel:focus-visible,.pv-rename-input:focus-visible { outline:2px solid #516be1; outline-offset:2px; }
.pv-rename-input { min-width:0; flex:1; width:100%; height:32px; border:1px solid #a2b6f7; border-radius:6px; padding:0 8px; background:#fff; color:#1e293b; font:inherit; }
.pv-rename-confirm,.pv-rename-cancel { flex:0 0 28px; width:28px; height:28px; border:0; border-radius:6px; background:transparent; color:#50688a; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; }
.pv-rename-confirm { color:#516be1; }
.pv-rename-confirm:hover,.pv-rename-cancel:hover { background:#eef2ff; }
.pv-rename-confirm:disabled,.pv-rename-cancel:disabled { opacity:.45; cursor:default; }
/* A single title row; the title node is swapped out while editing. */
.minas-detail-title-wrap { min-width:0; flex:1 1 auto; }
.pv-detail-name-row { display:flex; align-items:center; gap:4px; min-width:0; width:100%; }
.pv-detail-name-row > .minas-detail-title { flex:0 1 auto; min-width:0; max-width:calc(100% - 36px); margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pv-detail-name-row > .pv-rename-edit { margin-left:0; }
.pv-detail-name-row.pv-renaming > .pv-rename-input { flex:1 1 auto; width:0; min-width:0; }
.pv-detail-name-row.pv-renaming > .pv-rename-confirm,
.pv-detail-name-row.pv-renaming > .pv-rename-cancel { flex:0 0 28px; }
.pv-menu-namebar.pv-renaming > .pv-rename-input { flex:1 1 auto; width:0; min-width:0; }

/* External API documentation uses the existing settings panel, not a separate control. */
.pv-settings-api-doc{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:40px;margin-top:12px;padding:10px 2px 0;border-top:1px solid #edf0f4;color:var(--pv-action,#516be1);font-size:13px;text-decoration:none;cursor:pointer}
.pv-settings-api-doc:hover{color:#3f56ca;text-decoration:none}
.pv-settings-api-doc > i{flex:none;font-size:16px;line-height:1;color:inherit}
.pv-settings-api-doc:focus-visible{outline:2px solid var(--pv-focus,#5370ec);outline-offset:2px}
.pv-settings-api-doc:active{color:#334bb7}
