/* The owner: the gold name and badge everyone sees, the report dialog, and the owner panel. */

/* ---------- The owner's name, wherever it appears ---------- */

.pname { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; }
.pname__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pname.is-owner .pname__text {
  background: linear-gradient(90deg, #ffe39a, #ffc53d 38%, #fff4d6 50%, #ffc53d 62%, #e3a52c);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: owner-name 7s linear infinite;
}
@keyframes owner-name { from { background-position: 110% 0; } to { background-position: -110% 0; } }

.owner-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  height: 20px;
  padding: 0 8px 0 6px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff1c1, #ffc53d 45%, #d99400);
  color: #2a1a00;
  font: 800 10px/1 var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgb(255 214 107 / 0.35), 0 4px 12px -4px rgb(255 179 0 / 0.6);
  -webkit-text-fill-color: currentColor;
}
.owner-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 0.8) 50%, transparent 65%);
  translate: -130% 0;
  animation: owner-shine 4.2s var(--ease-in-out) infinite;
}
@keyframes owner-shine { 0%, 60% { translate: -130% 0; } 90%, 100% { translate: 130% 0; } }
.owner-badge.is-compact { width: 20px; padding: 0; justify-content: center; }
.owner-badge__crown { display: grid; }
.owner-badge .icon { width: 12px; height: 12px; stroke-width: 2.2; }

/* In the account menu, whose own rules would make the name a small grey block and the badge
   inherit menu text styles: keep name and badge on one line at their proper sizes. */
.menu__head > div { min-width: 0; }
.menu__head .pname { display: flex; }
.menu__head .pname .pname__text { font-size: 14px; }
.menu__head .pname:not(.is-owner) .pname__text { color: var(--text); }
.menu__head .pname .owner-badge { color: #2a1a00; font-size: 10px; }
.menu__head .pname .owner-badge span { color: inherit; font-size: inherit; }

/* A gold ring that turns slowly around the owner's avatar, and a small crown on top. */
.avatar.is-owner {
  position: relative;
  color: #ffd76b;
  background: color-mix(in srgb, #ffc53d 16%, var(--bg-2));
  box-shadow: none;
}
.avatar.is-owner::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(#ffc53d, #fff1c1 25%, #d99400 50%, #fff1c1 75%, #ffc53d);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  animation: owner-ring 6s linear infinite;
}
.avatar.is-owner::after {
  content: "";
  position: absolute;
  top: -22%;
  right: -16%;
  width: 46%;
  aspect-ratio: 1;
  rotate: 22deg;
  background: linear-gradient(135deg, #fff1c1, #ffc53d 55%, #d99400);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 18 1.6 6.5l6 4.6L12 3l4.4 8.1 6-4.6L21 18z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 18 1.6 6.5l6 4.6L12 3l4.4 8.1 6-4.6L21 18z'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.5));
}
@keyframes owner-ring { to { rotate: 360deg; } }

/* Leaderboard: a quiet report flag per row, and the owner's row in gold. */
.leader { grid-template-columns: 36px auto minmax(0, 1fr) auto auto 32px; animation-delay: calc(var(--i, 0) * 28ms); }
.leader.is-owner:not(.is-top) { background: linear-gradient(90deg, color-mix(in srgb, #ffc53d 10%, var(--bg-1)), var(--bg-1) 55%); box-shadow: inset 3px 0 0 #ffc53d; }
.leader__report { opacity: 0; transition: opacity 160ms; }
.leader:hover .leader__report, .leader__report:focus-visible { opacity: 1; }
@media (hover: none) { .leader__report { opacity: 0.6; } }
/* rewards.css hides the bet count below 900 px: keep the report flag in its own column there. */
@media (max-width: 900px) { .leader { grid-template-columns: 30px auto minmax(0, 1fr) auto 32px; } }

.nav__link--owner { color: #ffd76b; background: linear-gradient(90deg, color-mix(in srgb, #ffc53d 12%, transparent), transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, #ffc53d 22%, transparent); margin-bottom: 6px; }
.nav__link--owner:hover, .nav__link--owner.is-active { color: #fff1c1; background: color-mix(in srgb, #ffc53d 16%, var(--bg-2)); }

.sidebar__report {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: -4px 0 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-s);
  background: var(--bg-3);
  color: var(--text-2);
  font: 650 12.5px var(--font-ui);
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms, color 140ms;
}
.sidebar__report span { display: grid; }
.sidebar__report:hover { background: var(--bg-4); color: var(--text); }

/* ---------- Report dialog ---------- */

.modal--report { width: min(540px, 100%); }
.report { display: grid; gap: 16px; }
.report__kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.report__kind {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 0;
  border-radius: var(--radius-m);
  background: var(--bg-2);
  color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms, box-shadow 180ms, transform 180ms var(--ease-out);
}
.report__kind:hover { background: var(--bg-3); }
.report__kind:active { transform: scale(0.98); }
.report__kind strong { display: block; color: var(--text); font-size: 15px; }
.report__kind small { display: block; margin-top: 2px; color: var(--text-3); font-size: 12.5px; line-height: 1.4; }
.report__kind-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--bg-3); color: var(--text-2); transition: background-color 180ms, color 180ms; }
.report__kind.is-on { background: color-mix(in srgb, var(--accent) 8%, var(--bg-2)); box-shadow: inset 0 0 0 2px var(--accent); }
.report__kind.is-on .report__kind-icon { background: var(--accent); color: var(--accent-ink); }
.report__part { display: grid; gap: 10px; animation: rise-in 260ms var(--ease-out); }
.report__part[hidden] { display: none; }
.report__pills { display: flex; flex-wrap: wrap; gap: 6px; }
.report__pills .chip-filter { height: 32px; padding: 0 12px; font-size: 13px; }
.report__message {
  width: 100%;
  min-height: 116px;
  resize: vertical;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--bg-0);
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  transition: border-color 140ms;
}
.report__message:hover { border-color: var(--line-strong); }
.report__message:focus { outline: 0; border-color: var(--info); }
.report__message.is-invalid { border-color: var(--loss); }
.report__message::placeholder { color: var(--text-3); }
.report__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-top: 6px; }
.report__counter { margin-left: auto; color: var(--text-3); font-size: 12px; }
.report__hint { margin-top: -6px; }
.report__done { display: grid; justify-items: center; gap: 8px; padding: 28px 8px 16px; text-align: center; animation: rise-in 320ms var(--ease-out); }
.report__done strong { font-size: 18px; }
.report__done p { max-width: 36ch; color: var(--text-2); }
.report__done-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: color-mix(in srgb, var(--win) 16%, transparent); color: var(--win); animation: ow-pop 520ms var(--ease-spring); }
.report__done-icon .icon { width: 28px; height: 28px; stroke-width: 2.4; }

/* ---------- Owner panel ---------- */

.ow {
  --ow-in: #bd851c;   /* Crowns into the treasury. Checked against --ow-out for colour-blind separation. */
  --ow-out: #3f8ae0;  /* Crowns out of the treasury. */
  display: grid;
  gap: 18px;
}

@keyframes ow-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes ow-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes ow-pop { from { opacity: 0; scale: 0.4; } }
@keyframes ow-draw { to { stroke-dashoffset: 0; } }
@keyframes ow-wash { to { opacity: 0.1; } }
@keyframes ow-grow { from { transform: scaleY(0); } }
@keyframes ow-fill { from { transform: scaleX(0); } }
@keyframes ow-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--win) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }

.ow-rise { animation: ow-rise 620ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
.is-refreshing { opacity: 0.55; transition: opacity 200ms; }
.ow-view { display: grid; gap: 16px; min-width: 0; transition: opacity 200ms; }
.ow-view.is-switching > * { animation: ow-in 320ms var(--ease-out); }
.ow-skeleton { height: 420px; border-radius: var(--radius-l); }

/* Head: the one glow on this page sits behind the crest. */
.ow-head { display: flex; align-items: center; gap: 18px; }
.ow-head__crest {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(145deg, #3a2a08, #1c1404);
  color: #ffd76b;
  box-shadow: inset 0 0 0 1px rgb(255 214 107 / 0.3), 0 10px 40px -8px rgb(255 179 0 / 0.45);
}
.ow-head__crest .icon { width: 32px; height: 32px; }
.ow-head__eyebrow { color: #ffd76b; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.ow-head h1 { margin-top: 2px; font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.ow-head__lead { margin-top: 4px; color: var(--text-2); }

/* Tabs with a sliding underline */
.ow-tabs { position: relative; display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.ow-tabs::-webkit-scrollbar { display: none; }
.ow-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border: 0;
  background: none;
  color: var(--text-2);
  font: 650 14px var(--font-ui);
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms;
}
.ow-tab span:first-child { display: grid; }
.ow-tab:hover, .ow-tab.is-on { color: var(--text); }
.ow-tab__count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; line-height: 20px; text-align: center; animation: ow-pop 360ms var(--ease-spring); }
.ow-tabs__ink {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: var(--w, 0);
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  translate: var(--x, 0) 0;
  transition: translate 380ms var(--ease-out), width 380ms var(--ease-out);
}

/* Filters: one row above everything they scope */
.ow-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ow-toolbar[hidden] { display: none; }
.ow-range { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg-2); }
.ow-range__option { height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font: 650 13px var(--font-ui); cursor: pointer; transition: background-color 160ms, color 160ms; }
.ow-range__option:hover { color: var(--text); }
.ow-range__option[aria-pressed="true"] { background: var(--text); color: var(--bg-0); }
.ow-live { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--text-3); font-size: 12.5px; }
.ow-live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--win); animation: ow-pulse 2s ease-out infinite; }

/* Cards */
.ow-card { display: grid; gap: 14px; min-width: 0; padding: 20px; border-radius: var(--radius-l); background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line); }
.ow-card__head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 16px; }
.ow-card__head > div:first-child { flex: 1 1 260px; }
.ow-card__head h3 { font-size: 16px; font-weight: 800; }
.ow-card__head p { margin-top: 2px; color: var(--text-3); font-size: 13px; }
.ow-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ow-empty { color: var(--text-3); font-size: 13.5px; }
.ow-empty-state { display: grid; justify-items: center; gap: 10px; padding: 48px 16px; color: var(--text-3); text-align: center; }
.ow-muted { color: var(--text-3); }
.is-gain { color: var(--win); }
.is-drain { color: var(--loss); }

/* Hero: the treasury */
.ow-hero { grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.6fr); align-items: center; gap: 24px; padding: 24px; }
.ow-hero__label { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; font-weight: 700; }
.ow-hero__label span { display: grid; color: #ffd76b; }
.ow-hero__line { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.ow-hero__value { font: 700 clamp(40px, 5vw, 56px)/1 var(--font-ui); letter-spacing: -0.02em; }
.ow-hero__unit { color: var(--text-3); font-weight: 650; }
.ow-hero__note { margin-top: 12px; color: var(--text-3); font-size: 12.5px; line-height: 1.5; max-width: 42ch; }
.ow-hero__chart { min-width: 0; }
.ow-delta { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 10px; border-radius: 999px; background: var(--bg-3); color: var(--text-2); font-size: 13px; font-weight: 700; }
.ow-delta__arrow { display: grid; transition: rotate 300ms; }
.ow-delta.is-up { background: color-mix(in srgb, var(--win) 14%, transparent); color: var(--win); }
.ow-delta.is-up .ow-delta__arrow { rotate: -45deg; }
.ow-delta.is-down { background: color-mix(in srgb, var(--loss) 14%, transparent); color: var(--loss); }
.ow-delta.is-down .ow-delta__arrow { rotate: 45deg; }

/* KPI row */
.ow-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.ow-kpi { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--radius-l); background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line); }
.ow-kpi__label { color: var(--text-2); font-size: 12.5px; font-weight: 650; }
.ow-kpi__value { font: 700 26px/1.1 var(--font-ui); }
.ow-kpi__sub { color: var(--text-3); font-size: 12px; }

/* Charts */
.ow-chart { position: relative; height: var(--h); }
.ow-chart svg { display: block; overflow: visible; }
.ow-gridline { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.ow-zero { stroke: var(--line-strong); stroke-width: 1; shape-rendering: crispEdges; }
.ow-axis { fill: var(--text-3); font: 500 11px var(--font-ui); font-variant-numeric: tabular-nums; }
.ow-line { fill: none; stroke: var(--ow-in); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ow-draw 1300ms var(--ease-out) 250ms forwards; }
.ow-area { fill: var(--ow-in); opacity: 0; animation: ow-wash 900ms ease-out 800ms forwards; }
.ow-end { fill: var(--ow-in); stroke: var(--bg-1); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ow-pop 420ms var(--ease-spring) 1300ms both; }
.ow-cross { stroke: var(--text-3); stroke-width: 1; shape-rendering: crispEdges; }
.ow-dot { fill: var(--ow-in); stroke: var(--bg-1); stroke-width: 2; }
.ow-hit { fill: transparent; cursor: crosshair; outline: none; }
.ow-bar { transform-box: fill-box; animation: ow-grow 700ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 16ms + 150ms); transition: filter 140ms; }
.ow-bar.is-in { fill: var(--ow-in); transform-origin: 50% 100%; }
.ow-bar.is-out { fill: var(--ow-out); transform-origin: 50% 0; }
.ow-col { outline: none; }
.ow-col__hit { fill: transparent; }
.ow-col:hover .ow-bar, .ow-col:focus .ow-bar { filter: brightness(1.3); }
.ow-col:focus-visible .ow-col__hit { fill: rgb(255 255 255 / 0.05); }
/* Redraws (resize, refresh) show the final state at once. */
.is-static .ow-line { animation: none; stroke-dashoffset: 0; }
.is-static .ow-area { animation: none; opacity: 0.1; }
.is-static .ow-end, .is-static .ow-bar, .is-static .ow-bars__fill, .is-static .ow-rtp__mark { animation: none; }

.ow-tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  display: grid;
  gap: 2px;
  min-width: 160px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-3);
  box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line-strong);
  color: var(--text-2);
  font-size: 12px;
  pointer-events: none;
  translate: var(--x, 0) var(--y, 0);
}
.ow-tip strong { color: var(--text); font-size: 15px; font-weight: 700; }
.ow-tip__row { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--text); font-weight: 600; }
.ow-tip__sub { padding-left: 18px; color: var(--text-3); }
.ow-key { flex: none; width: 12px; height: 2px; border-radius: 1px; }
.ow-key.is-in { background: var(--ow-in); }
.ow-key.is-out { background: var(--ow-out); }
.ow-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--text-2); font-size: 12.5px; }
.ow-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ow-swatch { width: 10px; height: 10px; border-radius: 2px; }
.ow-swatch.is-in { background: var(--ow-in); }
.ow-swatch.is-out { background: var(--ow-out); }
.ow-toggle { margin-left: auto; }
.ow-toggle span { display: grid; }
.ow-chart-body { min-width: 0; }

/* Tables */
.ow-table-wrap { overflow-x: auto; margin: 0 -4px; }
.ow-table { min-width: 560px; }
.ow-table td.num, .ow-table .num { font-variant-numeric: tabular-nums; }
.ow-rtp { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.ow-rtp__meter { position: relative; width: 70px; height: 6px; border-radius: 3px; background: var(--bg-3); }
.ow-rtp__target { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line-strong); }
.ow-rtp__mark { position: absolute; top: -2px; left: calc(50% + var(--o, 0) * 50%); width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 2px var(--bg-1); animation: ow-pop 420ms var(--ease-spring) 400ms both; }
.ow-rtp__goal { color: var(--text-3); font-size: 12px; }

/* Horizontal bars (given out) */
.ow-bars { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ow-bars li { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, 1.4fr) auto; align-items: center; gap: 12px; font-size: 13px; }
.ow-bars__label { color: var(--text-2); }
.ow-bars__track { height: 8px; }
.ow-bars__fill { display: block; height: 100%; width: calc(var(--w, 0) * 100%); min-width: 2px; border-radius: 0 4px 4px 0; transform-origin: left; animation: ow-fill 800ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms + 200ms); }
.ow-bars__fill.is-out { background: var(--ow-out); }
.ow-bars__fill.is-in { background: var(--ow-in); }
.ow-bars__value { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.ow-verdict { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-m); background: var(--bg-2); font-size: 13px; line-height: 1.5; }
.ow-verdict span { display: grid; margin-top: 2px; }

/* Books */
.ow-books { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 16px; }
.ow-books__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; }
.ow-books.is-ok .ow-books__icon { background: color-mix(in srgb, var(--win) 14%, transparent); color: var(--win); }
.ow-books.is-bad { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--loss) 50%, transparent); }
.ow-books.is-bad .ow-books__icon { background: color-mix(in srgb, var(--loss) 14%, transparent); color: var(--loss); }
.ow-books h3 { font-size: 16px; font-weight: 800; }
.ow-books p { margin-top: 4px; color: var(--text-2); font-size: 13px; line-height: 1.55; }

/* Timeline of actions */
.ow-timeline { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ow-timeline li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; font-size: 13px; }
.ow-timeline__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--bg-3); color: var(--text-2); }
.ow-timeline__icon.is-credit, .ow-timeline__icon.is-unban { color: var(--win); }
.ow-timeline__icon.is-debit, .ow-timeline__icon.is-ban { color: var(--loss); }
.ow-timeline__icon.is-grant, .ow-timeline__icon.is-revoke { color: #ffd76b; }
.ow-timeline__detail { color: var(--text-2); word-break: break-word; }
.ow-timeline__meta { color: var(--text-3); font-size: 12px; }

/* Reports */
.ow-filter-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.ow-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.ow-count { min-width: 18px; padding: 0 5px; border-radius: 999px; background: rgb(255 255 255 / 0.12); font-size: 11px; line-height: 18px; text-align: center; }
.chip-filter[aria-pressed="true"] .ow-count { background: rgb(0 0 0 / 0.14); }
.ow-reports { display: grid; gap: 8px; transition: opacity 200ms; }
.ow-report {
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--bg-1);
  box-shadow: inset 0 0 0 1px var(--line);
  animation: ow-rise 460ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 40ms);
  transition: box-shadow 200ms, opacity 260ms, translate 260ms var(--ease-out), height 360ms var(--ease-out) 120ms;
}
.ow-report.is-open { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-2); }
.ow-report.is-leaving { opacity: 0; translate: 24px 0; }
.ow-report__summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.ow-report__summary:hover { background: rgb(255 255 255 / 0.02); }
.ow-report__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; }
.ow-report__icon.is-player { background: color-mix(in srgb, var(--loss) 14%, transparent); color: #ff8a9a; }
.ow-report__icon.is-bug { background: color-mix(in srgb, var(--info) 14%, transparent); color: var(--info); }
.ow-report__heading { min-width: 0; }
.ow-report__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ow-report__title span { color: var(--text-2); }
.ow-report__meta { margin-top: 2px; color: var(--text-3); font-size: 12.5px; }
.ow-report__chevron { display: grid; color: var(--text-3); transition: rotate 300ms var(--ease-out); }
.ow-report.is-open .ow-report__chevron { rotate: 180deg; }
.ow-report__details { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 380ms var(--ease-out); }
.ow-report.is-open .ow-report__details { grid-template-rows: 1fr; }
.ow-report__inner { display: grid; gap: 14px; min-height: 0; overflow: hidden; padding: 0 16px 0 68px; }
.ow-report__message { padding: 12px 14px; border-radius: var(--radius-m); background: var(--bg-2); color: var(--text); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.ow-report__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px 16px; margin: 0; font-size: 12.5px; }
.ow-report__facts dt { color: var(--text-3); }
.ow-report__facts dd { margin: 0; color: var(--text-2); overflow-wrap: anywhere; }
.ow-report__client { font-size: 11.5px; }
.ow-report__people { display: flex; flex-wrap: wrap; gap: 8px; }
.ow-report__note { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.ow-report__actions { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 16px; }
.ow-note, .ow-input {
  width: 100%;
  padding: 9px 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--bg-0);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  resize: vertical;
  transition: border-color 140ms;
}
.ow-note:focus, .ow-input:focus { outline: 0; border-color: var(--info); }
.ow-note::placeholder, .ow-input::placeholder { color: var(--text-3); }
.ow-link { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--bg-2); color: var(--text-2); font: 650 12.5px var(--font-ui); cursor: pointer; transition: background-color 140ms, color 140ms; }
.ow-link span { display: grid; }
.ow-link:hover { background: var(--bg-3); color: var(--text); }
.ow-status { flex: none; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap; transition: background-color 200ms, color 200ms; }
.ow-status.is-open { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.ow-status.is-reviewing { background: color-mix(in srgb, var(--info) 16%, transparent); color: var(--info); }
.ow-status.is-resolved { background: color-mix(in srgb, var(--win) 16%, transparent); color: var(--win); }
.ow-status.is-dismissed { background: var(--bg-3); color: var(--text-3); }

/* Players */
.ow-players { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.ow-players__list { position: sticky; top: calc(var(--topbar-h) + 16px); display: grid; gap: 10px; padding: 14px; border-radius: var(--radius-l); background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line); }
.ow-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border: 2px solid var(--line); border-radius: var(--radius-m); background: var(--bg-0); color: var(--text-3); transition: border-color 140ms; }
.ow-search:focus-within { border-color: var(--info); }
.ow-search span { display: grid; }
.ow-search__input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--text); font: 600 14px var(--font-ui); }
.ow-results { display: grid; gap: 2px; max-height: 60vh; margin: 0; padding: 0; overflow-y: auto; list-style: none; transition: opacity 200ms; }
.ow-results li { animation: ow-in 300ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 25ms); }
.ow-result { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: var(--radius-m); background: none; color: inherit; text-align: left; cursor: pointer; transition: background-color 140ms; }
.ow-result:hover { background: var(--bg-2); }
.ow-result.is-on { background: var(--bg-3); box-shadow: inset 2px 0 0 var(--accent); }
.ow-result__main { display: grid; min-width: 0; font-weight: 650; }
.ow-result__sub { color: var(--text-3); font-size: 12px; font-weight: 500; }
.ow-result__balance { color: var(--text-2); font-size: 12.5px; }
.ow-player { display: grid; gap: 14px; min-width: 0; transition: opacity 200ms; }
.ow-player > .ow-empty-state { border-radius: var(--radius-l); background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line); }
.ow-player__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 20px; border-radius: var(--radius-l); background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line); }
.ow-player__who { min-width: 0; }
.ow-player__who h3 { font-size: 20px; font-weight: 800; }
.ow-player__who p { margin-top: 4px; font-size: 13px; overflow-wrap: anywhere; }
.ow-player__money { text-align: right; }
.ow-player__money .ow-hero__line { justify-content: flex-end; margin-top: 2px; }
.ow-player__balance { font: 700 30px/1 var(--font-ui); }
.ow-suspended { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px !important; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--loss) 14%, transparent); color: #ff8a9a; font-weight: 650; }
.ow-suspended span { display: grid; }
.ow-suspended.is-muted { background: color-mix(in srgb, var(--info) 14%, transparent); color: var(--info); }
.ow-player__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ow-player__actions .btn span { display: grid; }
.ow .btn--danger, .modal .btn--danger { background: color-mix(in srgb, var(--loss) 18%, var(--bg-3)); color: #ffc2cb; }
.ow .btn--danger:hover { background: color-mix(in srgb, var(--loss) 28%, var(--bg-3)); }
.ow-player__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.ow-player__stats div { padding: 12px 14px; border-radius: var(--radius-m); background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line); }
.ow-player__stats dt { color: var(--text-3); font-size: 12px; }
.ow-player__stats dd { margin: 4px 0 0; font-weight: 700; }
.ow-ledger td { white-space: nowrap; }

/* Command sheet */
.modal--command { width: min(460px, 100%); }
.ow-command { display: grid; gap: 14px; }
.ow-command__who { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-m); background: var(--bg-2); }
.ow-command__who div { display: grid; min-width: 0; }
.ow-command__who .num { color: var(--text-2); font-size: 13px; }
.ow-field { display: grid; gap: 6px; }
.ow-field > span { color: var(--text-2); font-size: 13px; font-weight: 650; }
.ow-amount { display: flex; gap: 8px; }
.ow-amount .ow-input { flex: 1; font-size: 16px; font-weight: 700; }
.ow-amount .ow-input:disabled { opacity: 0.5; }
.ow-preview { min-height: 20px; color: var(--text-2); font-size: 13px; }
.ow-preview.is-bad { color: var(--loss); }
.ow-command__fine { color: var(--text-3); font-size: 12px; text-align: center; }

/* Hold to confirm: the fill runs for as long as the button must be held. */
.hold { position: relative; overflow: hidden; isolation: isolate; user-select: none; touch-action: none; }
.hold__fill { position: absolute; inset: 0; z-index: -1; background: rgb(255 255 255 / 0.3); transform-origin: left; scale: 0 1; transition: scale 200ms var(--ease-out); }
.hold.is-holding .hold__fill { scale: 1 1; transition: scale 900ms linear; }
.hold__label { position: relative; }
.hold--danger { background: var(--loss); color: #fff; }
.hold--danger:hover:not(:disabled) { background: color-mix(in srgb, var(--loss) 88%, #fff); }

/* Log */
.ow-action { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.ow-action span { display: grid; color: var(--text-3); }
.ow-action.is-credit span, .ow-action.is-unban span { color: var(--win); }
.ow-action.is-debit span, .ow-action.is-ban span { color: var(--loss); }
.ow-action.is-grant span, .ow-action.is-revoke span { color: #ffd76b; }
.ow-log__detail { min-width: 220px; max-width: 420px; color: var(--text-2); white-space: normal; overflow-wrap: anywhere; }
.ow-table td:first-child, .ow-table td:last-child { white-space: nowrap; }
.ow-source { padding: 3px 9px; border-radius: 999px; background: var(--bg-3); color: var(--text-2); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.ow-source.is-panel { background: color-mix(in srgb, #ffc53d 14%, transparent); color: #ffd76b; }

@media (max-width: 1100px) {
  .ow-grid { grid-template-columns: minmax(0, 1fr); }
  .ow-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .ow-players { grid-template-columns: minmax(0, 1fr); }
  .ow-players__list { position: static; }
  .ow-results { max-height: 280px; }
}
@media (max-width: 600px) {
  .ow-head__crest { width: 52px; height: 52px; border-radius: 16px; }
  .ow-live { margin-left: 0; }
  .ow-card, .ow-hero { padding: 16px; }
  .ow-report__inner { padding-left: 16px; }
  .ow-report__summary { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ow-report__chevron { display: none; }
  .ow-player__head { grid-template-columns: auto minmax(0, 1fr); }
  .ow-player__money { grid-column: 1 / -1; text-align: left; }
  .ow-player__money .ow-hero__line { justify-content: flex-start; }
  .report__kinds { grid-template-columns: minmax(0, 1fr); }
  .ow-bars li { grid-template-columns: minmax(0, 1fr) auto; }
  .ow-bars__track { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .pname.is-owner .pname__text, .owner-badge::after, .avatar.is-owner::before, .ow-live__dot { animation: none; }
  .ow-rise, .ow-view.is-switching > *, .ow-report, .ow-results li, .ow-bar, .ow-bars__fill, .ow-end, .ow-rtp__mark, .report__part, .report__done, .report__done-icon, .ow-tab__count { animation: none; }
  .ow-line { animation: none; stroke-dashoffset: 0; }
  .ow-area { animation: none; opacity: 0.1; }
  .ow-tabs__ink, .ow-report__details, .ow-report { transition: none; }
}
