/* «الطلبات» and the sheikh's admission interview. Room layout, header, video tile and notes come from room.css;
   this adds the page of everyone waiting, the student's file, the test positions and the evaluation. */
.i-page { flex: 1; min-height: 0; overflow: auto; padding: 32px 24px 48px; }
.i-wrap { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.i-wrap h1 { margin: 0; font-size: 28px; font-weight: 600; }
.i-wrap .lede { margin: -8px 0 0; color: var(--ink-2); font-size: var(--text-base); }
.i-sec { display: flex; flex-direction: column; gap: 10px; }
.i-sec > h2 { margin: 0; font-size: var(--text-lg); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.i-sec > h2 .count { font-size: var(--text-base); font-weight: 500; color: var(--ink-3); }   /* how many, said quietly beside the title */
.i-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.i-card { background: var(--surface); border: 0; box-shadow: var(--shadow); border-radius: var(--radius-card); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.i-card > h3 { margin: 0; font-size: var(--text-input); font-weight: 600; }
.i-person { display: flex; align-items: center; gap: 12px; }
.i-person > span { display: flex; flex-direction: column; min-width: 0; }
.i-person b { font-size: var(--text-input); }
.i-person small { font-size: var(--text-md); color: var(--ink-2); }
.pic { flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; border: 2px solid var(--line); background: var(--brand-soft); }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic.big { width: 96px; height: 96px; }
.i-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.i-row .btn { height: 36px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 500; background: var(--neutral-bg); color: var(--neutral); }
.tag.ok { background: var(--brand-soft); color: var(--brand); }
.tag.wait { background: var(--amber-bg); color: var(--amber); }
.tag.no { background: var(--danger-bg); color: var(--danger); }
.swap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--ground); font-size: var(--text-md); }
.swap span { display: flex; flex-direction: column; }
.swap small { color: var(--ink-2); font-size: var(--text-md); }
.swap b { font-weight: 600; }
.swap .arrow { color: var(--ink-2); }
.result { padding: 10px 12px; border-radius: var(--radius-md); background: var(--brand-soft); color: var(--brand); font-size: var(--text-md); }
.result.no { background: var(--neutral-bg); color: var(--neutral); }
.rows { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; font-size: var(--text-base); }
.rows dt { color: var(--ink-2); }
.rows dd { margin: 0; font-weight: 500; }
.files-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: var(--text-md); }
.files-list li { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-md); }
.sample-video { aspect-ratio: 16 / 9; border-radius: var(--radius-md); background: #132457; color: #C9D6D0; display: grid; place-content: center; justify-items: center; gap: 6px; font-size: var(--text-md); }
.back-link { align-self: flex-start; border: 0; background: none; color: var(--brand); font-size: var(--text-base); font-weight: 500; padding: 0; }

/* «الطلبات»: his capacity on top, the full state, and the time pickers (an open picker takes the whole row) */
.i-cap { margin: -4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.i-cap span { padding: 6px 12px; border-radius: var(--radius-pill); background: var(--surface); box-shadow: var(--shadow); font-size: var(--text-md); font-weight: 500; color: var(--ink-2); }
.i-full { margin: 0; display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--amber-bg); color: var(--amber); font-size: var(--text-base); line-height: 1.6; }
.i-full svg { flex: none; margin-top: 3px; }
.i-wrap > .result { margin: 0; }
.i-card.wide { grid-column: 1 / -1; }
.i-pick { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: var(--radius-md); background: var(--ground); }
.i-pick .count-btn, .i-times .count-btn { min-height: 40px; }
.i-open select { min-width: 140px; font-family: inherit; font-size: var(--text-input); font-weight: 500; }
.i-open .btn { height: 44px; }

/* in the room */
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatar.photo { overflow: hidden; padding: 0; }
.tile-photo { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; border: 3px solid #2F3F39; }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spots { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; min-width: 0; }
.spot { display: flex; flex-direction: column; align-items: flex-start; gap: 0; max-width: 260px; height: auto; padding: 4px 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); text-align: start; }
.spot b { font-family: var(--quran); font-size: var(--text-input); font-weight: 700; line-height: 1.3; }
.spot span { font-size: var(--text-md); color: var(--ink-2); max-width: 230px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-accent); }
.spot[aria-pressed="true"] span { color: #DDEBE5; }
.toolbar > .btn { height: 36px; }
.ask { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.ask h2 { margin: 0; font-size: var(--text-base); font-weight: 600; }
.ask-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ask ul { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 4px; font-size: var(--text-md); line-height: 1.6; }
.ask li::marker { color: var(--brand); }
.ask li b { color: var(--brand); font-weight: 600; }
.link-btn { border: 0; background: none; color: var(--brand); font-size: var(--text-md); font-weight: 500; padding: 2px; }
.side > .notes { min-height: 180px; }

/* evaluation and decision */
.eval { display: flex; flex-direction: column; gap: 12px; }
.eval-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); align-items: center; gap: 12px; }
.eval-row > span { font-size: var(--text-base); font-weight: 500; }
.levels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.levels button, .choice-btn, .count-btn { min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); font-size: var(--text-md); font-weight: 500; }
.levels button[aria-pressed="true"], .count-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-accent); }
.levels button.na[aria-pressed="true"] { background: var(--neutral-bg); border-color: var(--ink-2); color: var(--neutral); }
.level-sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--brand-soft); color: var(--brand); font-size: var(--text-base); }
.level-sum b { font-size: var(--text-2xl); }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice-btn { min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.choice-btn small { font-size: var(--text-md); color: var(--ink-2); font-weight: 400; }
.choice-btn[aria-pressed="true"] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-soft); color: var(--brand); }
.choice-btn.no[aria-pressed="true"] { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); background: var(--danger-bg); color: var(--danger); }
.counts { display: flex; flex-wrap: wrap; gap: 8px; }
.count-btn { min-width: 64px; }
.start-at { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.start-at label { display: flex; flex-direction: column; gap: 4px; font-size: var(--text-md); color: var(--ink-2); }
.start-at select, .start-at input, .i-card textarea { height: 44px; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0 12px; background: var(--surface); font-size: var(--text-input); }
.start-at select { min-width: 180px; font-family: var(--quran); font-size: var(--text-lg); font-weight: 700; }
.start-at input { width: 90px; text-align: center; }
.start-at input.when { width: auto; text-align: start; }
.i-card textarea { height: auto; min-height: 80px; padding: 10px 12px; resize: vertical; }
.i-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.i-actions .btn { height: 52px; padding: 0 24px; }
.err { font-size: var(--text-md); color: var(--danger); }
/* the real interview's call on the tile (interview.js): his picture when he turns it on, the line's state, a tap to hear */
.tile-feed { position: absolute; inset: 0; background: #0B1530; }
.tile-feed video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-status { position: absolute; top: 10px; inset-inline-start: 12px; font-size: var(--text-sm); background: rgba(0, 0, 0, .45); padding: 2px 8px; border-radius: var(--radius-sm); }
.tile-tap { position: absolute; bottom: 10px; inset-inline-end: 12px; }
.video.speaking { outline: 3px solid var(--gold-mark); outline-offset: -3px; }
/* deleting an application: the quiet link, then the ask (as sheikh/after.css's draft delete) */
.link-btn.i-drop { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--danger); font-size: var(--text-md); font-weight: 700; }
.i-drop-ask { display: grid; gap: 12px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--danger-bg); box-shadow: inset 0 0 0 1px rgba(194, 52, 52, .18); }
.i-drop-ask p { margin: 0; font-size: var(--text-md); line-height: 1.7; color: var(--ink); }
.i-drop-act { display: flex; flex-wrap: wrap; gap: 8px; }
.i-drop-act .btn { min-height: 44px; font-weight: 700; }
.btn.i-danger { background: var(--danger); border-color: var(--danger); color: var(--on-accent); }
@media (max-width: 900px) {
  .i-grid, .choices { grid-template-columns: minmax(0, 1fr); }
  .eval-row { grid-template-columns: minmax(0, 1fr); }
}

/* The list, quiet (review 2026-10-26, Yahya: «مزعج وملخبط»): an empty section is one short grey line, each card's way
   into the file a small outlined button at its end, a finished one its outcome only. */
.i-empty { margin: 0; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--surface); color: var(--ink-3); font-size: var(--text-md); }
.i-card .i-open { margin-inline-start: auto; }
.i-card.i-done { flex-direction: row; align-items: center; justify-content: space-between; }
.i-card.i-done-add { flex-direction: column; align-items: stretch; }      /* his name above, «مقبول» and the button under it */
.i-done .btn { white-space: nowrap; }
