/* The club's admin area (/#admin, admin.js), approved boards 567–574 (22/11/2026). Built on the tournament pages'
   pieces in tournament.css (loaded with this file): the tokens of .tour-page (light, and dark with the phone), round
   glass buttons (.tp-circ), the lime main button (.tp-btn.is-main), segmented tabs (.tp-seg), white cards (.tp-card,
   .tp-fc), 64 px rows with 44 px icon tiles (.tp-row, .tp-ico), the navy card (.tp-next), sheets (.tp-sheet) and the
   toast (.tp-toast). Words light (400–600), numbers in Barlow Condensed. Light on the website, dark in the app (564A). Phones: one column, at most 560 px; from
   1024 px a sidebar and, for lists with a page per item, two panes. */

/* ---------- The page ---------- */

body.adm-on { background: #f2f3f7; }
/* Light on the website, dark only inside the app's web view with the phone in dark mode (564A, as kit.css and the
   tournament pages). */
@media (prefers-color-scheme: dark) {
  html.in-app body.adm-on { background: #03060d; }
  html.in-app body.adm-on .site-footer, html.in-app body.adm-on .site-footer a { color: #8e99b1; }
}
/* Admins keep "Tải app" in Thêm; the header has their photo with the task count instead (WEB-3). */
body.is-admin .app-download { display: none; }

#admin-view.adm, .adm-sheet, .adm-toast {
  --adm-red: #c0392b;
  --adm-red-soft: #fdebe8;
  --adm-green: #1e8e5a;
  --adm-green-soft: #e3f3ea;
  --adm-amber: #a5620a;
  --adm-blue-soft: #e6edfb;
  --adm-blue-ink: #163486;
  --adm-pick: #e2f7a5;
  --adm-skel: #e6eaf1;
}
#admin-view.adm {
  display: block;
  min-height: 70vh;
  padding: 14px 16px 120px;
  font-family: var(--tp-font);
  color: var(--tp-ink);
  -webkit-tap-highlight-color: transparent;
}
@media (prefers-color-scheme: dark) {
  html.in-app #admin-view.adm, html.in-app .adm-sheet, html.in-app .adm-toast {
    --adm-red: #ff8a7a;
    --adm-red-soft: rgba(255, 120, 100, 0.16);
    --adm-green: #4cc38a;
    --adm-green-soft: rgba(76, 195, 138, 0.16);
    --adm-amber: #ffc65c;
    --adm-blue-soft: rgba(120, 150, 230, 0.18);
    --adm-blue-ink: #b9ccff;
    --adm-pick: rgba(200, 242, 62, 0.16);
    --adm-skel: #232c40;
  }
}
/* Ảnh and Đề xuất sửa still use the board's parts; in the app's dark mode their colour tokens follow kit.css's dark
   block, and these are the light colours styles.css writes out in full. */
@media (prefers-color-scheme: dark) {
  html.in-app .adm .chip:not([aria-pressed="true"]):hover { background: var(--tp-soft); }
  html.in-app .adm .g-reason:has(input:checked) { border-color: var(--tp-line); background: var(--tp-soft); }
  html.in-app .adm .fa-card.is-selected { background: var(--tp-soft); }
  html.in-app .adm .fa-choices select, html.in-app .adm .g-reason select { background: var(--tp-soft); }
  html.in-app .adm .diff-edit { color: var(--tp-brand-ink); }
}
.adm .tp-num, .adm-sheet .tp-num { font-family: var(--font-score); font-variant-numeric: tabular-nums; }
.adm-ic { display: block; flex: none; }
.adm a { color: inherit; }
.adm a.btn-primary { color: #fff; } /* "Tải lên" on Ảnh: the line above must not turn its words navy (A3) */
.adm-layout { max-width: 560px; margin: 0 auto; }
.adm-side { display: none; }
.adm-main { min-width: 0; }

/* ---------- Heads ---------- */

.adm-hd { margin-bottom: 4px; }
/* A subtitle of two or three lines: the back button stays level with the title instead of the block's middle (A9). */
.adm-hd.tp-hd { align-items: flex-start; }
.adm-hd > .tp-ht { align-self: center; }
.adm-hd .tp-ht h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; outline: none; }
.adm-hd .tp-sub { margin-top: 2px; }
.adm-hd .tp-sub .ac-trio { vertical-align: -3px; }
.adm-hd .tp-circ { color: var(--tp-ink); }
.adm-home-hd h1 { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; font: 600 min(1.75rem, 56px)/1.15 var(--tp-font); letter-spacing: -0.015em; outline: none; }

/* Levels (D1): Chủ CLB navy, Quản trị blue, Duyệt ảnh lime. */
.adm-lv { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 13px; font: 500 0.8125rem/1 var(--tp-font); letter-spacing: 0.01em; white-space: nowrap; }
.adm-lv.is-owner { background: var(--navy-deep); color: #fff; }
.adm-lv.is-admin { background: var(--adm-blue-soft); color: var(--adm-blue-ink); }
.adm-lv.is-photos { background: var(--tp-optic-soft); color: #4d670b; }
@media (prefers-color-scheme: dark) {
  html.in-app .adm-lv.is-owner { background: #33405c; }
  html.in-app .adm-lv.is-photos { color: var(--optic); }
}

.adm-label { margin: 20px 4px 8px; font: 500 0.875rem/1.2 var(--tp-font); color: var(--tp-muted); }
.adm-hint { margin: 8px 4px; font: 400 0.9375rem/1.4 var(--tp-font); color: var(--tp-muted); }
.adm-hint a { color: var(--tp-brand-ink); }
.adm-center { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.adm-red { color: var(--adm-red); }
.adm-amber { color: var(--adm-amber) !important; }
.adm-dim { color: var(--tp-muted); font-weight: 400; }
.adm-warn { margin: 8px 0 0; font: 500 0.875rem/1.3 var(--tp-font); color: var(--adm-amber); }

/* ---------- Home: "Việc tiếp theo", the task rows, the areas (567, 571) ---------- */

.adm-next { min-height: 0; }
.adm-next .tp-next-code { font-size: min(4.25rem, 96px); }
.adm-next .tp-next-m b { font-weight: 500; }
.adm-next .tp-next-n { gap: 6px; font-size: 0.9375rem; }
.adm-next .tp-next-n .adm-ic { opacity: 0.8; }
.adm-next .tp-btn { min-height: 52px; margin-top: 6px; font-weight: 600; }
.adm-next .tp-next-k .adm-ic { opacity: 0.85; }
.adm-next.is-done { padding: 22px 18px; }
.adm-done { position: relative; display: flex; align-items: center; gap: 16px; }
.adm-done-ic { display: grid; flex: none; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--optic); color: var(--navy-deep); }
.adm-done b { display: block; font: 500 min(1.375rem, 56px)/1.2 var(--tp-font); }
.adm-done small { display: block; margin-top: 4px; font: 400 0.9375rem/1.3 var(--tp-font); color: rgba(255, 255, 255, 0.7); }

.adm-rows { overflow: hidden; }
.adm-rows .tp-row + .tp-row, .adm-rows .tp-row + .adm-link { border-top: 1px solid var(--tp-hair); }
.adm-rows.is-danger .tp-row b { color: var(--adm-red); font-weight: 500; }
.adm-row { width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
div.adm-row { cursor: default; }
.adm-row:disabled { cursor: default; opacity: 1; }
a.adm-row:active, button.adm-row:not(:disabled):active { background: var(--tp-soft); }
.adm-row-t { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.adm-row-t b { font: 500 min(1.0625rem, 56px)/1.25 var(--tp-font); overflow-wrap: anywhere; }
.adm-row-t small { font: 400 0.875rem/1.3 var(--tp-font); color: var(--tp-muted); overflow-wrap: anywhere; }
.adm-row-t a { text-decoration: none; }
.adm-row-v { display: flex; flex: none; align-items: center; gap: 8px; font: 400 0.9375rem/1 var(--tp-font); color: var(--tp-muted); }
.adm-big-v { font-size: 1.625rem; font-weight: 600; color: var(--tp-brand-ink); }
.adm-amount { font-size: 1.5rem; font-weight: 600; color: var(--tp-ink); }
.adm-chev { display: grid; flex: none; }
.adm-tile { display: grid; place-items: center; }
.adm-tile[style] { width: var(--s); height: var(--s); }
.adm-tile.is-red { background: var(--adm-red-soft); color: var(--adm-red); }
.adm-n { font-weight: 600; }
.adm-n.is-red { color: var(--adm-red); }
.adm-n.is-quiet { color: var(--tp-dim); }
.adm-home-rows { margin-top: 14px; }

.adm-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.adm-tilebtn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 112px;
  padding: 14px 12px;
  border-radius: 22px;
  background: var(--tp-card);
  color: var(--tp-ink);
  font: 500 0.9375rem/1.25 var(--tp-font);
  text-decoration: none;
}
.adm-tilebtn:active { transform: scale(0.97); }
.adm-quiets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.adm-quiet {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  padding: 0 8px;
  border-radius: 24px;
  background: var(--tp-card);
  color: var(--tp-ink2);
  font: 400 0.9375rem/1 var(--tp-font);
  text-decoration: none;
  white-space: nowrap;
}
.adm-wide-card, .adm-wide-tiles { display: none; }

/* ---------- Lists: rows with photos, names and a value (568, 574) ---------- */

.adm-list { padding: 4px 0; overflow: hidden; }
.adm-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 10px 16px 10px 12px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
div.adm-item { cursor: default; }
.adm-list > .adm-item + .adm-item { border-top: 1px solid var(--tp-hair); }
a.adm-item:active, button.adm-item:active { background: var(--tp-soft); }
.adm-item.is-on { background: var(--adm-pick); }
.adm-item.is-reported { box-shadow: inset 3px 0 0 var(--adm-red); }
.adm-item-t { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: inherit; }
.adm-item-t b { font: 400 min(1.0625rem, 56px)/1.25 var(--tp-font); overflow-wrap: anywhere; }
.adm-item-t small { font: 400 0.875rem/1.3 var(--tp-font); color: var(--tp-muted); overflow-wrap: anywhere; }
.adm-item-v { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: 3px; }
.adm-item-v b { font-size: 1.625rem; font-weight: 600; line-height: 1; color: var(--tp-brand-ink); }
.adm-names b { line-height: 1.3; }

.adm-av { display: inline-grid; flex: none; }
.adm-av .avatar { width: var(--s); height: var(--s); font-size: calc(var(--s) * 0.38); background: var(--tp-av-bg); color: var(--tp-av-ink); }
.adm-av.is-open { place-items: center; width: var(--s); height: var(--s); border: 1.5px dashed var(--tp-line); border-radius: 50%; color: var(--tp-dim); box-sizing: border-box; }
.adm-avs { display: inline-flex; flex: none; }
.adm-avs .adm-av { border-radius: 50%; box-shadow: 0 0 0 2px var(--tp-card); }
.adm-avs .adm-av + .adm-av { margin-left: -10px; }

.adm-st { display: inline-flex; align-items: center; gap: 4px; font: 500 0.8125rem/1 var(--tp-font); color: var(--tp-muted); white-space: nowrap; }
.adm-st.is-pending { color: var(--adm-amber); }
.adm-st.is-done, .adm-st.is-found { color: var(--adm-green); }
.adm-st.is-cancelled, .adm-st.is-hidden, .adm-st.is-expired { color: var(--tp-muted); }
.adm-st.is-red { color: var(--adm-red); }
.adm-st-ring { width: 9px; height: 9px; border: 1.8px solid currentColor; border-radius: 50%; box-sizing: border-box; }
.adm-st-check { width: 10px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-2px); }
.adm-st-x { position: relative; width: 9px; height: 9px; }
.adm-st-x::before, .adm-st-x::after { content: ""; position: absolute; top: 4px; left: 0; width: 9px; height: 1.8px; background: currentColor; transform: rotate(45deg); }
.adm-st-x::after { transform: rotate(-45deg); }

.adm-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 14px;
  padding: 0 6px 0 14px;
  border-radius: 24px;
  background: var(--tp-card);
  color: var(--tp-muted);
}
.adm-search input, .adm-search select {
  min-width: 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--tp-ink);
  font: 400 1rem/1.2 var(--tp-font);
}
.adm-search input { flex: 1; }
.adm-search input:focus { outline: none; }
.adm-search:focus-within { box-shadow: 0 0 0 2px var(--tp-brand-ink); }
.adm-search select { max-width: 40%; padding: 0 8px; border-radius: 18px; background: var(--tp-soft); }
.adm-list, .adm-cards, .adm-events, .adm-log, .adm-chips + .adm-search + #adm-results .adm-list { margin-top: 12px; }

.adm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.adm-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--tp-hair);
  border-radius: 20px;
  background: var(--tp-card);
  color: var(--tp-ink);
  font: 400 0.9375rem/1 var(--tp-font);
  cursor: pointer;
}
.adm-chip b { font-size: 1.0625rem; font-weight: 600; }
.adm-chip[aria-pressed="true"] { border-color: transparent; background: var(--navy-deep); color: #fff; }
.adm-chip.is-x { margin-top: 8px; background: var(--tp-optic-soft); border-color: transparent; }
@media (prefers-color-scheme: dark) { html.in-app .adm-chip[aria-pressed="true"] { background: #33405c; } }

.adm-seg { margin-top: 14px; }
.adm-seg a, .adm-seg button { gap: 5px; display: flex; align-items: center; justify-content: center; }
.adm-seg-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--adm-red); color: #fff; font: 600 0.75rem/1 var(--tp-font); box-sizing: border-box; }

/* Picking several players (••• → Chọn nhiều). */
.adm-pick { cursor: pointer; }
.adm-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.adm-check { display: grid; flex: none; place-items: center; width: 26px; height: 26px; border: 1.8px solid var(--tp-line); border-radius: 50%; color: transparent; box-sizing: border-box; }
.adm-pick.is-picked { background: var(--adm-pick); }
.adm-pick.is-picked .adm-check { border-color: var(--navy-deep); background: var(--navy-deep); color: #fff; }
.adm-pick input:focus-visible + .adm-check { outline: 2px solid var(--tp-brand-ink); outline-offset: 2px; }
.adm-pickbar:empty { display: none; }
.adm-pickbar {
  position: sticky;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 8px 8px 16px;
  border-radius: 26px;
  background: var(--navy-deep);
  color: #fff;
  box-shadow: 0 10px 30px rgba(4, 10, 24, 0.25);
}
.adm-pickbar-n { flex: none; font: 500 0.9375rem/1 var(--tp-font); }
.adm-pickbar-acts { display: flex; flex: 1; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.adm-bar-btn { flex: none; min-height: 40px; padding: 0 14px; border: 0; border-radius: 20px; background: rgba(255, 255, 255, 0.12); color: #fff; font: 500 0.9375rem/1 var(--tp-font); cursor: pointer; }
.adm-bar-btn.is-red { background: #c0392b; }
.adm-pickbar-x { color: #fff; background: rgba(255, 255, 255, 0.12); border: 0; }

/* ---------- Pills, links, tags ---------- */

.adm-pill {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: 20px;
  background: var(--tp-soft);
  color: var(--tp-ink);
  font: 500 0.9375rem/1 var(--tp-font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.adm-pill.is-main { background: var(--optic); color: var(--navy-deep); }
.adm-pill.is-quiet { background: transparent; box-shadow: inset 0 0 0 1.5px var(--tp-line); }
.adm-pill:disabled { opacity: 0.45; cursor: default; }
.adm-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 6px 0; padding: 0 8px; border: 0; background: none; color: var(--tp-brand-ink); font: 500 0.9375rem/1 var(--tp-font); text-decoration: none; cursor: pointer; }
.adm-link.is-red { color: var(--adm-red); }
.adm-link.adm-center { display: flex; justify-content: center; width: 100%; }
.adm-link:disabled { opacity: 0.5; }
.adm-in-card { margin: 0 0 4px 64px; }
.adm-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 13px; background: var(--tp-soft); color: var(--tp-ink2); font: 500 0.8125rem/1.2 var(--tp-font); white-space: nowrap; }
.adm-tag.is-ok { background: var(--adm-green-soft); color: var(--adm-green); }
.adm-tag.is-off { background: var(--tp-soft); color: var(--tp-muted); }
.adm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 10px 14px 12px; }
.adm-two { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.adm-two > * { flex: 1; }
.adm-banner { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 10px 14px; border-radius: 16px; font: 500 0.9375rem/1.3 var(--tp-font); }
.adm-banner.is-ok { background: var(--adm-green-soft); color: var(--adm-green); }
.adm-banner.is-off { background: var(--tp-soft); color: var(--tp-muted); }
.adm-banner.is-warn { background: #fdecc8; color: #8a5a00; }
.adm-note { margin: 10px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--tp-soft); font: 400 0.9375rem/1.4 var(--tp-font); color: var(--tp-ink2); white-space: pre-line; }
.adm-ok { display: grid; color: var(--adm-green); }
.adm-chip-ok { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 11px; border-radius: 15px; background: var(--tp-soft); color: var(--tp-muted); font: 500 0.875rem/1 var(--tp-font); white-space: nowrap; }
.adm-chip-ok.is-verified { background: var(--adm-green-soft); color: var(--adm-green); }
.adm-logo { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tp-ico); }
.adm-logo svg { width: 22px; height: 22px; }
.adm-logo.is-apple { background: #000; color: #fff; }
.adm-logo.is-zalo { background: #0068ff; color: #fff; }
.adm-row-v .adm-logo { width: 30px; height: 30px; border-radius: 50%; background: transparent; }
.adm-row-v .adm-logo.is-apple { background: #000; }
.adm-row-v .adm-logo.is-zalo { background: #0068ff; }

/* Round call and Zalo buttons on a contact row. */
.adm-call { width: 44px; height: 44px; background: var(--tp-card); box-shadow: var(--tp-glass-shadow); color: var(--tp-ink); }
.adm-call.is-zalo img { width: 26px; height: 26px; border-radius: 50%; }

/* ---------- One item's page: the navy hero, three facts, rows, the main button at the bottom (569) ---------- */

.adm-hero, .adm-pair, .adm-fee, .adm-qk, .adm-scorecard {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  border-radius: 24px;
  background: var(--tp-navy-card);
  color: #fff;
}
.adm-hero { display: flex; align-items: center; gap: 22px; padding: 22px 24px; }
.adm-hero .adm-av { position: relative; }
.adm-hero .adm-av .avatar { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9); }
.adm-hero-n { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.adm-hero-n b { font-size: min(4.5rem, 96px); font-weight: 600; line-height: 0.9; color: var(--optic); }
.adm-hero-n span { font: 400 1rem/1.3 var(--tp-font); color: rgba(255, 255, 255, 0.75); }
.adm-hero.is-small { padding: 18px 20px; }
.adm-hero.is-small .adm-hero-n b { font-size: min(3rem, 72px); }
.adm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.adm-stat { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 14px 12px; border-radius: 20px; background: var(--tp-card); }
.adm-stat b { font-size: min(1.875rem, 56px); font-weight: 600; line-height: 1; color: var(--tp-brand-ink); overflow-wrap: anywhere; }
.adm-stat b.is-up { color: var(--adm-green); }
.adm-stat b.is-down { color: var(--adm-red); }
.adm-stat .adm-stat-text { font: 600 min(1.25rem, 56px)/1.1 var(--font-score); letter-spacing: 0.01em; }
.adm-stat span { font: 400 0.875rem/1.2 var(--tp-font); color: var(--tp-muted); }

.adm-pair { padding: 18px 14px 14px; }
.adm-pair-people { position: relative; display: flex; justify-content: space-around; gap: 8px; }
.adm-pair-p { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 8px; min-width: 0; text-align: center; }
.adm-pair-p .adm-av .avatar { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9); }
.adm-pair-p b { font: 500 1rem/1.25 var(--tp-font); overflow-wrap: anywhere; }
.adm-pair-p .tp-num { font-size: 1.625rem; font-weight: 600; line-height: 1; color: var(--optic); }
.adm-pair-p.is-open b { color: rgba(255, 255, 255, 0.6); font-weight: 400; }
.adm-pair-p.is-open .adm-av.is-open { border-color: rgba(255, 255, 255, 0.4); color: rgba(255, 255, 255, 0.6); }
.adm-pair-sum { position: relative; display: flex; align-items: baseline; justify-content: center; gap: 4px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.adm-pair-sum b { font-size: 2rem; font-weight: 600; }
.adm-pair-sum b.is-over { color: #ff9b8c; }
.adm-pair-sum span { font-size: 1.375rem; color: rgba(255, 255, 255, 0.75); }
.adm-pair-sum small { margin-left: 6px; font: 400 0.9375rem/1 var(--tp-font); color: rgba(255, 255, 255, 0.7); }

/* A tick: a 36 px circle in a 44 px target (WEB-8). */
.adm-tick { position: relative; display: grid; flex: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: transparent; cursor: pointer; }
.adm-tick::before { content: ""; position: absolute; inset: 4px; border: 1.8px solid var(--tp-line); border-radius: 50%; box-sizing: border-box; }
.adm-tick .adm-ic { position: relative; }
.adm-tick.is-on { color: #fff; }
.adm-tick.is-on::before { border-color: var(--adm-green); background: var(--adm-green); }
.adm-tick-row { min-height: 60px; }

.adm-foot { margin-top: 18px; }
.adm-foot .tp-btn { min-height: 54px; }
@media (max-width: 1023px) {
  .adm-foot:not(.is-inline) {
    position: sticky;
    bottom: calc(92px + env(safe-area-inset-bottom));
    z-index: 4;
    margin-left: -16px;
    margin-right: -16px;
    padding: 14px 16px 0;
    background: linear-gradient(to bottom, var(--tp-bg-clear), var(--tp-bg) 28px);
  }
  .in-app .adm-foot:not(.is-inline) { bottom: calc(14px + env(safe-area-inset-bottom)); }
}
.tp-btn-quiet { background: var(--tp-card); color: var(--tp-ink); box-shadow: inset 0 0 0 1.5px var(--tp-line); }
.adm-plain { background: var(--tp-soft); color: var(--tp-ink); }
.adm-plain.is-red { color: var(--adm-red); }

/* ---------- Đăng ký & lệ phí (568) ---------- */

.adm-fee { padding: 14px 18px 16px; }
.adm-fee-k { position: relative; display: flex; align-items: center; gap: 7px; margin: 0; font: 400 0.9375rem/1.2 var(--tp-font); color: rgba(255, 255, 255, 0.75); }
.adm-fee-row { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 8px; }
.adm-fee-big { display: flex; align-items: baseline; gap: 6px; }
.adm-fee-big .tp-num { font-size: min(3.75rem, 96px); font-weight: 600; line-height: 0.9; color: var(--optic); }
.adm-fee-big small { font: 600 1.5rem/1 var(--font-score); color: var(--optic); }
.adm-fee-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.adm-fee-side b { font: 500 1.1875rem/1.1 var(--tp-font); }
.adm-fee-side small { font: 400 0.9375rem/1.2 var(--tp-font); color: rgba(255, 255, 255, 0.7); }

.adm-events { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.adm-ev { width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; padding-bottom: 18px; }
.adm-ev.is-closed { opacity: 0.6; }
.adm-ev .tp-ev-code.is-word { padding-right: 44px; font: 600 min(1.375rem, 56px)/1.15 var(--tp-font); letter-spacing: -0.01em; }
.adm-bar { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 4px; border-radius: 2px; background: var(--tp-bar); overflow: hidden; }
.adm-bar i { display: block; height: 100%; border-radius: 2px; background: var(--tp-dim); }
.adm-ev.is-enough .adm-bar i { background: var(--adm-green); }

/* ---------- Livestream & giao lưu (573A) ---------- */

.adm-match { justify-content: space-between; }
.adm-match-mid { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 3px; min-width: 0; text-align: center; }
.adm-match-mid b { font-size: 1.625rem; font-weight: 600; line-height: 1; color: var(--tp-brand-ink); }
.adm-match-mid small { font: 400 0.8125rem/1.25 var(--tp-font); color: var(--tp-muted); }
.adm-match.is-reported .adm-match-mid small { color: var(--adm-red); }
.adm-scorecard { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; }
.adm-scorecard > b { position: relative; font-size: min(2.75rem, 72px); font-weight: 600; line-height: 1; color: var(--optic); }
.adm-scorecard .adm-avs { position: relative; }
.adm-scorecard .adm-avs .adm-av { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9); }
.adm-open { justify-content: center; width: 100%; }

/* ---------- Members, claims, vintennis names ---------- */

.adm-cards { display: flex; flex-direction: column; gap: 10px; }
.adm-cards .tp-card { margin-top: 0; }
.adm-app-hd { display: flex; align-items: center; gap: 12px; }
.adm-app-hd .adm-item-t b { font-weight: 500; font-size: 1.125rem; }
.adm-app-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.adm-app-facts span { padding: 4px 10px; border-radius: 12px; background: var(--tp-soft); font: 400 0.875rem/1.2 var(--tp-font); }
.adm-app-link { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font: 400 0.875rem/1.3 var(--tp-font); overflow-wrap: anywhere; }
.adm-app-ft { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.adm-app-ft time { flex: 1; font: 400 0.875rem/1 var(--tp-font); color: var(--tp-muted); }
.adm-dupes { margin-top: 12px; padding: 10px 12px; border-radius: 16px; background: #fdecc8; color: #6b4805; }
.adm-dupes p { margin: 0 0 6px; font: 500 0.875rem/1.3 var(--tp-font); }
.adm-dupes ul { margin: 0; padding: 0; list-style: none; }
.adm-dupes li { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
@media (prefers-color-scheme: dark) { html.in-app .adm-dupes { background: rgba(255, 198, 92, 0.14); color: #ffc65c; } }

.adm-claim { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.adm-claim-pair { display: flex; align-items: center; gap: 10px; }
.adm-claim-arrow { color: var(--tp-dim); }
.adm-claim-t { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.adm-claim-t a { font: 500 1.125rem/1.2 var(--tp-font); text-decoration: none; }
.adm-claim-t small { display: flex; align-items: center; justify-content: center; gap: 6px; font: 400 0.875rem/1.3 var(--tp-font); color: var(--tp-muted); }
.adm-claim .adm-two { align-self: stretch; }

.adm-vts { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.adm-vt { padding: 14px; border-radius: 22px; background: var(--tp-card); }
.adm-vt-top { display: flex; align-items: center; gap: 10px; }
.adm-vt-name { flex: 1; }
.adm-vt-target { display: flex; flex: 1.2; align-items: center; gap: 10px; min-width: 0; }
.adm-vt-edit { margin-top: 6px; }
.adm-cand { min-height: 56px; border-radius: 16px; padding: 8px 10px; }
.adm-cand[aria-checked="true"] { background: var(--adm-pick); }
.adm-handled { margin-top: 18px; }
.adm-handled summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; color: var(--tp-muted); font: 500 0.9375rem/1 var(--tp-font); cursor: pointer; }
.adm-handled summary b { font-size: 1.125rem; }
.adm-handled ul { margin: 6px 0 0; padding: 4px 14px; border-radius: 22px; background: var(--tp-card); list-style: none; }
.adm-done-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 0; font: 400 0.9375rem/1.3 var(--tp-font); }
.adm-done-row + .adm-done-row { border-top: 1px solid var(--tp-hair); }
.adm-done-row a { text-decoration: none; font-weight: 500; }
.adm-done-row time { color: var(--tp-muted); font-size: 0.875rem; }
.adm-done-row small { flex-basis: 100%; color: var(--tp-muted); font-size: 0.875rem; }
.adm-done-row .adm-link { margin: 0 0 0 auto; min-height: 36px; }
.adm-requests { margin-top: 12px; }

/* ---------- Ảnh: the gallery's review tools (gallery-admin.js, styles.css .fa-*) on phones ---------- */

.adm-faces { margin-top: 12px; } /* A4: the figures no longer touch the subtitle */
/* A4: five figures in three columns: the last one fills its row, so the lines between them meet. */
@media (max-width: 720px) { .adm .fa-stat:nth-child(5) { grid-column: span 2; } }
/* A5: the tabs still slide sideways (wrapped they would take four rows above the list), and fade at the screen's
   edges, so a cut tab reads as "more this way". The fade covers only the row's 16 px end padding. */
@media (max-width: 720px) {
  .adm .fa-tabs {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
  }
}

/* ---------- Thùng rác (572) ---------- */

.adm-trash { min-height: 72px; }
.adm-thumb { display: block; flex: none; width: var(--s); height: var(--s); overflow: hidden; border-radius: 14px; background: var(--tp-soft); }
.adm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.adm-trash-open b { display: -webkit-box; overflow: hidden; font-weight: 500; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.adm-trash-big { display: grid; place-items: center; overflow: hidden; height: 210px; margin-top: 4px; border-radius: 20px; background: var(--tp-soft); color: var(--tp-dim); }
.adm-trash-big img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Cài đặt (570), Người quản trị (571) ---------- */

.adm-me { min-height: 72px; }
.adm-signout { display: flex; margin: 22px auto 0; }
.adm-qk { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 20px 20px; text-align: center; }
.adm-qk > :not(.tp-art) { position: relative; }
.adm-qk-circles { display: flex; gap: 14px; }
.adm-qk-circ { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; }
.adm-qk-circ svg { width: 30px; height: 30px; }
.adm-qk-circ.is-apple { color: #000; }
.adm-qk-circ.is-zalo { background: #0068ff; color: #fff; }
.adm-qk-line { margin: 4px 0; font: 400 1.0625rem/1.3 var(--tp-font); color: rgba(255, 255, 255, 0.88); }
.adm-qk .tp-btn { min-height: 52px; }
.adm-qk-other { min-height: 44px; border: 0; background: none; color: rgba(255, 255, 255, 0.8); font: 500 0.9375rem/1 var(--tp-font); cursor: pointer; }
.adm-qk-photo { position: relative; display: inline-grid; }
.adm-qk-photo .ac-av, .adm-qk-photo img { border-radius: 50%; }
.adm-qk-badge { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--navy-deep); }
.adm-qk-badge svg { width: 18px; height: 18px; }
.adm-qk-badge.is-apple { color: #000; }
.adm-qk-badge.is-zalo { background: #0068ff; color: #fff; }
.adm-qk-name { font: 500 1.25rem/1.2 var(--tp-font); }
.adm-qk-on { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 14px; border-radius: 16px; background: var(--optic); color: var(--navy-deep); font: 600 0.9375rem/1 var(--tp-font); }

.adm-caps { margin-top: 12px; }
.adm-caps .tp-row { min-height: 50px; }
.adm-cap { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.adm-cap.is-ok { background: var(--adm-green-soft); color: var(--adm-green); }
.adm-cap.is-no { background: var(--adm-red-soft); color: var(--adm-red); }
.adm-row.is-locked { opacity: 0.6; }
.adm-row .adm-lv { flex: none; }

/* Forms on the tournament pages' fields. */
.adm-form { display: flex; flex-direction: column; gap: 12px; }
.tp-card.adm-form { margin-top: 14px; }
.adm-form .tp-field select { min-height: 48px; padding: 0 12px; border: 0; border-radius: 14px; background: var(--tp-soft); color: var(--tp-ink); font: 400 1rem/1 var(--tp-font); }
.adm-form .adm-hint { margin: -4px 4px 0; font-size: 0.875rem; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.adm-checks { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; }
.adm-checks legend { margin-bottom: 6px; font: 500 0.875rem/1 var(--tp-font); color: var(--tp-muted); }
.adm-checkline { display: flex; align-items: center; gap: 10px; min-height: 44px; font: 400 1rem/1.3 var(--tp-font); }
.adm-checkline input { width: 22px; height: 22px; accent-color: var(--navy); }
.adm-checkline.is-off { opacity: 0.5; }
.adm-tset-evs { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.adm-tset-ev { display: flex; flex-direction: column; gap: 10px; margin-top: 0; }
.adm-tset-ev.is-closed { opacity: 0.75; }
.adm-tset-hd { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
/* On phones the switch moves under the event's name instead of squeezing it to one word a line (A1). */
.adm-tset-hd .adm-row-t { flex: 1 1 140px; }
.adm-tset-hd .switch { flex: none; min-height: 44px; padding: 0; border: 0; }
.adm-tset-add { display: flex; gap: 8px; margin-top: 10px; }
.adm-tset-add select { flex: 1; min-height: 44px; padding: 0 12px; border: 0; border-radius: 22px; background: var(--tp-card); color: var(--tp-ink); font: 400 1rem/1 var(--tp-font); }
.adm-bullets { margin: 8px 0 0; padding-left: 20px; font: 400 0.9375rem/1.45 var(--tp-font); color: var(--tp-ink2); }
.adm-switch-row { cursor: pointer; }
.adm-switch-row .switch { padding: 0; border: 0; background: none; }
/* The board's phone rule stretches every .switch (styles.css "width: 100%"): here the switch keeps its size and the words their line. */
.adm-switch-row .switch { width: auto; flex: none; }
.adm .switch { border-color: var(--tp-hair); background: transparent; color: var(--tp-ink); }
.adm .switch:has(input:checked) { border-color: transparent; background: transparent; }
.adm .switch-track { width: 50px; height: 30px; border-radius: 15px; background: var(--tp-line); }
.adm .switch-track::after { top: 3px; left: 3px; width: 24px; height: 24px; }
.adm .switch input:checked + .switch-track { background: var(--adm-green); }
.adm .switch input:checked + .switch-track::after { transform: translateX(20px); }

/* ---------- Nhật ký ---------- */

.adm-log { margin: 0; padding: 4px 16px; list-style: none; }
.adm-log-row { display: flex; gap: 12px; padding: 12px 0; font: 400 0.9375rem/1.4 var(--tp-font); }
.adm-log-row + .adm-log-row { border-top: 1px solid var(--tp-hair); }
.adm-log-row time { flex: none; width: 42px; padding-top: 1px; color: var(--tp-muted); font-size: 1rem; }
.adm-log-row > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.adm-log-row small { display: block; margin-top: 2px; color: var(--tp-muted); font-size: 0.8125rem; }
.adm-log-row a { color: var(--tp-brand-ink); text-decoration: none; font-weight: 500; }

/* ---------- Loading, could not load, nothing left (574) ---------- */

.adm-skel { padding: 6px 0; }
.adm-skel-row { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 0 16px 0 12px; }
.adm-skel-row + .adm-skel-row { border-top: 1px solid var(--tp-hair); }
.adm-skel-row i { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--adm-skel); }
.adm-skel-row span { display: flex; flex: 1; flex-direction: column; gap: 8px; }
.adm-skel-row b { width: 62%; height: 12px; border-radius: 6px; background: var(--adm-skel); }
.adm-skel-row s { width: 38%; height: 10px; border-radius: 5px; background: var(--adm-skel); opacity: 0.7; }
.adm-skel-row em { width: 40px; height: 22px; border-radius: 11px; background: var(--adm-skel); }
@media (prefers-reduced-motion: no-preference) {
  .adm-skel-row i, .adm-skel-row b, .adm-skel-row s, .adm-skel-row em { animation: adm-pulse 1.2s ease-in-out infinite alternate; }
}
@keyframes adm-pulse { from { opacity: 1; } to { opacity: 0.45; } }
.adm-state { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 52px 16px 28px; text-align: center; }
.adm-state p { margin: 0; font: 400 1.0625rem/1.35 var(--tp-font); color: var(--tp-muted); }
.adm-state-ic { display: grid; place-items: center; width: 120px; height: 120px; border-radius: 50%; }
.adm-state-ic.is-off { background: var(--tp-card); color: var(--tp-dim); }
.adm-state-ic.is-done { background: var(--adm-green-soft); color: var(--adm-green); }
.adm-retry { width: auto; min-width: 220px; padding: 0 28px; }
.adm-pane-empty { padding-top: 60px; }

/* ---------- Sheets and the toast (outside #admin-view: they carry .tour-page for the tokens) ---------- */

.adm-sheet.tour-page { background: transparent; }
.adm-sheet .tp-panel { gap: 12px; padding-top: 14px; font-family: var(--tp-font); }
.adm-sheet .tp-panel::before { content: ""; align-self: center; flex: none; width: 40px; height: 5px; margin-bottom: 2px; border-radius: 3px; background: var(--tp-line); }
.adm-sheet .tp-close { top: 18px; }
.adm-sheet-title { margin: 0 56px 0 4px; font: 600 min(1.25rem, 56px)/1.3 var(--tp-font); color: var(--tp-ink); outline: none; overflow-wrap: anywhere; }
.adm-sheet .tp-fc { margin-top: 0; background: var(--tp-bg); }
.adm-sheet .adm-hint { margin: 0 4px; }
.adm-sheet .adm-picks { display: flex; flex-direction: column; max-height: 46vh; overflow-y: auto; }
.adm-sheet .adm-search { margin-top: 0; background: var(--tp-soft); }
.adm-sheet .tp-btn { flex: none; }
.adm-sheet .adm-seg { margin-top: 0; }
.adm-sheet .adm-row-t b { font-weight: 500; }
.adm-sheet.is-ask .tp-panel { align-items: stretch; }
.adm-ask { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 10px 4px 4px; text-align: center; }
.adm-ask .adm-sheet-title { margin: 0; }
.adm-ask .tp-btn { width: 100%; }
.adm-ask-ic { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--tp-soft); color: var(--tp-ink); }
.adm-ask-ic.is-red { background: #fdebe8; color: #c0392b; }
.adm-ask-line { margin: -4px 0 4px; font: 400 1rem/1.35 var(--tp-font); color: var(--tp-muted); }
@media (prefers-color-scheme: dark) { html.in-app .adm-ask-ic.is-red { background: rgba(255, 120, 100, 0.16); color: #ff8a7a; } }

.adm-toast { display: flex; align-items: center; gap: 16px; width: max-content; max-width: calc(100% - 32px); padding: 12px 18px; text-align: left; box-sizing: border-box; }
.adm-toast[hidden] { display: none; }
.adm-toast.is-error { background: #8f2a20; }
.adm-undo { flex: none; min-height: 32px; padding: 0; border: 0; background: none; color: var(--optic); font: 600 0.9375rem/1 var(--tp-font); cursor: pointer; }

/* ---------- Wide screens: the sidebar, and two panes (567, 568 "Máy tính") ---------- */

@media (min-width: 1024px) {
  #admin-view.adm { padding: 0 20px 60px; }
  .adm-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 0; max-width: 1120px; }
  .adm-side {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-self: start;
    min-height: calc(100vh - 76px);
    padding: 22px 18px 22px 0;
    border-right: 1px solid var(--tp-hair);
    box-sizing: border-box;
  }
  .adm-side hr { width: 100%; margin: 12px 0; border: 0; border-top: 1px solid var(--tp-hair); }
  .adm-side-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 14px;
    color: var(--tp-ink2);
    font: 400 0.9375rem/1.2 var(--tp-font);
    text-decoration: none;
  }
  .adm-side-link span { flex: 1; }
  .adm-side-link .adm-ic { color: var(--tp-muted); }
  .adm-side-link b { font: 500 1rem/1 var(--font-score); color: var(--tp-muted); }
  .adm-side-link.is-on { background: var(--tp-card); color: var(--tp-ink); font-weight: 500; box-shadow: 0 1px 3px rgba(7, 22, 52, 0.08); }
  .adm-side-link.is-on .adm-ic { color: var(--tp-ink); }
  .adm-side-link:hover:not(.is-on) { background: rgba(118, 128, 150, 0.08); }
  .adm-badge { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: #e5484d; color: #fff !important; font-family: var(--tp-font) !important; font-size: 0.8125rem !important; box-sizing: border-box; }
  .adm-main { padding: 26px 0 0 40px; }
  .adm-main .adm-back { display: none; }
  .adm-split { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .adm-split-detail { position: sticky; top: 16px; }
  .adm-split-detail .adm-page .tp-hd { min-height: 44px; }
  .adm-split-detail .adm-foot { position: static; }

  /* Home: the next card beside the reports card, the other tasks as tiles; the sidebar has the areas. */
  .adm-home-hd h1 { font-size: 1.75rem; }
  .adm-home-top { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 18px; }
  .adm-home-top > :only-child { grid-column: 1 / -1; }
  .adm-home .adm-next { margin-top: 14px; min-height: 230px; }
  .adm-home .adm-next .tp-btn { align-self: flex-start; width: auto; min-width: 240px; padding: 0 48px; }
  .adm-home-rows, .adm-home .adm-label, .adm-home .adm-tiles, .adm-home .adm-quiets { display: none; }
  .adm-wide-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 14px;
    padding: 18px;
    border-radius: 24px;
    background: var(--tp-card);
    color: var(--tp-ink);
    text-decoration: none;
  }
  .adm-wide-card > b { margin-top: 10px; font-size: 3.5rem; font-weight: 600; line-height: 0.9; color: var(--adm-red); }
  .adm-wide-card > span:not(.tp-ico):not(.adm-wide-btn) { font: 500 1.125rem/1.2 var(--tp-font); }
  .adm-wide-card small { font: 400 0.9375rem/1.2 var(--tp-font); color: var(--tp-muted); }
  .adm-wide-btn { display: grid; place-items: center; align-self: stretch; min-height: 44px; margin-top: auto; border-radius: 22px; box-shadow: inset 0 0 0 1.5px var(--tp-line); font: 500 0.9375rem/1 var(--tp-font); }
  .adm-wide-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
  .adm-wide-tile { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 24px; background: var(--tp-card); color: var(--tp-ink); text-decoration: none; }
  .adm-wide-tile .adm-chev { position: absolute; top: 24px; right: 18px; }
  .adm-wide-tile b { margin-top: 18px; font-size: 3rem; font-weight: 600; line-height: 0.9; color: var(--tp-brand-ink); }
  .adm-wide-tile > span:last-child { font: 400 1.0625rem/1.2 var(--tp-font); }
  .adm-wide-tile.is-quiet b { color: var(--tp-dim); }

  .adm-sheet { align-items: center; }
  .adm-sheet .tp-panel { max-width: 480px; border-radius: 28px; }
  .adm-toast { bottom: 28px; }
}

/* The header button admin.js adds where a page has no #hd-account of its own (dock.js adds it on every page). */
.hd-account-initial { font: 600 15px/1 var(--font-body); color: #fff; }

/* ---------- Liên kết and "Hồ sơ ngoài" (board 578) ---------- */

.adm-src { display: inline-flex; align-items: center; gap: 5px; min-height: 22px; padding: 0 8px; border-radius: 11px; background: var(--tp-soft); color: var(--tp-ink2); font: 500 0.8125rem/1 var(--tp-font); white-space: nowrap; vertical-align: 1px; }
.adm-src i { width: 7px; height: 7px; border-radius: 50%; background: #3b6fd6; }
.adm-src.is-baseline i { background: #1e9e62; }
.adm-row .adm-src { flex: none; }
.adm-sugg { gap: 8px; }
.adm-sugg-open { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; min-height: 48px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.adm-yn { display: grid; flex: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; }
.adm-yn.is-no { background: transparent; box-shadow: inset 0 0 0 1.5px var(--tp-line); color: var(--tp-ink2); }
.adm-yn.is-yes { background: var(--optic); color: var(--navy-deep); }
.adm-match-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 8px 6px; text-align: center; }
.adm-sheet .adm-match-pair { margin-top: 0; background: var(--tp-bg); }
.adm-mp { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.adm-mp b { font: 500 1.0625rem/1.25 var(--tp-font); overflow-wrap: anywhere; }
.adm-mp small { font: 400 0.8125rem/1.3 var(--tp-font); color: var(--tp-muted); }
.adm-mp .tp-num { font-size: 1.75rem; font-weight: 600; color: var(--tp-brand-ink); }
.adm-mp-extra { font: 400 0.875rem/1.3 var(--tp-font); color: var(--tp-ink2); }
.adm-mp-link { display: grid; place-items: center; width: 36px; height: 36px; margin-top: 30px; border-radius: 50%; background: var(--optic); color: var(--navy-deep); }
.adm-mp-why { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 0; font: 400 0.875rem/1.3 var(--tp-font); color: var(--tp-muted); }
.adm-match-pair .adm-two, .adm-match-pair .adm-link { grid-column: 1 / -1; }
.adm-sheet-hd { display: flex; align-items: center; gap: 10px; margin-right: 56px; }
.adm-sheet-hd .adm-sheet-title { margin: 0; }
.adm-url { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: 16px; background: var(--tp-card); box-shadow: inset 0 0 0 2px var(--optic); color: var(--tp-ink2); }
.adm-url input { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; color: var(--tp-ink); font: 400 1rem/1.2 var(--tp-font); }
.adm-url input:focus { outline: none; }
.adm-preview { border-radius: 18px; background: var(--tp-card); }
.adm-medals { display: flex; gap: 4px; }
.adm-medals i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font: 600 0.8125rem/1 var(--font-score); font-style: normal; }
.adm-medals .is-gold { background: #e3ad2e; }
.adm-medals .is-silver { background: #a9b4c1; }
.adm-medals .is-bronze { background: #c47f45; }
.adm-ok-btn { width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; place-items: center; }
.adm-hint .adm-ic { display: inline-block; vertical-align: -2px; }

/* ---------- Bảng tin & tin nhắn (591): reported messages, posts and comments ---------- */
.adm-sr-list { display: grid; gap: 12px; }
.adm-sr { display: grid; gap: 10px; padding: 14px; }
.adm-sr.is-on { box-shadow: inset 0 0 0 2px var(--navy); }
.adm-sr-head { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.adm-sr-head .adm-tag { margin-left: auto; gap: 4px; }
.adm-sr-what { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--tp-soft); }
.adm-sr-what p { flex: 1; margin: 0; font: 400 15px/1.4 var(--tp-font); white-space: pre-wrap; overflow-wrap: anywhere; }
.adm-sr-what img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.adm-sr-what:empty { display: none; }
.adm-tag.is-red { background: var(--tp-red-soft); color: var(--tp-red); }
.adm-tags .adm-tag { gap: 4px; }
.adm-sr-detail { display: grid; gap: 12px; }
.adm-sr-snap { display: grid; gap: 10px; padding: 14px; }
.adm-sr-msg { display: flex; align-items: flex-start; gap: 8px; }
.adm-sr-msg > span:last-child { display: grid; gap: 4px; padding: 8px 12px; border-radius: 16px; background: var(--tp-soft); }
.adm-sr-msg small { color: var(--tp-muted); font-size: 12px; }
.adm-sr-msg b { font-weight: 400; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.adm-sr-msg img { max-width: 160px; border-radius: 10px; }
.adm-sr-msg.is-reported > span:last-child { background: var(--tp-red-soft); box-shadow: inset 0 0 0 1.5px var(--tp-red); }
.adm-sr-snap .adm-hint { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; }
.adm-sr-fact .adm-row-v { display: flex; align-items: center; gap: 4px; }
.adm-sr-fact .tp-num.is-red { color: var(--tp-red); }
.adm-sr-detail .adm-two .tp-circ { flex: none; }
