/* PAIMONVERSE Drive — shared product finish layer.
   Temporary implementation tokens; not represented as an official brand standard. */
:root {
  --pv-text: #202838;
  --pv-secondary: #687487;
  --pv-border: #e4e8f1;
  --pv-surface: #ffffff;
  --pv-surface-soft: #f7f8fc;
  --pv-brand: #6680ff;
  --pv-action: #516be1;
  --pv-action-hover: #435ac8;
  --pv-focus: #5370ec;
  --pv-radius-sm: 6px;
  --pv-brand-soft: #eef2ff;
  --pv-brand-border: #ced8ff;
  --pv-bg: #f5f6fb;
  --pv-content-max: 1440px;
  --pv-radius-md: 10px;
  --pv-control-height: 36px;
  --width: var(--pv-content-max);
}
html { scrollbar-gutter: auto; }
html, body { color: var(--pv-text); background: var(--pv-surface); }
body { -webkit-font-smoothing: antialiased; }
button, select, input, textarea { font-family: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--pv-focus) !important;
  outline-offset: 2px !important;
}
button:disabled, [aria-disabled="true"] { cursor: not-allowed !important; }
.ac-topbar.minas-topbar {
  position: relative; z-index: 20; height: 58px; min-height: 58px;
  border-bottom: 1px solid var(--pv-border); padding: 0 clamp(16px, 3vw, 40px);
  background: #fff;
}
.minas-logo { height: 58px; }
.minas-topbar-right { gap: 14px; }
.minas-main, .minas-share-main { width: min(var(--pv-content-max), calc(100% - 48px)); padding-top: 30px; }
.minas-page-head { margin-bottom: 22px; }
.minas-title, .minas-share-title { font-weight: 720; letter-spacing: -.024em; color: var(--pv-text); }
.minas-subtitle, .minas-share-subtitle { color: var(--pv-secondary); line-height: 1.6; }
.minas-pathbar, .minas-share-pathbar {
  background: var(--pv-surface-soft); border: 1px solid var(--pv-border);
  border-radius: var(--pv-radius-md); padding: 10px 14px;
  margin-top: 15px; margin-bottom: 20px; gap: 10px;
}
.minas-pathtext, .minas-share-pathtext { font-weight: 650; color: #303c4c; }
.minas-btn, .minas-share-mini-btn, .minas-icon-btn, .minas-upload-head-btn {
  border-radius: var(--pv-radius-sm); font-weight: 580; box-shadow: none; transition: background-color .15s,border-color .15s;
}
.minas-btn-primary, .minas-btn-primary:hover,
.minas-file-viewer-actions .minas-btn-primary, .minas-file-viewer-actions .minas-btn-primary:hover {
  background: var(--pv-action) !important; border-color: var(--pv-action) !important; color: #fff !important;
}
.minas-btn-primary:hover:not(:disabled), .minas-file-viewer-actions .minas-btn-primary:hover:not(:disabled) {
  background: var(--pv-action-hover) !important; border-color: var(--pv-action-hover) !important;
}
.minas-btn-outline { border-color: #d4dbe4; color: #344054; background: #fff; }
.minas-btn-outline:hover:not(:disabled), .minas-share-mini-btn:hover:not(:disabled) { background: #f2f5f8; border-color: #bfc9d5; }
.minas-file-list, .minas-folder-list, .minas-content-list { border-color: var(--pv-border); }
.minas-file-row, .minas-file-item { border-bottom: 1px solid #eef0f3; }
.minas-file-row:not(.minas-file-head):hover, .minas-file-item:hover { background: #f8fafb; }
.minas-file-head, .minas-file-table-head { background: #fafbfc; color: #6c7887; font-weight: 650; }
.minas-folder-card, .minas-share-card { border-radius: 8px; }
.minas-folder-card:hover, .minas-share-card:hover { background: #f6f8fa; }
.minas-folder-name, .minas-list-name, .minas-share-name { overflow-wrap: anywhere; }
.minas-public-select { border-radius: var(--pv-radius-sm); border-color: #d5dce4; }
.minas-selectionbar { border-color: var(--pv-brand-border); background: #f5f7ff; }
.minas-footer { color: #87919d; border-top: 1px solid #eef0f3; }
/* Use the same Remix Icon glyphs on all layouts; remove CSS-drawn placeholders. */
.minas-view-btn:before, .minas-view-btn:after,
.minas-mobile-share-btn:before, .minas-mobile-share-btn:after,
.minas-share-folder-btn:before, .minas-share-folder-btn:after,
.minas-kebab:before, .minas-kebab:after { content: none !important; display: none !important; }
.minas-view-btn, .minas-mobile-share-btn, .minas-share-folder-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--pv-radius-sm); border-color: #d8dee7;
}
.minas-view-btn i, .minas-mobile-share-btn i, .minas-share-folder-btn i,
.minas-mobile-detail-btn i { font-size: 18px; line-height: 1; pointer-events: none; }
.minas-view-btn.is-active { background: var(--pv-brand-soft); border-color: var(--pv-brand-border); color: #3856ca; }
.minas-view-btn:hover:not(:disabled) { background: #f0f3f7; }
.minas-share-folder-btn { background: transparent; color: var(--pv-action); border: 0; }
.minas-share-folder-btn:hover { background: var(--pv-brand-soft); }
/* Icon-only share actions are unboxed; keep their full touch targets and keyboard focus. */
.minas-mobile-share-btn,
.minas-folder-card > .minas-mobile-share-btn,
.minas-folder-row .minas-mobile-share-btn,
.minas-file-item .minas-mobile-share-btn {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--pv-action) !important;
}
.minas-mobile-share-btn:hover:not(:disabled),
.minas-folder-card > .minas-mobile-share-btn:hover:not(:disabled),
.minas-folder-row .minas-mobile-share-btn:hover:not(:disabled),
.minas-file-item .minas-mobile-share-btn:hover:not(:disabled) {
  background: var(--pv-brand-soft) !important;
}
.minas-mobile-share-btn:active:not(:disabled) { background: #e4eaff !important; }

.minas-share-mini-btn { min-height: 36px; height: 36px; padding: 0 12px; }
.minas-upload-panel { border-radius: var(--pv-radius-md); border-color: var(--pv-border); box-shadow: 0 10px 28px rgba(19,32,51,.16); }
.minas-upload-head-btn { border-radius: var(--pv-radius-sm); }
.minas-modal-dialog, .minas-detail-panel { box-shadow: 0 18px 54px rgba(19,32,51,.16); }
@media (max-width: 760px) {
  .ac-topbar.minas-topbar { height: 54px; min-height: 54px; padding: 0 14px; }
  .minas-logo { height: 54px; }
  .minas-main, .minas-share-main { width: min(100% - 28px, var(--pv-content-max)); padding-top: 20px; }
  .minas-page-head { margin-bottom: 14px; }
  .minas-pathbar, .minas-share-pathbar { padding: 10px; margin-bottom: 14px; }
  .minas-title, .minas-share-title { letter-spacing: -.015em; }
  .minas-mobile-share-btn { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Dialog a11y, field constraints and mobile focus states. */
.minas-modal-dialog { border-radius: 12px; max-width: min(460px, calc(100vw - 28px)); }
.minas-modal-close { display: inline-flex; align-items: center; justify-content: center; }
.minas-modal-close i { font-size: 21px; line-height: 1; }
.minas-input { border-radius: var(--pv-radius-sm); border-color: #ccd4de; }
.minas-modal-actions { gap: 8px; }
.minas-modal-actions .minas-btn { min-height: var(--pv-control-height); }

/* 2026-11 product palette and Remix Icon convergence. The source KMS tokens are
   --brand:#6680ff, --brand-hover:#5a72ef, --brand-soft:#eff2ff.
   Filled buttons use a darker accessible blue to keep white text readable.
   This local adaptation keeps existing product markup and behavioral contracts. */
:root {
  --minas-accent: var(--pv-brand);
}
html, body { background: #fff; color: var(--pv-text); }
.minas-shell, .minas-share-shell { background: #fff; }
.minas-title, .minas-share-title { color: var(--pv-text); }
.minas-btn-primary, .minas-btn-primary:hover,
.minas-file-viewer-actions .minas-btn-primary,
.minas-file-viewer-actions .minas-btn-primary:hover {
  background: var(--pv-action) !important;
  border-color: var(--pv-action) !important;
  color: #fff !important;
}
.minas-btn-primary:hover:not(:disabled),
.minas-file-viewer-actions .minas-btn-primary:hover:not(:disabled) {
  background: var(--pv-action-hover) !important;
  border-color: var(--pv-action-hover) !important;
}
.minas-btn-primary:disabled { opacity: .5; box-shadow: none !important; }
.minas-btn, .minas-share-mini-btn, .minas-icon-btn,
.minas-upload-head-btn, .minas-top-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}
.minas-btn > i, .minas-share-mini-btn > i, .minas-top-action > i,
.minas-icon-btn > i { font-size: 17px; line-height: 1; flex: none; }
.minas-pathbar, .minas-share-pathbar {
  background: #fff;
  border: 1px solid var(--pv-border);
  border-radius: 8px;
  min-height: 56px;
  gap: 12px;
}
.minas-pathtext, .minas-share-pathtext { font-size: 15px; font-weight: 600; color: #414e63; }
.minas-path-actions, .minas-share-actions { display: flex; align-items: center; gap: 8px; }
/* Two-state segmented view switch — no separate orange active button. */
.minas-path-actions:has(.minas-view-btn) .minas-view-btn + .minas-view-btn,
.minas-share-actions .minas-view-btn + .minas-view-btn { margin-left: -1px; }
.minas-view-btn, .minas-view-btn-list, .minas-view-btn-grid {
  width: 38px !important;
  height: 36px !important;
  flex: 0 0 38px;
  border: 1px solid #d9e0eb !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #65718a !important;
  box-shadow: none !important;
  transition: background-color .14s, border-color .14s, color .14s;
}
.minas-view-btn i { font-size: 18px; color: inherit; }
.minas-view-btn.is-active, .minas-view-btn[aria-pressed="true"] {
  color: #415bd4 !important;
  border-color: var(--pv-brand-border) !important;
  background: var(--pv-brand-soft) !important;
  position: relative;
  z-index: 1;
}
.minas-view-btn:hover:not(:disabled):not(.is-active) { background: #f6f8fc !important; color: #283950 !important; }
.minas-view-btn:disabled { opacity: .45; }
.minas-check-input { accent-color: var(--pv-action) !important; }
.minas-input:focus, .minas-search:focus, .minas-public-select:focus {
  border-color: var(--pv-action) !important;
  box-shadow: 0 0 0 3px rgba(102,128,255,.14) !important;
}
.minas-folder-card.is-selected { background: #f4f6ff !important; border-color: var(--pv-brand-border) !important; }
.minas-folder-card:hover, .minas-file-item[data-open-file]:hover,
.minas-share-row:hover, .minas-share-card:hover { background: #f7f8fc !important; }
.minas-folder-file-surface.is-dragover { border-color: var(--pv-action) !important; background: #f5f7ff !important; }
.minas-file-kind-image { border-color: #cbd6ff !important; background: #f1f4ff !important; }
.minas-icon-btn:hover:not(:disabled), .minas-file-actions .minas-icon-btn:hover:not(:disabled) {
  border-color: #cbd6ff !important; color: #425fca !important; background: #f7f8ff !important;
}
.minas-subfolder-item:hover { background: #f5f7ff !important; border-color: var(--pv-brand-border) !important; }
.minas-share-mini-btn:hover:not(:disabled), .minas-btn-outline:hover:not(:disabled) {
  border-color: #cbd6ff !important;
  color: #3a54c1;
  background: #f7f8ff !important;
}
/* Remix glyphs in place of /img/folder.png and /img/fileicon.png. */
.pv-folder-glyph {
  font-size: 29px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
  color: #7086da; font-weight: 400; flex: none;
}
.minas-folder-icon .pv-folder-glyph, .minas-list-thumb .pv-folder-glyph,
.minas-detail-folder-icon .pv-folder-glyph, .minas-file-preview .pv-folder-glyph {
  width: 32px; height: 32px; font-size: 28px;
}
.minas-detail-folder-icon .pv-folder-glyph { font-size: 33px; }
.minas-subfolder-item .pv-folder-glyph { width: 25px; height: 25px; font-size: 23px; }
.minas-share-thumb .pv-folder-glyph { width: 40px; height: 40px; font-size: 34px; }
.pv-file-glyph {
  width: 32px; height: 36px; display: inline-flex; align-items: center;
  justify-content: center; font-size: 31px; color: #66758d; line-height: 1; flex: none;
}
.pv-file-glyph--pdf { color: #c95760; }
.pv-file-glyph--image { color: #4d91bf; }
.pv-file-glyph--video { color: #746bc7; }
.pv-file-glyph--audio { color: #9e7aaf; }
.pv-file-glyph--sheet { color: #34886b; }
.pv-file-glyph--doc { color: #5c80be; }
.pv-file-glyph--slide { color: #c67f4d; }
.pv-file-glyph--archive { color: #8f7eac; }
.pv-file-glyph--code { color: #597a9d; }
.pv-file-glyph--text { color: #65758a; }
.minas-file-default-icon { display: inline-flex; align-items: center; justify-content: center; }
.minas-file-default-icon .pv-file-glyph { width: 36px; height: 36px; }
.minas-file-preview .pv-file-glyph { font-size: 30px; }
.minas-share-thumb .pv-file-glyph { width: 42px; height: 42px; font-size: 34px; }
.minas-share-type { display: none; }
.minas-share-unsupported > .pv-file-glyph { font-size: 46px; width: 56px; height: 56px; }
.pv-empty-icon { display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; font-size: 54px; color: #a7b4d7; line-height: 1; }
.minas-empty .pv-empty-icon, .minas-share-empty .pv-empty-icon { margin: 0 auto 8px; }
.minas-share-file-actions .minas-share-mini-btn i { font-size: 16px; }
/* Responsive: keep the content visible and action targets large enough. */
@media (max-width: 760px) {
  .minas-pathbar, .minas-share-pathbar { padding: 10px 12px; }
  .minas-path-actions, .minas-share-actions { gap: 6px; }
  .minas-view-btn, .minas-view-btn-list, .minas-view-btn-grid { min-width: 36px !important; }
  .minas-top-action { min-height: 36px; }
  .minas-main, .minas-share-main { width: min(100% - 28px, var(--pv-content-max)); }
}

/* Unsupported previews use the existing Remix file-type glyph, not a brand-logo placeholder. */
.minas-unsupported-icon {
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  flex: none;
}
.minas-unsupported-icon .pv-file-glyph {
  width: 60px;
  height: 60px;
  font-size: 54px;
}

/* First-login server selection is a view of the regular Drive shell.
   It reuses the shell, headings, primary button, and existing language control. */
.minas-main.minas-server-main { overflow-y: auto !important; }
.minas-server-content { width: min(100%, 600px); }
.minas-server-content .minas-page-head { margin-bottom: 18px; }
.minas-server-options { border: 0; border-top: 1px solid var(--pv-border); padding: 0; margin: 0; min-inline-size: 0; }
.minas-server-option { min-height: 56px; padding: 12px 10px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--pv-border); cursor: pointer; }
.minas-server-option:hover { background: var(--pv-surface-soft); }
.minas-server-option:has(input:checked) { background: var(--pv-brand-soft); }
.minas-server-option:focus-within { outline: 2px solid var(--pv-focus); outline-offset: -2px; }
.minas-server-option input { flex: 0 0 auto; width: 17px; height: 17px; margin: 0; accent-color: var(--pv-action); }
.minas-server-option-name { color: var(--pv-text); font-size: 15px; font-weight: 580; }
.minas-server-options:disabled .minas-server-option { cursor: default; }
.minas-server-notice { margin: 16px 0 8px; }
.minas-server-error { color: #b42334; font-size: 13px; margin: 0 0 10px; }
.minas-server-error:empty { display: none; }
.minas-server-retry { margin-left: 10px; }
.minas-server-actions { display: flex; justify-content: flex-start; margin-top: 18px; }
@media (max-width: 760px) { .minas-server-actions .minas-btn { width: 100%; } }
