/* ---------- Механик: кіріс (B1) және заявка қарау (B2) ---------- */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--card); border-radius: 12px; padding: 4px; gap: 4px; }
.seg a { height: 44px; border-radius: 9px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 16px; font-weight: 700; color: var(--text-2); }
.seg a.on { background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.1); color: var(--primary); font-weight: 800; }
.count { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 13px; font-weight: 800; line-height: 20px; display: inline-block; }
.inbox-head { background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px 10px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 60px; z-index: 10; }
.inbox-list { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.tcard { border-radius: 16px; padding: 12px; display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--stc, var(--st-new-dot)); color: inherit; }
.tcard.unseen { border-color: #F6C79E; }
.tcard.sel { background: var(--primary-50); border-color: var(--primary); }
.tcard:hover { border-color: var(--border); color: inherit; }
.tcard.sel:hover { border-color: var(--primary); }
.thumb { width: 84px; height: 84px; border-radius: 12px; background: var(--dark); color: #fff; flex: none; display: flex; align-items: center; justify-content: center; position: relative; }
.thumb.soft { background: var(--card); color: var(--muted); }
.thumb .dur { position: absolute; bottom: 5px; right: 5px; font: 700 11px var(--mono); background: rgba(0,0,0,.6); padding: 1px 5px; border-radius: 4px; }
.tcard .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ai-draft { border: 1.5px dashed #B9C7E2; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #FAFBFE; }
.ai-draft .h { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--primary); }
.ai-draft .h .tagx { font-size: 12px; font-weight: 800; color: var(--muted); background: var(--line); border-radius: 6px; padding: 2px 7px; }
.radio-card { position: relative; min-height: 60px; border-radius: 14px; padding: 0 14px; display: flex; align-items: center; gap: 12px; cursor: pointer; border: 2px solid var(--line); background: #fff; font-size: 17px; font-weight: 700; }
.radio-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-card .ring { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--placeholder); display: flex; align-items: center; justify-content: center; flex: none; }
.radio-card .ring::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: transparent; }
.radio-card:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }
.radio-card:has(input:checked) .ring { border-color: var(--primary); }
.radio-card:has(input:checked) .ring::after { background: var(--primary); }
.collapse summary { list-style: none; border: 1px solid var(--line); border-radius: 16px; min-height: 56px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: 800; cursor: pointer; background: #fff; }
.collapse summary::-webkit-details-marker { display: none; }
.collapse[open] summary { border-radius: 16px 16px 0 0; }
.collapse .in { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px; padding: 12px 16px; background: #fff; }
.sticky-bar { position: sticky; bottom: 0; padding: 12px 16px 20px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 20px -12px rgba(15,23,42,.2); margin: 0 -16px -24px; z-index: 5; }
.has-nav .sticky-bar { bottom: 80px; }
.icon-btn { width: 52px; height: 52px; border-radius: 14px; background: var(--primary-50); color: var(--primary); display: flex; align-items: center; justify-content: center; flex: none; }
.pane-list { display: none; }
.detail-wrap { width: 100%; max-width: 480px; margin: 0 auto; padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.video-box { border-radius: 20px; background: var(--dark); overflow: hidden; }
.video-box video { width: 100%; max-height: 420px; display: block; background: #000; }
@media (min-width: 1024px) {
  .has-nav .sticky-bar { bottom: 0; }
  .split { display: grid; grid-template-columns: 400px minmax(0, 1fr); min-height: calc(100dvh - 64px); }
  .pane-list { display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); }
  .pane-list .inbox-head { top: 64px; }
  .pane-main { background: var(--card); min-width: 0; }
  .mobile-list { display: none; }
  .detail-wrap { max-width: none; padding: 0; gap: 0; }
  .detail-head { padding: 16px 24px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; }
  .desk-grid { display: grid; grid-template-columns: minmax(0,1fr) 400px; gap: 20px; padding: 20px 24px; align-items: start; }
  .desk-grid .form-card { background: #fff; border-radius: 16px; padding: 16px; position: sticky; top: 84px; }
  .desk-grid .sticky-bar { position: static; margin: 12px -16px -16px; border-radius: 0 0 16px 16px; box-shadow: none; }
  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .pick-empty { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
}
