@font-face {
  font-family: Manrope;
  src: url("/static/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --paper: #f5f5f0;
  --white: #fff;
  --ink: #24332e;
  --muted: #7a837e;
  --line: #e2e5dd;
  --green: #446c52;
  --lime: #d1e99c;
  --orange: #d68443;
  --red: #b85242;
  --sidebar: #1d302a;
  --font: Manrope, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 14px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: default;
  opacity: 0.42;
}
button {
  border: 0;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}
input,
select {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  padding: 11px 13px;
  min-height: 44px;
  max-width: 100%;
}
input:focus,
select:focus {
  outline: 2px solid #adc6ad;
  outline-offset: 1px;
}
h1,
h2,
p {
  margin: 0;
}
h1,
h2 {
  font-weight: 650;
  letter-spacing: -0.04em;
}
h2 {
  font-size: 18px;
}
small {
  font-size: 11px;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.micro {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.9px;
  color: var(--muted);
}
.tiny-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #83ac79;
  flex-shrink: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 17px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  transition:
    background 0.18s,
    transform 0.18s;
  white-space: nowrap;
}
.button:active {
  transform: translateY(1px);
}
.primary {
  background: var(--ink);
  color: #fff;
}
.primary:hover {
  background: #3b5247;
}
.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.secondary:hover {
  background: #eaede4;
}
.icon-button {
  background: transparent;
  color: var(--ink);
  font-size: 23px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #f1f5e9;
  line-height: 1.2;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 40px;
  color: var(--lime);
  font-size: 45px;
  transform: rotate(90deg);
  font-weight: 400;
}
.brand-en {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  font-weight: 500;
  margin-top: 7px;
  color: #91a49a;
}
.workspace {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 228px;
  background: var(--sidebar);
  color: #c3cfc4;
  position: fixed;
  height: 100dvh;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 33px 23px;
  z-index: 20;
}
.space-label {
  font-size: 10px;
  color: #8da394;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 42px 5px 16px;
}
.space-label span {
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #a9bd9f;
  border: 1px solid #506150;
  border-radius: 3px;
  padding: 1px 4px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: #9eafa4;
  text-align: left;
  border-radius: 7px;
  padding: 12px 13px;
  font-size: 13px;
}
.nav-item:hover {
  background: #2a4035;
  color: #e5efde;
}
.nav-item.active {
  background: var(--lime);
  color: #233b27;
  font-weight: 650;
}
.nav-icon {
  font-size: 20px;
  line-height: 1;
  width: 22px;
  display: inline-block;
}
.nav-count {
  margin-left: auto;
  font-size: 10px;
  background: #b9d788;
  padding: 0 6px;
  border-radius: 4px;
}
.sidebar-note {
  border-top: 1px solid #3b4c40;
  margin-top: auto;
  padding-top: 28px;
  position: relative;
  overflow: hidden;
  min-height: 198px;
}
.sidebar-note .eyebrow {
  font-size: 7px;
  letter-spacing: 1.3px;
  color: #95aa94;
}
.sidebar-note p {
  font-size: 16px;
  color: #c2d0b7;
  line-height: 1.9;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}
.note-orbit {
  position: absolute;
  right: -30px;
  bottom: 25px;
  width: 105px;
  height: 105px;
  border: 1px solid #516446;
  border-radius: 50%;
}
.note-orbit i {
  position: absolute;
  border: 1px solid #516446;
  inset: 16px;
  border-radius: 50%;
}
.note-orbit b {
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--lime);
  border-radius: 50%;
  top: 7px;
  left: 12px;
}
.sidebar-bottom {
  border-top: 1px solid #3b4c40;
  padding-top: 21px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.sidebar-bottom small {
  display: block;
  margin-top: 4px;
  font-size: 8px;
  letter-spacing: 1.1px;
  color: #81978b;
}
.sidebar-bottom .tiny-dot {
  margin-right: 7px;
}
.quiet {
  background: transparent;
  color: #a9baad;
  font-size: 23px;
  padding: 5px;
}
.main {
  margin-left: 228px;
  width: calc(100% - 228px);
}
.topbar {
  height: 80px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
}
.breadcrumb {
  font-size: 11px;
  color: var(--muted);
}
.breadcrumb span {
  margin: 0 13px;
  color: #bdc3b7;
}
.breadcrumb strong {
  color: #4e5b50;
  font-weight: 500;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 11px;
  color: var(--muted);
}
.top-actions .icon-button {
  border: 0;
}
.avatar {
  display: grid;
  place-items: center;
  background: #e6e9de;
  border: 1px solid #d4daca;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 10px;
  color: #596650;
}
.content {
  max-width: 1380px;
  margin: 0 auto;
  padding: 37px 42px 18px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.page-heading h1 {
  font-size: 29px;
  line-height: 1.5;
  margin-top: 5px;
}
.accent {
  color: var(--orange);
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.page-heading > .button {
  margin-top: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 35px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcf8;
  overflow: hidden;
}
.stat {
  padding: 20px 23px;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border-right: 0;
}
.stat > span {
  color: #758070;
  font-size: 11px;
  display: block;
}
.stat strong {
  font-size: 33px;
  font-weight: 550;
  letter-spacing: -1.3px;
  display: block;
  line-height: 1.5;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.stat small {
  color: #8c9488;
  display: block;
  font-size: 10px;
  margin-top: 3px;
}
.health-stat {
  background: #eaf0e0;
}
.health-stat strong {
  color: #4b6b3c;
}
.health-stat strong small {
  display: inline;
  font-size: 18px;
  letter-spacing: 0;
  font-weight: 400;
  color: #94a287;
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.platform-tabs {
  display: flex;
  gap: 24px;
}
.platform-tabs button {
  background: transparent;
  padding: 0 1px 14px;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.platform-tabs button.active {
  color: var(--ink);
  font-weight: 650;
  border-color: var(--ink);
}
.platform-mark {
  font-size: 16px;
}
.tg-mark {
  color: #6096a0;
  font-size: 14px;
  transform: rotate(-20deg);
  display: inline-block;
}
.live-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #899182;
  margin-bottom: 13px;
}
.feed-toolbar {
  display: flex;
  gap: 11px;
  margin-bottom: 17px;
}
.search-wrap {
  position: relative;
  flex: 1;
  min-width: 120px;
}
.search-wrap > span {
  position: absolute;
  font-size: 24px;
  top: 5px;
  left: 13px;
  color: #919b8f;
}
.search-wrap input {
  padding-left: 39px;
  width: 100%;
  font-size: 12px;
  background: #fafbf7;
}
.feed-toolbar select {
  font-size: 11px;
  background: #fafbf7;
  max-width: 205px;
}
.list-caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #90978b;
  font-size: 10px;
  margin: 0 2px 12px;
}
.messages {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-height: 200px;
}
.message {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 22px 25px;
  animation: appear 0.3s ease both;
}
.message-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 13px;
}
.source-avatar {
  display: grid;
  place-items: center;
  border-radius: 9px;
  width: 37px;
  height: 37px;
  background: #edf0e5;
  color: #687654;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.source-avatar.x {
  background: #ecece8;
  color: #364039;
  font-size: 21px;
}
.message-source {
  font-weight: 650;
  font-size: 12px;
}
.message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #92998f;
  margin-top: 1px;
  flex-wrap: wrap;
}
.badge {
  font-size: 9px;
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.badge.telegram {
  color: #518293;
  background: #edf5f7;
}
.badge.x {
  color: #545c51;
  background: #f0f1ed;
}
.badge.neutral {
  background: #eff1e9;
  color: #828d77;
}
.badge.healthy {
  color: #4a7446;
  background: #eef4e7;
}
.badge.offline,
.badge.error {
  color: #ad5b4d;
  background: #fbede9;
}
.badge.stale {
  color: #a47a33;
  background: #faf1df;
}
.badge.paused,
.badge.pending {
  color: #80887a;
  background: #f0f1ec;
}
.message-time {
  margin-left: auto;
  font-size: 10px;
  color: #899283;
  flex-shrink: 0;
  padding-top: 1px;
}
.message-body {
  font-size: 13px;
  line-height: 1.95;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 280px;
  overflow: hidden;
  position: relative;
}
.message-body.expanded {
  max-height: none;
}
.expand-message {
  background: transparent;
  color: #6b8057;
  padding: 8px 0;
  font-size: 11px;
}
.message-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #f0f1eb;
  padding-top: 13px;
  margin-top: 16px;
}
.message-links {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.media-link {
  font-size: 10px;
  color: #6f7d63;
  background: #f6f8f0;
  border: 1px solid #e8eddf;
  padding: 2px 8px;
  border-radius: 4px;
}
.media-link:hover {
  background: #e9efdd;
}
.original-link {
  font-size: 10px;
  color: #7d8c6c;
  white-space: nowrap;
  margin-left: auto;
}
.original-link:hover {
  text-decoration: underline;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 23px;
  margin-top: 25px;
}
.pagination .button {
  font-size: 10px;
  min-height: 34px;
  padding: 6px 12px;
}
.pagination span {
  font-size: 10px;
  color: var(--muted);
}
.page-footer {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #a1a797;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 38px;
  gap: 12px;
}
.empty-state {
  padding: 65px 20px;
  text-align: center;
  border: 1px dashed #d6decb;
  border-radius: 9px;
  background: #fafbf6;
  color: #849278;
}
.empty-state .empty-icon {
  font-size: 36px;
  color: #afbc9b;
  display: block;
  margin-bottom: 10px;
}
.empty-state h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 7px;
  color: #52644d;
}
.empty-state p {
  font-size: 11px;
}
.sync-banner {
  background: #fff0dd;
  border: 1px solid #ecd5b4;
  color: #98703d;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 12px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}
.section-title h2 {
  font-size: 17px;
}
.section-title h2 span {
  font-size: 11px;
  color: #8b9781;
  margin-left: 7px;
}
.section-title p {
  font-size: 10px;
  color: var(--muted);
}
.source-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.source-card {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.source-card-head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.source-card-name {
  flex: 1;
  min-width: 0;
}
.source-card-name h3 {
  font-size: 14px;
  margin: 0;
  overflow-wrap: anywhere;
}
.source-card-name p {
  font-size: 10px;
  color: #929b8a;
}
.source-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 23px 0 20px;
}
.source-facts dt {
  font-size: 10px;
  color: #919b88;
}
.source-facts dd {
  margin: 4px 0 0;
  font-size: 13px;
}
.source-card-bottom {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.source-card-bottom small {
  font-size: 9px;
  color: #99a18f;
}
.source-card-bottom button {
  font-size: 10px;
  padding: 4px 12px;
  min-height: 30px;
}
.info-note {
  font-size: 10px;
  color: #8c977f;
  margin-top: 20px;
}
.health-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 23px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.panel h2 {
  font-size: 16px;
}
.panel-heading h2 {
  margin-top: 5px;
}
.panel-heading .muted {
  font-size: 10px;
}
.activity-chart {
  height: 125px;
  display: flex;
  gap: 5px;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  margin-top: 30px;
  padding: 0 2px;
}
.bar-column {
  height: 100%;
  flex: 1;
  display: flex;
  align-items: flex-end;
  min-width: 0;
}
.bar {
  background: #b8ce9d;
  width: 100%;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
  transition: height 0.35s;
}
.bar-column:last-child .bar {
  background: #557b4a;
}
.bar-column:hover .bar {
  background: var(--orange);
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #94a087;
  margin-top: 9px;
}
.worker-panel h2 {
  margin: 3px 0 12px;
}
.worker-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #eff1e9;
}
.worker-label {
  flex: 1;
  font-size: 12px;
}
.worker-label small {
  display: block;
  color: #98a08e;
  font-size: 9px;
}
.worker-panel > .micro {
  margin-top: 15px;
  font-size: 9px;
}
.health-details {
  padding-bottom: 10px;
}
.health-details .panel-heading {
  margin-bottom: 16px;
}
.health-row {
  display: grid;
  grid-template-columns: 1.3fr 0.65fr 1fr 1fr;
  gap: 15px;
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.health-row > div small {
  display: block;
  color: #959e8d;
  font-size: 9px;
  margin-top: 3px;
}
.health-error {
  font-size: 10px;
  color: var(--red);
  margin: 5px 0;
}
.health-note {
  font-size: 10px;
  color: #859176;
  margin-top: 5px;
}
.login-screen {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #fafbf6;
}
.login-story {
  background: var(--sidebar);
  padding: 48px 60px;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  color: #d5dfc9;
  overflow: hidden;
}
.login-copy {
  margin: auto 0;
  padding: 70px 0 50px;
}
.login-copy .eyebrow {
  color: #97aa87;
  font-size: 9px;
}
.login-copy h1 {
  font-size: 43px;
  line-height: 1.65;
  color: #eaf0dc;
  margin: 22px 0;
  letter-spacing: 0;
}
.login-copy p {
  color: #96a790;
  font-size: 13px;
  line-height: 2;
}
.signal-lines {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 110px;
  margin-top: 35px;
}
.signal-lines i {
  width: 4px;
  height: 30%;
  border-radius: 2px;
  background: #58724d;
}
.signal-lines i:nth-child(3n) {
  height: 65%;
  background: #9cb67b;
}
.signal-lines i:nth-child(4n) {
  height: 90%;
  background: #c5df98;
}
.signal-lines i:nth-child(5n) {
  height: 50%;
}
.signal-lines i:nth-child(7n) {
  height: 100%;
}
.login-foot {
  font-size: 8px;
  letter-spacing: 1.3px;
  color: #829279;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.login-form-wrap {
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-form-wrap form {
  width: 100%;
  max-width: 350px;
}
.login-form-wrap h2 {
  font-size: 25px;
  margin: 10px 0;
}
.login-form-wrap .muted {
  font-size: 12px;
  margin-bottom: 30px;
}
.login-form-wrap label,
dialog label {
  display: block;
  margin: 16px 0 7px;
  font-size: 11px;
  font-weight: 600;
}
.login-form-wrap input {
  width: 100%;
  background: white;
  padding: 13px;
  min-height: 48px;
}
.login-form-wrap .button {
  width: 100%;
  justify-content: space-between;
  min-height: 47px;
}
.login-note {
  font-size: 10px;
  color: #95a087;
  text-align: center;
  margin-top: 24px;
}
.login-note .tiny-dot {
  margin-right: 5px;
}
.form-error {
  font-size: 11px;
  color: var(--red);
  min-height: 22px;
  margin: 10px 0;
}
.login-form-wrap .form-error {
  margin: 5px 0 10px;
}
.toast {
  position: fixed;
  bottom: 26px;
  left: calc(50% + 70px);
  transform: translateX(-50%);
  background: #263c2d;
  color: #edf5e5;
  border-radius: 8px;
  padding: 12px 21px;
  box-shadow: 0 8px 30px #21352622;
  font-size: 12px;
  z-index: 100;
  max-width: 90vw;
}
.toast.error {
  background: #844c3d;
}
dialog {
  border: 1px solid #dce3d2;
  border-radius: 13px;
  padding: 30px;
  max-width: 480px;
  width: calc(100% - 32px);
  color: var(--ink);
  background: #fcfdf9;
  box-shadow: 0 24px 100px #16272033;
}
dialog::backdrop {
  background: #172a245c;
  backdrop-filter: blur(4px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.dialog-heading h2 {
  font-size: 23px;
  margin-top: 3px;
}
dialog > .muted,
dialog form > .muted {
  font-size: 11px;
}
dialog input,
dialog select {
  width: 100%;
  font-size: 12px;
}
dialog .icon-button {
  border: 0;
}
.rule-note {
  background: #edf2e5;
  color: #7b8a6b;
  padding: 11px 13px;
  font-size: 10px;
  border-radius: 5px;
  margin-top: 17px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 15px;
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1600px) {
  .content {
    padding-top: 48px;
  }
  .message {
    padding: 25px 30px;
  }
  .stats {
    margin-bottom: 40px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 195px;
    padding: 30px 18px;
  }
  .main {
    margin-left: 195px;
    width: calc(100% - 195px);
  }
  .content {
    padding: 30px 25px 18px;
  }
  .topbar {
    padding: 0 25px;
  }
  .stat {
    padding: 18px;
  }
  .health-top {
    grid-template-columns: 1fr;
  }
  .section-title {
    display: block;
  }
  .section-title p {
    margin-top: 7px;
  }
}
@media (max-width: 800px) {
  .sidebar {
    width: 72px;
    padding: 25px 12px;
    align-items: center;
  }
  .sidebar .brand {
    gap: 0;
  }
  .sidebar .brand > span:last-child,
  .space-label,
  .sidebar-note,
  .sidebar-bottom > div,
  .nav-count {
    display: none;
  }
  .sidebar nav {
    margin-top: 35px;
    width: 100%;
    gap: 14px;
  }
  .nav-item {
    font-size: 0;
    padding: 12px;
    gap: 0;
    justify-content: center;
  }
  .nav-icon {
    font-size: 22px;
  }
  .sidebar-bottom {
    width: 100%;
    justify-content: center;
    margin-top: auto;
  }
  .main {
    margin-left: 72px;
    width: calc(100% - 72px);
  }
  .content {
    padding: 27px 23px 15px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .page-heading p {
    font-size: 10px;
  }
  .page-heading > .button {
    font-size: 11px;
  }
  .stats {
    margin-bottom: 28px;
  }
  .stat {
    padding: 15px 13px;
  }
  .stat strong {
    font-size: 28px;
  }
  .stat small {
    font-size: 8px;
  }
  .stat > span {
    font-size: 10px;
  }
  .source-list {
    grid-template-columns: 1fr;
  }
  .feed-toolbar select {
    max-width: 155px;
  }
  .message {
    padding: 18px;
  }
  .topbar {
    height: 65px;
    padding: 0 23px;
  }
  .login-story {
    padding: 35px;
  }
  .login-copy h1 {
    font-size: 33px;
  }
  .login-foot span {
    display: none;
  }
  .toast {
    left: calc(50% + 36px);
  }
}
@media (max-width: 580px) {
  .workspace {
    display: block;
  }
  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    padding: 12px 18px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .sidebar .brand-icon {
    width: 27px;
    font-size: 34px;
    height: 32px;
  }
  .sidebar .brand > span:last-child {
    display: block;
    font-size: 15px;
  }
  .brand-en {
    display: none;
  }
  .sidebar nav {
    width: auto;
    flex-direction: row;
    margin: 0;
    gap: 5px;
  }
  .nav-item {
    font-size: 10px;
    padding: 8px 9px;
    gap: 4px;
  }
  .nav-icon {
    font-size: 14px;
    width: auto;
  }
  .sidebar-bottom {
    width: auto;
    border: 0;
    padding: 0;
    margin: 0;
  }
  .sidebar-bottom .quiet {
    font-size: 20px;
    padding: 0 0 0 5px;
  }
  .main {
    margin-left: 0;
    width: 100%;
  }
  .topbar {
    height: 44px;
    padding: 0 19px;
  }
  .top-actions {
    gap: 8px;
  }
  .top-actions .avatar {
    display: none;
  }
  .top-actions #today-label {
    font-size: 9px;
  }
  .breadcrumb {
    font-size: 9px;
  }
  .breadcrumb span {
    margin: 0 7px;
  }
  .content {
    padding: 24px 18px 15px;
  }
  .page-heading {
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 22px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1.4px;
  }
  .page-heading h1 {
    font-size: 22px;
    letter-spacing: -1px;
    margin-top: 8px;
  }
  .page-heading p {
    font-size: 10px;
    max-width: 210px;
    line-height: 1.8;
  }
  .page-heading > .button {
    font-size: 10px;
    padding: 8px 11px;
    gap: 3px;
    min-height: 35px;
    margin-top: 15px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 27px;
  }
  .stat {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(n + 3) {
    border-bottom: 0;
  }
  .stat strong {
    font-size: 29px;
    margin-top: 4px;
  }
  .stat small {
    font-size: 9px;
  }
  .health-stat strong small {
    font-size: 16px;
  }
  .platform-tabs {
    gap: 18px;
  }
  .platform-tabs button {
    font-size: 11px;
    gap: 4px;
  }
  .live-label {
    font-size: 8px;
  }
  .feed-toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .search-wrap {
    flex-basis: 100%;
  }
  .feed-toolbar select {
    max-width: none;
    flex: 1;
    width: 45%;
    padding: 8px 10px;
    min-height: 37px;
    font-size: 10px;
  }
  .feed-toolbar input {
    min-height: 41px;
  }
  .list-caption {
    font-size: 9px;
    margin-top: 15px;
  }
  .message {
    padding: 17px 16px;
  }
  .message-source {
    font-size: 11px;
  }
  .source-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .message-head {
    gap: 8px;
  }
  .message-time {
    font-size: 9px;
    max-width: 94px;
    text-align: right;
  }
  .message-meta {
    gap: 5px;
    font-size: 9px;
  }
  .message-body {
    font-size: 12px;
    line-height: 1.95;
  }
  .message-footer {
    gap: 8px;
  }
  .original-link {
    font-size: 9px;
  }
  .pagination {
    gap: 17px;
  }
  .page-footer {
    font-size: 8px;
    margin-top: 28px;
  }
  .section-title h2 {
    font-size: 16px;
  }
  .health-row {
    grid-template-columns: 1fr 0.7fr;
    gap: 10px;
    padding: 15px 0;
  }
  .health-details .panel-heading {
    display: block;
  }
  .health-details .panel-heading .muted {
    display: block;
    margin-top: 8px;
  }
  .panel {
    padding: 19px;
  }
  .activity-chart {
    gap: 3px;
  }
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-story {
    min-height: 0;
    padding: 24px 27px;
  }
  .login-story .brand-en {
    display: block;
  }
  .login-copy {
    padding: 38px 0 24px;
  }
  .login-copy h1 {
    font-size: 31px;
    margin: 14px 0;
    line-height: 1.6;
  }
  .login-copy p,
  .signal-lines,
  .login-foot {
    display: none;
  }
  .login-form-wrap {
    padding: 35px 28px 50px;
  }
  .login-form-wrap h2 {
    font-size: 23px;
  }
  .login-form-wrap .muted {
    font-size: 11px;
    margin-bottom: 23px;
  }
  .toast {
    left: 50%;
    width: max-content;
    max-width: 90%;
    font-size: 11px;
  }
  dialog {
    padding: 24px;
  }
  .dialog-heading h2 {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 580px) {
  .sidebar .brand {
    gap: 7px;
  }
  .sidebar nav {
    flex-shrink: 0;
    gap: 2px;
  }
  .nav-item {
    width: auto;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 7px;
  }
}
@media (max-width: 360px) {
  .sidebar .brand > span:last-child {
    display: none;
  }
}
