html body.users-page .container { max-width: 1900px; padding: 20px 40px 0; }
.users-page .left-decoration, .users-page .left-deco-avatar { z-index: 0; }

.ut, .ut-sheet { --ut-sel: color-mix(in srgb, var(--ui-action) 22%, transparent); --ut-line: color-mix(in srgb, var(--border-readable) 60%, transparent); --ut-green: #4ade80; --ut-amber: #fbbf24; }
[data-theme="light"] :is(.ut, .ut-sheet) { --ut-green: #15803d; --ut-amber: #b45309; }
.ut { position: relative; z-index: 1; display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 12px; max-width: 1560px; height: calc(100vh - 101px); height: calc(100dvh - 101px); min-height: 640px; margin: 0 auto 40px; color: var(--text-readable); text-align: left; }
.ut-panel { min-width: 0; min-height: 0; background: var(--surface-readable); border: 1px solid var(--border-readable); border-radius: 20px; box-shadow: 0 24px 60px -32px rgb(5 6 30 / 0.7); }
[data-theme="light"] .ut-panel { box-shadow: 0 24px 60px -36px rgb(20 30 70 / 0.45); }
html body .ut :is(h1, h2, p), html body .ut-sheet :is(h1, h2, p) { margin: 0; text-align: left; background: none; -webkit-text-fill-color: currentColor; text-shadow: none; }
html body .ut button, html body .ut-sheet button { width: auto; margin: 0; padding: 0; box-shadow: none; transform: none; font-family: inherit; }
html body .ut [hidden], html body .ut-sheet [hidden] { display: none !important; }

.ut-band { display: grid; grid-template-columns: auto repeat(5, minmax(0, 1fr)); align-items: end; gap: 26px; padding: 16px 26px; }
html body .ut-band h1 { align-self: center; font-size: 26px; font-weight: 800; line-height: 1.15; color: var(--text-readable) !important; white-space: nowrap; }
.ut-band small { display: block; font-size: 13px; font-weight: 700; color: var(--text-supporting); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ut-band strong { display: block; font-size: 32px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ut-band .g strong { color: var(--ut-green); }

.ut-tiles { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; }
html body .ut .ut-tile { display: grid; gap: 2px; min-width: 0; padding: 10px 14px; text-align: left; color: var(--text-readable); background: var(--surface-readable); border: 1px solid var(--border-readable); border-radius: 14px; box-shadow: 0 16px 40px -30px rgb(5 6 30 / .7); cursor: pointer; user-select: none; transition: background-color 140ms ease, border-color 140ms ease; }
html body .ut .ut-tile:hover { background: var(--ui-hover); }
html body .ut .ut-tile:active { transform: scale(.98); }
html body .ut .ut-tile[aria-pressed="true"] { color: #fff; background: var(--ui-action); border-color: var(--ui-action); }
.ut-tile .c { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px; font-weight: 800; color: var(--text-supporting); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ut-tile .c img { display: block; width: 18px; height: 12px; flex: none; border-radius: 2px; }
.ut-tile b { font-size: 18px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ut-tile .p { font-size: 12.5px; font-weight: 700; color: var(--ut-green); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ut-tile[aria-pressed="true"] :is(.c, .p) { color: #fff; }

.ut-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 12px; min-height: 0; }
.ut-table { display: flex; flex-direction: column; overflow: hidden; }
.ut-tool { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border-readable); }
html body .ut-tool h2 { font-size: 18px; font-weight: 800; color: var(--text-readable) !important; white-space: nowrap; }
.ut-count { font-size: 13.5px; font-weight: 700; color: var(--text-supporting); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ut-search { position: relative; display: block; width: 260px; min-width: 0; margin: 0 0 0 auto; }
.ut-search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: none; stroke: var(--text-supporting); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
html body .ut .ut-search input { width: 100%; height: 38px; margin: 0; padding: 0 12px 0 38px; font-size: 14px; color: var(--text-readable) !important; background: var(--surface-inset) !important; border: 1px solid var(--border-readable) !important; border-radius: 10px; box-shadow: none; backdrop-filter: none; }
html body .ut .ut-search input::placeholder { color: var(--text-supporting) !important; }
html body .ut .ut-search input:focus { border-color: var(--ui-accent) !important; box-shadow: none !important; }
html body .ut .ut-select { appearance: none; width: auto; height: 38px; margin: 0; padding: 0 38px 0 12px; font-size: 13px; font-weight: 700; color: var(--text-readable) !important; background: var(--surface-inset) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%238a96ab' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center !important; border: 1px solid var(--border-readable) !important; border-radius: 10px; cursor: pointer; box-shadow: none; backdrop-filter: none; user-select: none; }
html body .ut .ut-select:focus { border-color: var(--ui-accent) !important; box-shadow: none !important; }
html body .ut .ut-select option { background: var(--surface-readable); color: var(--text-readable); }
html body .ut .ut-toggle { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--text-supporting); font-size: 14px; font-weight: 700; cursor: pointer; user-select: none; white-space: nowrap; }
html body .ut .ut-toggle input { appearance: none; position: relative; flex: none; width: 36px; height: 20px; margin: 0; padding: 0; border: 0 !important; border-radius: 99px; background: var(--border-readable) !important; cursor: pointer; transition: background-color 160ms ease-out; backdrop-filter: none; box-shadow: none; }
html body .ut .ut-toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 160ms cubic-bezier(.2,.8,.2,1); }
html body .ut .ut-toggle input:checked { background: var(--ui-action) !important; }
html body .ut .ut-toggle input:checked::after { transform: translateX(16px); }
html body .ut .ut-toggle input:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 2px; }

.ut-list { position: relative; flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--border-readable) transparent; }
.ut-list[aria-busy="true"] tbody { opacity: .55; transition: opacity 160ms ease-out; }
html body .ut-list table { width: 100%; margin: 0; border: 0; border-collapse: separate; border-spacing: 0; background: none; font-size: 14px; }
html body .ut-list th { position: sticky; top: 0; z-index: 1; height: 38px; padding: 0 16px; text-align: left; white-space: nowrap; background: var(--surface-readable); border: 0; border-bottom: 1px solid var(--border-readable); font-size: 13px; font-weight: 800; color: var(--text-supporting); text-transform: none; letter-spacing: 0; }
html body .ut-list th button { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; user-select: none; }
html body .ut-list th button:hover { color: var(--text-readable); }
html body .ut-list th button:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 2px; border-radius: 4px; }
.ut-list th[aria-sort="descending"] button::after { content: "↓"; color: var(--ui-accent); }
.ut-list th[aria-sort="ascending"] button::after { content: "↑"; color: var(--ui-accent); }
html body .ut-list :is(th, td).n { text-align: right; }
html body .ut-list td { height: 40px; padding: 0 16px; white-space: nowrap; background: none; border: 0; border-bottom: 1px solid var(--ut-line); color: var(--text-readable); text-align: left; font-variant-numeric: tabular-nums; }
html body .ut-list tbody tr { cursor: default; background: none; }
html body .ut-list tbody tr:hover td { background: var(--ui-hover); }
html body .ut-list tbody tr[aria-selected="true"] td { background: var(--ut-sel); }
html body .ut-list tbody tr[aria-selected="true"] td:first-child { box-shadow: inset 3px 0 var(--ui-accent); }
.ut-list tbody tr:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: -2px; }
.ut-list td b { font-weight: 800; }
.ut-zero { color: var(--text-supporting); }
.ut-user { display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; vertical-align: middle; }
html body .ut .ut-user a { overflow: hidden; text-overflow: ellipsis; font-weight: 700; color: var(--text-readable); text-decoration: none; }
html body .ut .ut-user a:hover { color: var(--ui-accent); }
.ut-av { flex: none; display: block; width: 28px; height: 28px; overflow: hidden; border-radius: 50%; background: var(--surface-inset); }
.ut-av img { display: block; width: 28px; height: 28px; object-fit: none; object-position: 50% 60%; image-rendering: pixelated; }
.ut-av.lg { width: 44px; height: 44px; border-radius: 12px; }
.ut-av.lg img { width: 44px; height: 44px; }
.ut-new { flex: none; padding: 2px 7px; border-radius: 99px; background: color-mix(in srgb, var(--ut-green) 18%, transparent); color: var(--ut-green); font-size: 11px; font-weight: 800; line-height: 1.4; }
.ut-hotel { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; color: var(--text-supporting); }
.ut-hotel img { display: block; width: 18px; height: 12px; border-radius: 2px; }
.ut-track { font-size: 13px; font-weight: 700; color: var(--text-supporting); }
.ut-track.auto { color: var(--ut-green); }
.ut-track.until { color: var(--ui-accent); }
.ut-time { color: var(--text-readable); }
.ut-time i { margin-left: 8px; font-style: normal; font-size: 13px; color: var(--text-supporting); }
html body .ut-list .ut-loading-row td { height: 120px; text-align: center; color: var(--text-supporting); }

.ut-empty { display: grid; justify-items: center; gap: 8px; padding: 56px 16px; text-align: center; color: var(--text-supporting); }
.ut-empty b { color: var(--text-readable); font-size: 17px; font-weight: 800; }
.ut-status { margin: 0; padding: 0 16px; font-size: 13px; color: var(--text-supporting); }
.ut-status:empty { display: none; }

.ut-foot { position: relative; display: flex; align-items: center; min-height: 56px; padding: 6px 16px; border-top: 1px solid var(--border-readable); color: var(--text-supporting); font-size: 13.5px; }
.ut-foot > span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-variant-numeric: tabular-nums; }
html body .ut-foot .pagination { flex: 1; min-width: 0; margin: 0; padding: 0 170px; background: none; border: 0; }
html body .ut-foot .hs-pagination { display: flex; flex-direction: row; justify-content: center; gap: 0; }
html body .ut-foot .hs-pager-meta { display: none; }

.ut-side { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; min-height: 0; }
.ut-rank { display: flex; flex-direction: column; overflow: hidden; }
.ut-rank header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px 18px 8px; }
html body .ut-rank h2 { font-size: 18px; font-weight: 800; color: var(--text-readable) !important; }
.ut-rank header span { font-size: 13px; font-weight: 700; color: var(--text-supporting); white-space: nowrap; }
.ut-rank ol { flex: 1; min-height: 0; margin: 0; padding: 0 10px 10px; overflow: auto; list-style: none; scrollbar-width: thin; scrollbar-color: var(--border-readable) transparent; }
html body .ut-rank li a { display: grid; grid-template-columns: 26px 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; height: 46px; padding: 0 8px; border-radius: 10px; color: var(--text-readable); text-decoration: none; }
html body .ut-rank li a:hover { background: var(--ui-hover); }
.ut-rank .no { font-size: 13px; font-weight: 800; color: var(--text-supporting); text-align: right; font-variant-numeric: tabular-nums; }
.ut-rank li:nth-child(-n+3) .no { color: var(--ut-amber); }
.ut-rank .nm { display: grid; gap: 2px; min-width: 0; line-height: 1.25; }
.ut-rank .nm b { overflow: hidden; font-size: 14px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.ut-rank .nm span { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-supporting); }
.ut-rank .nm span img { width: 14px; height: 10px; border-radius: 2px; }
.ut-rank .bc { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }

.ut-sel { display: grid; gap: 12px; padding: 14px 16px; }
.ut-sel-empty { margin: 0; color: var(--text-supporting); font-size: 14px; }
.ut-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ut-who > div { min-width: 0; }
.ut-who b { display: block; font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }
.ut-who > div > span { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-supporting); }
.ut-who > div > span img { width: 18px; height: 12px; border-radius: 2px; }
.ut-kv { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; }
.ut-kv > div { min-width: 0; padding: 7px 10px; border-radius: 11px; background: var(--surface-inset); border: 1px solid var(--border-readable); }
.ut-kv small { display: block; font-size: 12px; color: var(--text-supporting); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ut-kv b { display: block; overflow: hidden; font-size: 14px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.ut-kv b .ut-track { font-size: 14px; font-weight: 800; }
.ut-acts { display: flex; gap: 8px; }
html body .ut-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px; font-size: 14px; font-weight: 800; line-height: 1; text-decoration: none; white-space: nowrap; color: var(--text-readable); background: var(--surface-inset); border: 1px solid var(--border-readable); border-radius: 11px; cursor: pointer; transition: background-color 140ms ease; }
html body .ut-btn:hover { background: var(--ui-hover); color: var(--text-readable); transform: none; box-shadow: none; }
html body .ut-btn.primary { color: #fff; background: var(--ui-action); border-color: var(--ui-action); }
html body .ut-btn.primary:hover { background: var(--ui-action); filter: brightness(1.08); }
html body .ut-btn.small { flex: none; height: 32px; padding: 0 12px; font-size: 13px; }
html body .ut-btn:active { transform: scale(.97); }

.ut-sheet { width: min(560px, 100vw); max-width: 100vw; max-height: 86vh; margin: auto auto 0; padding: 0; color: var(--text-readable); background: var(--surface-readable); border: 1px solid var(--border-readable); border-bottom: 0; border-radius: 20px 20px 0 0; box-shadow: 0 -20px 50px -20px rgb(0 0 0 / .5); }
.ut-sheet::backdrop { background: rgb(5 8 20 / .55); }
.ut-sheet[open] { display: flex; flex-direction: column; animation: ut-sheet-in 220ms cubic-bezier(.2,.8,.2,1); }
@keyframes ut-sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.ut-sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border-readable); }
html body .ut-sheet-top h2 { font-size: 18px; font-weight: 800; color: var(--text-readable) !important; }
.ut-sheet .ut-sel { padding-bottom: max(18px, env(safe-area-inset-bottom)); }

@media (max-height: 860px) { .ut-sel .ut-kv { display: none; } }
@media (max-width: 1400px) {
  .ut-band { gap: 16px; padding: 14px 20px; }
  .ut-band strong { font-size: 26px; }
  html body .ut-band h1 { font-size: 22px; }
  .ut-tiles { gap: 6px; }
  html body .ut .ut-tile { padding: 8px 9px; }
  .ut-tile b { font-size: 15px; }
  .ut-body { grid-template-columns: minmax(0, 1fr) 300px; }
  .ut-search { width: 190px; }
  html body .ut-list .ut-col-track { display: none; }
}
@media (max-width: 1100px) {
  html body.users-page .container { padding: 16px 20px 0; }
  .ut { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .ut-table { height: 75vh; height: 75dvh; min-height: 460px; }
  .ut-band { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  html body .ut-band h1 { grid-column: 1 / -1; }
  .ut-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ut-body { grid-template-columns: minmax(0, 1fr); }
  .ut-side { display: none; }
}
@media (max-width: 760px) {
  html body.users-page .container { padding: 12px 12px 0; }
  .ut-band { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding: 14px 16px; }
  .ut-band strong { font-size: 22px; }
  .ut-tiles { display: flex; overflow-x: auto; scrollbar-width: none; }
  .ut-tiles::-webkit-scrollbar { display: none; }
  html body .ut .ut-tile { flex: 0 0 112px; }
  .ut-tool { flex-wrap: wrap; }
  html body .ut-list .ut-col-time, .ut-hotel span { display: none; }
  .ut-search { flex: 1 1 100%; width: auto; margin: 0; }
  .ut-foot { flex-direction: column; gap: 6px; padding: 8px 12px; }
  .ut-foot > span { position: static; transform: none; }
  html body .ut-foot .pagination { width: 100%; padding: 0; }
  html body .ut-list :is(th, td) { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html body :is(.ut, .ut-sheet) *, .ut-sheet[open] { transition: none !important; animation: none !important; }
  html body .ut :is(.ut-tile, .ut-btn):active { transform: none; }
}
