/* Overview hero -------------------------------------------------------------------- */
.hero {
  padding: 26px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 61, 127, 0.22), transparent 65%);
  pointer-events: none;
}
.hero h2 {
  font-size: 30px;
  letter-spacing: -0.03em;
}
.hero .status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 18px;
  font-size: 15px;
  color: var(--text-2);
}
.hero .big {
  font-size: 54px;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.hero .big small {
  font-size: 22px;
  color: var(--muted);
  font-weight: 500;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.hero-meta div {
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.hero-meta b {
  display: block;
  font-size: 19px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hero-meta span {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

.health {
  display: grid;
  gap: 12px;
}
.health-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}
.health-row .grow {
  min-width: 0;
}
.health-row small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.cat-tile {
  padding: 13px 14px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: inherit;
  transition: 0.18s;
}
.cat-tile:hover {
  border-color: var(--line-3);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}
.cat-tile .i {
  font-size: 20px;
}
.cat-tile b {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.cat-tile span {
  font-size: 12.5px;
  color: var(--muted);
}

/* Players --------------------------------------------------------------------------- */
.player {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}
.player:hover,
.player:focus-visible {
  background: rgba(255, 255, 255, 0.045);
  outline: none;
  box-shadow: inset 3px 0 0 var(--brand);
}
.player:last-child {
  border: 0;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.player:first-child { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.player .id {
  width: 34px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 13px;
}
.ping {
  display: inline-flex;
  gap: 2px;
  align-items: flex-end;
  height: 14px;
}
.ping i {
  width: 3px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.14);
}
.ping.g i.on {
  background: var(--ok);
}
.ping.y i.on {
  background: var(--warn);
}
.ping.r i.on {
  background: var(--bad);
}

/* Logs ----------------------------------------------------------------------------------- */
.log {
  display: grid;
  grid-template-columns: 76px 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.15s;
}
.log:hover {
  background: rgba(255, 255, 255, 0.03);
}
.log .ts {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 12.5px;
  padding-top: 3px;
}
.log .ic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.05);
}
.log .ttl {
  font-weight: 600;
}
.log .msg {
  color: var(--text-2);
  font-size: 14px;
  margin-top: 1px;
  word-wrap: anywhere;
}
.log .who {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
}
.log.sev-warning {
  box-shadow: inset 3px 0 0 var(--warn);
}
.log.sev-critical {
  box-shadow: inset 3px 0 0 var(--bad);
  background: linear-gradient(90deg, rgba(240, 77, 95, 0.06), transparent 40%);
}
.log.fresh {
  animation: flash 1.6s var(--ease);
}
@keyframes flash {
  from {
    background: rgba(255, 61, 127, 0.18);
  }
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  transition: 0.16s;
}
.chip:hover {
  border-color: var(--line-3);
  color: var(--text);
}
.chip.on {
  background: var(--brand-soft);
  border-color: rgba(255, 61, 127, 0.5);
  color: #ff8fb3;
}
pre.json {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(6, 8, 13, 0.85);
  border: 1px solid var(--line);
  overflow: auto;
  max-height: 340px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #c9cfe2;
}

/* Tickets ---------------------------------------------------------------------------------- */
.tk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
}
@media (max-width: 1180px) {
  .tk-layout {
    grid-template-columns: 1fr;
  }
}
.msgs {
  display: flex;
  flex-direction: column;
}
.msg {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.msg:last-child {
  border: 0;
}
.msg.staff {
  background: linear-gradient(90deg, rgba(255, 61, 127, 0.05), transparent 60%);
}
.msg .meta {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}
.msg .who {
  font-weight: 600;
}
.msg .body {
  color: var(--text-2);
  white-space: pre-wrap;
  word-wrap: anywhere;
  margin-top: 2px;
}
.note {
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--warn-soft);
  border: 1px solid rgba(245, 165, 36, 0.25);
  font-size: 14px;
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 18px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line-2);
}
.timeline .ev {
  position: relative;
  padding: 6px 0 10px;
  font-size: 13.5px;
  color: var(--text-2);
}
.timeline .ev::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 12px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 2px solid var(--brand);
}

/* Store ------------------------------------------------------------------------------------- */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.product {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.product .tier {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.05);
}
.product h4 {
  font-size: 17px;
}
.product .price {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: auto;
}
.product.off {
  opacity: 0.55;
}
.steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.step i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
}
.step.done {
  color: var(--ok);
}
.step.done i {
  background: var(--ok-soft);
  border-color: rgba(61, 220, 132, 0.4);
}
.step.now {
  color: var(--text);
}
.step.now i {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: #ff8fb3;
}

/* Portal ------------------------------------------------------------------------------------ */
.profile-hero {
  padding: 26px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.tier-card {
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  gap: 14px;
}
.tier-card .ic {
  font-size: 26px;
}
.tier-card.on {
  border-color: rgba(61, 220, 132, 0.4);
  background: var(--ok-soft);
}

/* Settings ------------------------------------------------------------------------------------ */
.set-section {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.set-section:last-child {
  border: 0;
}
.set-section h4 {
  font-size: 15px;
  margin-bottom: 4px;
}
.set-section p {
  color: var(--muted);
  font-size: 13.5px;
}
@media (max-width: 900px) {
  .set-section {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
.integ {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; }
}

/* `.msg` is also the ticket chat bubble; keep game-log messages plain. */
.log .msg {
  display: block;
  padding: 0;
  border: 0;
  background: none;
}

/* Audit trail ---------------------------------------------------------------------------- */
.audit-day {
  padding: 10px 20px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.audit-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}
.audit-row .dot {
  margin-top: 7px;
  flex: none;
}
.audit-row .grow {
  min-width: 0;
}
.audit-detail {
  font-size: 12.5px;
  overflow-wrap: anywhere;
}
.audit-code {
  font-size: 11.5px;
  align-self: center;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .audit-code {
    display: none;
  }
}


/* Focus: the page container is focused after navigation for screen readers; it
   must never draw a frame around the whole view. */
#view:focus,
#view:focus-visible {
  outline: none;
}

/* Overview ------------------------------------------------------------------------------- */
.ov-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.4fr);
  gap: 28px;
  padding: 26px 28px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255, 61, 127, 0.1), transparent 55%), var(--panel);
}
.ov-hero .status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.ov-count {
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ov-count small {
  font-size: 24px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}
.ov-bar {
  margin-top: 18px;
}
.ov-mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.ov-mini div {
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.ov-mini b {
  display: block;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.ov-mini span {
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ov-hero-r {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ov-feed {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 8px;
}
.ov-event {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: var(--r-md);
  color: inherit;
  text-decoration: none;
  transition: background 0.15s;
}
.ov-event:hover {
  background: rgba(255, 255, 255, 0.04);
}
.ov-event .ic {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
}
.ov-event .grow {
  min-width: 0;
}
.ov-event b,
.ov-event small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ov-event small {
  color: var(--muted);
  font-size: 12.5px;
}
.ov-quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.ov-quick .btn {
  justify-content: flex-start;
}
.overview-stack > * + * {
  margin-top: 18px;
}
@media (max-width: 980px) {
  .ov-hero {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }
  .ov-count {
    font-size: 52px;
  }
}
@media (max-width: 420px) {
  .ov-quick {
    grid-template-columns: 1fr;
  }
}

.ov-chart-h {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ov-chart-h .label {
  margin-right: auto;
}
.ov-players {
  max-height: 340px;
  overflow: auto;
  padding-top: 8px;
}
.ov-players .player:first-child,
.ov-players .player:last-child {
  border-radius: 0;
}
.brand .mark,
.login-card .mark {
  letter-spacing: 0;
  line-height: 1;
}

/* Animated brand logo replaces the lettered mark. */
img.mark {
  display: block;
  object-fit: contain;
  background: none !important;
  box-shadow: none !important;
  border-radius: 10px;
}
.brand img.mark {
  width: 42px;
  height: 42px;
}
.login-card img.mark {
  width: 84px;
  height: 84px;
  border-radius: 16px;
}

/* Tickets -------------------------------------------------------------------------------- */
.tk-tabs {
  flex-wrap: wrap;
  align-self: flex-start;
}
.tk-board {
  overflow: hidden;
}
.tk-list {
  border-top: 1px solid var(--line);
}
.tk-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 20px 14px 17px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--c, transparent);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.tk-row:hover,
.tk-row:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}
.tk-row.closed {
  opacity: 0.66;
}
.tk-id {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim);
}
.tk-main {
  min-width: 0;
}
.tk-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
}
.tk-cat {
  color: var(--c);
  font-weight: 600;
}
.tk-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.tk-agent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.tk-agent .avatar {
  width: 20px;
  height: 20px;
  font-size: 9px;
}
.tk-age {
  min-width: 56px;
  text-align: right;
  font-size: 12.5px;
}
@media (max-width: 760px) {
  .tk-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .tk-id {
    display: none;
  }
  .tk-side {
    justify-content: flex-start;
  }
}
.drawer.tk-drawer {
  width: min(1080px, 100%);
}
.tk-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tk-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}
@media (max-width: 900px) {
  .tk-cols {
    grid-template-columns: 1fr;
  }
}
.tk-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 58vh;
  min-height: 160px;
  overflow: auto;
  padding: 4px 2px 8px;
}
.tk-msg {
  display: flex;
  gap: 12px;
}
.tk-bubble {
  min-width: 0;
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}
.tk-msg.staff .tk-bubble {
  background: rgba(255, 61, 127, 0.07);
  border-color: rgba(255, 61, 127, 0.25);
}
.tk-by {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}
.tk-text {
  margin-top: 4px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text-2);
}
.tk-att {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  font-size: 13px;
}
.tk-att a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--info);
}
.tk-att svg {
  width: 14px;
  height: 14px;
}
.badge.brandish {
  background: var(--brand-soft);
  color: #ff7aa6;
}
.tk-reply {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tk-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tk-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.tk-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.tk-qa small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.tk-qa div {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tk-note {
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: rgba(255, 182, 72, 0.07);
  border: 1px solid rgba(255, 182, 72, 0.2);
  font-size: 13px;
}
.tk-tl {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tk-ev {
  display: flex;
  gap: 10px;
  font-size: 13px;
}
.tk-ev .dot {
  margin-top: 6px;
  flex: none;
}
.tk-ev small {
  display: block;
  color: var(--muted);
}

/* Ticket settings */
.tk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px 16px;
}
.tk-toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.tk-toggle small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
}
.tk-cat > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  cursor: pointer;
  list-style: none;
}
.tk-cat > summary::-webkit-details-marker {
  display: none;
}
.tk-cat > summary .muted {
  margin-left: auto;
  font-size: 13px;
}
.tk-cat > summary .chev {
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform 0.2s;
}
.tk-cat[open] > summary .chev {
  transform: rotate(180deg);
}
.tk-cat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
  flex: none;
}
.tk-cat-emoji {
  font-size: 18px;
}
.tk-cat[open] > summary {
  border-bottom: 1px solid var(--line);
}
.tk-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(8, 10, 16, 0.4);
}
.tk-field-main {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 12px;
}
.tk-field-opts {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px 18px;
}
.tk-field-opts .field {
  width: 110px;
}
.tk-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}
@media (max-width: 1000px) {
  .tk-panel,
  .tk-field-main {
    grid-template-columns: 1fr;
  }
}
.tk-savebar {
  position: sticky;
  bottom: 14px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 61, 127, 0.4);
  background: var(--panel-solid);
  box-shadow: var(--shadow-2);
}

.tk-count {
  margin-left: 7px;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 11.5px;
  font-weight: 600;
}
.tk-count.bad {
  background: var(--bad-soft);
  color: #ff8c99;
}
.tk-setup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 32px 28px;
  max-width: 640px;
  margin: 0 auto;
}
.tk-setup-h {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.tk-setup-h > svg {
  width: 30px;
  height: 30px;
  color: var(--brand);
  flex: none;
}
.tk-setup-h b {
  font-size: 18px;
}
.tk-setup small,
.tk-step small {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 2px;
}
.tk-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.tk-step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--line-3);
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
}
.tk-step.done .tk-step-dot {
  background: var(--ok);
  border-color: var(--ok);
  color: #06210f;
}
.tk-step-dot svg {
  width: 14px;
  height: 14px;
}

.tk-emoji {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: none;
}

.tk-mini-preview {
  min-height: 0;
  padding: 12px;
}

/* Block editor */
.be {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.be-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.be-vars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.be-vars .chip {
  height: 26px;
  font-family: var(--mono);
  font-size: 12px;
  padding: 0 9px;
}
.be-preview {
  min-height: 80px;
}

/* Staff performance ---------------------------------------------------------------------- */
.st-mvp {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-color: rgba(242, 201, 76, 0.4);
  background: linear-gradient(110deg, rgba(242, 201, 76, 0.12), transparent 60%), var(--panel);
}
.st-mvp h2 {
  font-size: 22px;
  margin: 2px 0 4px;
}
.st-mvp .avatar {
  width: 54px;
  height: 54px;
  font-size: 18px;
}
.st-th {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  padding: 0;
}
.st-table th.num,
.st-table td.num,
.table th.num,
.table td.num {
  text-align: right;
  white-space: nowrap;
}
.st-table tr.click {
  cursor: pointer;
}
.st-table tr.click:hover,
.st-table tr.click:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}
.st-dist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.st-dist-row {
  display: grid;
  grid-template-columns: 44px 1fr 34px;
  align-items: center;
  gap: 10px;
}
.st-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 180px;
}
.st-bar {
  flex: 1;
  min-width: 3px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  gap: 1px;
}
.st-bar i {
  flex: 1;
  min-height: 2px;
  border-radius: 2px 2px 0 0;
}
.st-bar i.o,
.st-key i.o {
  background: rgba(255, 61, 127, 0.85);
}
.st-bar i.c,
.st-key i.c {
  background: rgba(61, 214, 198, 0.85);
}
.st-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.st-key i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-left: 8px;
}
.st-heat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.st-heat-hours,
.st-heat-row {
  display: grid;
  grid-template-columns: 30px repeat(24, minmax(0, 1fr));
  gap: 2px;
  align-items: center;
}
.st-heat-hours span {
  font-size: 10px;
  color: var(--dim);
  text-align: left;
}
.st-heat-row span {
  font-size: 11px;
}
.st-heat-row i {
  height: 18px;
  border-radius: 3px;
}
.st-hours {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 66px;
  margin-top: 10px;
}
.st-hours i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: rgba(61, 214, 198, 0.85);
}
.st-hours-l {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--dim);
  margin-top: 4px;
}
@media (max-width: 720px) {
  .st-mvp {
    flex-wrap: wrap;
  }
  .st-heat-row i {
    height: 12px;
  }
}

.tk-cat img.tk-emoji,
.badge img.tk-emoji {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
}
.tk-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
