/* Стили загрузки записи и «Кто есть кто» (WP26). Цвета только из theme.css. */

/* «Загрузить запись» under «Прошедшие»: a quiet line, not a prime spot. */
.up-entry { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: 13px; line-height: 20px; }
.up-entry p { margin: 0; overflow-wrap: anywhere; }
.up-entry .up-entry-link { height: auto; min-height: 28px; margin: 0 -4px; padding: 0 4px; color: var(--foreground); vertical-align: baseline; }

/* The choice of the file: the whole zone opens the field of the file, which lives outside the page, and takes a dropped file. */
.up-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px; border-radius: 16px; border: 1.5px dashed var(--border-strong); background: var(--sunken); text-align: center; cursor: pointer; }
.up-drop > .w-i { width: 28px; height: 28px; color: var(--muted-foreground); }
.up-drop > span { font-size: 13px; color: var(--muted-foreground); }
.up-drop > .w-btn { margin-top: 8px; color: var(--primary-foreground); }
.up-cut { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.up-cut span { flex: 1 1 240px; }

/* The file while it goes. */
.up-file { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; border: 1px solid var(--border); }
.up-file > .w-i { flex-shrink: 0; margin-top: 2px; color: var(--muted-foreground); }
.up-file-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.up-file-main b { overflow-wrap: anywhere; }
.up-file-main small { font-size: 12px; line-height: 18px; color: var(--muted-foreground); }
.up-bar { width: 100%; height: 6px; border: 0; border-radius: 3px; overflow: hidden; appearance: none; background: var(--sunken); }
.up-bar::-webkit-progress-bar { background: var(--sunken); }
.up-bar::-webkit-progress-value { background: var(--primary); border-radius: 3px; }
.up-bar::-moz-progress-bar { background: var(--primary); border-radius: 3px; }

/* «Это встреча из календаря?» */
.up-cal { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px; border-radius: 14px; background: var(--sunken); font-size: 13px; line-height: 20px; }
.up-cal > .w-i { flex-shrink: 0; margin-top: 2px; color: var(--muted-foreground); }
.up-cal p { flex: 1; margin: 0; }
.up-cal.is-on > .w-i { color: var(--success); }
.up-cal-list { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.up-cal-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }

.up-field { margin-top: 16px; }
.up-field > .w-label { display: block; margin-bottom: 6px; }
.up-optional { font-weight: 400; color: var(--muted-foreground); }

/* The foot: the consent above the buttons. */
.up-foot { flex-direction: column; align-items: stretch; }
.up-consent { margin: 0; font-size: 12px; line-height: 18px; color: var(--muted-foreground); }
.up-foot-actions { display: flex; justify-content: flex-end; gap: 8px; }
.up-run-file { margin: 0 0 4px; overflow-wrap: anywhere; }
.up-steps { padding: 0; list-style: none; }
.up-step small { color: var(--muted-foreground); }
.up-step-bad { background: var(--danger-bg); color: var(--danger); }

/* «Кто есть кто». */
.wiw-quality { display: flex; gap: 10px; align-items: flex-start; }
.wiw-quality .w-i { flex-shrink: 0; margin-top: 2px; color: var(--warning); }
.wiw { margin-bottom: 16px; }
.wiw-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wiw-open { display: none; }
.wiw-rows { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.wiw-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 280px); gap: 6px 16px; align-items: center; padding-top: 12px; border-top: 1px solid var(--border); }
.wiw-row:first-child { padding-top: 0; border-top: 0; }
.wiw-head { display: flex; gap: 10px; align-items: center; min-width: 0; }
.wiw-who { display: flex; flex-direction: column; min-width: 0; }
.wiw-who b { overflow-wrap: anywhere; }
.wiw-who small { font-size: 12px; line-height: 18px; color: var(--muted-foreground); }
.wiw-sample { grid-column: 1; display: flex; gap: 6px; align-items: center; min-width: 0; padding: 0; background: transparent; color: var(--body); font-size: 13px; line-height: 20px; text-align: left; }
.wiw-sample span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wiw-sample .w-i { flex-shrink: 0; width: 14px; height: 14px; color: var(--primary); }
.wiw-edit { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 6px; }
.wiw-guest { display: flex; gap: 6px; }
.wiw-merge { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.wiw-merge span { flex: 1 1 200px; }

/* A phone: the voices are a list, the choice is a sheet on the whole screen. */
@media (max-width: 760px) {
  .wiw .wiw-row { grid-template-columns: minmax(0, 1fr); }
  .wiw .wiw-edit, .wiw > .wiw-merge { display: none; }
  .wiw-open { display: inline-flex; }
  .wiw-sheet .wiw-row { grid-template-columns: minmax(0, 1fr); }
  .wiw-sheet .wiw-edit { grid-column: 1; grid-row: auto; }
  .wiw-sheet .wiw-pick .w-pick-btn, .wiw-sheet .wiw-guest .w-input { height: 44px; }
  .up-foot-actions .w-btn { height: 44px; }
}
