/* Ported from Pearls of Quran (CharacterBee) for Alfiya Academy by tools/port_admin.py. Edit the Alfiya files, not this copy's source. */
/*
 * Admin → operations (wave 2): competition rounds & results, payouts, the support desk (inbox) and the audit trail (activity).
 * Same language as admin.css: white cards with hairlines on pearl-white, deep-navy accents, brand gold for actions.
 * Everything new is scoped with ops-. Motion: transform + opacity only.
 *
 *   1 competition tabs + rounds        4 results: winners band, podium, medals     7 inbox: support desk
 *   2 question paper                   5 payouts                                    8 activity: audit diff
 *   3 score entry                      6 print: answer sheet + answer key
 */

/* =====================================================================================================
   1 · COMPETITION TABS + ROUNDS
   ===================================================================================================== */
.ops-panes, .ops-pane { display: grid; gap: 18px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.ops-pane[hidden] { display: none; }
.ops-nowrap { white-space: nowrap; }

.ops-rlist { display: grid; border-top: 1px solid var(--adm-line); }
.ops-round { position: relative; display: flex; align-items: center; min-width: 0; border-bottom: 1px solid var(--adm-row); transition: background-color .15s; }
.ops-round:last-child { border-bottom: 0; }
.ops-round::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold-500); opacity: 0; transform: scaleY(.4); transition: opacity .2s, transform .25s var(--ease-out); }
.ops-round.is-active { background: #FDF9EE; }
.ops-round.is-active::before { opacity: 1; transform: none; }
.ops-round__main { flex: 1; min-width: 0; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: .9rem; padding: .85rem .6rem .85rem 1.25rem; text-align: left; color: inherit; }
.ops-round__main:hover .ops-round__name { color: var(--gold-ink); }
.ops-round__main:focus-visible { outline-offset: -3px; border-radius: 12px; }
.ops-round__cal { position: relative; width: 52px; height: 56px; border-radius: 12px; display: grid; place-content: center; justify-items: center; gap: 1px; padding-top: 5px; background: #fff; border: 1px solid var(--adm-line-2); box-shadow: 0 1px 2px rgba(28, 22, 70, .06); overflow: hidden; }
.ops-round__cal::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--gold-600), var(--gold-300)); }
.ops-round__cal b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.ops-round__cal small { font-size: .62rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); line-height: 1.2; text-align: center; }
.ops-round__txt { display: grid; gap: 1px; min-width: 0; }
.ops-round__name { font-weight: 650; color: var(--text); overflow-wrap: anywhere; transition: color var(--t-fast); }
.ops-round__meta { font-size: .82rem; color: var(--text-soft); }
.ops-round__notes { font-size: .8rem; color: var(--text-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-round__tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .3rem; max-width: 340px; }
.ops-round__tags .badge .i { width: .85rem; height: .85rem; }
.ops-round__btns { display: flex; align-items: center; gap: 2px; padding-right: .7rem; flex: none; }

.ops-work__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .8rem 1rem; padding: 18px 20px 14px; border-bottom: 1px solid var(--adm-line); background: linear-gradient(180deg, #fff, var(--adm-head)); }
.ops-work__titles { min-width: 0; flex: 1 1 260px; }
.ops-work__kicker { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: .8rem; font-weight: 550; color: var(--text-mute); }
.adm-body .ops-work__title { margin-top: .35rem; font-size: 1.3rem; font-weight: 700; line-height: 1.2; letter-spacing: -.022em; font-variation-settings: 'opsz' 48; overflow-wrap: anywhere; }
.ops-work__body { display: grid; gap: 14px; padding: 16px 20px 20px; min-width: 0; }

.ops-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; min-width: 0; }
.ops-bar__text { flex: 1 1 260px; min-width: 0; color: var(--text-soft); font-size: .88rem; line-height: 1.5; }
.ops-bar__text strong { color: var(--text); font-weight: 650; }
.ops-bar__btns { display: flex; flex-wrap: wrap; gap: .4rem; }
.ops-bar .adm-searchbox { flex: 1 1 240px; }
.ops-bar__sum { flex: 0 1 auto; white-space: nowrap; }
.ops-pubok { display: flex; align-items: center; gap: .45rem; }
.ops-pubok .i { flex: none; width: 1.1rem; height: 1.1rem; color: var(--ok); }
.ops-hint { display: flex; align-items: flex-start; gap: .45rem; margin-top: -4px; font-size: .8rem; line-height: 1.5; color: var(--text-mute); }
.ops-hint > .i { flex: none; width: 1rem; height: 1rem; margin-top: .12rem; color: var(--gold-600); }
.ops-hint kbd, .ops-notes__kbd kbd { display: inline-block; min-width: 1.6em; padding: 0 .35em; border-radius: 5px; background: #fff; border: 1px solid var(--adm-line-2); box-shadow: 0 1px 0 var(--adm-line-2); font: 600 .72rem/1.5 var(--font-body); color: var(--text-soft); text-align: center; }
.adm-body .ops-alert { margin: 0; }

@media (max-width: 719.98px) {
  .ops-round { align-items: flex-start; }
  .ops-round__main { grid-template-columns: 48px minmax(0, 1fr); gap: .25rem .8rem; padding: .8rem .2rem .8rem 1rem; }
  .ops-round__cal { width: 48px; height: 52px; grid-row: span 2; align-self: start; }
  .ops-round__tags { grid-column: 2; justify-content: flex-start; max-width: none; }
  .ops-round__notes { white-space: normal; }
  .ops-round__btns { flex-direction: column; padding: .55rem .45rem 0 0; }
  .ops-work__head { padding: 16px 14px 12px; }
  .ops-work__head .adm-seg { width: 100%; }
  .ops-work__head .adm-seg button { flex: 1 1 0; justify-content: center; padding: 0 .4rem; }
  .ops-work__body { padding: 14px; }
  .ops-bar__btns { width: 100%; }
  .ops-bar__btns .btn { flex: 1 1 auto; justify-content: center; }
  .ops-hint kbd { margin-block: 1px; }
}

/* =====================================================================================================
   2 · QUESTION PAPER (10 real book pages)
   ===================================================================================================== */
.ops-paper { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; counter-reset: none; }
.ops-pearl { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--adm-line); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(28, 22, 70, .05); transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out); }
.ops-pearl__thumb { position: relative; display: block; aspect-ratio: 987 / 1418; background: var(--adm-soft); overflow: hidden; border-bottom: 1px solid var(--adm-line); cursor: zoom-in; }
.ops-pearl__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.ops-pearl__thumb:focus-visible { outline-offset: -3px; }
@media (hover: hover) {
  .ops-pearl:hover { transform: translateY(-2px); box-shadow: var(--adm-shadow-hover); }
  .ops-pearl__thumb:hover img { transform: scale(1.035); }
}
.ops-pearl__txt { flex: 1; display: grid; gap: .3rem; align-content: start; padding: .7rem .8rem .8rem; min-width: 0; }
.ops-pearl__k { display: flex; align-items: center; gap: .45rem; font-size: .76rem; font-weight: 600; color: var(--text-mute); white-space: nowrap; }
.ops-pearl__n { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--deep-800); color: var(--gold-300); font-family: var(--font-display); font-size: .74rem; font-weight: 700; letter-spacing: 0; }
.ops-pearl__en { font-size: .88rem; line-height: 1.4; font-weight: 550; color: var(--text); overflow-wrap: anywhere; }
.ops-pearl__ref { font-size: .76rem; color: var(--text-mute); }
.ops-pearl__ans { margin-top: .15rem; font-size: .74rem; font-weight: 600; color: var(--text-mute); }
.ops-pearl__ans b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: .3rem; border-radius: 6px; background: #FAEFD0; color: var(--gold-ink); font-family: var(--font-display); font-size: .8rem; }
@media (max-width: 560px) {
  .ops-paper { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ops-pearl { flex-direction: row; }
  .ops-pearl__thumb { flex: none; width: 92px; align-self: flex-start; border-bottom: 0; border-right: 1px solid var(--adm-line); }
}

/* =====================================================================================================
   3 · SCORE ENTRY
   ===================================================================================================== */
.adm-tablewrap.ops-scorewrap { border: 1px solid var(--adm-line); border-radius: 12px; max-height: max(380px, calc(100dvh - 300px)); }
.ops-scores tr[hidden] { display: none !important; }
.ops-scores .ops-td-n { width: 44px; color: var(--text-mute); font-variant-numeric: tabular-nums; }
.ops-scores .ops-th-score, .ops-scores .ops-td-score { width: 1%; white-space: nowrap; }
.ops-score { display: inline-flex; align-items: center; gap: .45rem; }
.adm-body .ops-score__in { width: 64px; height: 38px; min-height: 38px; padding: 0 .4rem; text-align: center; font-family: var(--font-display); font-size: 1.05rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.adm-body .ops-score__in[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(229, 72, 77, .14); }
.adm-body .ops-score__in[readonly] { background: var(--adm-soft); color: var(--text-soft); }
.ops-score__max { color: var(--text-mute); font-size: .84rem; font-variant-numeric: tabular-nums; }
.ops-score__st { width: 18px; height: 18px; flex: none; display: grid; place-items: center; color: var(--ok); }
.ops-score__st .i { width: 1rem; height: 1rem; stroke-width: 2.6; animation: ops-pop .3s var(--ease-out); }
.ops-score__st .spinner { width: 13px; height: 13px; color: var(--text-mute); }
.ops-score__st.is-dirty::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); }
@keyframes ops-pop { from { opacity: 0; transform: scale(.5); } }
.ops-score__err { display: block; margin-top: .25rem; font-size: .74rem; font-weight: 600; line-height: 1.3; color: var(--danger); white-space: normal; text-align: left; }
.ops-score__err:empty { display: none; }
.ops-noscore { padding: .6rem 0; font-size: .86rem; }
.ops-save { display: inline-flex; align-items: center; gap: .4rem; min-height: 1.6rem; margin: 0; font-size: .82rem; font-weight: 550; color: var(--text-mute); }
.ops-save:empty { display: none; }
.ops-save .i { width: 1rem; height: 1rem; flex: none; }
.ops-save .spinner { width: 13px; height: 13px; }
.ops-save.is-saved { color: var(--ok); }
.ops-save.is-dirty { color: var(--gold-ink); }
.ops-save.is-error { color: var(--danger); font-weight: 650; }
@media (max-width: 719.98px) {
  .adm-tablewrap.ops-scorewrap { border: 0; border-radius: 0; max-height: none; margin-inline: -14px; }
  .adm-table--cards.ops-scores tbody { padding: 0 14px; background: none; }
  .adm-table--cards td.ops-td-n { display: none; }
  .adm-table--cards td.ops-td-score { flex-wrap: wrap; width: auto; min-height: 50px; }
  .adm-table--cards .ops-score__err { flex-basis: 100%; text-align: right; margin-top: 0; }
  .adm-body .ops-score__in { width: 72px; height: 44px; min-height: 44px; font-size: 1.15rem; }
  .ops-bar__sum { white-space: normal; }
}

/* =====================================================================================================
   4 · RESULTS — publish, winners band, podium, medals, ranking
   ===================================================================================================== */
.ops-publish { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem; padding: 1rem 1.15rem; border-radius: 14px; background: linear-gradient(135deg, #FFFBF0, #FBF1D6); border: 1px solid rgba(200, 149, 46, .38); }
.ops-publish__art { width: 60px; flex: none; }
.ops-publish__art svg { width: 100%; height: auto; display: block; }
.ops-publish__txt { flex: 1 1 280px; min-width: 0; }
.adm-body .ops-publish__txt h3 { font-size: 1.05rem; }
.ops-publish__txt p { margin-top: .2rem; max-width: 72ch; font-size: .88rem; line-height: 1.5; color: var(--text-soft); }

.ops-medal { --m1: #F2F5F7; --m2: #D3DCE3; --mt: var(--text-soft); flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: .84rem; font-weight: 700; color: var(--mt); font-variant-numeric: tabular-nums; background: radial-gradient(circle at 34% 28%, var(--m1), var(--m2) 78%); box-shadow: inset 0 0 0 1px rgba(16, 12, 46, .08); }
.ops-medal--1 { --m1: #FFF4CF; --m2: #D6A332; --mt: #4E3604; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55), 0 0 0 1px rgba(150, 106, 14, .55), 0 4px 10px -3px rgba(200, 149, 46, .65); }
.ops-medal--2 { --m1: #FFFFFF; --m2: #A9B7C3; --mt: #25384A; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6), 0 0 0 1px rgba(90, 110, 128, .45), 0 4px 10px -3px rgba(90, 110, 128, .5); }
.ops-medal--3 { --m1: #FCE3CC; --m2: #BD7442; --mt: #43200A; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5), 0 0 0 1px rgba(140, 78, 34, .5), 0 4px 10px -3px rgba(189, 116, 66, .55); }
.ops-medal--lg { width: 54px; height: 54px; font-size: 1.3rem; }

.ops-winners { position: relative; border: 1px solid var(--adm-line); border-radius: 16px; overflow: hidden; background: #fff; }
.ops-winners::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 122px; background: radial-gradient(120% 160% at 12% 0%, #175074 0%, #0B2A42 52%, #120760 100%); }
.ops-winners::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 122px; background-image: radial-gradient(rgba(229, 197, 104, .22) 1px, transparent 1.5px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); pointer-events: none; }
.ops-winners__head { position: relative; z-index: 1; display: flex; align-items: center; gap: .8rem; padding: 16px 18px 0; }
.ops-winners__ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(229, 197, 104, .14); color: var(--gold-300); box-shadow: inset 0 0 0 1px rgba(229, 197, 104, .38); }
.ops-winners__ico .i { width: 1.2rem; height: 1.2rem; }
.adm-body .ops-winners__head h3 { color: #fff; font-size: 1.05rem; }
.ops-winners__head p { margin-top: 1px; color: #A9C1D1; font-size: .82rem; }
ol.ops-podium { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 12px; padding: 16px 18px 8px; }
.ops-podium__item { display: grid; justify-items: center; gap: .15rem; min-width: 0; padding: 1rem .7rem .85rem; text-align: center; background: #fff; border: 1px solid var(--adm-line); border-radius: 14px; box-shadow: var(--adm-shadow); }
.ops-podium__item--1 { order: 2; border-color: rgba(200, 149, 46, .6); box-shadow: 0 0 0 3px rgba(229, 197, 104, .2), var(--adm-shadow); }
.ops-podium__item--2 { order: 1; margin-top: 14px; }
.ops-podium__item--3 { order: 3; margin-top: 24px; }
.ops-podium__name { max-width: 100%; margin-top: .4rem; font-weight: 650; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-podium__sub { max-width: 100%; font-size: .72rem; color: var(--text-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ops-podium__score { margin-top: .2rem; font-size: .82rem; color: var(--text-mute); }
.ops-podium__score b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -.03em; color: var(--text); }

ol.ops-rank { display: grid; padding: 4px 12px 10px; }
.ops-rank__row { display: grid; grid-template-columns: 32px minmax(0, 1fr) minmax(60px, 170px) auto; align-items: center; gap: .8rem; padding: .55rem .4rem; border-bottom: 1px solid var(--adm-row); }
.ops-rank__row:last-child { border-bottom: 0; }
.ops-rank__who { display: grid; min-width: 0; }
.ops-rank__who strong { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-rank__who small { font-size: .76rem; color: var(--text-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-rank__bar { height: 6px; border-radius: 99px; background: rgba(16, 12, 46, .07); overflow: hidden; }
.ops-rank__bar i { display: block; height: 100%; width: calc(var(--p) * 1%); border-radius: inherit; background: linear-gradient(90deg, var(--c-teal), var(--c-aqua)); }
.ops-rank__row.is-winner .ops-rank__bar i { background: linear-gradient(90deg, var(--gold-600), var(--gold-300)); }
.ops-rank__score { min-width: 5ch; text-align: right; white-space: nowrap; font-size: .82rem; color: var(--text-mute); }
.ops-rank__score b { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.ops-others { border: 1px solid var(--adm-line); border-radius: 16px; background: #fff; }
.adm-body .ops-sub { display: flex; align-items: baseline; gap: .5rem; padding: 14px 16px 2px; font-size: .95rem; }
.ops-sub span { font-family: var(--font-body); font-size: .76rem; font-weight: 550; color: var(--text-mute); }
@media (max-width: 560px) {
  .ops-winners::before, .ops-winners::after { height: 108px; }
  ol.ops-podium { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px 12px 6px; }
  .ops-podium__item { order: 0; margin-top: 0; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; justify-items: start; align-items: center; column-gap: .75rem; padding: .7rem .8rem; text-align: left; }
  .ops-podium__item .ops-medal { grid-row: span 2; width: 42px; height: 42px; font-size: 1.05rem; }
  .ops-podium__name { margin-top: 0; }
  .ops-podium__sub { grid-column: 2; }
  .ops-podium__score { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
  ol.ops-rank { padding: 2px 8px 8px; }
  .ops-rank__row { grid-template-columns: 32px minmax(0, 1fr) auto; gap: .65rem; }
  .ops-rank__bar { display: none; }
}

/* =====================================================================================================
   5 · PAYOUTS
   ===================================================================================================== */
.ops-paytools { padding-block: 10px; }
.ops-amt { font-family: var(--font-display); font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; }
.ops-ref { max-width: 190px; overflow-wrap: anywhere; }
.ops-paytable .adm-who .ops-medal { width: 32px; height: 32px; }
@media (max-width: 719.98px) { .adm-table--cards td.ops-ref { max-width: none; } }
.ops-paykpis .adm-kpi__value { font-size: clamp(1.45rem, 2.4vw, 2.05rem); }

/* =====================================================================================================
   6 · PRINT — answer sheet + answer key (a layer added to <body> only while printing)
   ===================================================================================================== */
.ops-print { display: none; }
@media print {
  html.ops-printing body > *:not(.ops-print) { display: none !important; }
  html.ops-printing, html.ops-printing body { background: #fff !important; }
  html.ops-printing .ops-print { display: block; }
  @page { size: A4; margin: 13mm 14mm 11mm; }
}
.ops-sheet { color: #0B1B29; font-family: var(--font-body); font-size: 10.5pt; line-height: 1.4; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ops-sheet__head { display: flex; align-items: center; gap: 12px; padding-bottom: 9px; border-bottom: 2px solid #C8952E; }
.ops-sheet__mark { flex: none; width: 46px; height: 46px; }
.ops-sheet__mark svg { width: 100%; height: 100%; display: block; }
.ops-sheet__brand { font-size: 8pt; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #7A5A0C; }
.ops-sheet .ops-sheet__title { margin: 1px 0 0; font-family: var(--font-display); font-size: 20pt; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: #0B1B29; }
.ops-sheet__when { font-size: 9.5pt; color: #44576A; }
.ops-sheet__fields { display: grid; grid-template-columns: 1.6fr 1fr .62fr; gap: 16px; margin: 13px 0 10px; font-size: 9pt; color: #44576A; }
.ops-sheet__fields span { display: flex; align-items: flex-end; gap: 6px; white-space: nowrap; }
.ops-sheet__fields i { flex: 1; height: 1.25em; border-bottom: 1px solid #8796A4; }
.ops-sheet__fields em { font-style: normal; }
.ops-sheet__intro { margin-bottom: 10px; padding: 7px 11px; border-radius: 7px; background: #FBF3DA; border: 1px solid #E7CF8C; font-size: 9.5pt; }
.ops-sheet__cols { display: grid; grid-template-columns: 1.08fr 1fr; gap: 18px; }
.ops-sheet .ops-sheet__cols h2 { margin: 0 0 2px; padding-bottom: 5px; border-bottom: 1px solid #B9C5CF; font-family: var(--font-body); font-size: 8pt; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #44576A; }
.ops-sheet__phrases, .ops-sheet__meanings { list-style: none; margin: 0; padding: 0; }
.ops-sheet__phrases li, .ops-sheet__meanings li { display: flex; align-items: center; gap: 9px; min-height: 18.6mm; border-bottom: 1px solid #E3E8EC; break-inside: avoid; }
.ops-sheet__meanings li { font-size: 10pt; line-height: 1.35; }
.ops-sheet__num { flex: none; width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid #C8952E; font-family: var(--font-display); font-size: 9.5pt; font-weight: 700; color: #5A3F05; }
/* the Quranic phrase: the Arabic line cropped from the real book page (x 160–830, y 560–720 of 987 × 1418) */
.ops-sheet__ar { position: relative; flex: 1; min-width: 0; aspect-ratio: 670 / 160; overflow: hidden; }
.ops-sheet__ar img { position: absolute; left: -23.88%; top: -350%; width: 147.31%; max-width: none; height: auto; }
.ops-sheet__box { flex: none; width: 13mm; height: 11mm; border: 1.5px solid #0B1B29; border-radius: 4px; }
.ops-sheet__warn { margin: 12px 0; padding: 7px 11px; border-radius: 7px; background: #FDECEC; border: 1px solid #F1B8B9; color: #8A1C20; font-size: 9.5pt; font-weight: 600; }
.ops-sheet__key { width: 100%; border-collapse: collapse; font-size: 10pt; }
.ops-sheet__key th { padding: 6px 8px; border-bottom: 1.5px solid #0B1B29; text-align: left; font-size: 8pt; letter-spacing: .12em; text-transform: uppercase; color: #44576A; }
.ops-sheet__key td { padding: 7px 8px; border-bottom: 1px solid #E3E8EC; vertical-align: baseline; }
.ops-sheet__letter { font-family: var(--font-display); font-size: 13pt; font-weight: 700; color: #7A5A0C; }
.ops-sheet__foot { margin-top: 10px; font-size: 8pt; color: #8796A4; text-align: center; }

/* =====================================================================================================
   7 · INBOX — support desk
   ===================================================================================================== */
.ops-who .adm-seg { display: flex; width: 100%; }
.ops-who .adm-seg button { flex: 1 1 auto; justify-content: center; padding: 0 .55rem; }
.adm-msg.is-overdue { box-shadow: inset 3px 0 0 var(--danger); }
.adm-msg.is-overdue.is-active { box-shadow: inset 3px 0 0 var(--danger), inset 0 0 0 1px rgba(200, 149, 46, .6), 0 4px 12px -6px rgba(28, 22, 70, .25); }
.ops-due .i { width: .85rem; height: .85rem; }
.ops-due--quiet { display: inline-flex; align-items: center; gap: .3em; padding: .22em .2em; font-size: var(--fs-xs); font-weight: 600; color: var(--text-mute); white-space: nowrap; }
.ops-msg__desk { align-items: center; margin-top: .15rem; }
.ops-assn { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 600; color: var(--text-soft); white-space: nowrap; }
.ops-assn__ava { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--deep-800); color: var(--gold-300); font-family: var(--font-display); font-size: .58rem; font-weight: 700; letter-spacing: .02em; }
.ops-assn--none { color: var(--text-mute); font-weight: 550; font-style: italic; }
.ops-notecount { display: inline-flex; align-items: center; gap: .2rem; font-size: .74rem; font-weight: 600; color: var(--text-mute); }
.ops-notecount .i { width: .85rem; height: .85rem; }
.ops-msg__ref { margin-left: auto; font-size: .7rem; color: var(--text-mute); }

.ops-desk { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; border: 1px solid var(--adm-line); border-radius: var(--adm-r-sm); background: #fff; overflow: hidden; }
.ops-desk__item { display: grid; align-content: center; gap: .2rem; flex: 1 1 200px; min-width: 0; padding: .6rem .85rem; border-right: 1px solid var(--adm-line); }
.ops-desk__item:last-child { border-right: 0; }
.ops-desk__k { font-size: .64rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); }
.ops-desk__row { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; }
.adm-body .ops-desk__sel { max-width: 230px; color: var(--text); }
.ops-desk__me { font-size: .82rem; }
.ops-desk__v { display: flex; align-items: center; gap: .35rem; font-size: .88rem; color: var(--text); }
.ops-desk__v .i { width: 1rem; height: 1rem; flex: none; }
.ops-desk__v strong { font-weight: 650; }
.ops-desk__v.is-over { color: var(--danger); }
.ops-desk__v.is-soon { color: var(--warn); }

.ops-del__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.ops-clock { flex: 0 1 230px; min-width: 180px; display: grid; gap: .3rem; }
.ops-clock__top { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; font-size: .78rem; color: var(--text-mute); }
.ops-clock__top strong { font-size: .84rem; font-weight: 650; color: var(--text); }
.ops-clock__bar { height: 6px; border-radius: 99px; background: rgba(16, 12, 46, .08); overflow: hidden; }
.ops-clock__bar i { display: block; height: 100%; width: calc(var(--p) * 1%); border-radius: inherit; background: linear-gradient(90deg, var(--c-teal), var(--c-aqua)); }
.ops-clock.is-soon .ops-clock__top strong { color: var(--warn); }
.ops-clock.is-soon .ops-clock__bar i { background: linear-gradient(90deg, #D9902A, #F2B84B); }
.ops-clock.is-over .ops-clock__top strong { color: var(--danger); }
.ops-clock.is-over .ops-clock__bar i { background: var(--danger); }
.ops-accpick { display: flex; flex-wrap: wrap; gap: .35rem; }
.ops-warn { display: flex; align-items: flex-start; gap: .4rem; font-size: .82rem; font-weight: 600; color: var(--warn); }
.ops-warn .i { flex: none; width: 1rem; height: 1rem; margin-top: .1rem; }
.ops-acc { justify-self: stretch; display: grid; gap: .55rem; padding: .75rem .85rem; border-radius: 12px; background: #fff; border: 1px solid var(--adm-line); min-width: 0; }
.ops-acc__head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.ops-acc__name { font-weight: 650; color: var(--text); }
.ops-acc__meta { font-size: .8rem; color: var(--text-mute); overflow-wrap: anywhere; }
.ops-acc__loading { display: flex; align-items: center; gap: .5rem; font-size: .84rem; }
ul.ops-acc__learners { display: grid; gap: 2px; padding: .3rem; border-radius: 10px; background: var(--adm-head); }
.ops-acc__learners li { min-width: 0; }
.ops-acc__learners .adm-who { padding: .35rem .4rem; border-radius: 8px; }
.ops-acc__learners .adm-who:hover { background: #fff; }
.ops-acc__learners .adm-who__name, .ops-acc__learners .adm-who__sub { max-width: 100%; }
.ops-acc__open { justify-self: start; display: inline-flex; align-items: center; gap: .25rem; font-size: .84rem; }
.ops-acc__open .i { width: .9rem; height: .9rem; }
.ops-del__btns { display: flex; flex-wrap: wrap; gap: .45rem; }
.ops-del .adm-note { margin-top: 0; }

.ops-notes { display: grid; gap: .7rem; padding-top: 1rem; border-top: 1px solid var(--adm-line); }
.adm-body .ops-notes__h { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; font-size: .98rem; font-weight: 650; }
.ops-notes__h .i { width: 1rem; height: 1rem; color: var(--gold-600); }
.ops-notes__h small { font-family: var(--font-body); font-size: .76rem; font-weight: 550; color: var(--text-mute); }
.ops-notes__list { display: grid; gap: .55rem; }
.ops-note { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: .6rem; align-items: start; }
.ops-note__ava { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, #E8EEF2, #D3DEE6); color: var(--deep-600); font-family: var(--font-display); font-size: .66rem; font-weight: 700; }
.ops-note__body { min-width: 0; padding: .5rem .75rem .6rem; border-radius: 4px 12px 12px 12px; background: #FFFBEF; border: 1px solid rgba(200, 149, 46, .28); }
.ops-note__meta { font-size: .74rem; color: var(--text-mute); }
.ops-note__meta strong { color: var(--text); font-weight: 650; }
.ops-note__text { margin-top: .15rem; font-size: .9rem; line-height: 1.5; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.ops-notes__empty { font-size: .86rem; color: var(--text-mute); }
.ops-notes__form { display: grid; gap: .45rem; }
.adm-body .ops-notes__form .textarea { min-height: 64px; }
.ops-notes__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .8rem; }
.ops-notes__kbd { font-size: .76rem; color: var(--text-mute); }

.ops-reasons { display: grid; gap: .35rem; }
.ops-reason { position: relative; display: flex; align-items: flex-start; gap: .6rem; padding: .6rem .75rem; border-radius: 10px; border: 1px solid var(--adm-line-2); background: #fff; font-size: .9rem; line-height: 1.4; cursor: pointer; transition: border-color var(--t-fast), background-color var(--t-fast); }
.ops-reason:hover { border-color: var(--gold-500); }
.ops-reason input { flex: none; width: 17px; height: 17px; margin: .1rem 0 0; accent-color: var(--gold-600); }
.ops-reason:has(input:checked) { border-color: var(--gold-500); background: #FDF8EA; }
.ops-strong__form { display: grid; gap: .8rem; }
.ops-strong__form > p:first-child { color: var(--text-soft); }
.ops-strong__list { display: grid; gap: .35rem; padding: .7rem .9rem .7rem 1.9rem; border-radius: 10px; background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); list-style: disc; font-size: .88rem; line-height: 1.45; color: var(--text); }
.ops-strong__list li::marker { color: var(--danger); }
.ops-strong__form .adm-note { margin-top: 0; }
.adm-body .ops-strong__input { max-width: 160px; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .3em; text-align: center; }
@media (max-width: 899.98px) {
  .ops-desk__item { flex-basis: 100%; border-right: 0; border-bottom: 1px solid var(--adm-line); }
  .ops-desk__item:last-child { border-bottom: 0; }
  .ops-clock { flex-basis: 100%; }
}

/* =====================================================================================================
   8 · ACTIVITY — audit diff
   ===================================================================================================== */
.ops-detchip .i { width: .95rem; height: .95rem; }
.ops-diff { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .45rem; margin: .35rem 0 .15rem; }
.ops-diff__tag { font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); padding: .2em .5em; border-radius: 5px; background: #FAEFD0; }
.ops-diff__row { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .3rem; max-width: 100%; min-width: 0; padding: .2rem .5rem; border-radius: 8px; background: var(--adm-head); border: 1px solid var(--adm-line); font-size: .78rem; line-height: 1.35; }
.ops-diff__k { font-weight: 650; color: var(--text-soft); }
.ops-diff__k::after { content: ':'; }
.ops-diff__old { color: #A3383B; text-decoration: line-through; text-decoration-color: rgba(163, 56, 59, .45); overflow-wrap: anywhere; }
.ops-diff__new { color: #0E7A56; text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.ops-diff__arrow { display: inline-grid; color: var(--text-mute); }
.ops-diff__arrow .i { width: .8rem; height: .8rem; }
.ops-diff__empty { font-style: italic; color: var(--text-mute); font-weight: 450; text-decoration: none; }
.ops-diff__more { font-size: .76rem; font-weight: 600; color: var(--text-mute); }
.ops-diff__open { font-size: .76rem; }
.ops-audit__text { font-size: 1rem; font-weight: 550; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.ops-audit__ico { display: inline-grid; margin: 0 .3rem 0 0; }
.ops-difftable { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--adm-line); border-radius: 12px; overflow: hidden; font-size: .88rem; }
.ops-difftable th, .ops-difftable td { padding: .55rem .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--adm-row); overflow-wrap: anywhere; }
.ops-difftable tr:last-child th, .ops-difftable tr:last-child td { border-bottom: 0; }
.ops-difftable thead th { background: var(--adm-head); font-size: .66rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); border-bottom: 1px solid var(--adm-line); }
.ops-difftable tbody th { width: 30%; font-weight: 650; color: var(--text-soft); }
.ops-difftable__old { color: #A3383B; background: rgba(229, 72, 77, .05); }
.ops-difftable__new { color: #0E7A56; background: rgba(47, 184, 138, .06); font-weight: 600; }
@media (max-width: 560px) {
  .ops-difftable thead { display: none; }
  .ops-difftable, .ops-difftable tbody, .ops-difftable tr { display: block; }
  .ops-difftable tr { border-bottom: 1px solid var(--adm-line); }
  .ops-difftable tr:last-child { border-bottom: 0; }
  .ops-difftable tbody th, .ops-difftable td { display: flex; gap: .6rem; width: auto; border-bottom: 0; }
  .ops-difftable tbody th { padding-bottom: .1rem; }
  .ops-difftable td { padding-block: .3rem; }
  .ops-difftable td::before { content: attr(data-label); flex: none; width: 4.2rem; font-size: .64rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); padding-top: .2rem; }
}
.ops-auditdrawer .adm-dl dd a { display: inline-flex; align-items: center; gap: .25rem; }
.ops-auditdrawer .adm-dl dd a .i { color: inherit; width: .9rem; height: .9rem; }
.ops-paystatus { display: inline-flex; flex-wrap: wrap; gap: .25rem; max-width: 120px; }
@media (max-width: 719.98px) { .ops-paystatus { justify-content: flex-end; max-width: none; } }
