:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #182024;
  background: #f5f7f7;
  --ink: #182024;
  --muted: #5d686c;
  --line: #e3e9e9;
  --accent: #007f75;
  --accent-light: #ecf8f5;
  --numeric: tabular-nums;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.dashboard {
  width: min(100%, 1424px);
  margin-inline: auto;
  padding: 30px clamp(16px, 3.6vw, 52px) 22px;
}

.hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  min-height: 204px;
  padding: 31px 34px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(115deg, #12181b 12%, #1b292b 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  width: 320px;
  height: 320px;
  border: 1px solid #2dd4bf55;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero::before {
  right: -76px;
  top: -230px;
  box-shadow: 0 0 0 22px #2dd4bf12, 0 0 0 46px #2dd4bf0b;
}

.hero::after {
  right: 35px;
  top: -232px;
  border-color: #ff617c45;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #9ae9dd;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .08em;
}

.signal {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #47e6d2;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.18;
  letter-spacing: -.04em;
}

.hero-description {
  margin: 12px 0 0;
  color: #c5d4d5;
  font-size: .9rem;
}

.snapshot {
  display: grid;
  gap: 10px;
  min-width: 220px;
  margin: 0;
  padding: 12px 15px;
  border: 1px solid #ffffff27;
  border-radius: 12px;
  background: #ffffff0d;
  font-size: .78rem;
  line-height: 1.5;
}

.snapshot > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
}

.snapshot dt {
  color: #b5c9cb;
}

.snapshot dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: var(--numeric);
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 20px;
}

.stat,
.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.stat {
  min-height: 126px;
  padding: 17px 20px;
}

.stat h2 {
  margin: 0;
  color: var(--muted);
  font-size: .83rem;
  font-weight: 650;
}

.stat-value {
  margin: 5px 0 2px;
  font-size: clamp(1.5rem, 3.3vw, 2.25rem);
  font-weight: 720;
  line-height: 1.2;
  overflow-wrap: anywhere;
  letter-spacing: -.035em;
  font-variant-numeric: var(--numeric);
}

.stat-detail {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.5;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(275px, 1fr);
  align-items: start;
  gap: 16px;
}

.panel {
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
  min-height: 80px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 720;
}

.panel-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .77rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.search {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid #dce5e5;
  border-radius: 8px;
  background: #fafcfc;
}

.search:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.search svg {
  flex: none;
  width: 15px;
  height: 15px;
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.search input {
  width: clamp(105px, 12vw, 160px);
  height: 32px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: .79rem;
}

.sort select {
  min-height: 34px;
  padding: 0 6px;
  border: 1px solid #dce5e5;
  border-radius: 8px;
  background: #fafcfc;
  font-size: .79rem;
}

.table-scroll {
  overflow-x: auto;
}

.table-scroll:focus-visible {
  outline-offset: -3px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .83rem;
}

th {
  color: var(--muted);
  background: #f9fbfb;
  font-weight: 650;
  white-space: nowrap;
}

td,
th {
  padding: 12px 11px;
  text-align: left;
}

th:first-child,
td:first-child {
  padding-left: 20px;
}

th:last-child,
td:last-child {
  padding-right: 20px;
}

td {
  border-top: 1px solid var(--line);
}

tr.selected td {
  background: var(--accent-light);
}

.number {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: var(--numeric);
}

.account-button {
  display: block;
  max-width: 100%;
  min-width: 90px;
  margin: 0;
  padding: 2px 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.account-button:hover .account-name {
  color: var(--accent);
  text-decoration: underline;
}

.account-name {
  display: block;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.handle {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .73rem;
  overflow-wrap: anywhere;
}

.status {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 999px;
  color: #4e5b61;
  background: #eef1f2;
  font-size: .7rem;
  font-weight: 650;
  white-space: nowrap;
}

.status.ok {
  color: #086557;
  background: #e1f3ee;
}

.status.unavailable {
  color: #92571e;
  background: #fff3e3;
}

.profile-link {
  flex: none;
  color: var(--accent);
  font-size: .77rem;
  font-weight: 650;
  text-decoration: none;
}

.profile-link:hover,
.post-title:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.empty {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 222px;
  padding: 20px;
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  margin-bottom: 12px;
  border-radius: 11px;
  color: var(--accent);
  background: var(--accent-light);
}

.empty-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.empty h3 {
  margin: 0;
  font-size: .9rem;
}

.empty p {
  max-width: 29ch;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .77rem;
  line-height: 1.55;
}

.post-list {
  margin: 0;
  padding: 0 20px;
  list-style: none;
}

.post-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 7px 12px;
  padding: 13px 0;
}

.post-list li + li {
  border-top: 1px solid var(--line);
}

.post-title {
  color: var(--ink);
  font-size: .84rem;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.post-views {
  color: var(--muted);
  font-size: .73rem;
  font-variant-numeric: var(--numeric);
  white-space: nowrap;
}

.dashboard-footer {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: .73rem;
  line-height: 1.55;
}

@media (max-width: 970px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 610px) {
  .dashboard {
    padding-top: 16px;
  }

  .hero {
    display: grid;
    justify-items: start;
    padding: 22px 20px;
  }

  .summary,
  .workspace {
    gap: 8px;
  }

  .stat {
    min-height: 102px;
    padding: 11px 9px;
  }

  .stat h2,
  .stat-detail {
    font-size: .72rem;
  }

  .panel-header {
    flex-wrap: wrap;
    padding: 13px 14px;
  }

  td,
  th {
    padding-inline: 9px;
  }

  th:first-child,
  td:first-child {
    padding-left: 14px;
  }

  th:last-child,
  td:last-child {
    padding-right: 14px;
  }
}
