/* «Поддерживаемые камеры» (cameras.html, scripts/cameras-page.py). */
.cameras section { padding-top: 48px; }
.cam-sum, .cam-list { max-width: 980px; margin: 0 auto; }
.cam-sum { padding: 26px 28px; border-radius: 26px; background: rgba(255, 255, 255, .75); border: 1px solid #fff; box-shadow: var(--shadow); }
.cam-total { margin: 0 0 12px; font-weight: 600; }
.cam-sum ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 14px; align-items: baseline; color: var(--ink2); }
.cam-sum li { display: contents; }
.cam-sum li .st { justify-self: start; }
.cam-sum li b { color: var(--ink); }
.cam-ask, .cam-known { margin: 16px 0 0; color: var(--ink2); font-size: 16px; }
.cam-known { padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; }
.cam-known b { color: var(--ink); }

.st { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 500 13px/1.35 var(--body); white-space: nowrap; }
.st.ok { background: #dcf5e7; color: #0d7a42; }
.st.should { background: var(--blue-soft); color: #2235c4; }
.st.preview { background: #fff0cc; color: #7a5200; }
.st.no { background: #eceef2; color: var(--ink2); }

.cam-tools { display: flex; gap: 12px; flex-wrap: wrap; }
.cam-search { flex: 1 1 360px; color: var(--muted); }
.cam-search input { font-weight: 400; }
.cam-search input::-webkit-search-cancel-button { cursor: pointer; }
.cam-select { flex: 0 1 260px; height: 54px; padding: 0 44px 0 20px; border: 0; border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%234a5164' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 20px center / 12px no-repeat; box-shadow: inset 0 0 0 1px var(--line); font: 500 16px var(--body); color: var(--ink); appearance: none; -webkit-appearance: none; cursor: pointer; min-width: 0; }
.cam-select:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--blue); }
.cam-status { margin-top: 14px; }
.cam-status em { font-style: normal; color: var(--muted); font-weight: 400; }
.cam-status input:checked + span em { color: inherit; }
.cam-found { margin: 16px 0 10px; font-size: 14px; color: var(--muted); min-height: 1.4em; }

.cam-box { max-height: min(72vh, 780px); overflow: auto; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); overscroll-behavior: contain; }
.cam-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cam-table th { position: sticky; top: 0; z-index: 1; background: #fff; text-align: left; font-weight: 600; font-size: 13px; color: var(--muted); padding: 14px 16px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cam-table td { padding: 10px 16px; border-bottom: 1px solid #eef0f4; vertical-align: top; }
.cam-table tr:last-child td { border-bottom: 0; }
.cam-table td:nth-child(1) { color: var(--ink2); white-space: nowrap; }
.cam-table td:nth-child(2) { font-weight: 500; }
.cam-table td:nth-child(3) { color: var(--ink2); }
.cam-table td small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.cam-empty { margin: 0; padding: 22px 20px; color: var(--ink2); }


@media (max-width: 680px) {
  .cameras section { padding-top: 36px; }
  .cam-sum { padding: 20px 18px; border-radius: 22px; }
  .cam-select { flex: 1 1 100%; }
  /* A phone gets one card per camera: maker and format on top, model and status below. */
  .cam-table thead { display: none; }
  .cam-table tr:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "maker fmt" "model status"; gap: 2px 12px; padding: 10px 14px; border-bottom: 1px solid #eef0f4; }
  .cam-table td { padding: 0; border: 0; font-size: 14px; }
  .cam-table td:nth-child(1) { grid-area: maker; font-size: 13px; color: var(--muted); }
  .cam-table td:nth-child(2) { grid-area: model; font-size: 15px; }
  .cam-table td:nth-child(3) { grid-area: fmt; justify-self: end; font-size: 13px; color: var(--muted); }
  .cam-table td:nth-child(4) { grid-area: status; justify-self: end; max-width: 150px; text-align: right; }
  .cam-table .st { white-space: normal; }
  .cam-sum ul { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .cam-sum li .st { margin-top: 8px; }
}
