:root {
  color-scheme: dark;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  color: #f2effa;
  background: #090a12;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --muted: #9692aa;
  --line: rgba(170, 157, 212, 0.13);
  --pink: #f278b7;
  --cyan: #66e4eb;
  --green: #67e6b5;
  --red: #ff7188;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 75% 4%, rgba(86, 54, 133, 0.2), transparent 34rem),
    radial-gradient(ellipse at 8% 52%, rgba(24, 88, 104, 0.1), transparent 30rem),
    #090a12;
}

button {
  font: inherit;
}

.page-glow {
  position: fixed;
  z-index: -1;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(115px);
  opacity: 0.1;
  pointer-events: none;
}

.page-glow-one {
  top: 150px;
  right: -250px;
  background: #b94fe0;
}

.page-glow-two {
  top: 620px;
  left: -300px;
  background: #39d6d5;
}

.page {
  width: min(1050px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f5f0ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.15px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(242, 120, 183, 0.44);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(242, 120, 183, 0.25), rgba(96, 75, 171, 0.23));
  box-shadow: 0 0 21px rgba(242, 120, 183, 0.13);
}

.brand-mark svg {
  width: 20px;
  fill: var(--pink);
}

.brand-accent {
  color: var(--pink);
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #a7a2b9;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.3px;
}

.topbar-divider {
  color: #4a465c;
}

.live-dot,
.logs-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(103, 230, 181, 0.8);
}

.hero {
  min-height: 340px;
  display: flex;
  align-items: center;
  position: relative;
  padding: 38px 35px 38px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 570px;
}

.eyebrow,
.card-label {
  margin: 0;
  color: #a69ab8;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px;
  color: var(--cyan);
}

.eyebrow-line {
  width: 19px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 13px;
  color: #f3efff;
  font-size: clamp(38px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -2.7px;
  line-height: 1.13;
}

h1 span {
  color: var(--pink);
  text-shadow: 0 0 26px rgba(242, 120, 183, 0.23);
}

.hero-description {
  max-width: 450px;
  margin-bottom: 17px;
  color: #aaa5b9;
  font-size: 13px;
  line-height: 1.8;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #c2bacf;
  font-size: 10px;
}

.hero-note-icon {
  color: var(--pink);
  font-size: 14px;
}

.hero-art {
  width: 330px;
  height: 320px;
  position: absolute;
  top: 10px;
  right: 17px;
}

.moon {
  width: 182px;
  height: 182px;
  position: absolute;
  top: 28px;
  right: 57px;
  border: 1px solid rgba(182, 149, 255, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 33%, rgba(249, 146, 202, 0.2), transparent 60%),
    rgba(62, 46, 99, 0.17);
  box-shadow: 0 0 55px rgba(155, 91, 205, 0.18), inset 0 0 35px rgba(181, 145, 250, 0.08);
}

.art-ring {
  position: absolute;
  border: 1px solid rgba(102, 228, 235, 0.15);
  border-radius: 50%;
  transform: rotate(-24deg);
}

.art-ring-one {
  width: 286px;
  height: 112px;
  top: 79px;
  right: 7px;
}

.art-ring-two {
  width: 257px;
  height: 81px;
  top: 100px;
  right: 21px;
  border-color: rgba(242, 120, 183, 0.19);
  transform: rotate(38deg);
}

.art-spark {
  position: absolute;
  z-index: 2;
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan);
}

.art-spark-one {
  top: 52px;
  right: 39px;
  font-size: 18px;
}

.art-spark-two {
  top: 155px;
  left: 15px;
  color: var(--pink);
  font-size: 22px;
}

.anime-figure {
  width: 168px;
  height: 245px;
  position: absolute;
  right: 64px;
  bottom: 0;
}

.figure-hair-back {
  width: 132px;
  height: 176px;
  position: absolute;
  top: 15px;
  left: 18px;
  border: 1px solid rgba(225, 160, 255, 0.45);
  border-radius: 49% 49% 38% 38%;
  background: linear-gradient(135deg, #8261b6 0%, #41305f 48%, #1c1a31 100%);
  clip-path: polygon(6% 0, 94% 0, 100% 80%, 89% 100%, 74% 75%, 62% 100%, 47% 76%, 29% 100%, 16% 78%, 0 96%);
  filter: drop-shadow(0 0 15px rgba(195, 107, 224, 0.2));
}

.figure-neck {
  width: 38px;
  height: 45px;
  position: absolute;
  top: 125px;
  left: 65px;
  border-radius: 10px 10px 16px 16px;
  background: linear-gradient(90deg, #bb799b, #f1b6c4 48%, #a96691);
}

.figure-shoulders {
  width: 160px;
  height: 70px;
  position: absolute;
  bottom: -4px;
  left: 4px;
  border: 1px solid rgba(212, 149, 248, 0.45);
  border-radius: 58% 58% 0 0;
  background: linear-gradient(135deg, #604b8c, #19182b 75%);
  box-shadow: 0 -7px 25px rgba(154, 97, 202, 0.16);
}

.figure-face {
  width: 93px;
  height: 118px;
  position: absolute;
  z-index: 1;
  top: 48px;
  left: 40px;
  border: 1px solid rgba(255, 199, 224, 0.45);
  border-radius: 45% 45% 46% 46%;
  background: linear-gradient(115deg, #edb4c5, #ffd8d4 53%, #d992b3);
  box-shadow: inset -8px 0 15px rgba(160, 91, 137, 0.13);
}

.figure-fringe {
  width: 105px;
  height: 72px;
  position: absolute;
  top: -9px;
  left: -7px;
  border-radius: 52% 52% 16% 15%;
  background: linear-gradient(145deg, #a881d5, #604a91 69%, #3b315b);
  clip-path: polygon(0 0, 100% 0, 93% 63%, 77% 49%, 73% 100%, 59% 68%, 47% 92%, 41% 55%, 23% 72%, 16% 49%, 4% 68%);
}

.figure-eye {
  width: 21px;
  height: 13px;
  position: absolute;
  top: 61px;
  border-bottom: 2px solid #51334d;
  border-radius: 50%;
}

.eye-left {
  left: 14px;
  transform: rotate(-7deg);
}

.eye-right {
  right: 13px;
  transform: rotate(7deg);
}

.figure-eye i {
  width: 7px;
  height: 8px;
  position: absolute;
  bottom: 0;
  left: 7px;
  border-radius: 50%;
  background: #74dbe2;
  box-shadow: 0 0 5px rgba(50, 201, 214, 0.85);
}

.figure-blush {
  width: 14px;
  height: 5px;
  position: absolute;
  top: 81px;
  border-radius: 50%;
  background: rgba(241, 110, 161, 0.45);
  filter: blur(2px);
}

.blush-left {
  left: 9px;
}

.blush-right {
  right: 8px;
}

.figure-mouth {
  width: 7px;
  height: 4px;
  position: absolute;
  top: 91px;
  left: 43px;
  border-bottom: 1px solid #a34f77;
  border-radius: 50%;
}

.figure-hair-front {
  width: 30px;
  height: 58px;
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 21px;
  border-radius: 90% 15% 80% 10%;
  background: linear-gradient(140deg, #a985d3, #524074 72%);
  transform: rotate(13deg);
}

.figure-pin {
  position: absolute;
  z-index: 3;
  top: 58px;
  right: 21px;
  color: var(--cyan);
  font-size: 17px;
  text-shadow: 0 0 9px var(--cyan);
}

.art-caption {
  display: flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  right: 32px;
  bottom: 9px;
  color: #aaa3bd;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.35px;
}

.caption-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 7px var(--pink);
}

.dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 21px;
}

.card,
.result-card,
.logs-panel {
  border: 1px solid rgba(172, 157, 218, 0.16);
  background: linear-gradient(140deg, rgba(25, 23, 39, 0.92), rgba(16, 17, 28, 0.96));
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.14);
}

.card {
  min-height: 230px;
  padding: 22px 24px;
  border-radius: 14px;
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}

.icon-box {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 11px;
}

.icon-box svg {
  width: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.icon-pink {
  color: var(--pink);
  background: rgba(242, 120, 183, 0.1);
  box-shadow: inset 0 0 0 1px rgba(242, 120, 183, 0.14);
}

.icon-cyan {
  color: var(--cyan);
  background: rgba(102, 228, 235, 0.09);
  box-shadow: inset 0 0 0 1px rgba(102, 228, 235, 0.13);
}

.status-pill,
.manual-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.05px;
}

.status-pill {
  padding: 7px 9px;
  border: 1px solid rgba(103, 230, 181, 0.18);
  border-radius: 20px;
  color: var(--green);
  background: rgba(103, 230, 181, 0.055);
}

.status-pill span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.manual-tag {
  color: #89839f;
}

.card-label {
  margin-bottom: 8px;
  color: #9389a8;
  font-size: 8px;
  letter-spacing: 1.5px;
}

.card h2,
.logs-header h2 {
  margin-bottom: 6px;
  color: #f1edf9;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.card-description {
  min-height: 34px;
  margin-bottom: 15px;
  color: #9c97ad;
  font-size: 11px;
  line-height: 1.65;
}

.schedule-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: #a49db4;
  font-size: 10px;
}

.schedule-detail strong {
  color: #e8c4df;
  font-weight: 700;
}

.detail-icon {
  color: var(--pink);
  font-size: 18px;
  line-height: 1;
}

.ping-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(102, 228, 235, 0.38);
  border-radius: 8px;
  color: #d7fdff;
  background: linear-gradient(100deg, rgba(37, 145, 157, 0.24), rgba(124, 69, 149, 0.3));
  box-shadow: 0 0 17px rgba(81, 219, 225, 0.09), inset 0 0 13px rgba(102, 228, 235, 0.04);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.ping-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(102, 228, 235, 0.8);
  background: linear-gradient(100deg, rgba(37, 145, 157, 0.36), rgba(124, 69, 149, 0.4));
}

.ping-button:focus-visible,
.refresh-button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.ping-button:disabled,
.refresh-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.ping-button svg {
  width: 14px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.button-arrow {
  margin-left: 4px;
  color: var(--cyan);
  font-size: 13px;
}

.is-loading svg {
  animation: rotate 1s linear infinite;
}

.result-card {
  display: flex;
  min-height: 67px;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  padding: 12px 16px;
  border-radius: 11px;
}

.result-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(171, 161, 201, 0.17);
  border-radius: 9px;
  color: #a39bb5;
  background: rgba(151, 139, 178, 0.08);
}

.result-icon svg {
  width: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.result-icon.success {
  color: var(--green);
  background: rgba(103, 230, 181, 0.08);
}

.result-icon.error {
  color: var(--red);
  background: rgba(255, 113, 136, 0.08);
}

.result-icon.loading {
  color: var(--cyan);
  background: rgba(102, 228, 235, 0.08);
}

.result-copy {
  min-width: 0;
}

.result-title {
  margin-bottom: 3px;
  color: #e9e3f2;
  font-size: 10px;
  font-weight: 700;
}

.result-message {
  margin-bottom: 0;
  color: #9892a8;
  font-size: 10px;
  line-height: 1.45;
}

.result-time {
  margin-left: auto;
  color: #8d879f;
  font-size: 9px;
  text-align: right;
  white-space: nowrap;
}

.logs-panel {
  margin-top: 17px;
  padding: 21px 22px 0;
  border-radius: 14px;
}

.logs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
}

.logs-header .card-label {
  margin-bottom: 6px;
  color: var(--cyan);
}

.logs-header h2 {
  margin: 0;
  font-size: 17px;
}

.title-period {
  color: var(--pink);
}

.refresh-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(161, 151, 190, 0.19);
  border-radius: 7px;
  color: #b4aec2;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  font-size: 9px;
  transition: border-color 150ms ease, color 150ms ease;
}

.refresh-button:hover:not(:disabled) {
  border-color: rgba(102, 228, 235, 0.4);
  color: var(--cyan);
}

.refresh-button svg {
  width: 14px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.logs-state {
  margin: 0;
  padding: 18px 0;
  color: #9b95ab;
  font-size: 10px;
}

.logs-state.is-error {
  color: var(--red);
}

.logs-state[hidden] {
  display: none;
}

.log-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.log-entry {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  border-top: 1px solid var(--line);
}

.log-marker {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(103, 230, 181, 0.25);
  border-radius: 7px;
  color: var(--green);
  background: rgba(103, 230, 181, 0.08);
  font-size: 11px;
  font-weight: 700;
}

.log-error .log-marker {
  border-color: rgba(255, 113, 136, 0.28);
  color: var(--red);
  background: rgba(255, 113, 136, 0.08);
}

.log-content {
  min-width: 0;
}

.log-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 3px;
}

.log-source {
  color: #e4deed;
  font-size: 10px;
  font-weight: 700;
}

.log-status {
  color: var(--green);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.log-error .log-status {
  color: var(--red);
}

.log-message {
  overflow: hidden;
  margin: 0;
  color: #948da4;
  font-size: 9px;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.log-time {
  padding-left: 8px;
  color: #8c869d;
  font-size: 9px;
  text-align: right;
  white-space: nowrap;
}

.logs-footer {
  display: flex;
  min-height: 37px;
  align-items: center;
  gap: 7px;
  margin-top: 1px;
  border-top: 1px solid var(--line);
  color: #888297;
  font-size: 8px;
}

.logs-live-dot {
  width: 5px;
  height: 5px;
}

.logs-storage {
  margin-left: auto;
  color: #6d687e;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 2px 24px;
  color: #797489;
  font-size: 9px;
}

.footer-lock {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  color: #948da2;
}

.footer-lock svg {
  width: 12px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 34px, 540px);
  }

  .hero {
    min-height: 325px;
    padding: 39px 3px;
  }

  .hero-art {
    right: -114px;
    opacity: 0.42;
  }

  .hero-copy {
    max-width: 460px;
  }

  .hero-description {
    max-width: 390px;
  }

  .dashboard {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card {
    min-height: 0;
    padding: 20px;
  }

  .card-description {
    min-height: 0;
  }
}

@media (max-width: 460px) {
  .page {
    width: calc(100% - 28px);
  }

  .topbar {
    height: 68px;
  }

  .topbar-status {
    gap: 6px;
    font-size: 7px;
    letter-spacing: 0.8px;
  }

  .hero {
    min-height: 305px;
    padding: 31px 1px;
  }

  .hero-art {
    right: -170px;
    opacity: 0.28;
  }

  h1 {
    font-size: 39px;
    letter-spacing: -2px;
  }

  .hero-description {
    max-width: 340px;
    font-size: 12px;
  }

  .hero-note {
    font-size: 9px;
  }

  .result-card {
    align-items: flex-start;
  }

  .result-time {
    max-width: 86px;
    padding-top: 3px;
    font-size: 8px;
    white-space: normal;
  }

  .logs-panel {
    padding: 18px 14px 0;
  }

  .log-entry {
    grid-template-columns: 23px minmax(0, 1fr);
    gap: 8px;
    padding: 9px 0;
  }

  .log-time {
    grid-column: 2;
    padding: 0;
    text-align: left;
  }

  .logs-footer {
    font-size: 7px;
  }

  .logs-storage {
    display: none;
  }

  .footer {
    flex-direction: column;
    padding-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
