/* ============================================================
   dialog.css
   CustomDialog — Apple HIG bottom sheet.

   Owns ONLY the sheet chrome:
     backdrop · container · handle · header · scrollable body
     · footer action row.

   NO colours hardcoded. Every value is a CSS variable so
   ThemeManager can inject any theme without touching this file.

   Load order: after styles.css, after district_styles.css.
   ============================================================ */


/* ── 1. BACKDROP ─────────────────────────────────────────────
   Full-screen blur overlay.
   backdrop-filter provides the iOS-style frosted glass effect.
   ──────────────────────────────────────────────────────────── */

.cd-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;

  /* Translucent tint — variable so dark themes can deepen it */
  background: var(--bg-overlay);

  /* iOS-style blur */
  backdrop-filter: blur(8px) saturate(160%);
  -webkit-backdrop-filter: blur(8px) saturate(160%);

  /* Animate in */
  animation: cd-backdrop-in 0.22s ease both;

  /* Touch: tapping outside the sheet dismisses */
  cursor: pointer;
}

.cd-backdrop.cd-closing {
  animation: cd-backdrop-out 0.28s ease both;
}

@keyframes cd-backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes cd-backdrop-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}


/* ── 2. SHEET CONTAINER ──────────────────────────────────────
   Slides up from the bottom. Max-height caps it on large
   screens so it never becomes a full-screen modal by accident.
   ──────────────────────────────────────────────────────────── */

.cd-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 301;

  /* Sheet chrome */
  background: var(--bg-elevated);
  border-top-left-radius:  var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  border: 1px solid var(--border);
  border-bottom: none;
  box-shadow: var(--shadow-lg);

  /* Flex column so header + body + footer stack cleanly */
  display: flex;
  flex-direction: column;

  /* Fills width; capped on wide screens via max-width + centering */
  width: 100%;
  max-width: 680px;
  margin: 0 auto;

  /* Height: grows with content, never taller than 92dvh */
  max-height: 92dvh;

  /* Safe area: respect home-indicator on iOS */
  padding-bottom: env(safe-area-inset-bottom, 0px);

  /* Slide-up entry */
  animation: cd-sheet-in 0.32s cubic-bezier(0.32, 0.72, 0, 1) both;

  /* Prevent clicks falling through */
  cursor: default;
}

.cd-sheet.cd-closing {
  animation: cd-sheet-out 0.26s cubic-bezier(0.32, 0.72, 0, 1) both;
}

@keyframes cd-sheet-in {
  from { transform: translateY(100%); opacity: 0.6; }
  to   { transform: translateY(0);    opacity: 1;   }
}

@keyframes cd-sheet-out {
  from { transform: translateY(0);    opacity: 1;   }
  to   { transform: translateY(100%); opacity: 0;   }
}


/* ── 3. DRAG HANDLE ──────────────────────────────────────────
   Centred pill at the top of the sheet.  Apple HIG standard.
   ──────────────────────────────────────────────────────────── */

.cd-handle-wrap {
  display: flex;
  justify-content: center;
  padding: 10px 0 4px;
  flex-shrink: 0;
  /* Allow the handle to also act as a drag region */
  touch-action: none;
  cursor: grab;
}

.cd-handle {
  width: 36px;
  height: 5px;
  border-radius: var(--radius-pill);
  background: var(--border-strong);
  opacity: 0.55;
  transition: opacity 0.15s, width 0.15s;
}

.cd-handle-wrap:hover .cd-handle,
.cd-handle-wrap:active .cd-handle {
  opacity: 0.85;
  width: 44px;
}


/* ── 4. SHEET HEADER ─────────────────────────────────────────
   Title + optional subtitle on the left, close button on right.
   ──────────────────────────────────────────────────────────── */

.cd-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 20px 14px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--separator);
}

.cd-header-text {
  flex: 1;
  min-width: 0;
}

.cd-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cd-subtitle {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Close button — 32 × 32 tappable circle */
.cd-close-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  display: grid;
  place-items: center;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: background 0.14s, color 0.14s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.cd-close-btn:hover {
  background: var(--danger-light);
  color: var(--danger);
}

.cd-close-btn:active {
  transform: scale(0.88);
}


/* ── 5. SCROLLABLE BODY ──────────────────────────────────────
   Content injected by the caller lives here.
   Scrolls independently; header + footer stay sticky.
   ──────────────────────────────────────────────────────────── */

.cd-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 20px 20px 8px;

  /* Scrollbar — matches app-wide scrollbar style */
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

.cd-body::-webkit-scrollbar         { width: 4px; }
.cd-body::-webkit-scrollbar-track   { background: transparent; }
.cd-body::-webkit-scrollbar-thumb   {
  background: var(--scrollbar-thumb);
  border-radius: var(--radius-pill);
}


/* ── 6. FOOTER ACTION ROW ────────────────────────────────────
   Sticky at the bottom. Holds Cancel + primary action buttons.
   ──────────────────────────────────────────────────────────── */

.cd-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 16px;
  border-top: 1px solid var(--separator);
}

/* Cancel / secondary */
.cd-btn-cancel {
  flex: 1;
  padding: 13px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s, color 0.14s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.cd-btn-cancel:hover  { background: var(--border); }
.cd-btn-cancel:active { transform: scale(0.97); }

/* Primary confirm */
.cd-btn-primary {
  flex: 2;
  padding: 13px 16px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 0.92rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: opacity 0.14s, background 0.14s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.cd-btn-primary:hover  { background: var(--accent-hover); }
.cd-btn-primary:active { transform: scale(0.97); }

.cd-btn-primary:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Danger variant (e.g. confirm delete) */
.cd-btn-primary--danger {
  background: var(--danger);
}

.cd-btn-primary--danger:hover { opacity: 0.88; background: var(--danger); }


/* ── 7. SECTION LABEL (reusable inside body) ─────────────────
   Uppercase label used inside sheet body sections by callers.
   Topics, FileWorker etc. can use this class inside .cd-body.
   ──────────────────────────────────────────────────────────── */

.cd-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 8px;
  margin-top: 18px;
}

.cd-section-label:first-child { margin-top: 0; }


/* ── 8. FIELD ROWS (reusable inside body) ────────────────────
   Standard input / select / textarea rows that callers render
   inside the sheet body.  Inherits tokens from styles.css.
   ──────────────────────────────────────────────────────────── */

.cd-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.cd-field:last-child { margin-bottom: 0; }

.cd-field-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.cd-field-input,
.cd-field-select,
.cd-field-textarea {
  width: 100%;
  padding: 0.65rem 0.875rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cd-field-input::placeholder,
.cd-field-textarea::placeholder {
  color: var(--text-placeholder);
}

.cd-field-input:focus,
.cd-field-select:focus,
.cd-field-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.cd-field-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.cd-field-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238E8E93' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}

.cd-field-hint {
  font-size: 0.74rem;
  color: var(--text-tertiary);
  line-height: 1.4;
}

/* Inline error below a field */
.cd-field-error {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--danger);
  margin-top: -10px;
  margin-bottom: 4px;
}


/* ── 9. CHOICE CHIP ROW (visibility / type selectors) ────────
   Horizontal scrolling row of selectable chips.
   Used by topics "who can see" and file visibility pickers.
   ──────────────────────────────────────────────────────────── */

.cd-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cd-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.14s, background 0.14s, color 0.14s;
  -webkit-tap-highlight-color: transparent;
}

.cd-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cd-chip.selected {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}

.cd-chip--danger.selected {
  border-color: var(--danger);
  background: var(--danger-light);
  color: var(--danger);
}

.cd-chip--success.selected {
  border-color: var(--success);
  background: var(--success-light);
  color: var(--success);
}


/* ── 10. PEOPLE PICKER (visible_to list) ─────────────────────
   Search input + result list + selected badge row.
   Used by "new topic" and "new message" visibility selectors.
   ──────────────────────────────────────────────────────────── */

.cd-people-search-wrap {
  position: relative;
  margin-bottom: 8px;
}

.cd-people-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}

.cd-people-search {
  width: 100%;
  padding: 0.6rem 0.875rem 0.6rem 2.2rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cd-people-search::placeholder { color: var(--text-placeholder); }
.cd-people-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.cd-people-results {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
  max-height: 180px;
  overflow-y: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.cd-people-results:empty { display: none; }

.cd-people-result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--separator);
  transition: background 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.cd-people-result-row:last-child { border-bottom: none; }
.cd-people-result-row:hover      { background: var(--accent-light); }

.cd-people-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  border: 1.5px solid var(--border);
}

.cd-people-av--initials {
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--accent-fg);
  background: var(--accent);
}

.cd-people-name {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cd-people-reg {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

/* Selected people badges */
.cd-selected-people {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.cd-selected-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 7px;
  border-radius: var(--radius-pill);
  background: var(--accent-light);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.cd-selected-badge-remove {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 0.6rem;
  cursor: pointer;
  border: none;
  line-height: 1;
  margin-left: 2px;
  flex-shrink: 0;
  transition: opacity 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.cd-selected-badge-remove:hover { opacity: 0.75; }


/* ── 11. LOADING / EMPTY STATES (inside body) ────────────────
   Centred spinner or empty message inside the sheet body.
   ──────────────────────────────────────────────────────────── */

.cd-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.cd-spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: cd-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes cd-spin { to { transform: rotate(360deg); } }

.cd-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 36px 20px;
  text-align: center;
}

.cd-empty-icon {
  font-size: 2rem;
  opacity: 0.45;
}

.cd-empty-text {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  max-width: 260px;
  line-height: 1.5;
}


/* ── 12. RESPONSIVE ──────────────────────────────────────────
   On small screens the sheet goes fully edge-to-edge.
   On wider screens it sits centred like a popover sheet.
   ──────────────────────────────────────────────────────────── */

@media (min-width: 560px) {
  /* Left / right gap on larger phones and tablets */
  .cd-sheet {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    bottom: 24px;
    box-shadow: var(--shadow-lg);
  }

  .cd-sheet.cd-closing {
    animation: cd-sheet-out-wide 0.26s cubic-bezier(0.32, 0.72, 0, 1) both;
  }

  @keyframes cd-sheet-out-wide {
    from { transform: translateX(-50%) translateY(0);    opacity: 1; }
    to   { transform: translateX(-50%) translateY(120%); opacity: 0; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .cd-backdrop,
  .cd-sheet,
  .cd-backdrop.cd-closing,
  .cd-sheet.cd-closing {
    animation: none;
  }
}


/* ══════════════════════════════════════════════════════════════
   13. DROPDOWN SELECT — styled native select wrapper
   Used by CustomDialog body for Type, Visibility, Expiry, Tags.
   CustomDialog renders .cd-select-wrap; callers never build
   raw <select> elements — always use this component pattern.
   ══════════════════════════════════════════════════════════════ */

/* Wrapper provides the custom arrow and focus ring */
.cd-select-wrap {
  position: relative;
  margin-bottom: 14px;
}

.cd-select-wrap:last-child { margin-bottom: 0; }

/* The actual <select> — stretched to fill wrapper */
.cd-select {
  width: 100%;
  padding: 0.7rem 2.6rem 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  /* Remove default styling on iOS */
  -webkit-border-radius: var(--radius-md);
}

.cd-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* Dark mode: options inherit the OS default which is usually white text
   on dark bg — we nudge background so it at least stays readable */
.theme-dark .cd-select {
  background: var(--bg-input);
  color: var(--text-primary);
  /* option elements can't be styled cross-browser — this is best effort */
}

/* Custom chevron arrow overlaid on the right */
.cd-select-wrap::after {
  content: '';
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--text-tertiary);
  pointer-events: none;
  transition: border-top-color 0.15s;
}

.cd-select-wrap:focus-within::after {
  border-top-color: var(--accent);
}

/* Optional leading icon inside the wrapper (prepended by JS) */
.cd-select-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
  line-height: 1;
}

/* When an icon is present, push select text right */
.cd-select-wrap--icon .cd-select {
  padding-left: 2.4rem;
}

/* ── Multi-select tick list (Custom visibility / Custom tags) ──
   Rendered inline in .cd-body when user picks "Custom" from a
   visibility or tags dropdown.  Each row is a label+checkbox.
   ──────────────────────────────────────────────────────────── */

.cd-tick-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--bg-input);
}

.cd-tick-list:empty { display: none; }

.cd-tick-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--separator);
  transition: background 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.cd-tick-row:last-child { border-bottom: none; }

.cd-tick-row:hover { background: var(--accent-light); }

.cd-tick-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 4px;
}

.cd-tick-label {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  user-select: none;
}

.cd-tick-sub {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-weight: 400;
  margin-top: 1px;
}

.cd-tick-row--checked { background: var(--accent-light); }
.cd-tick-row--checked .cd-tick-label { color: var(--accent); }

/* ── People search (Custom → specific people) ──────────────── */
.cd-custom-people-wrap {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--separator);
}

/* ── Upload progress inside dialog body ─────────────────────
   Shown during file upload; sits in .cd-body not behind it.
   ──────────────────────────────────────────────────────────── */

.cd-upload-progress {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cd-upload-progress[hidden] { display: none; }

.cd-upload-progress-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cd-upload-progress-pct {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.cd-upload-progress-bar {
  height: 5px;
  border-radius: var(--radius-pill);
  background: var(--separator);
  overflow: hidden;
}

.cd-upload-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-pill);
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cd-upload-progress-fill--done  { background: var(--success); width: 100% !important; }
.cd-upload-progress-fill--error { background: var(--danger);  }

/* Fake-progress animation — runs until upload resolves */
@keyframes cd-progress-pulse {
  0%   { width: 0%; }
  15%  { width: 35%; }
  40%  { width: 60%; }
  70%  { width: 78%; }
  90%  { width: 85%; }
  100% { width: 85%; } /* stalls here until real upload finishes */
}

.cd-upload-progress-fill--animating {
  animation: cd-progress-pulse 2.8s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

/* ── Visibility composer pill (message composer quick-select) ──
   Replaces the old topic-vis-btn click-to-dialog pattern.
   A compact inline <select> styled as a pill badge.
   ──────────────────────────────────────────────────────────── */

.cd-vis-pill-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cd-vis-pill {
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.73rem;
  font-weight: 700;
  font-family: inherit;
  padding: 4px 22px 4px 10px;
  cursor: pointer;
  transition: border-color 0.13s, color 0.13s, background 0.13s;
  -webkit-tap-highlight-color: transparent;
  min-width: 0;
}

.cd-vis-pill:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light);
}

.cd-vis-pill--private {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-light);
}

.cd-vis-pill--students {
  border-color: var(--success);
  color: var(--success);
  background: var(--success-light);
}

.cd-vis-pill-wrap::after {
  content: '';
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  pointer-events: none;
  color: var(--text-tertiary);
}

