/* Блок первого действия: площадка, скриншот, текст, отправка (case-entry.js).
   Проектный минимум из пакета seller_v2: действие 48 px по высоте, текст ввода 16 px
   (меньше айфон увеличивает страницу при фокусе), видимый фокус, подпись у скрепки. */
.case-entry {
  background: #fff;
  border: 1px solid rgba(23,24,26,.13);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 12px 35px rgba(23,24,26,.07);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.case-entry [hidden] { display: none !important; }
.ce-market { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ce-label { font-size: 13px; color: rgba(23,24,26,.66); margin-right: 4px; }
.ce-chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(23,24,26,.18); background: #fff; color: #17181a;
  font: 600 15px Onest, system-ui, sans-serif; cursor: pointer;
}
.ce-chip[aria-pressed="true"] { background: #17181a; border-color: #17181a; color: #fff; }
.ce-pick {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; width: 100%; padding: 0 18px; border-radius: 12px;
  border: 0; background: #17181a; color: #fff;
  font: 650 17px Onest, system-ui, sans-serif; cursor: pointer;
}
.ce-pick:hover { background: #000; }
.ce-text-toggle {
  min-height: 48px; width: 100%; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(23,24,26,.18); background: transparent; color: #17181a;
  font: 600 16px Onest, system-ui, sans-serif;
}
.ce-text-toggle[aria-expanded="true"] { display: none; }
.ce-text {
  width: 100%; min-height: 84px; resize: vertical; box-sizing: border-box;
  padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(23,24,26,.22);
  font: 400 16px/1.5 Onest, system-ui, sans-serif; color: #17181a; background: #fff;
}
.ce-text:focus-visible, .ce-chip:focus-visible, .ce-pick:focus-visible, .ce-text-toggle:focus-visible,
.ce-link:focus-visible, .ce-send:focus-visible { outline: 2px solid #2d6c49; outline-offset: 2px; }
.ce-send { width: 100%; min-height: 52px; font-size: 17px; }
.ce-send[disabled] { opacity: .6; cursor: progress; }
.ce-preview { display: grid; gap: 8px; }
.ce-file {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 12px; align-items: center;
  padding: 10px; border-radius: 12px; background: #f2f1ee;
}
.ce-thumb, .ce-badge { grid-row: span 2; width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: #e9eee9; }
.ce-badge { display: flex; align-items: center; justify-content: center; font: 700 12px Onest, system-ui, sans-serif; color: #2d6c49; }
.ce-meta { display: flex; flex-direction: column; min-width: 0; }
.ce-name { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ce-size { font-size: 13px; color: rgba(23,24,26,.62); }
.ce-file-actions { display: flex; gap: 14px; }
.ce-link {
  border: 0; background: none; padding: 0; min-height: 32px; cursor: pointer;
  font: 600 14px Onest, system-ui, sans-serif; color: #2d6c49; text-decoration: underline; text-underline-offset: 3px;
}
.ce-status { margin: 0; min-height: 0; font-size: 15px; line-height: 1.45; color: #17181a; }
.ce-status:empty { display: none; }
.ce-fallback { margin: 0; font-size: 15px; line-height: 1.5; }
.ce-fallback a { color: #2d6c49; font-weight: 600; }
.ce-note, .ce-free { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(23,24,26,.66); }
.ce-free { color: #2d6c49; font-weight: 600; }
.ce-rules { font-size: 13px; }
.ce-rules a { color: inherit; text-underline-offset: 3px; }
.ce-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) {
  .case-entry { padding: 16px; border-radius: 14px; gap: 10px; }
}
