:root {
  color-scheme: dark;
  --background: #0d0f12;
  --sidebar: #121419;
  --surface: #121419;
  --surface-hover: #1a1d22;
  --surface-active: #23272e;
  --text: #f2f3f5;
  --text-muted: #858b95;
  --text-subtle: #616771;
  --border: #202329;
  --positive: #63d49a;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
}

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 208px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  display: flex;
  flex-direction: column;
  top: 0;
  height: 100vh;
  padding: 14px 10px;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  gap: 11px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
}

.nav-item svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.nav-item span {
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-item:hover:not(.is-active) {
  background: var(--surface-hover);
  color: var(--text);
}

.nav-item.is-active {
  background: var(--surface-active);
  color: var(--text);
}

.nav-item.is-active::before {
  position: absolute;
  left: 0;
  width: 2px;
  height: 18px;
  border-radius: 2px;
  background: var(--text);
  content: "";
}

.nav-item:focus-visible,
.chart-switch__button:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 2px;
}

.page {
  min-width: 0;
  min-height: 100vh;
  padding: 42px clamp(24px, 4vw, 64px);
  overflow-x: clip;
}

.dashboard {
  width: min(100%, 1280px);
  margin: 0 auto;
}

.empty-page {
  width: min(100%, 1280px);
  margin: 0 auto;
}

.users-page,
.user-detail-page {
  width: min(100%, 1280px);
  margin: 0 auto;
}

.user-overview {
  margin-bottom: 14px;
}

.user-metrics {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.user-metric {
  position: relative;
  display: flex;
  min-height: 158px;
  flex-direction: column;
  justify-content: flex-start;
  padding: 16px;
  border-radius: 13px;
  overflow: hidden;
  background: var(--surface);
}

.user-metric__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-metric__label {
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
}

.user-metric__change {
  margin-left: auto;
  color: var(--positive);
  font-size: 0.625rem;
  font-weight: 600;
  white-space: nowrap;
}

.user-metric__value {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  color: var(--text);
  font-size: 1.9rem;
  font-weight: 650;
  letter-spacing: -0.05em;
}

.user-metric__chart path {
  stroke: var(--text-muted);
}

.user-metric--online .user-metric__chart path,
.user-metric--today .user-metric__chart path {
  stroke: var(--positive);
}

.brand-breakdown {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.brand-share {
  display: flex;
  min-height: 39px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--background);
  color: var(--text-muted);
}

.brand-share.is-leading {
  color: var(--text);
}

.brand-share__name {
  display: grid;
  min-width: 0;
  grid-template-columns: 36px auto;
  align-items: center;
  gap: 8px;
  font-size: 0.625rem;
  font-weight: 650;
}

.brand-share strong {
  color: inherit;
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  width: 25px;
  height: 18px;
  justify-self: center;
}

.brand-logo--nvidia {
  color: #74b71b;
}

.brand-logo--amd {
  width: 26px;
  color: #ed1c24;
}

.brand-logo--intel {
  width: 38px;
  height: 22px;
  color: #0071c5;
  transform: translateX(-2px);
}

.accounts-panel {
  padding: 18px;
  border-radius: 13px;
  background: var(--surface);
}

.accounts-toolbar,
.accounts-filters,
.online-filter {
  display: flex;
  align-items: center;
}

.accounts-toolbar {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.accounts-filters {
  gap: 10px;
}

.user-search {
  position: relative;
  display: flex;
  width: min(100%, 340px);
  align-items: center;
}

.user-search svg {
  position: absolute;
  left: 12px;
  width: 17px;
  height: 17px;
  color: var(--text-subtle);
  pointer-events: none;
}

.user-search input {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  outline: none;
  background: var(--background);
  color: var(--text);
  font: inherit;
  font-size: 0.75rem;
}

.user-search input {
  width: 100%;
  padding: 0 12px 0 38px;
}

.user-search input::placeholder {
  color: var(--text-subtle);
}

.user-search input:focus {
  outline: none;
  box-shadow: none;
}

.online-filter {
  min-height: 40px;
  gap: 8px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--background);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  white-space: nowrap;
}

.online-filter input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.online-filter__check {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid #3a3f48;
  border-radius: 4px;
}

.online-filter input:checked + .online-filter__check {
  border-color: var(--positive);
  background: var(--positive);
}

.online-filter input:checked + .online-filter__check::after {
  width: 7px;
  height: 4px;
  border-bottom: 2px solid #0d0f12;
  border-left: 2px solid #0d0f12;
  content: "";
  transform: translateY(-1px) rotate(-45deg);
}

.accounts-table-wrap {
  overflow-x: auto;
}

.accounts-table {
  width: 100%;
  min-width: 900px;
  border-spacing: 0 7px;
  border-collapse: separate;
  text-align: left;
}

.accounts-table th {
  padding: 0 12px 4px;
  color: var(--text-subtle);
  font-size: 0.6875rem;
  font-weight: 500;
}

.accounts-table td {
  height: 56px;
  padding: 0 12px;
  background: var(--background);
  color: var(--text-muted);
  font-size: 0.75rem;
}

.accounts-table tbody tr {
  cursor: pointer;
  outline: none;
}

.accounts-table tbody tr:hover td,
.accounts-table tbody tr:focus-visible td {
  background: var(--surface-hover);
  color: var(--text);
}

.accounts-table tbody tr:focus-visible td {
  box-shadow: inset 0 1px 0 #454b55, inset 0 -1px 0 #454b55;
}

.accounts-table tbody tr:focus-visible td:first-child {
  box-shadow: inset 1px 0 0 #454b55, inset 0 1px 0 #454b55, inset 0 -1px 0 #454b55;
}

.accounts-table tbody tr:focus-visible td:last-child {
  box-shadow: inset -1px 0 0 #454b55, inset 0 1px 0 #454b55, inset 0 -1px 0 #454b55;
}

.accounts-table td:first-child {
  border-radius: 9px 0 0 9px;
}

.accounts-table td:last-child {
  border-radius: 0 9px 9px 0;
}

.accounts-table th:nth-child(n + 6),
.accounts-table td:nth-child(n + 6) {
  text-align: right;
  white-space: nowrap;
}

.accounts-table th:nth-child(3),
.accounts-table td:nth-child(3),
.accounts-table th:nth-child(4),
.accounts-table td:nth-child(4),
.accounts-table th:nth-child(5),
.accounts-table td:nth-child(5),
.accounts-table th:nth-child(6),
.accounts-table td:nth-child(6) {
  white-space: nowrap;
}

.accounts-table th:nth-child(6),
.accounts-table td:nth-child(6) {
  display: none;
}

.accounts-table td:first-child strong,
.accounts-table td:first-child span {
  display: block;
}

.accounts-table td:first-child strong {
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
}

.user-earned {
  color: var(--positive) !important;
  font-weight: 600;
}

.user-power.is-custom {
  color: var(--text);
  font-weight: 600;
}

.user-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-subtle);
  font-size: 0.6875rem;
}

.user-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-subtle);
  content: "";
}

.user-status.is-online {
  color: var(--positive);
}

.user-status.is-online::before {
  background: var(--positive);
}

.users-empty {
  margin: 36px 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
  text-align: center;
}

.users-list-footer {
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

.show-more-button,
.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--background);
  color: var(--text-muted);
  cursor: pointer;
}

.show-more-button {
  min-height: 40px;
  gap: 7px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
}

.show-more-button svg {
  width: 16px;
  height: 16px;
}

.show-more-button:hover,
.back-button:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.show-more-button:focus-visible,
.back-button:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 2px;
}

.user-detail-header {
  align-items: center;
}

.user-detail-heading {
  display: flex;
  align-items: center;
  gap: 18px;
}

.back-button {
  width: auto;
  height: 42px;
  flex: 0 0 auto;
  gap: 6px;
  padding: 0 14px 0 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

.back-button svg {
  width: 21px;
  height: 21px;
}

.user-detail-status {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--surface);
}

.user-detail-card {
  padding: 22px;
  border-radius: 13px;
  background: var(--surface);
}

.user-detail-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.user-detail-identity > div {
  display: flex;
  min-height: 46px;
  flex-direction: column;
  justify-content: center;
}

.user-detail-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 12px;
  background: var(--background);
  color: var(--text-muted);
}

.user-detail-avatar svg {
  display: block;
  width: 23px;
  height: 23px;
}

.user-detail-identity strong,
.user-detail-identity div > span {
  display: block;
}

.user-detail-identity strong {
  font-size: 1rem;
  font-weight: 650;
}

.user-detail-identity div > span {
  margin-top: 3px;
  color: var(--text-subtle);
  font-size: 0.6875rem;
}

.user-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.user-detail-grid article {
  display: flex;
  min-width: 0;
  min-height: 100px;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  border-radius: 10px;
  background: var(--background);
}

.user-detail-grid span,
.user-detail-grid strong {
  display: block;
}

.user-detail-grid span {
  color: var(--text-subtle);
  font-size: 0.6875rem;
  font-weight: 500;
}

.user-detail-grid strong {
  margin-top: 14px;
  overflow: hidden;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-detail-grid .user-detail-earned {
  color: var(--positive);
}

.user-control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 14px;
  margin-top: 14px;
}

.allocation-panel,
.temperature-panel {
  min-width: 0;
  padding: 20px;
  border-radius: 13px;
  background: var(--surface);
}

.profile-panel-header,
.profile-panel-title,
.allocation-device__header,
.allocation-device__name,
.temperature-device__top {
  display: flex;
  align-items: center;
}

.profile-panel-header {
  justify-content: space-between;
  gap: 18px;
}

.profile-panel-title {
  min-width: 0;
  gap: 10px;
}

.profile-panel-title h2,
.profile-panel-title p {
  margin: 0;
}

.profile-panel-title h2 {
  font-size: 0.9375rem;
  font-weight: 650;
}

.profile-panel-title p {
  margin-top: 4px;
  color: var(--text-subtle);
  font-size: 0.6875rem;
  line-height: 1.45;
}

.profile-panel-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: var(--background);
  color: var(--text-muted);
}

.profile-panel-icon svg {
  display: block;
  width: 19px;
  height: 19px;
}

.allocation-devices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.allocation-device,
.boost-amount-control,
.temperature-device {
  border-radius: 10px;
  background: var(--background);
}

.allocation-device {
  padding: 14px;
}

.allocation-device__header,
.temperature-device__top {
  justify-content: space-between;
  gap: 10px;
}

.allocation-device__name {
  gap: 7px;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 650;
}

.allocation-device__name svg {
  width: 17px;
  height: 17px;
  color: var(--text-muted);
}

.allocation-device output {
  color: var(--positive);
  font-size: 0.875rem;
  font-weight: 700;
}

.allocation-range,
.boost-amount-control input {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 18px;
  border: 0;
  outline: 0;
  background: transparent;
  cursor: pointer;
}

.allocation-range {
  margin: 16px 0 12px;
}

.allocation-range::-webkit-slider-runnable-track,
.boost-amount-control input::-webkit-slider-runnable-track {
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: #31353d;
}

.allocation-range::-webkit-slider-thumb,
.boost-amount-control input::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -4.5px;
  border: 0;
  border-radius: 50%;
  background: var(--positive);
}

.allocation-range::-moz-range-track,
.boost-amount-control input::-moz-range-track {
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: #31353d;
}

.allocation-range::-moz-range-thumb,
.boost-amount-control input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: var(--positive);
}

.boost-setting,
.boost-toggle,
.boost-threshold {
  display: flex;
  align-items: center;
}

.boost-setting {
  justify-content: space-between;
  gap: 10px;
  color: var(--text-subtle);
  font-size: 0.625rem;
}

.boost-toggle {
  gap: 7px;
  cursor: pointer;
}

.boost-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.boost-toggle__box {
  position: relative;
  width: 25px;
  height: 14px;
  border-radius: 999px;
  background: #31353d;
}

.boost-toggle__box::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  content: "";
}

.boost-toggle input:checked + .boost-toggle__box {
  background: rgba(99, 212, 154, 0.22);
}

.boost-toggle input:checked + .boost-toggle__box::after {
  left: 13px;
  background: var(--positive);
}

.boost-threshold {
  gap: 5px;
}

.boost-threshold select {
  padding: 3px 18px 3px 7px;
  border: 0;
  border-radius: 6px;
  outline: 0;
  background: #272a30;
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.boost-amount-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 16px;
  margin-top: 10px;
  padding: 13px 14px;
}

.boost-amount-control > span strong {
  display: block;
}

.boost-amount-control > span strong {
  font-size: 0.75rem;
  font-weight: 650;
}

.boost-amount-control output {
  color: var(--positive);
  font-size: 0.8125rem;
  font-weight: 700;
}

.boost-amount-control input {
  grid-column: 1 / -1;
  margin: 4px 0 0;
}

.temperature-devices {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.temperature-device {
  min-height: 126px;
  padding: 14px;
}

.temperature-device__top > span:first-child {
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 650;
}

.temperature-state {
  color: var(--positive);
  font-size: 0.625rem;
  font-weight: 650;
}

.temperature-state.is-warm {
  color: #f1b85b;
}

.temperature-state.is-hot {
  color: #ef767a;
}

.temperature-value {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin: 18px 0 0;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.temperature-value small {
  color: var(--text-muted);
  font-size: 0.5em;
  letter-spacing: 0;
}

.temperature-readings {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.usage-reading {
  display: grid;
  gap: 5px;
  text-align: right;
}

.usage-reading span {
  color: var(--text-subtle);
  font-size: 0.625rem;
}

.usage-reading strong {
  color: var(--positive);
  font-size: 1.15rem;
  line-height: 1;
}

.page-header {
  position: sticky;
  z-index: 15;
  top: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding: 10px 0;
  background: rgba(13, 15, 18, 0.94);
  backdrop-filter: blur(14px);
}

.page-header h1,
.status,
.coin-summary p,
.coin-summary h2,
.info-summary p,
.chart-panel p {
  margin: 0;
}

.page-header h1 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.status,
.info-summary__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.status__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--positive);
  box-shadow: 0 0 0 4px rgba(99, 212, 154, 0.09);
}

.status.is-error {
  color: #ff8c8c;
}

.status.is-error .status__dot {
  background: #ff6262;
  box-shadow: 0 0 0 4px rgba(255, 98, 98, 0.1);
}

#home-workers-list:not(.is-ready),
.devices-panel tbody:not(.is-ready) {
  visibility: hidden;
}

.mining-overview {
  display: grid;
  width: 100%;
  min-height: 370px;
  grid-template-columns: minmax(400px, 500px) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.analytics-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.summary-column {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}

.coin-summaries {
  display: grid;
  min-height: 330px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.coin-stack,
.info-stack {
  display: grid;
  min-height: 0;
  gap: 14px;
}

.coin-stack {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.info-stack {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.coin-summary,
.info-summary,
.chart-panel {
  min-width: 0;
  border-radius: 13px;
  background: var(--surface);
}

.coin-summary {
  position: relative;
  min-height: 0;
  padding: 16px;
  overflow: hidden;
}

.coin-summary__header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.coin-summary__header h2 {
  font-size: 0.8125rem;
  font-weight: 600;
}

.coin-summary__header p {
  margin-top: 2px;
  color: var(--text-subtle);
  font-size: 0.625rem;
}

.coin-icon {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
}

.coin-icon svg,
.coin-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.coin-icon--prl {
  padding: 5px;
  background: #eef0f3;
}

.coin-summary__change {
  color: var(--positive);
  font-size: 0.6875rem;
  font-weight: 600;
}

.coin-summary__rate {
  position: relative;
  z-index: 1;
  margin-top: 22px !important;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.coin-summary__rate span {
  color: var(--text-muted);
  font-size: 0.45em;
  font-weight: 500;
  letter-spacing: 0;
}

.mini-chart {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 43px;
  opacity: 0.72;
}

.mini-chart path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.coin-summary--xmr .mini-chart path {
  stroke: #ff6600;
}

.coin-summary--prl .mini-chart path {
  stroke: #d9dde3;
}

.info-summary {
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
}

.info-summary--clients {
  position: relative;
  justify-content: flex-start;
  overflow: hidden;
}

.info-summary__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.info-summary__heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.info-summary__title {
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
}

.online-change {
  color: var(--positive);
  font-size: 0.6875rem;
  font-weight: 600;
}

.dashboard-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--background);
  color: var(--text-muted);
}

.dashboard-icon svg {
  width: 17px;
  height: 17px;
}

.info-summary__label {
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 500;
}

.info-summary__status {
  gap: 5px;
  color: var(--text-subtle);
  font-size: 0.5625rem;
}

.info-summary__status .status__dot {
  width: 5px;
  height: 5px;
  box-shadow: none;
}

.info-summary__status strong {
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 650;
}

.online-value {
  position: relative;
  z-index: 1;
  margin-top: 22px;
}

.online-value strong {
  color: #fff;
  font-size: 1.9rem;
  font-weight: 650;
  letter-spacing: -0.06em;
}

.online-chart path {
  stroke: var(--positive);
}

.mined-period-label {
  color: var(--positive);
  font-size: 0.6875rem;
  font-weight: 600;
}

.balance-list {
  display: grid;
  gap: 10px;
}

.balance-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 30px;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
}

.balance-row--no-icon {
  grid-template-columns: minmax(0, 1fr) auto;
}

.balance-coin-icon {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
}

.balance-coin-icon svg,
.balance-coin-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.balance-coin-icon--prl {
  padding: 4px;
  background: #eef0f3;
}

.balance-row p {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.balance-row strong {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.balance-row p span {
  color: var(--text-subtle);
  font-size: 0.5625rem;
  font-weight: 600;
}

.balance-row__usd {
  color: var(--positive);
  font-size: 0.6875rem;
  font-weight: 650;
  white-space: nowrap;
}

.devices-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px 12px;
  border-radius: 13px;
  background: var(--surface);
}

.device-period {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 8px;
  background: #191c21;
}

.device-period__button {
  min-width: 36px;
  min-height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-subtle);
  cursor: pointer;
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
}

.device-period__button:hover {
  color: var(--text);
}

.device-period__button.is-active {
  background: #2a2e35;
  color: var(--text);
}

.device-period__button:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 2px;
}

.devices-panel {
  min-width: 0;
  padding: 0;
}

.devices-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  margin-bottom: 8px;
}

.devices-panel__title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.devices-panel__icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: var(--background);
  color: var(--text-muted);
}

.devices-panel__icon svg {
  width: 17px;
  height: 17px;
}

.devices-panel h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.devices-table-wrap {
  overflow-x: auto;
}

.devices-table {
  width: 100%;
  min-width: 0;
  border-spacing: 0 6px;
  border-collapse: separate;
  text-align: left;
}

.devices-table th {
  padding: 0 8px 4px;
  color: var(--text-subtle);
  font-size: 0.625rem;
  font-weight: 500;
}

.devices-table th:first-child {
  padding-left: 16px;
}

.devices-table th:last-child {
  padding-right: 16px;
}

.devices-table th:nth-child(2),
.devices-table td:nth-child(2) {
  width: 76px;
  text-align: center;
  white-space: nowrap;
}

.devices-table th:nth-child(3),
.devices-table td:nth-child(3) {
  width: 86px;
  text-align: right;
  white-space: nowrap;
}

.devices-table td {
  height: 48px;
  padding: 0 8px;
  background: var(--background);
  color: var(--text-muted);
  font-size: 0.75rem;
}

.devices-table td:first-child {
  padding-left: 16px;
  border-radius: 9px 0 0 9px;
}

.devices-table td:last-child {
  padding-right: 16px;
  border-radius: 0 9px 9px 0;
}

.device-name {
  display: flex;
  align-items: center;
  gap: 7px;
}

.device-name svg {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
}

.device-name svg.amd-icon {
  width: 25px;
  height: 25px;
}

.device-name strong {
  color: var(--text);
  font-size: 0.6875rem;
  font-weight: 600;
}

.device-earned {
  color: var(--text);
  font-size: 0.6875rem;
  font-weight: 600;
}

.users-panel {
  width: 100%;
  padding: 16px 16px 12px;
  border-radius: 13px;
  background: var(--surface);
}

.users-panel__header,
.users-panel__title {
  display: flex;
  align-items: center;
}

.users-panel__header {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.users-panel__title {
  gap: 8px;
}

.users-panel__icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: var(--background);
  color: var(--text-muted);
}

.users-panel__icon svg {
  width: 17px;
  height: 17px;
}

.users-panel h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.users-panel__count {
  color: var(--positive);
  font-size: 0.6875rem;
  font-weight: 600;
}

.users-table-wrap {
  overflow-x: auto;
}

.users-table {
  width: 100%;
  min-width: 400px;
  border-spacing: 0 6px;
  border-collapse: separate;
  text-align: left;
}

.users-table th {
  padding: 0 8px 4px;
  color: var(--text-subtle);
  font-size: 0.6875rem;
  font-weight: 500;
}

.users-table th:first-child {
  padding-left: 16px;
}

.users-table th:last-child {
  padding-right: 16px;
}

.users-table td {
  height: 48px;
  padding: 0 8px;
  background: var(--background);
  color: var(--text-muted);
  font-size: 0.75rem;
}

.users-table td:first-child {
  padding-left: 16px;
  border-radius: 9px 0 0 9px;
}

.users-table td:last-child {
  padding-right: 16px;
  border-radius: 0 9px 9px 0;
}

.users-table th:nth-child(2),
.users-table td:nth-child(2),
.users-table th:nth-child(3),
.users-table td:nth-child(3) {
  text-align: center;
  white-space: nowrap;
}

.users-table th:last-child,
.users-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.users-table strong {
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
}



.chart-panel {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 22px 24px 17px;
  border-radius: 13px;
  overflow: hidden;
}

.chart-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.chart-panel__metric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.chart-panel__title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-panel__title p {
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
}

.chart-panel__label {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.chart-panel__value {
  margin-top: 0 !important;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.chart-panel__value small {
  color: var(--text-muted);
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0;
}

.chart-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.chart-switch,
.chart-period {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 8px;
  background: #191c21;
}

.chart-switch__button,
.chart-period__button {
  min-width: 45px;
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-subtle);
  cursor: pointer;
  font-size: 0.6875rem;
  font-weight: 600;
}

.chart-period__button {
  min-width: 36px;
  padding-inline: 8px;
}

.chart-switch__button:hover,
.chart-period__button:hover {
  color: var(--text);
}

.chart-switch__button.is-active,
.chart-period__button.is-active {
  background: #292d34;
  color: var(--text);
}

.sparkline {
  --chart-color: #ff6600;
  position: relative;
  min-height: 150px;
  flex: 1;
  margin-top: 27px;
  cursor: crosshair;
  touch-action: none;
}

.sparkline svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.sparkline__area {
  fill: url(#hashrate-fill);
}

.sparkline__stop {
  stop-color: var(--chart-color);
}

.sparkline__line {
  fill: none;
  stroke: var(--chart-color);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.sparkline__cursor,
.sparkline__point {
  opacity: 0;
  pointer-events: none;
}

.sparkline__cursor {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.sparkline__point {
  fill: var(--chart-color);
  stroke: var(--surface);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.sparkline.is-hovered .sparkline__cursor,
.sparkline.is-hovered .sparkline__point,
.sparkline.is-hovered .chart-tooltip {
  opacity: 1;
}

.chart-tooltip {
  position: absolute;
  top: 0;
  z-index: 20;
  min-width: max-content;
  padding: 7px 9px;
  border-radius: 7px;
  background: #272b32;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
  color: var(--text);
  font-size: 0.6875rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 100ms ease, visibility 100ms ease;
}

.sparkline.is-hovered .chart-tooltip,
.statistics-chart.is-hovered .statistics-chart-tooltip {
  visibility: visible;
}

.chart-tooltip__date {
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.chart-tooltip span {
  margin-right: 7px;
  color: var(--text-muted);
}

.chart-tooltip__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chart-tooltip__label {
  color: var(--text-muted);
}

.chart-tooltip__value {
  color: var(--text);
  font-weight: 600;
}

.chart-tooltip__change {
  color: var(--positive);
  font-weight: 600;
}

.chart-hours--hourly {
  display: grid;
  height: 28px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding-top: 5px;
  color: var(--text-subtle);
}

.chart-hours--hourly span {
  position: relative;
  min-width: 0;
  text-align: center;
  color: var(--text-subtle);
  font-size: 0.625rem;
  font-weight: 400;
  line-height: 1;
}

.chart-hours--hourly span::before {
  display: block;
  width: 1px;
  height: 4px;
  margin: 0 auto 4px;
  background: #343840;
  content: "";
}

[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .user-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .user-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-control-grid {
    grid-template-columns: 1fr;
  }

  .temperature-devices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mining-overview {
    grid-template-columns: 1fr;
  }

  .summary-column {
    width: min(100%, 620px);
  }

  .coin-summaries {
    width: 100%;
    min-height: 370px;
  }
}

@media (max-width: 680px) {
  .app-shell {
    display: block;
  }

  .user-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    position: fixed;
    z-index: 20;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    height: auto;
    padding: 8px max(10px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    border-top: 1px solid var(--border);
    border-right: 0;
    background: rgba(18, 20, 25, 0.96);
    backdrop-filter: blur(16px);
  }

  .sidebar__nav {
    flex-direction: row;
    justify-content: space-around;
    gap: 6px;
  }

  .nav-item {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    min-height: 54px;
    gap: 4px;
    padding: 5px 8px;
    text-align: center;
  }

  .nav-item svg {
    width: 20px;
    height: 20px;
  }

  .nav-item span {
    font-size: 0.625rem;
  }

  .nav-item.is-active::before {
    top: -8px;
    left: 50%;
    width: 24px;
    height: 2px;
    transform: translateX(-50%);
  }

  .page {
    padding: 24px 16px calc(92px + env(safe-area-inset-bottom));
  }

  .page-header {
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }

  .devices-grid {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .coin-summaries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-panel {
    min-height: 290px;
    padding: 19px 18px 15px;
  }

  .chart-panel__header {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .chart-controls {
    justify-content: space-between;
  }

  .chart-switch,
  .chart-period {
    flex: 1;
  }

  .chart-switch__button,
  .chart-period__button {
    flex: 1;
  }

  .sparkline {
    min-height: 135px;
    margin-top: 18px;
  }

  .chart-hours--hourly span {
    font-size: 0.5625rem;
  }

  .accounts-panel {
    padding: 14px;
  }

  .user-metrics {
    gap: 10px;
  }

  .user-metric {
    min-height: 150px;
    padding: 14px;
  }

  .user-overview {
    gap: 10px;
    margin-bottom: 10px;
  }

  .accounts-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .user-search {
    width: 100%;
  }

  .accounts-filters {
    justify-content: space-between;
  }

}

@media (max-width: 520px) {
  .page {
    padding-inline: 12px;
  }

  .page-header .status {
    font-size: 0.75rem;
  }

  .user-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-metric--today {
    grid-column: 1 / -1;
  }

  .user-detail-card {
    padding: 14px;
  }

  .user-detail-grid {
    grid-template-columns: 1fr;
  }

  .profile-panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .allocation-devices,
  .temperature-devices {
    grid-template-columns: 1fr;
  }

  .coin-summaries {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .coin-stack {
    grid-template-rows: repeat(2, 150px);
  }

  .info-stack {
    grid-template-rows: repeat(2, 150px);
  }

  .users-panel,
  .devices-grid {
    padding: 12px;
  }

  .users-table,
  .devices-table {
    min-width: 0;
    border-spacing: 0 8px;
  }

  .users-table thead,
  .devices-table thead {
    display: none;
  }

  .users-table tbody,
  .devices-table tbody {
    display: grid;
    gap: 8px;
  }

  .users-table tr,
  .devices-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--background);
  }

  .users-table td,
  .devices-table td,
  .users-table td:first-child,
  .users-table td:last-child,
  .devices-table td:first-child,
  .devices-table td:last-child {
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  .users-table td:first-child,
  .devices-table td:first-child {
    grid-column: 1 / -1;
    margin-bottom: 12px;
  }

  .users-table tr {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .users-table td:nth-child(2),
  .devices-table td:nth-child(2) {
    width: auto;
    text-align: left;
  }

  .users-table td:last-child,
  .devices-table td:last-child {
    width: auto;
    text-align: right;
  }

  .users-table td:nth-child(n + 2)::before,
  .devices-table td:nth-child(n + 2)::before {
    display: block;
    margin-bottom: 3px;
    color: var(--text-subtle);
    font-size: 0.5625rem;
    font-weight: 500;
  }

  .users-table td:nth-child(2)::before {
    content: "XMR";
  }

  .users-table td:nth-child(3)::before {
    content: "PRL";
  }

  .users-table td:nth-child(4)::before,
  .devices-table td:nth-child(2)::before {
    content: "Time";
  }

  .users-table td:nth-child(3) {
    text-align: center;
  }

  .devices-table td:nth-child(3)::before {
    content: "Earned";
  }

  .device-name svg.amd-icon {
    width: 29px;
    height: 29px;
  }

  .chart-panel {
    padding-inline: 14px;
  }

  .accounts-panel {
    padding: 12px;
  }

  .accounts-filters {
    align-items: stretch;
    flex-direction: column;
  }

  .online-filter {
    width: 100%;
  }

  .accounts-table {
    min-width: 0;
    border-spacing: 0;
  }

  .accounts-table thead {
    display: none;
  }

  .accounts-table tbody {
    display: grid;
    gap: 8px;
  }

  .accounts-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    border-radius: 10px;
    background: var(--background);
  }

  .accounts-table td,
  .accounts-table td:first-child,
  .accounts-table td:last-child {
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  .accounts-table td:first-child {
    min-width: 0;
  }

  .accounts-table td:nth-child(2) {
    text-align: right;
  }

  .accounts-table td:nth-child(n + 3)::before {
    display: block;
    margin-bottom: 3px;
    color: var(--text-subtle);
    font-size: 0.5625rem;
  }

  .accounts-table td:nth-child(3),
  .accounts-table td:nth-child(5),
  .accounts-table td:nth-child(6),
  .accounts-table td:nth-child(7),
  .accounts-table td:nth-child(9) {
    text-align: left;
  }

  .accounts-table td:nth-child(4),
  .accounts-table td:nth-child(8),
  .accounts-table td:nth-child(10) {
    text-align: right;
  }

  .accounts-table td:nth-child(5) {
    grid-column: 1 / -1;
  }

  .accounts-table td:nth-child(3)::before {
    content: "CPU";
  }

  .accounts-table td:nth-child(4)::before {
    content: "GPU";
  }

  .accounts-table td:nth-child(5)::before {
    content: "Power";
  }

  .accounts-table td:nth-child(6)::before {
    content: "System";
  }

  .accounts-table td:nth-child(7)::before {
    content: "XMR";
  }

  .accounts-table td:nth-child(8)::before {
    content: "PRL";
  }

  .accounts-table td:nth-child(9)::before {
    content: "Earned";
  }

  .accounts-table td:nth-child(10)::before {
    content: "Last seen";
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-item,
  .chart-tooltip,
  .chart-switch__button,
  .chart-period__button,
  .device-period__button {
    transition: none;
    animation: none;
  }
}

.statistics-page {
  width: min(100%, 1280px);
  margin: 0 auto;
}

.statistics-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.statistics-summary-card,
.statistics-chart-card {
  border-radius: 13px;
  background: var(--surface);
}

.statistics-summary-card {
  min-width: 0;
  min-height: 138px;
  padding: 17px;
}

.statistics-summary-card__top,
.statistics-chart-header,
.statistics-chart-actions,
.statistics-period,
.statistics-coin-switch {
  display: flex;
  align-items: center;
}

.statistics-summary-card__top {
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.statistics-summary-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--background);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 750;
}

.statistics-summary-icon--money {
  color: var(--positive);
}

.statistics-summary-icon--prl {
  color: #9d8cff;
}

.statistics-summary-card > strong {
  display: block;
  margin-top: 18px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 680;
  letter-spacing: -0.045em;
}

.statistics-summary-card > strong em {
  color: var(--text-muted);
  font-size: 0.48em;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
}

.statistics-summary-card > small {
  display: block;
  margin-top: 7px;
  color: var(--text-subtle);
  font-size: 0.6875rem;
}

.statistics-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.statistics-chart-card {
  min-width: 0;
  padding: 20px 20px 15px;
}

.statistics-chart-header {
  min-height: 52px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.statistics-chart-header > div:first-child > span {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.statistics-chart-header > div:first-child > strong {
  display: block;
  margin-top: 8px;
  font-size: 1.45rem;
  font-weight: 680;
  letter-spacing: -0.04em;
}

.statistics-chart-header strong small {
  color: var(--text-muted);
  font-size: 0.52em;
  font-weight: 600;
  letter-spacing: 0;
}

.statistics-chart-actions {
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.statistics-period,
.statistics-coin-switch {
  gap: 3px;
  padding: 3px;
  border-radius: 8px;
  background: #191c21;
}

.stats-period__button,
.stats-coin__button {
  min-width: 36px;
  min-height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-subtle);
  cursor: pointer;
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 650;
}

.stats-coin__button {
  min-width: 42px;
}

.stats-period__button:hover,
.stats-coin__button:hover,
.stats-period__button.is-active,
.stats-coin__button.is-active {
  color: var(--text);
}

.stats-period__button.is-active,
.stats-coin__button.is-active {
  background: #292d34;
}

.stats-period__button:focus-visible,
.stats-coin__button:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 2px;
}

.statistics-chart {
  position: relative;
  height: 230px;
  margin-top: 22px;
  cursor: crosshair;
  touch-action: none;
}

.statistics-chart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.statistics-chart__grid line {
  stroke: rgba(255, 255, 255, 0.055);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.statistics-chart__line {
  fill: none;
  stroke: var(--positive);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.statistics-chart--mined .statistics-chart__line {
  stroke: #ff7919;
}

.statistics-chart__area {
  stroke: none;
}

.statistics-chart__cursor,
.statistics-chart__point {
  opacity: 0;
  pointer-events: none;
}

.statistics-chart__cursor {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.statistics-chart__point {
  fill: var(--positive);
  stroke: var(--surface);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.statistics-chart--mined .statistics-chart__point {
  fill: #ff7919;
}

.statistics-chart.is-hovered .statistics-chart__cursor,
.statistics-chart.is-hovered .statistics-chart__point,
.statistics-chart.is-hovered .statistics-chart-tooltip {
  opacity: 1;
}

.statistics-chart-tooltip {
  top: 0;
}

.statistics-chart-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 16px;
  margin-top: 5px;
  color: var(--text-subtle);
  font-size: 0.625rem;
  font-weight: 400;
  line-height: 1;
}

@media (max-width: 1000px) {
  .statistics-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .statistics-charts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .statistics-summary {
    grid-template-columns: 1fr;
  }

  .statistics-chart-card {
    padding-inline: 14px;
  }

  .statistics-chart-header {
    align-items: stretch;
    flex-direction: column;
  }

  .statistics-chart-actions {
    justify-content: flex-start;
  }

  .statistics-chart {
    height: 190px;
  }
}

.logout-button {
  width: 100%;
  min-height: 42px;
  margin-top: auto;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
}

.logout-button:hover,
.logout-button:focus-visible {
  border-color: #4a4f58;
  color: var(--text);
}

.server-settings {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(180px, 1fr)) auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 13px;
  background: var(--surface);
}

.server-settings > div,
.server-settings label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.server-settings strong {
  font-size: 0.875rem;
}

.server-settings span,
.server-settings label,
.settings-result {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.server-settings input {
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: 0;
  background: var(--background);
  color: var(--text);
  font: inherit;
}

.server-settings input:focus {
  border-color: #ff7919;
}

.settings-result {
  grid-column: 1 / -1;
  min-height: 1em;
  color: var(--positive);
}

.profile-pause {
  width: max-content;
  margin: 0 0 16px auto;
}

.profile-basics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.profile-basics > label:first-child {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.profile-basics input[type="text"] {
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: 0;
  background: var(--background);
  color: var(--text);
  font: inherit;
}

.login-page {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 102, 0, 0.12), transparent 38%),
    var(--background);
}

.login-card {
  width: min(100%, 410px);
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.login-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: #ff6600;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
}

.login-card h1 {
  margin: 22px 0 7px;
  font-size: 1.7rem;
}

.login-card > p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.login-card form,
.login-card label {
  display: flex;
  flex-direction: column;
}

.login-card form {
  gap: 17px;
  margin-top: 28px;
}

.login-card label {
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.login-card input {
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: 0;
  background: var(--background);
  color: var(--text);
  font: inherit;
}

.login-card input:focus {
  border-color: #ff7919;
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.login-card button {
  min-height: 46px;
  border: 0;
  border-radius: 9px;
  background: #ff6600;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.login-card button:disabled {
  cursor: wait;
  opacity: 0.65;
}

#login-error {
  min-height: 18px;
  color: #ff7b7b;
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .server-settings {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .logout-button {
    position: absolute;
    right: 12px;
    bottom: calc(66px + env(safe-area-inset-bottom));
    width: auto;
    padding: 0 12px;
    background: var(--surface);
  }

  .server-settings {
    grid-template-columns: 1fr;
  }

  .login-card {
    padding: 26px 22px;
  }
}
