/* Extracted docs feature surface. */

body[data-view="contacts"] .content-grid,
body[data-view="calendar"] .content-grid,
body[data-view="docs"] .content-grid {
  grid-template-columns: minmax(0, 1fr);
}

body[data-view="docs"] .approval-panel {
  display: none;
}

body[data-theme="dark"] .empty-card,
body[data-theme="dark"] .dashboard-empty,
body[data-theme="dark"] .approval-empty,
body[data-theme="dark"] .review-empty,
body[data-theme="dark"] .docs-empty {
  background: rgba(17, 31, 52, 0.82);
  border: 1px dashed rgba(188, 205, 230, 0.24);
  color: #aebdd2;
}

.docs-command-card,
.docs-browser,
.docs-results {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.docs-command-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 18px;
  align-items: center;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(238, 247, 244, 0.95), rgba(255, 255, 255, 0.96) 42%),
    #fff;
  box-shadow: 0 12px 30px rgba(26, 32, 38, 0.04);
}

.workspace-files-command .docs-command-meta,
.workspace-files-command .docs-action-row {
  justify-content: flex-start;
}

.workspace-files-command .docs-command-meta {
  margin-top: 4px;
}

.docs-command-card h3,
.docs-panel-heading h3 {
  margin: 0;
}

.docs-command-card p {
  max-width: 760px;
  margin: 6px 0 0;
  color: var(--muted);
}

.docs-command-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.docs-command-meta span,
.source-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(102, 113, 125, 0.16);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.docs-command-meta strong {
  margin-right: 4px;
  color: var(--accent-dark);
}

.docs-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.docs-action-row .primary-button,
.docs-action-row .ghost-button {
  min-height: 40px;
  padding: 0 16px;
}

.docs-command-card .docs-action-row,
.docs-command-card .docs-search,
.docs-command-card .docs-quick-searches,
.docs-command-card .docs-category-grid {
  grid-column: 1 / -1;
}

.docs-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 16px;
  align-items: start;
}

.docs-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.docs-file-browser {
  display: grid;
  grid-template-columns: minmax(235px, 290px) minmax(0, 1fr);
  min-height: min(78vh, 920px);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.docs-browser-sidebar {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--line);
  background: #f7faf9;
}

.docs-browser-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
}

.docs-drive-list {
  display: grid;
  gap: 8px;
}

.docs-drive-button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 56px;
  padding: 9px;
  border: 1px solid rgba(102, 113, 125, 0.16);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.docs-drive-button:hover,
.docs-drive-button.active {
  border-color: rgba(42, 103, 202, 0.38);
  background: #eef5ff;
}

.docs-drive-button strong,
.docs-drive-button small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-drive-button strong {
  font-size: 14px;
  line-height: 1.15;
}

.docs-drive-button small {
  display: none;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.docs-drive-button em {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(42, 103, 202, 0.1);
  color: var(--accent-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.docs-drive-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e8f0fe;
  color: #1a56a8;
  font-size: 13px;
  font-weight: 950;
}

.docs-drive-icon svg,
.docs-drive-icon img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.docs-drive-icon.repcloud {
  color: #0b5f59;
  background: #e4f5ef;
}

.docs-drive-icon.dropbox {
  color: #0b64c0;
  background: #e8f2ff;
}

.docs-tree-section {
  display: grid;
  align-content: start;
  gap: 2px;
  overflow: auto;
  min-height: 0;
}

.docs-tree-section > span {
  margin: 2px 4px 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.docs-tree-row {
  min-height: 32px;
  border: 0;
  border-radius: 7px;
  padding: 0 10px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.docs-tree-row:hover,
.docs-tree-row.active {
  background: #eaf2ff;
  color: var(--accent-dark);
}

.docs-recent-section {
  margin-top: 6px;
}

.docs-recent-row {
  display: grid;
  gap: 3px;
  text-align: left;
}

.docs-recent-row strong,
.docs-recent-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-recent-row strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.docs-recent-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.docs-storage-card {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid rgba(102, 113, 125, 0.16);
  border-radius: 8px;
  background: #fff;
}

.docs-storage-card strong {
  color: var(--ink);
}

.docs-storage-card small {
  color: var(--muted);
  font-weight: 750;
}

.docs-storage-card .docs-storage-link {
  color: #2457a8;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
}

.docs-storage-card .docs-storage-link:hover {
  text-decoration: underline;
}

.docs-drive-storage-card {
  border-color: rgba(217, 119, 6, 0.34);
  background: #fff8eb;
}

.docs-drive-storage-card--full {
  border-color: rgba(16, 128, 94, 0.28);
  background: #eefbf5;
}

.docs-drive-quota-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(102, 113, 125, 0.16);
}

.docs-drive-quota-bar span {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: #d97706;
}

.docs-drive-storage-card--full .docs-drive-quota-bar span {
  background: #10805e;
}

.docs-browser-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.docs-browser-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
}

.docs-browser-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  min-height: 86px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfc;
}

.docs-browser-topbar h3 {
  margin: 4px 0 2px;
}

.docs-browser-topbar p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.docs-browser-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: flex-start;
  gap: 8px;
}

.docs-browser-actions .icon-button.active {
  color: #fff;
  background: var(--accent);
}

.docs-selection-bar {
  position: sticky;
  top: 0;
  z-index: 6;
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  margin: 0;
  padding: 8px 16px;
  border: 0;
  border-bottom: 1px solid rgba(42, 103, 202, 0.18);
  border-radius: 0;
  background: rgba(243, 248, 255, 0.96);
  box-shadow: 0 10px 26px rgba(31, 63, 115, 0.08);
  backdrop-filter: blur(10px);
}

.docs-selection-bar strong {
  margin-right: 4px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.docs-selection-note {
  flex: 1 1 220px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.docs-share-panel {
  display: grid;
  gap: 12px;
}

.docs-share-section {
  display: grid;
  gap: 7px;
}

.docs-share-section.external {
  padding-top: 2px;
}

.docs-share-chip-picker {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.docs-share-chip-picker:focus-within {
  border-color: rgba(65, 117, 219, 0.62);
  box-shadow: 0 0 0 3px rgba(65, 117, 219, 0.16);
}

.docs-share-chip-list,
.docs-share-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.docs-share-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 7px;
  min-height: 32px;
  padding: 5px 8px 5px 10px;
  border: 1px solid rgba(65, 117, 219, 0.28);
  border-radius: 999px;
  background: rgba(65, 117, 219, 0.1);
  color: #214d9b;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.docs-share-chip button {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(65, 117, 219, 0.14);
  color: inherit;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.docs-share-chip-entry {
  width: 100%;
  min-height: 38px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.docs-share-quick-row {
  padding-top: 2px;
}

.docs-share-quick-chip {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f9fd;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.docs-share-quick-chip.active {
  border-color: rgba(65, 117, 219, 0.46);
  background: rgba(65, 117, 219, 0.12);
  color: #214d9b;
}

.docs-share-external {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px dashed rgba(105, 124, 151, 0.35);
  border-radius: 8px;
  background: rgba(244, 247, 251, 0.76);
}

.docs-share-external strong {
  color: var(--ink);
}

.docs-browser-table {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  position: relative;
}

.docs-room-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 12px;
  min-height: 0;
  padding: 14px;
  border: 1px solid rgba(102, 113, 125, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfcff 0%, #f6f9fd 100%);
  box-shadow: 0 14px 30px rgba(31, 63, 115, 0.08);
}

.docs-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  padding: 22px;
}

.docs-preview-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(3px);
  cursor: default;
}

.docs-preview-viewer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1600px, calc(100vw - 44px));
  height: min(920px, calc(100vh - 44px));
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(112, 132, 160, 0.24);
  border-radius: 16px;
  background: #f8fbff;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.34);
}

.docs-preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(112, 132, 160, 0.18);
  background: rgba(255, 255, 255, 0.94);
}

.docs-preview-title {
  min-width: 0;
  flex: 1 1 auto;
}

.docs-preview-header strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.docs-preview-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.docs-office-status-strip {
  display: inline-flex;
  max-width: 100%;
  margin-top: 8px;
  padding: 6px 9px;
  border: 1px solid rgba(42, 112, 181, 0.18);
  border-radius: 8px;
  background: rgba(231, 241, 252, 0.78);
  color: #24547f;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.docs-office-status-strip.warning {
  border-color: rgba(214, 146, 36, 0.32);
  background: rgba(255, 246, 231, 0.92);
  color: #794713;
}

.docs-preview-header-actions {
  display: flex;
  flex: 0 1 620px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.docs-preview-header-actions .primary-button,
.docs-preview-header-actions .ghost-button,
.docs-preview-header-actions .icon-button {
  min-height: 36px;
}

.docs-preview-status-alert {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(214, 146, 36, 0.38);
  border-radius: 7px;
  background: rgba(255, 246, 231, 0.96);
  color: #794713;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.docs-preview-status-alert:hover {
  border-color: rgba(214, 146, 36, 0.58);
  background: #fff2d7;
}

.docs-preview-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 24vw, 380px);
  gap: 14px;
  min-height: 0;
  padding: 14px;
}

.docs-preview-modal.is-editing .docs-preview-viewer {
  width: min(1800px, calc(100vw - 28px));
  height: min(1040px, calc(100vh - 28px));
}

.docs-preview-modal.is-editing .docs-preview-body {
  grid-template-columns: minmax(0, 1fr);
  padding: 10px;
}

.docs-preview-body .docs-room-preview {
  min-height: 0;
}

.docs-preview-body .docs-room-preview-frame,
.docs-preview-body .docs-room-preview-frame img,
.docs-preview-body .docs-room-preview-frame iframe,
.docs-preview-body .docs-room-text-preview,
.docs-preview-body .docs-room-preview-loading,
.docs-preview-body .docs-room-preview-unavailable,
.docs-preview-body .docs-room-empty {
  min-height: 100%;
}

.docs-preview-body .docs-room-preview-frame,
.docs-preview-body .docs-room-preview-frame iframe {
  height: 100%;
}

.docs-preview-details {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow: auto;
}

.docs-preview-details .docs-room-meta-grid {
  grid-template-columns: 1fr;
}

.docs-details-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(112, 132, 160, 0.16);
  border-radius: 10px;
  background: rgba(239, 244, 250, 0.82);
}

.docs-details-tabs button {
  min-height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  cursor: default;
}

.docs-details-tabs button.active {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 1px 8px rgba(31, 63, 115, 0.08);
}

.docs-details-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(112, 132, 160, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
}

.docs-details-card strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.docs-office-status-card .docs-room-meta-grid {
  grid-template-columns: 1fr;
}

.docs-office-version-list {
  display: grid;
  gap: 8px;
}

.docs-office-version-list div {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(238, 245, 252, 0.76);
}

.docs-office-version-list span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.docs-office-version-list strong {
  margin-top: 0;
  font-size: 12px;
}

.docs-room-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.docs-room-header strong {
  display: block;
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.1;
}

.docs-room-header p,
.docs-room-note,
.docs-room-preview-loading,
.docs-room-preview-unavailable p,
.docs-room-empty p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
}

.docs-room-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.docs-room-actions .primary-button,
.docs-room-actions .ghost-button {
  min-height: 34px;
}

.docs-room-preview {
  min-height: 0;
  overflow: auto;
  border: 1px solid rgba(112, 132, 160, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
}

.docs-room-preview-frame {
  min-height: 320px;
  background: #f4f8fc;
}

.docs-room-preview-frame.office {
  height: min(78vh, 900px);
  min-height: 620px;
  background: #fff;
}

.docs-preview-modal.is-editing .docs-room-preview-frame.office {
  height: 100%;
  min-height: 0;
}

.docs-room-preview-frame img,
.docs-room-preview-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.docs-room-preview-frame.image {
  display: grid;
  place-items: center;
}

.docs-room-preview-frame.image img {
  object-fit: contain;
  max-height: 72vh;
}

.docs-room-text-preview {
  margin: 0;
  padding: 14px;
  min-height: 320px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
}

.docs-room-csv-preview {
  padding: 14px;
}

.docs-room-preview-loading,
.docs-room-preview-unavailable,
.docs-room-empty {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 320px;
  padding: 20px;
  text-align: center;
}

.docs-room-preview-unavailable strong,
.docs-room-empty strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  text-transform: none;
  letter-spacing: 0;
}

.docs-office-ready-preview {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 100%;
  padding: clamp(22px, 4vw, 52px);
  text-align: left;
}

.docs-office-ready-card {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 740px;
  padding: 18px;
  border: 1px solid rgba(112, 132, 160, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.92));
  box-shadow: 0 18px 44px rgba(31, 63, 115, 0.08);
}

.docs-office-ready-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: #e9f2ff;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.03em;
}

.docs-office-ready-copy {
  min-width: 0;
}

.docs-office-ready-copy span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.docs-office-ready-copy strong,
.docs-office-ready-note strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
}

.docs-office-ready-copy p,
.docs-office-ready-note p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
}

.docs-office-ready-note {
  max-width: 720px;
}

.docs-office-ready-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.docs-room-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.docs-room-meta-grid div {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(112, 132, 160, 0.14);
}

.docs-room-meta-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.docs-room-meta-grid strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}

.docs-browser-table.list-mode {
  display: grid;
  align-content: start;
}

.docs-browser-table.has-selection .docs-browser-head {
  display: none;
}

.docs-browser-row {
  display: grid;
  grid-template-columns: 26px 38px minmax(360px, 1.45fr) minmax(150px, 0.55fr) minmax(140px, 0.45fr) minmax(150px, 0.4fr) 38px;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 7px 16px;
  border: 0;
  border-bottom: 1px solid #edf0f2;
  background: #fff;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
}

.docs-browser-row:not(.docs-browser-head):hover {
  background: #f5f9ff;
}

.docs-browser-row.selected {
  background: #f1f6ff;
}

.docs-browser-head {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 44px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.docs-browser-row > span:nth-child(4),
.docs-browser-row > span:nth-child(5),
.docs-browser-row > span:nth-child(6) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.docs-browser-row > span:nth-child(6) {
  line-height: 1.15;
  white-space: normal;
}

.docs-browser-head > span:nth-child(4),
.docs-browser-head > span:nth-child(5),
.docs-browser-head > span:nth-child(6) {
  text-transform: uppercase;
}

.docs-sort-btn {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.docs-sort-btn:hover,
.docs-sort-btn.is-active {
  color: #2457a8;
}

.docs-select-box {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(42, 103, 202, 0.62);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75);
}

.docs-select-box.selected {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42, 103, 202, 0.16);
}

.docs-select-box.selected::after {
  content: "✓";
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.docs-file-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  color: #1a56a8;
  background: #e8f0fe;
}

.docs-file-icon svg,
.docs-folder-art svg {
  width: 82%;
  height: 82%;
  display: block;
}

.docs-file-icon.kind-folder svg {
  width: 88%;
  height: 88%;
}

.docs-file-icon.kind-sheet,
.docs-folder-art.kind-sheet {
  color: #0f6b3f;
  background: #e8f6ee;
}

.docs-file-icon.kind-doc,
.docs-folder-art.kind-doc {
  color: #1a56a8;
  background: #e8f0fe;
}

.docs-file-icon.kind-slides,
.docs-folder-art.kind-slides {
  color: #9a5a00;
  background: #fff2df;
}

.docs-file-icon.kind-pdf,
.docs-folder-art.kind-pdf {
  color: #a3342f;
  background: #fdecec;
}

.docs-file-icon.kind-image,
.docs-folder-art.kind-image {
  color: #6b3fa0;
  background: #f2ecff;
}

.docs-list-thumb {
  position: relative;
  overflow: hidden;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f3f6fb;
}

.docs-list-thumb .docs-list-thumb-fallback {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.docs-list-thumb .docs-list-thumb-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  background: #fff;
}

.docs-file-icon.kind-archive,
.docs-folder-art.kind-archive {
  color: #5a6270;
  background: #eef1f4;
}

.docs-file-name {
  min-width: 0;
}

.docs-name-button,
.docs-name-link,
.docs-grid-title {
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.docs-name-button:hover strong,
.docs-name-link:hover strong,
.docs-grid-title:hover strong {
  color: var(--accent-dark);
  text-decoration: underline;
}

.docs-file-name strong,
.docs-file-name small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
  letter-spacing: 0;
}

.docs-file-name strong {
  white-space: nowrap;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
}

.docs-file-name small {
  white-space: nowrap;
}

.docs-file-name small {
  margin-top: 2px;
  color: var(--muted);
  max-width: 52vw;
  font-size: 11px;
  font-weight: 650;
}

.docs-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.docs-meta-chip,
.docs-source-badge,
.docs-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  overflow: hidden;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-source-badge,
.docs-status-badge {
  display: flex;
}

.docs-source-badge.compact,
.docs-status-badge.compact {
  display: inline-flex;
  width: fit-content;
}

.docs-preview-source-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.docs-preview-source-line span:not(.docs-source-badge) {
  color: var(--muted);
}

.docs-browser-row > span:nth-child(6) {
  line-height: 1.15;
}

.docs-meta-chip.source,
.docs-source-badge {
  background: #eaf2ff;
  color: #1953a6;
}

.docs-source-badge--repcloud {
  background: #e4f5ef;
  color: #0b5f59;
}

.docs-source-badge--dropbox {
  background: #e8f2ff;
  color: #0b64c0;
}

.docs-source-badge--google {
  background: #fff3cd;
  color: #8a5b00;
}

.docs-source-badge--mail {
  background: #f2eafe;
  color: #6b3eb5;
}

.docs-meta-chip.status,
.docs-status-badge {
  background: #eef4ef;
  color: #22543d;
}

.docs-browser-table.grid-mode {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(252px, 252px));
  justify-content: start;
  align-content: start;
  gap: 16px;
  padding: 0 16px 16px;
}

.docs-browser-table.grid-mode:not(.has-selection) {
  padding-top: 16px;
}

.docs-grid-item {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 198px;
  border: 1px solid rgba(102, 113, 125, 0.14);
  border-radius: 8px;
  padding: 14px 16px 14px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
}

.docs-grid-item:hover {
  border-color: rgba(42, 103, 202, 0.34);
  background: #f8fbff;
}

.docs-grid-item.selected {
  border-color: rgba(42, 103, 202, 0.44);
  background: #f1f6ff;
}

.docs-grid-item .docs-select-box {
  position: absolute;
  top: 10px;
  left: 10px;
}

.docs-grid-item .docs-row-menu-wrap {
  position: absolute;
  top: 8px;
  right: 8px;
}

.docs-folder-art {
  display: grid;
  place-items: center;
  justify-self: start;
  width: 80px;
  height: 60px;
  aspect-ratio: auto;
  margin: 20px 0 4px;
  color: #4392e8;
}

.docs-folder-art.kind-folder {
  color: #4392e8;
}

.docs-thumb-art {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #f3f6fb;
}

.docs-thumb-art .docs-thumb-fallback {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.docs-thumb-art .docs-thumb-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
  background: #fff;
}

.docs-grid-item strong,
.docs-grid-item small {
  text-transform: none;
  letter-spacing: 0;
}

.docs-row-menu-wrap {
  position: relative;
  justify-self: end;
  display: inline-grid;
  place-items: center;
}

.docs-row-menu-button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
}

.docs-row-menu-button:hover,
.docs-row-menu-button[aria-expanded="true"] {
  border-color: rgba(42, 103, 202, 0.22);
  background: #eaf2ff;
  color: var(--accent-dark);
}

.docs-row-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  min-width: 230px;
  max-width: 280px;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.docs-row-menu button {
  display: block;
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  padding: 0 12px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  white-space: normal;
  cursor: pointer;
}

.docs-row-menu button:hover {
  background: #f1f6ff;
}

.docs-row-menu button.danger {
  color: #9d2b22;
}

.docs-row-menu-divider {
  display: block;
  height: 1px;
  margin: 5px 2px;
  background: #e3e8ef;
}

.docs-grid-item strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  min-height: 4.8em;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.docs-grid-item small {
  display: block;
  overflow: hidden;
  white-space: normal;
  line-height: 1.3;
  min-height: 2.6em;
  max-height: 2.6em;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
}

.docs-grid-item .docs-meta-chips {
  margin-top: 0;
}

.docs-cross-drive-results {
  display: grid;
  gap: 12px;
  padding: 16px 18px 20px;
  border-top: 1px solid var(--line);
  background: #f8fbfa;
}

.docs-cross-drive-results .docs-result-grid {
  gap: 8px;
}

.docs-cross-drive-results .docs-result-card {
  min-height: 58px;
  padding: 10px 12px;
}

.docs-cross-drive-results .docs-result-card strong,
.docs-cross-drive-results .docs-result-card p {
  text-transform: none;
  letter-spacing: 0;
}

.docs-drive-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
}

.docs-drive-panel .docs-table {
  max-height: 42vh;
}

.docs-drive-panel .docs-result-card,
.docs-drive-panel .docs-row {
  min-height: 64px;
}

.docs-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcfc, #f7faf9);
}

.docs-toolbar {
  display: block;
  min-width: 0;
  min-height: 72px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcfc, #f7faf9);
}

.docs-breadcrumbs {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  color: var(--muted);
}

.docs-breadcrumbs::-webkit-scrollbar {
  display: none;
}

.docs-breadcrumbs button {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.docs-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.docs-quick-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.docs-quick-chip {
  min-height: 30px;
}

.docs-quick-chip:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.docs-category-grid,
.docs-files-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.docs-category-card,
.docs-files-overview article {
  border: 1px solid rgba(102, 113, 125, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.docs-category-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  align-items: center;
  min-height: 76px;
  padding: 12px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.docs-category-card:hover,
.docs-category-card.active {
  border-color: rgba(42, 103, 202, 0.42);
  background: #f5f9ff;
}

.docs-category-card span,
.docs-category-card strong {
  font-weight: 900;
}

.docs-category-card strong {
  color: var(--accent-dark);
}

.docs-category-card small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.docs-files-overview {
  align-items: stretch;
}

.docs-files-overview article {
  padding: 14px;
  background: #fff;
}

.docs-files-overview h3 {
  margin: 3px 0 5px;
  font-size: 16px;
}

.docs-files-overview p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.docs-source-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 9px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.docs-warning {
  padding: 10px 14px;
  color: #7a531c;
  background: #fff8eb;
  border-bottom: 1px solid #efd7b2;
}

.docs-warning.soft {
  color: #5f6872;
  background: #f8fbfa;
  border-bottom-color: var(--line);
}

.docs-warning strong {
  display: block;
  margin-bottom: 2px;
  color: var(--accent-dark);
}

.docs-table {
  display: grid;
  max-height: min(58vh, 680px);
  overflow: auto;
}

.docs-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 68px;
  padding: 10px 16px;
  border: 0;
  border-bottom: 1px solid #edf0f2;
  background: #fff;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.docs-row:hover {
  background: #f5f9ff;
}

.docs-row.folder strong {
  color: var(--accent-dark);
}

.docs-row strong,
.docs-row p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.docs-row em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(102, 113, 125, 0.14);
  border-radius: 999px;
  padding: 0 8px;
  background: #fbfcfc;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.docs-row.google-row strong {
  color: var(--ink);
}

.docs-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--accent-dark);
  background: #e9f2ef;
  font-size: 11px;
  font-weight: 900;
}

.docs-icon.kind-sheet,
.docs-icon.kind-xls,
.docs-icon.kind-xlsx,
.docs-icon.kind-csv {
  color: #0f6b3f;
  background: #e8f6ee;
}

.docs-icon.kind-doc,
.docs-icon.kind-document {
  color: #1a56a8;
  background: #e8f0fe;
}

.docs-icon.kind-slides,
.docs-icon.kind-presentation {
  color: #a45a08;
  background: #fff2df;
}

.docs-icon.kind-pdf {
  color: #a3342f;
  background: #fdecec;
}

.docs-empty {
  padding: 18px;
  color: var(--muted);
}

.docs-results {
  padding: 16px;
  background: #fbfcfc;
}

.docs-results-hero {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-color: rgba(12, 103, 95, 0.22);
  background: linear-gradient(135deg, #f3fbf8, #fff 68%);
  box-shadow: 0 16px 34px rgba(26, 32, 38, 0.05);
}

.docs-results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.docs-results-header h3 {
  margin: 2px 0 4px;
}

.docs-results-header p {
  color: var(--muted);
}

.docs-result-grid {
  display: grid;
  gap: 10px;
}

.docs-result-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 74px;
  padding: 13px 14px;
  border: 1px solid rgba(102, 113, 125, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  text-decoration: none;
}

.docs-result-card:hover {
  border-color: rgba(12, 103, 95, 0.34);
  background: #fff;
}

.docs-result-card strong,
.docs-result-card p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-result-card p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.docs-result-card small {
  display: block;
  margin-top: 5px;
  color: #7a828b;
  font-size: 12px;
}

.docs-result-card em {
  color: var(--accent-dark);
  font-style: normal;
  font-weight: 850;
}

.docs-results h3 {
  margin: 0 0 10px;
}

.file-list .docs-icon,
.file-list .source-pill,
.file-list .docs-command-meta span,
.file-list .docs-breadcrumbs span {
  margin-bottom: 0;
  letter-spacing: 0;
  text-transform: none;
}

.file-list .docs-icon {
  color: var(--accent-dark);
  font-size: 11px;
}

.file-list .docs-icon.google-doc-icon,
.file-list .docs-icon.kind-doc,
.file-list .docs-icon.kind-document {
  color: #1a56a8;
  background: #e8f0fe;
}

.file-list .docs-icon.kind-sheet,
.file-list .docs-icon.kind-xls,
.file-list .docs-icon.kind-xlsx,
.file-list .docs-icon.kind-csv {
  color: #0f6b3f;
  background: #e8f6ee;
}

.file-list .docs-icon.kind-slides,
.file-list .docs-icon.kind-presentation {
  color: #a45a08;
  background: #fff2df;
}

.file-list .docs-icon.kind-pdf {
  color: #a3342f;
  background: #fdecec;
}

.file-list .docs-breadcrumbs span {
  color: var(--muted);
  font-weight: 700;
}

.file-list .docs-command-meta strong {
  margin-right: 4px;
}

body[data-theme="dark"] .docs-command-card,
body[data-theme="dark"] .docs-browser,
body[data-theme="dark"] .docs-results,
body[data-theme="dark"] .docs-results-hero {
  background: linear-gradient(180deg, rgba(15, 28, 47, 0.97), rgba(11, 21, 38, 0.97));
  border-color: rgba(226, 236, 249, 0.16);
  color: var(--ink);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
}

body[data-theme="dark"] .docs-command-card {
  background:
    radial-gradient(circle at top right, rgba(91, 149, 255, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(17, 32, 52, 0.98), rgba(11, 21, 38, 0.98));
}

body[data-theme="dark"] .docs-panel-heading,
body[data-theme="dark"] .docs-toolbar,
body[data-theme="dark"] .docs-source-line {
  background: rgba(15, 28, 47, 0.96);
  border-color: rgba(226, 236, 249, 0.14);
  color: var(--ink);
}

body[data-theme="dark"] .docs-row,
body[data-theme="dark"] .docs-result-card {
  background: rgba(13, 25, 42, 0.96);
  border-color: rgba(226, 236, 249, 0.12);
  color: var(--ink);
}

body[data-theme="dark"] .docs-row:hover,
body[data-theme="dark"] .docs-result-card:hover {
  background: rgba(20, 38, 62, 0.98);
  border-color: rgba(91, 149, 255, 0.32);
}

body[data-theme="dark"] .docs-row p,
body[data-theme="dark"] .docs-result-card p,
body[data-theme="dark"] .docs-result-card small,
body[data-theme="dark"] .docs-command-card p,
body[data-theme="dark"] .docs-results-header p,
body[data-theme="dark"] .docs-empty {
  color: #aeb7c5;
}

body[data-theme="dark"] .docs-row em,
body[data-theme="dark"] .docs-command-meta span,
body[data-theme="dark"] .source-pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(226, 236, 249, 0.16);
  color: #c5d1e2;
}

body[data-theme="dark"] .docs-warning {
  background: rgba(127, 83, 28, 0.18);
  border-color: rgba(243, 196, 76, 0.32);
  color: #f4d28c;
}

body[data-theme="dark"] .docs-warning.soft {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(226, 236, 249, 0.14);
  color: #aeb7c5;
}

body[data-theme="dark"] .docs-icon {
  background: rgba(139, 210, 193, 0.14);
  color: #9be7d7;
}

body[data-theme="dark"] .docs-icon.kind-sheet,
body[data-theme="dark"] .docs-icon.kind-xls,
body[data-theme="dark"] .docs-icon.kind-xlsx,
body[data-theme="dark"] .docs-icon.kind-csv {
  background: rgba(56, 189, 128, 0.16);
  color: #93e0b2;
}

body[data-theme="dark"] .docs-icon.kind-doc,
body[data-theme="dark"] .docs-icon.kind-document,
body[data-theme="dark"] .google-doc-icon {
  background: rgba(91, 149, 255, 0.16);
  color: #9ec7ff;
}

body[data-theme="dark"] .docs-icon.kind-slides,
body[data-theme="dark"] .docs-icon.kind-presentation {
  background: rgba(245, 158, 11, 0.16);
  color: #f8c879;
}

body[data-theme="dark"] .docs-icon.kind-pdf {
  background: rgba(248, 113, 113, 0.16);
  color: #ffb4ae;
}

body[data-theme="dark"] .review-panel h2,
body[data-theme="dark"] .activity-list h2,
body[data-theme="dark"] .approval-card h3,
body[data-theme="dark"] .docs-command-card h3,
body[data-theme="dark"] .docs-panel-heading h3,
body[data-theme="dark"] .docs-result-card strong,
body[data-theme="dark"] .docs-row strong,
body[data-theme="dark"] .docs-toolbar strong,
body[data-theme="dark"] .docs-source-line strong {
  color: #f6f8fc;
}

body[data-theme="dark"] .docs-command-card,
body[data-theme="dark"] .docs-browser,
body[data-theme="dark"] .docs-results,
body[data-theme="dark"] .docs-results-hero {
  background: linear-gradient(180deg, rgba(16, 29, 48, 0.98), rgba(9, 18, 33, 0.98));
}

body[data-theme="dark"] .docs-command-card {
  background:
    radial-gradient(circle at top right, rgba(91, 149, 255, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(17, 32, 53, 0.98), rgba(10, 19, 34, 0.98));
}

body[data-theme="dark"] .docs-search .modal-input,
body[data-theme="dark"] #docs-search-input {
  background: rgba(7, 18, 34, 0.96);
  border-color: rgba(226, 236, 249, 0.22);
  color: #f6f8fc;
}

body[data-theme="dark"] .docs-search .modal-input::placeholder,
body[data-theme="dark"] #docs-search-input::placeholder {
  color: #8291a7;
}

body[data-theme="dark"] .docs-command-meta strong {
  color: #9ec7ff;
}

body[data-theme="dark"] .docs-quick-chip.active,
body[data-theme="dark"] .source-pill.active {
  background: rgba(91, 149, 255, 0.22);
  border-color: rgba(91, 149, 255, 0.46);
  color: #dceaff;
}

body[data-theme="dark"] .docs-row {
  box-shadow: inset 3px 0 0 rgba(91, 149, 255, 0);
}

body[data-theme="dark"] .docs-row:hover {
  box-shadow: inset 3px 0 0 rgba(91, 149, 255, 0.72);
}

body[data-theme="dark"] .docs-row .text-link,
body[data-theme="dark"] .docs-result-card .text-link,
body[data-theme="dark"] .docs-source-line a {
  color: #9ec7ff;
}

body[data-theme="dark"] .docs-results-header,
body[data-theme="dark"] .docs-result-grid,
body[data-theme="dark"] .google-browser,
body[data-theme="dark"] .dropbox-browser {
  color: var(--ink);
}

body[data-theme="dark"] .eyebrow,
body[data-theme="dark"] .docs-panel-heading .eyebrow,
body[data-theme="dark"] .docs-toolbar .eyebrow,
body[data-theme="dark"] .docs-source-line .eyebrow {
  color: #9fb4d4;
}

body[data-theme="dark"] .topbar,
body[data-theme="dark"] .command-panel,
body[data-theme="dark"] .review-panel,
body[data-theme="dark"] .right-rail,
body[data-theme="dark"] .activity-list,
body[data-theme="dark"] .approval-card,
body[data-theme="dark"] .settings-hero-card,
body[data-theme="dark"] .settings-card,
body[data-theme="dark"] .dashboard-card,
body[data-theme="dark"] .docs-command-card,
body[data-theme="dark"] .docs-browser,
body[data-theme="dark"] .docs-results,
body[data-theme="dark"] .todo-sidebar,
body[data-theme="dark"] .todo-main,
body[data-theme="dark"] .todo-detail,
body[data-theme="dark"] .mail-folder-rail,
body[data-theme="dark"] .mail-workspace .mail-table,
body[data-theme="dark"] .mail-reader,
body[data-theme="dark"] .calendar-workspace,
body[data-theme="dark"] .calendar-main,
body[data-theme="dark"] .calendar-control-bar {
  background: rgba(13, 24, 42, 0.97);
  border-color: rgba(188, 205, 230, 0.2);
  color: var(--ink);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] .docs-command-card {
  background:
    radial-gradient(circle at top right, rgba(91, 149, 255, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(18, 33, 56, 0.98), rgba(10, 20, 36, 0.98));
}

body[data-theme="dark"][data-view="docs"] .docs-file-browser {
  background: rgba(13, 24, 42, 0.97);
  border-color: rgba(188, 205, 230, 0.2);
}

body[data-theme="dark"][data-view="docs"] .docs-browser-sidebar {
  background: rgba(10, 19, 34, 0.96);
  border-right-color: rgba(188, 205, 230, 0.16);
}

body[data-theme="dark"][data-view="docs"] .docs-drive-button,
body[data-theme="dark"][data-view="docs"] .docs-storage-card {
  background: rgba(17, 31, 52, 0.95);
  border-color: rgba(188, 205, 230, 0.17);
  color: #edf4ff;
}

body[data-theme="dark"][data-view="docs"] .docs-drive-button:hover,
body[data-theme="dark"][data-view="docs"] .docs-drive-button.active {
  background: rgba(24, 43, 70, 0.98);
  border-color: rgba(115, 158, 245, 0.46);
}

body[data-theme="dark"][data-view="docs"] .docs-drive-button em {
  background: rgba(91, 149, 255, 0.16);
  color: #d7e5ff;
}

body[data-theme="dark"][data-view="docs"] .docs-drive-button small,
body[data-theme="dark"][data-view="docs"] .docs-storage-card small,
body[data-theme="dark"][data-view="docs"] .docs-tree-section > span,
body[data-theme="dark"][data-view="docs"] .docs-browser-topbar p,
body[data-theme="dark"][data-view="docs"] .docs-browser-row > span:nth-child(4),
body[data-theme="dark"][data-view="docs"] .docs-browser-row > span:nth-child(5),
body[data-theme="dark"][data-view="docs"] .docs-browser-row > span:nth-child(6),
body[data-theme="dark"][data-view="docs"] .docs-file-name small {
  color: #aebdd2;
}

body[data-theme="dark"][data-view="docs"] .docs-tree-row {
  color: #edf4ff;
}

body[data-theme="dark"][data-view="docs"] .docs-tree-row:hover,
body[data-theme="dark"][data-view="docs"] .docs-tree-row.active {
  background: rgba(91, 149, 255, 0.16);
  color: #dceaff;
}

body[data-theme="dark"][data-view="docs"] .docs-browser-topbar {
  background: rgba(13, 24, 42, 0.98);
  border-bottom-color: rgba(188, 205, 230, 0.16);
}

body[data-theme="dark"][data-view="docs"] .docs-browser-row,
body[data-theme="dark"][data-view="docs"] .docs-browser-head,
body[data-theme="dark"][data-view="docs"] .docs-grid-item {
  background: rgba(17, 31, 52, 0.95);
  border-color: rgba(188, 205, 230, 0.17);
  color: #edf4ff;
}

body[data-theme="dark"][data-view="docs"] .docs-browser-row:not(.docs-browser-head):hover,
body[data-theme="dark"][data-view="docs"] .docs-grid-item:hover {
  background: rgba(24, 43, 70, 0.98);
}

body[data-theme="dark"][data-view="docs"] .docs-browser-head {
  border-bottom-color: rgba(188, 205, 230, 0.14);
}

body[data-theme="dark"][data-view="docs"] .docs-sort-btn:hover,
body[data-theme="dark"][data-view="docs"] .docs-sort-btn.is-active {
  color: #91b8ff;
}

body[data-theme="dark"][data-view="docs"] .docs-file-name strong,
body[data-theme="dark"][data-view="docs"] .docs-grid-item strong,
body[data-theme="dark"][data-view="docs"] .docs-browser-topbar h3,
body[data-theme="dark"][data-view="docs"] .docs-breadcrumbs button {
  color: #edf4ff;
}

body[data-theme="dark"][data-view="docs"] .docs-grid-item small,
body[data-theme="dark"][data-view="docs"] .docs-empty,
body[data-theme="dark"][data-view="docs"] .docs-warning.soft {
  color: #aebdd2;
}

body[data-theme="dark"][data-view="docs"] .docs-warning.soft {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(188, 205, 230, 0.14);
}

body[data-theme="dark"] .docs-row,
body[data-theme="dark"] .docs-result-card,
body[data-theme="dark"] .todo-item,
body[data-theme="dark"] .todo-stats article,
body[data-theme="dark"] .mail-row,
body[data-theme="dark"] .mail-toolbar-button,
body[data-theme="dark"] .mail-detail-disclosure,
body[data-theme="dark"] .assistant-panel,
body[data-theme="dark"] .attachment-card,
body[data-theme="dark"] .calendar-month-day {
  background: rgba(17, 31, 52, 0.95);
  border-color: rgba(188, 205, 230, 0.17);
  color: var(--ink);
}

body[data-theme="dark"] .docs-row:hover,
body[data-theme="dark"] .mail-row:hover,
body[data-theme="dark"] .todo-item:hover,
body[data-theme="dark"] .calendar-month-day:hover {
  background: rgba(24, 43, 70, 0.98);
}

body[data-theme="dark"] h1,
body[data-theme="dark"] h2,
body[data-theme="dark"] h3,
body[data-theme="dark"] strong,
body[data-theme="dark"] .docs-row strong,
body[data-theme="dark"] .docs-result-card strong,
body[data-theme="dark"] .mail-row-sender,
body[data-theme="dark"] .mail-reader h2,
body[data-theme="dark"] .todo-item-title strong {
  color: #f8fbff;
}

body[data-theme="dark"] p,
body[data-theme="dark"] .modal-note,
body[data-theme="dark"] .activity-list li,
body[data-theme="dark"] .docs-row p,
body[data-theme="dark"] .docs-result-card p,
body[data-theme="dark"] .mail-row-subject,
body[data-theme="dark"] .mail-preview,
body[data-theme="dark"] .todo-muted,
body[data-theme="dark"] .todo-item p,
body[data-theme="dark"] .calendar-add-slot {
  color: #b5c3d8;
}

body[data-theme="dark"] .eyebrow,
body[data-theme="dark"] .field-label,
body[data-theme="dark"] .docs-toolbar .eyebrow,
body[data-theme="dark"] .mail-source,
body[data-theme="dark"] .todo-detail-fields dt {
  color: #91a5c4;
}

/* Final dark-mode guardrails for native Today and Docs views. These sit at the end of
   the stylesheet so later visual polish blocks cannot accidentally flip panels back
   to light surfaces. */
body.native-shell[data-theme="dark"][data-view="today"] .dashboard-card,
body.native-shell[data-theme="dark"][data-view="today"] .dashboard-card-mail,
body.native-shell[data-theme="dark"][data-view="today"] .dashboard-card-files,
body.native-shell[data-theme="dark"][data-view="today"] .dashboard-card-approvals {
  background: linear-gradient(180deg, rgba(18, 33, 56, 0.98), rgba(11, 22, 39, 0.98));
  border-color: rgba(132, 161, 205, 0.25);
  color: #f8fbff;
}

body[data-theme="dark"][data-view="docs"] .docs-file-browser,
body[data-theme="dark"][data-view="docs"] .docs-browser-sidebar,
body[data-theme="dark"][data-view="docs"] .docs-browser-topbar,
body[data-theme="dark"][data-view="docs"] .docs-browser-main {
  background: rgba(13, 24, 42, 0.97);
  color: #edf4ff;
}

body[data-theme="dark"][data-view="docs"] .docs-drive-button,
body[data-theme="dark"][data-view="docs"] .docs-storage-card,
body[data-theme="dark"][data-view="docs"] .docs-browser-row,
body[data-theme="dark"][data-view="docs"] .docs-browser-head,
body[data-theme="dark"][data-view="docs"] .docs-grid-item {
  background: rgba(17, 31, 52, 0.95);
  border-color: rgba(188, 205, 230, 0.17);
  color: #edf4ff;
}

body[data-theme="dark"][data-view="docs"] .docs-drive-button small,
body[data-theme="dark"][data-view="docs"] .docs-storage-card small,
body[data-theme="dark"][data-view="docs"] .docs-tree-section > span,
body[data-theme="dark"][data-view="docs"] .docs-browser-topbar p,
body[data-theme="dark"][data-view="docs"] .docs-browser-row > span:nth-child(4),
body[data-theme="dark"][data-view="docs"] .docs-browser-row > span:nth-child(5),
body[data-theme="dark"][data-view="docs"] .docs-browser-row > span:nth-child(6),
body[data-theme="dark"][data-view="docs"] .docs-file-name small,
body[data-theme="dark"][data-view="docs"] .docs-empty,
body[data-theme="dark"][data-view="docs"] .docs-warning.soft {
  color: #aebdd2;
}

body[data-theme="dark"][data-view="docs"] .docs-tree-row,
body[data-theme="dark"][data-view="docs"] .docs-file-name strong,
body[data-theme="dark"][data-view="docs"] .docs-grid-item strong,
body[data-theme="dark"][data-view="docs"] .docs-browser-topbar h3,
body[data-theme="dark"][data-view="docs"] .docs-breadcrumbs button {
  color: #edf4ff;
}

body[data-theme="dark"][data-view="docs"] .docs-tree-row:hover,
body[data-theme="dark"][data-view="docs"] .docs-tree-row.active,
body[data-theme="dark"][data-view="docs"] .docs-drive-button:hover,
body[data-theme="dark"][data-view="docs"] .docs-drive-button.active,
body[data-theme="dark"][data-view="docs"] .docs-browser-row:not(.docs-browser-head):hover,
body[data-theme="dark"][data-view="docs"] .docs-grid-item:hover {
  background: rgba(24, 43, 70, 0.98);
  border-color: rgba(115, 158, 245, 0.46);
}

body[data-theme="dark"][data-view="docs"] .docs-selection-bar,
body[data-theme="dark"][data-view="docs"] .docs-browser-row.selected,
body[data-theme="dark"][data-view="docs"] .docs-grid-item.selected {
  background: rgba(31, 58, 96, 0.98);
  border-color: rgba(115, 158, 245, 0.5);
}

body[data-theme="dark"][data-view="docs"] .docs-selection-bar {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

body[data-theme="dark"][data-view="docs"] .docs-selection-bar strong,
body[data-theme="dark"][data-view="docs"] .docs-name-button,
body[data-theme="dark"][data-view="docs"] .docs-name-link,
body[data-theme="dark"][data-view="docs"] .docs-grid-title {
  color: #edf4ff;
}

body[data-theme="dark"][data-view="docs"] .docs-room-panel {
  background: linear-gradient(180deg, rgba(16, 27, 46, 0.98) 0%, rgba(12, 22, 38, 0.98) 100%);
  border-color: rgba(115, 158, 245, 0.24);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
}

body[data-theme="dark"][data-view="docs"] .docs-preview-backdrop {
  background: rgba(2, 6, 14, 0.72);
}

body[data-theme="dark"][data-view="docs"] .docs-preview-viewer {
  background: #0d1728;
  border-color: rgba(115, 158, 245, 0.24);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.56);
}

body[data-theme="dark"][data-view="docs"] .docs-preview-header {
  background: rgba(13, 23, 40, 0.96);
  border-bottom-color: rgba(115, 158, 245, 0.2);
}

body[data-theme="dark"][data-view="docs"] .docs-room-preview,
body[data-theme="dark"][data-view="docs"] .docs-room-meta-grid div,
body[data-theme="dark"][data-view="docs"] .docs-office-version-list div {
  background: rgba(8, 15, 28, 0.76);
  border-color: rgba(115, 158, 245, 0.18);
}

body[data-theme="dark"][data-view="docs"] .docs-office-status-strip {
  background: rgba(35, 68, 111, 0.52);
  border-color: rgba(115, 158, 245, 0.28);
  color: #cfe0ff;
}

body[data-theme="dark"][data-view="docs"] .docs-office-status-strip.warning {
  background: rgba(84, 55, 18, 0.62);
  border-color: rgba(214, 146, 36, 0.38);
  color: #ffd89f;
}

body[data-theme="dark"][data-view="docs"] .docs-office-ready-card {
  background: linear-gradient(180deg, rgba(15, 25, 43, 0.96), rgba(9, 17, 31, 0.94));
  border-color: rgba(115, 158, 245, 0.22);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

body[data-theme="dark"][data-view="docs"] .docs-office-ready-icon {
  background: rgba(58, 104, 212, 0.22);
  color: #bcd0ff;
}

body[data-theme="dark"][data-view="docs"] .docs-room-preview-frame {
  background: #0d1728;
}

body[data-theme="dark"][data-view="docs"] .docs-room-header strong,
body[data-theme="dark"][data-view="docs"] .docs-preview-header strong,
body[data-theme="dark"][data-view="docs"] .docs-room-preview-unavailable strong,
body[data-theme="dark"][data-view="docs"] .docs-room-empty strong,
body[data-theme="dark"][data-view="docs"] .docs-room-meta-grid strong,
body[data-theme="dark"][data-view="docs"] .docs-office-ready-copy strong,
body[data-theme="dark"][data-view="docs"] .docs-office-ready-note strong,
body[data-theme="dark"][data-view="docs"] .docs-room-text-preview {
  color: #edf4ff;
}

body[data-theme="dark"][data-view="docs"] .docs-room-header p,
body[data-theme="dark"][data-view="docs"] .docs-preview-header p,
body[data-theme="dark"][data-view="docs"] .docs-room-note,
body[data-theme="dark"][data-view="docs"] .docs-room-preview-loading,
body[data-theme="dark"][data-view="docs"] .docs-room-preview-unavailable p,
body[data-theme="dark"][data-view="docs"] .docs-room-empty p,
body[data-theme="dark"][data-view="docs"] .docs-office-ready-copy p,
body[data-theme="dark"][data-view="docs"] .docs-office-ready-note p,
body[data-theme="dark"][data-view="docs"] .docs-room-meta-grid span,
body[data-theme="dark"][data-view="docs"] .docs-office-version-list span {
  color: #aebfdc;
}

body[data-theme="dark"][data-view="docs"] .docs-row-menu {
  background: #101b2e;
  border-color: rgba(188, 205, 230, 0.18);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

body[data-theme="dark"][data-view="docs"] .docs-row-menu button {
  color: #edf4ff;
}

body[data-theme="dark"][data-view="docs"] .docs-row-menu button:hover,
body[data-theme="dark"][data-view="docs"] .docs-row-menu-button:hover,
body[data-theme="dark"][data-view="docs"] .docs-row-menu-button[aria-expanded="true"] {
  background: rgba(91, 149, 255, 0.16);
}

body[data-theme="dark"][data-view="docs"] .docs-details-tabs,
body[data-theme="dark"][data-view="docs"] .docs-details-card,
body[data-theme="dark"][data-view="docs"] .docs-share-chip-picker,
body[data-theme="dark"][data-view="docs"] .docs-share-external {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(188, 205, 230, 0.14);
}

body[data-theme="dark"][data-view="docs"] .docs-share-chip-entry {
  color: #edf4ff;
}

body[data-theme="dark"][data-view="docs"] .docs-share-quick-chip {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(188, 205, 230, 0.14);
}

body[data-theme="dark"][data-view="docs"] .docs-share-chip,
body[data-theme="dark"][data-view="docs"] .docs-share-quick-chip.active {
  background: rgba(91, 149, 255, 0.18);
  border-color: rgba(133, 174, 255, 0.44);
  color: #dce9ff;
}

body[data-theme="dark"][data-view="docs"] .docs-details-tabs button.active {
  background: rgba(91, 149, 255, 0.18);
  color: #edf4ff;
  box-shadow: none;
}

body[data-theme="dark"][data-view="docs"] .docs-details-card strong,
body[data-theme="dark"][data-view="docs"] .docs-share-external strong {
  color: #edf4ff;
}

body[data-theme="dark"][data-view="docs"] .docs-warning.soft {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(188, 205, 230, 0.14);
}

body[data-theme="dark"][data-view="docs"] .docs-select-box,
body.native-shell[data-theme="dark"][data-view="docs"] .docs-select-box {
  border-color: rgba(145, 184, 255, 0.48) !important;
  background: rgba(8, 17, 31, 0.76) !important;
  box-shadow: inset 0 0 0 2px rgba(145, 184, 255, 0.08) !important;
}

body[data-theme="dark"][data-view="docs"] .docs-select-box.selected,
body.native-shell[data-theme="dark"][data-view="docs"] .docs-select-box.selected {
  border-color: #4f86e8 !important;
  background: #3f73d8 !important;
}

body[data-theme="dark"][data-view="docs"] .docs-source-badge,
body[data-theme="dark"][data-view="docs"] .docs-meta-chip.source,
body.native-shell[data-theme="dark"][data-view="docs"] .docs-source-badge,
body.native-shell[data-theme="dark"][data-view="docs"] .docs-meta-chip.source {
  background: rgba(145, 184, 255, 0.16) !important;
  color: #dbe8fb !important;
  border: 1px solid rgba(145, 184, 255, 0.18) !important;
}

body[data-theme="dark"][data-view="docs"] .docs-source-badge--repcloud,
body.native-shell[data-theme="dark"][data-view="docs"] .docs-source-badge--repcloud {
  background: rgba(20, 184, 134, 0.16) !important;
  color: #bbf7d0 !important;
  border-color: rgba(20, 184, 134, 0.22) !important;
}

body[data-theme="dark"][data-view="docs"] .docs-source-badge--dropbox,
body.native-shell[data-theme="dark"][data-view="docs"] .docs-source-badge--dropbox {
  background: rgba(59, 130, 246, 0.18) !important;
  color: #bfdbfe !important;
  border-color: rgba(59, 130, 246, 0.24) !important;
}

body[data-theme="dark"][data-view="docs"] .docs-source-badge--google,
body.native-shell[data-theme="dark"][data-view="docs"] .docs-source-badge--google {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #fde68a !important;
  border-color: rgba(245, 158, 11, 0.24) !important;
}

body[data-theme="dark"][data-view="docs"] .docs-source-badge--mail,
body.native-shell[data-theme="dark"][data-view="docs"] .docs-source-badge--mail {
  background: rgba(168, 85, 247, 0.18) !important;
  color: #e9d5ff !important;
  border-color: rgba(168, 85, 247, 0.24) !important;
}

body[data-theme="dark"][data-view="docs"] .docs-status-badge,
body[data-theme="dark"][data-view="docs"] .docs-meta-chip.status,
body.native-shell[data-theme="dark"][data-view="docs"] .docs-status-badge,
body.native-shell[data-theme="dark"][data-view="docs"] .docs-meta-chip.status {
  background: rgba(104, 211, 145, 0.13) !important;
  color: #c8f7d8 !important;
  border: 1px solid rgba(104, 211, 145, 0.16) !important;
}

body[data-theme="dark"][data-view="docs"] .docs-file-icon.kind-folder,
body[data-theme="dark"][data-view="docs"] .docs-folder-art.kind-folder,
body.native-shell[data-theme="dark"][data-view="docs"] .docs-file-icon.kind-folder,
body.native-shell[data-theme="dark"][data-view="docs"] .docs-folder-art.kind-folder {
  background: rgba(188, 205, 230, 0.14) !important;
  color: #dbe8fb !important;
}

.suite-switcher-button:hover,
body[data-view="crm"] .suite-switcher-button[data-view="crm"],
body[data-view="today"] .suite-switcher-button[data-view="today"],
body[data-view="docs"] .suite-switcher-button[data-view="docs"],
body[data-view="publisher"] .suite-switcher-button[data-view="publisher"],
body[data-view="assistant"] .suite-switcher-button[data-view="assistant"] {
  border-color: rgba(54, 107, 214, 0.22);
  background: rgba(231, 239, 252, 0.86);
}

body[data-theme="dark"] .suite-switcher-button:hover,
body[data-theme="dark"][data-view="crm"] .suite-switcher-button[data-view="crm"],
body[data-theme="dark"][data-view="today"] .suite-switcher-button[data-view="today"],
body[data-theme="dark"][data-view="docs"] .suite-switcher-button[data-view="docs"],
body[data-theme="dark"][data-view="publisher"] .suite-switcher-button[data-view="publisher"],
body[data-theme="dark"][data-view="assistant"] .suite-switcher-button[data-view="assistant"] {
  border-color: rgba(110, 169, 255, 0.28);
  background: rgba(110, 169, 255, 0.12);
}
