/* Feedback, surveys, admin */
.center { text-align: center; }
.row.center { justify-content: center; }
.q-h { font-family: var(--font-ui); font-size: 1rem; margin: 18px 0 8px; }
.card + .card { margin-top: 18px; }
.stars { display: flex; gap: 6px; }
.star { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--mist); background: #fff; font-size: 1.5rem; color: #D5CBB5; cursor: pointer; }
.star.on { color: var(--gold); border-color: var(--gold); background: #FBF4E4; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--mist); background: #fff; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--gold); background: #FBF1D6; font-weight: 600; }
.count { display: block; text-align: right; }
.radios { display: flex; flex-direction: column; gap: 6px; }
.check { display: block; margin: 14px 0; font-size: 0.93rem; }
.receipt { font-family: var(--font-read); font-size: 1.8rem; letter-spacing: 0.12em; background: var(--navy); color: var(--gold); display: inline-block; padding: 6px 16px; border-radius: 8px; }
.row input[type="text"] { flex: 1; min-height: 42px; padding: 0 12px; border: 1.5px solid var(--mist); border-radius: 8px; font: inherit; }
.threads { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.thread-link { display: flex; justify-content: space-between; gap: 10px; text-align: left; padding: 10px 12px; border: 1px solid var(--mist); border-radius: 8px; background: var(--pearl); cursor: pointer; }
.msgs { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 80%; padding: 8px 12px; border-radius: 10px; background: var(--pearl); border: 1px solid var(--mist); }
.msg.admin { align-self: flex-end; background: #FBF1D6; border-color: var(--gold); }
.msg .who { font-size: 0.78rem; color: var(--ink-soft); }
.msg p { margin: 2px 0 0; white-space: pre-wrap; }
.new-thread summary { cursor: pointer; font-weight: 600; margin: 8px 0; }
.card textarea { width: 100%; }

/* Survey dialog */
.survey-dlg { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(16, 42, 74, 0.78); }
.survey-card { width: 100%; max-width: 620px; max-height: 92vh; overflow-y: auto; background: var(--pearl); border-radius: 14px; border-top: 4px solid var(--gold); padding: 22px 26px; }
.survey-card h2 { font-family: var(--font-read); margin: 0 0 4px; }
.survey-card .ar { display: block; font-size: 1.05rem; color: var(--ink-soft); margin-top: 2px; }
.sq { padding: 12px 0; border-top: 1px dashed var(--mist); }
.sq:first-of-type { border-top: 0; }
.sq-label { font-weight: 600; margin: 0 0 8px; }
.sq-label .req { color: var(--wrong); }
.survey-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 14px; }

/* Admin */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--mist); margin-bottom: 18px; }
.admin-tabs button { padding: 10px 16px; border: 0; background: none; font-weight: 600; color: var(--ink-soft); border-bottom: 3px solid transparent; margin-bottom: -2px; cursor: pointer; }
.admin-tabs button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--gold); }
.admin-tabs .count { display: inline-block; min-width: 22px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--navy); color: var(--gold); font-size: 0.78rem; }
.fb-item { padding: 14px 16px; border: 1px solid var(--mist); border-radius: 10px; background: #fff; margin-bottom: 10px; }
.fb-item.test { opacity: 0.55; }
.fb-item.hidden-c { background: #F4F1EA; }
.fb-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--ink-soft); }
.pill { padding: 1px 9px; border-radius: 999px; border: 1px solid var(--mist); font-size: 0.78rem; background: var(--pearl); color: var(--navy); }
.pill.gold { border-color: var(--gold); background: #FBF4E4; }
.pill.new { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.fb-text { margin: 8px 0; white-space: pre-wrap; font-family: var(--font-read); }
.fb-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bars { list-style: none; margin: 6px 0 14px; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.bars li { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr 4rem; gap: 10px; align-items: center; font-size: 0.9rem; }
.bars .meter { height: 12px; }
.builder .qrow { border: 1px solid var(--mist); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.builder .qrow .two { grid-template-columns: 1fr 1fr; }
.builder input[type="text"], .builder select, .builder textarea { width: 100%; font: inherit; min-height: 40px; padding: 6px 10px; border: 1.5px solid var(--mist); border-radius: 8px; background: var(--pearl); }
.builder input[dir="rtl"], .builder textarea[dir="rtl"] { font-family: var(--font-ar); }
.survey-list .fb-item h3 { margin: 0 0 4px; font-family: var(--font-read); }
@media print { .bar, .admin-tabs, .toolbar, .fb-actions, .footer { display: none !important; } .console { max-width: none; } }
.card h3 .ar { display: inline-block; margin-inline-start: 12px; font-weight: 400; }
.ar-inline { font-family: var(--font-ar); }

/* ===== P27: admin usage ===== */
.usage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 6px 0 8px; }
.usage-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow-card); }
.usage-card h3 { margin: 0; font-family: var(--font-display); font-size: 1.35rem; }
.usage-card .hint { margin: 0 0 8px; }
.usage-big { display: block; font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--navy); }
.usage-label { display: block; font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 8px; }
.usage-lines { margin: 0; padding: 8px 0 0; list-style: none; border-top: 1px solid var(--line); font-size: 0.9rem; }
.usage-lines li { padding: 2px 0; }
.usage-chart { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding: 8px 10px 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
.uc-day { flex: 1 0 18px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.uc-bar { width: 70%; min-height: 2px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #D9B560, #B98B2F); }
.uc-day.weekend .uc-bar { background: #D6CCB6; }
.uc-n { font-size: 0.72rem; color: var(--navy); font-weight: 600; min-height: 1em; }
.uc-d { font-size: 0.72rem; color: var(--ink-soft); padding: 3px 0 6px; }
.usage-all { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.usage-all .hint { margin: 0; }
.roster td.num, .roster th.num { text-align: right; font-variant-numeric: tabular-nums; }
