body {
  background: var(--bg);
  isolation: isolate;
}
body::before,
body::after {
  content: none;
}
.page > main {
  animation: none;
}

.module-card:hover {
  transform: none;
  border-color: var(--line-strong);
}
.brand-mark {
  width: 27px;
  height: 27px;
}
.brand-name {
  font-size: 16px;
  letter-spacing: 1.5px;
  font-weight: 600;
  white-space: nowrap;
}
.brand-name > span {
  color: var(--text);
}
.login-brand .brand-mark {
  width: 76px;
  height: 76px;
}
.login-brand .brand-name {
  letter-spacing: 3px;
}
.module-heading {
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-soft);
}
.module-heading .ui-icon {
  color: var(--text);
}
.module-stat span {
  color: var(--muted);
}
.module-covers {
  display: flex;
  gap: var(--space-2);
  overflow: hidden;
  margin-bottom: 8px;
}
.module-covers img {
  width: 44px;
  height: 58px;
  object-fit: cover;
  border-radius: 4px;
}
.spark-area {
  opacity: 0.12;
}
.balance-spark {
  color: var(--accent);
  width: 100%;
  height: 44px;
}
.spark-caption {
  color: var(--muted);
  font-size: 10px;
}
.page > main {
  border: 0;
  padding: 0;
  background: none;
}
.embedded-page body {
  padding: 12px 18px;
  min-height: 100dvh;
}
body.wave-shell #wavePlayer {
  border-top: 1px solid var(--line);
  box-shadow: var(--surface-shadow);
}
body.wave-shell #waveRestore {
  bottom: 12px;
}
body.wave-shell #hubFrame {
  background: transparent;
}
.home-card {
  min-width: 0;
  padding: 0 14px 10px;
  overflow: hidden;
}
.home-card.home-full {
  grid-column: 1/-1;
}
.home-card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 43px;
  margin: 0 -14px 10px;
  padding: 6px 13px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(#ebeee608, transparent);
}
.home-card-title > a:first-child {
  text-decoration: none;
  min-width: 0;
  color: var(--text);
}
body .page > main .home-card-title h2,
.home-card-title > h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.1px;
}
.home-card-title .ui-icon {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--text);
}
.module-card {
  order: 8;
}
.home-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1.45fr;
  gap: 0;
}
.home-metric {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 3px 12px;
  min-width: 0;
  padding: 0 13px;
  border-left: 1px solid var(--line-soft);
}
.home-metric:first-child {
  padding-left: 0;
  border-left: 0;
}
.home-metric-label {
  line-height: 1.25;
  grid-column: 1/-1;
  display: flex;
  gap: var(--space-2);
  align-items: center;
  color: var(--text);
  font-size: 12px;
}
.home-metric-label .ui-icon {
  display: none;
}
.home-metric strong {
  grid-column: 1;
  grid-row: 2;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.6px;
  line-height: 1.2;
  white-space: nowrap;
}
.home-metric small {
  grid-column: 1/-1;
  grid-row: 3;
  font-size: 10px;
  line-height: 1.4;
  color: var(--muted);
}
.home-metric meter {
  width: 100%;
  height: 3px;
  border: 0;
  background: var(--track);
  border-radius: 2px;
}
.home-metric meter::-webkit-meter-bar {
  height: 3px;
  border: 0;
  background: var(--track);
}
.home-metric meter::-webkit-meter-optimum-value {
  background: var(--accent);
}
.home-metric meter::-webkit-meter-suboptimum-value {
  background: var(--amber);
}
.home-metric meter::-webkit-meter-even-less-good-value {
  background: var(--red);
}
.home-metric meter::-moz-meter-bar {
  background: var(--accent);
}
.home-metric:has(.metric-spark[data-ready]) meter {
  display: none;
}
.metric-spark {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  height: 25px;
  min-width: 0;
  overflow: visible;
  color: var(--accent);
}
.metric-spark:not([data-ready]) {
  display: none;
}
.metric-spark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}
.pulse-history-tools {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 6px 0;
}
.pulse-history-tools label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--muted);
  font-size: 12px;
}
.pulse-periods {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: 0;
  border: 0;
  background: transparent;
}
.pulse-history-plot {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  gap: var(--space-2);
  margin-top: 6px;
}
.pulse-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 10px;
  line-height: 1;
  color: var(--muted);
  text-align: right;
}
.pulse-history-chart {
  width: 100%;
  height: 100px;
  display: block;
}
.pulse-history-grid {
  fill: none;
  stroke: var(--line-soft);
  stroke-width: 1;
}
.pulse-history-line {
  fill: none;
  stroke-width: 1.3;
  vector-effect: non-scaling-stroke;
}
.pulse-history-line.cpu {
  stroke: var(--accent);
}
.pulse-history-line.memory {
  stroke: var(--chart-memory);
  opacity: 0.75;
}
.pulse-history-line.disk {
  stroke: var(--chart-disk);
  opacity: 0.8;
}
.pulse-history-axis {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  margin: 4px 0 0 29px;
  font-size: 9px;
  color: var(--muted);
}
.pulse-history-legend {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-4);
  margin-top: 5px;
}
.home-value {
  display: block;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 600;
}
.home-subtitle {
  color: var(--muted);
  font-size: 11px;
  margin: 7px 0 9px;
}
.home-meta,
.home-empty {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.home-empty {
  padding: 12px 0;
}
.home-balance .module-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 0;
  gap: var(--space-1);
}
.home-balance .module-stat strong {
  font-size: 26px;
  line-height: 1.2;
}
.home-balance .balance-spark {
  margin-top: 14px;
}
.home-task {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line-soft);
}
.home-task input {
  appearance: none;
  width: 18px;
  height: 18px;
  flex: none;
  border: 1px solid #d3d9bdaa;
  border-radius: 3px;
  cursor: pointer;
  padding: 0;
  background: #11131226;
}
.home-task input:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.home-task input:checked::after {
  content: "✓";
  display: block;
  color: #152002;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  line-height: 16px;
}
.home-task a {
  min-width: 0;
  flex: 1;
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.home-task a.home-task-done {
  color: var(--muted);
  text-decoration: line-through;
}
.home-action {
  display: inline-block;
  font-size: 10px;
  margin-top: 9px;
  text-decoration: none;
}
#homeTasksCount {
  margin-top: 7px;
}
.home-recent {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 8px 0;
  text-decoration: none;
  color: var(--text);
}
.home-recent img {
  width: 38px;
  height: 52px;
  object-fit: cover;
  border-radius: 4px;
  flex: none;
}
.home-recent > div {
  min-width: 0;
  flex: 1;
}
.home-recent strong,
.home-file strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.home-recent small,
.home-file small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.home-recent progress {
  width: 100%;
  max-width: 200px;
  height: 3px;
  display: block;
  margin-top: 7px;
  accent-color: var(--accent);
}
#homeChat > strong {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.home-chat-preview {
  position: relative;
  margin: 10px 0 0 31px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #c3cbc308;
  color: var(--text);
  line-height: 1.5;
  font-size: 12px;
  overflow-wrap: anywhere;
  max-height: 140px;
  overflow: auto;
}
.home-chat-message {
  position: relative;
}
.home-chat-avatar {
  position: absolute;
  left: 0;
  top: 5px;
  width: 25px;
  height: 25px;
  padding: 5px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: #1215132b;
}
.home-chat-message .home-chat-preview {
  margin-left: 34px;
}
#homeFiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
}
.home-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 6px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--text);
  text-decoration: none;
}
.home-file > div {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.home-file small {
  white-space: nowrap;
  font-size: 9px;
}
.home-file > .ui-icon {
  width: 18px;
  height: 22px;
  color: var(--muted);
  flex: none;
}
#homeFilesCount {
  font-size: 10px;
  margin-left: auto;
  color: var(--muted);
}
.module-card > .module-heading {
  padding: 11px 0;
  text-decoration: none;
  color: var(--text);
}
html.chat-widget body,
html.chat-widget .page {
  padding: 0 !important;
}
html.chat-widget .section-line,
html.chat-widget .chat-mobile-nav {
  display: none !important;
}
html.chat-widget #chatPage {
  min-height: 0;
}
html.chat-widget #chatInput {
  min-height: 50px;
  max-height: 100px;
}
html.chat-widget .chat-toolbar {
  gap: var(--space-1);
}
html.chat-widget .chat-actions .chat-hint {
  display: none;
}
@media (min-width: 951px) {
}
@media (max-width: 950px) {
  .home-metric {
    padding: 0 8px;
    gap: var(--space-1);
  }
  .home-metric strong {
    font-size: 21px;
  }
}
@media (max-width: 800px) {
  .embedded-page body {
    padding: 9px;
  }
  .home-metrics {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    row-gap: 9px;
  }
  .home-metric {
    grid-column: span 2;
    padding: 0 8px;
  }
  .home-metric small {
    font-size: 9px;
  }
  .home-metric strong {
    font-size: 21px;
  }
  .home-metric-label {
    font-size: 10px;
  }
  .metric-spark {
    height: 20px;
  }
  .home-card {
    padding: 0 11px 9px;
  }
  .home-card-title {
    margin: 0 -11px 8px;
    padding: 7px 10px;
    gap: 7px;
    min-height: 38px;
  }
  body .page > main .home-card-title h2 {
    font-size: 13px;
    font-weight: 500;
  }
  .home-card-title .ui-icon {
    width: 20px;
    height: 20px;
  }
  .pulse-history-chart {
    height: 88px;
  }
  .pulse-history-axis {
    font-size: 8px;
  }
  .pulse-history-legend {
    gap: 10px;
  }
  .home-file > div {
    display: block;
  }
}
@media (max-width: 500px) {
  .home-card {
    grid-column: 1;
  }
  #homeFiles {
    grid-template-columns: 1fr;
  }
  .home-file > div {
    display: flex;
  }
  .home-task {
    min-height: 36px;
  }
}
@media (max-width: 360px) {
  .home-metric strong {
    font-size: 18px;
  }
  .pulse-history-chart {
    height: 76px;
  }
  .pulse-history-legend {
    gap: 7px;
  }
}
.home-card-title a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (max-width: 800px) {
  .pulse-history-axis > span:nth-child(even) {
    display: none;
  }
}
html
  body
  :is(
    .anime-card,
    .anime-panel,
    .reader-book,
    .chat-panel,
    .trophy-card,
    .trophy-panel,
    .pulse-stat,
    .pulse-panel,
    .kb-column,
    .storage-folder-card,
    .storage-row,
    .wave-card,
    .rt-panel,
    .balance-panel,
    .signal-panel,
    .cinema-player,
    .cinema-transfer,
    .project-card,
    .gallery-card,
    .article-card,
    .security-panel
  ) {
  border-radius: 10px;
}
.home-file {
  line-height: 1.35;
  padding: 4px 0;
  min-height: 28px;
}
.home-file small {
  margin-top: 0;
}
@media (max-width: 800px) {
  .home-metrics {
    row-gap: 5px;
  }
  .home-metric {
    gap: 2px 4px;
  }
}
body.standalone-page {
  display: block;
  padding: 0 0 72px;
}
.standalone-page > .page {
  max-width: calc(
    var(--page-max-width) + max(var(--page-gutter), env(safe-area-inset-left)) +
      max(var(--page-gutter), env(safe-area-inset-right))
  );
  padding: 10px max(var(--page-gutter), env(safe-area-inset-right)) 10px
    max(var(--page-gutter), env(safe-area-inset-left));
}
@media (max-width: 800px) {
  .standalone-page > .page {
    padding-block: 8px;
  }
}
.ui-empty {
  grid-column: 1/-1;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
}
.ui-empty h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}
.ui-empty p {
  margin: 5px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.ui-empty :is(button, a) {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  max-width: 100%;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  padding: 6px 10px;
  background: var(--button-bg);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
:is(
  .anime-card,
  .reader-book,
  .trophy-card,
  .project-card,
  .gallery-card,
  .article-card,
  .cinema-card,
  .wave-card
) {
  min-width: 0;
  overflow-wrap: anywhere;
}
html body :is(dialog, #vpnDialog, #readerReading)::backdrop {
  background: #080b09b8;
}
.workspace-header {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex: none;
}
.workspace-header .brand {
  gap: 10px;
}
.workspace-header > a:not(.brand),
.workspace-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  color: var(--text);
}
.workspace-header .ui-icon {
  width: 20px;
  height: 20px;
}
.workspace-logout {
  padding: 0;
  background: none;
  border: 0;
}
.workspace-header form {
  margin: 0;
}
.workspace-body {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
}
.workspace-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  position: relative;
}
.workspace-mobile {
  display: flex;
  justify-content: center;
  padding: 4px 6px max(4px, env(safe-area-inset-bottom));
}
.workspace-mobile a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 40px;
  color: var(--muted);
  font-size: 10px;
  text-decoration: none;
  border-radius: 8px;
}
.workspace-mobile .ui-icon {
  width: 19px;
  height: 19px;
}
.home-card-title > a:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}
.standalone-page {
  display: block;
  padding: 0;
}
.standalone-page > .page {
  padding: 20px;
  margin: auto;
}
.standalone-page > .workspace-header {
  padding: 12px 20px;
}
.standalone-page > .workspace-mobile {
  position: sticky;
  bottom: 0;
  background: var(--surface);
}

.pulse-history-tools {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 12px;
}
.pulse-history-tools .pulse-history-legend {
  margin: 0;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.pulse-history-tools .pulse-periods {
  gap: var(--space-2);
  margin-inline-start: auto;
}
.pulse-history-status {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}
