:root {
  --andong-bg: #f2f1ed;
  --andong-surface: #fbfaf7;
  --andong-line: rgba(27, 33, 30, 0.12);
  --andong-accent: #3f6b57;
  --andong-text: #1b211e;
  --andong-muted: #69706c;
}

[data-scheme="dark"] {
  --andong-bg: #111512;
  --andong-surface: #171c19;
  --andong-line: rgba(232, 237, 233, 0.13);
  --andong-accent: #8fb8a2;
  --andong-text: #e8ede9;
  --andong-muted: #a7b0aa;
}

body {
  color: var(--andong-text);
  background: var(--andong-bg) !important;
  font-family: Inter, "Noto Sans SC", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.left-sidebar {
  gap: 12px !important;
}

.left-sidebar > header {
  gap: 14px !important;
}

.left-sidebar__ink-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  max-width: 186px;
  padding: 17px 15px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(63, 107, 87, 0.035);
  box-shadow: none;
  backdrop-filter: blur(9px) saturate(0.8);
  -webkit-backdrop-filter: blur(9px) saturate(0.8);
}

.left-sidebar__ink-panel::before {
  position: absolute;
  z-index: -1;
  inset: -32%;
  background:
    radial-gradient(ellipse at 12% 10%, rgba(63, 107, 87, 0.13), transparent 34%),
    radial-gradient(ellipse at 94% 92%, rgba(27, 33, 30, 0.065), transparent 36%);
  filter: blur(13px);
  transform: rotate(-5deg);
  content: "";
  pointer-events: none;
}

.left-sidebar .site-avatar {
  overflow: hidden;
  border-radius: 18px !important;
}

.left-sidebar .site-avatar img {
  border: 1px solid var(--andong-line);
  border-radius: inherit;
  box-shadow: none;
  filter: saturate(0.82) contrast(1.03);
}

.left-sidebar .site-fish-link {
  z-index: 2;
  display: grid;
  place-items: center;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.left-sidebar .site-fish-link:hover {
  color: inherit;
  transform: translateY(-2px) rotate(-4deg);
}

.left-sidebar .site-fish-link:focus-visible {
  outline: 2px solid var(--andong-accent, #3f6b57);
  outline-offset: 3px;
}

.left-sidebar .site-meta {
  margin-bottom: 0;
}

.left-sidebar .site-name {
  color: var(--andong-text);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.left-sidebar .site-description {
  max-width: 180px;
  color: var(--andong-muted);
  font-size: 12.5px;
  font-weight: 450;
  line-height: 1.65;
  letter-spacing: 0;
}

.left-sidebar .social-menu {
  gap: 3px;
  margin: 11px 0 8px;
}

.left-sidebar .social-menu a {
  border: 0;
  border-radius: 4px;
  color: var(--andong-muted);
  transition: color 160ms ease, background-color 160ms ease;
}

.left-sidebar .social-menu a:hover {
  background: var(--andong-surface);
  color: var(--andong-accent);
}

.left-sidebar #main-menu {
  display: block;
  margin: 0;
}

.left-sidebar #main-menu > li {
  display: block;
  margin: 0 0 2px;
}

.left-sidebar #main-menu > li > a,
.left-sidebar #dark-mode-toggle,
.left-sidebar #translate-toggle {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 0 !important;
  height: auto !important;
  padding: 7px 0 7px 13px !important;
  border: 0;
  border-radius: 0;
  color: var(--andong-muted);
  font-size: 13px !important;
  font-weight: 500;
  line-height: 1.5 !important;
  letter-spacing: 0;
  white-space: normal;
  transition: color 160ms ease;
}

.left-sidebar #main-menu > li > a::before,
.left-sidebar #dark-mode-toggle::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: transparent;
  content: "";
}

.left-sidebar #main-menu > li > a > i:empty {
  display: none !important;
}

.left-sidebar #main-menu > li.current > a,
.left-sidebar #main-menu > li > a:hover,
.left-sidebar #dark-mode-toggle:hover {
  background: transparent;
  color: var(--andong-text);
  font-weight: 650;
}

.left-sidebar #main-menu > li.current > a::before {
  background: var(--andong-accent);
}

.left-sidebar #main-menu > li.has-children > a {
  padding-bottom: 6px !important;
}

.left-sidebar .submenu {
  display: block !important;
  margin: 3px 0 13px 13px !important;
  padding: 2px 0 2px 12px !important;
  list-style: none !important;
  border-left: 1px solid var(--andong-line);
}

.left-sidebar .submenu li a {
  display: block !important;
  min-height: 0 !important;
  height: auto !important;
  max-width: 168px;
  padding: 4px 0 !important;
  color: var(--andong-muted);
  font-size: 10.5px !important;
  line-height: 1.5 !important;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.left-sidebar .submenu li a:hover {
  color: var(--andong-accent);
}

.left-now {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  max-width: 186px;
  margin-top: 12px;
  padding: 18px 16px 16px;
  border: 1px solid var(--andong-line);
  border-radius: 12px;
  background: rgba(70, 78, 73, 0.055);
  color: var(--andong-text);
  box-shadow: 0 10px 28px rgba(27, 33, 30, 0.025);
  backdrop-filter: blur(9px) saturate(0.8);
  -webkit-backdrop-filter: blur(9px) saturate(0.8);
}

.left-now::before {
  position: absolute;
  z-index: -1;
  inset: -30%;
  background:
    radial-gradient(ellipse at 8% 14%, rgba(63, 107, 87, 0.14), transparent 32%),
    radial-gradient(ellipse at 94% 86%, rgba(27, 33, 30, 0.07), transparent 34%);
  filter: blur(12px);
  transform: rotate(6deg);
  content: "";
  pointer-events: none;
}

.left-now__block {
  position: relative;
}

.left-now__eyebrow {
  margin: 0;
  color: var(--andong-muted);
  font-size: 9px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.left-now__state {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 13px 0 14px;
  color: var(--andong-text);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.left-now__state span {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--andong-accent);
  box-shadow: 0 0 0 4px rgba(63, 107, 87, 0.09);
}

.left-now__focus {
  margin: 0;
  color: var(--andong-text);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.5;
}

.left-now__topics {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: var(--andong-muted);
  font-size: 10px;
  line-height: 1.4;
}

.left-now__topics li {
  position: relative;
  padding-left: 13px;
}

.left-now__topics li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 6px;
  height: 1px;
  background: rgba(63, 107, 87, 0.42);
  content: "";
}

.left-now__divider {
  height: 1px;
  margin: 18px 0 16px;
  background: linear-gradient(90deg, var(--andong-line), transparent 92%);
}

.left-now__status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.left-now__badge {
  padding: 3px 6px;
  border: 1px solid rgba(63, 107, 87, 0.18);
  border-radius: 999px;
  color: var(--andong-accent);
  font-size: 7px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
}

.left-now__metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 11px 0 0;
}

.left-now__metrics div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 7px 0;
  border-bottom: 1px solid var(--andong-line);
}

.left-now__metrics div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.left-now__metrics dt {
  color: var(--andong-muted);
  font-size: 9.5px;
  line-height: 1.3;
}

.left-now__metrics dd {
  overflow: hidden;
  margin: 0;
  color: var(--andong-text);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.left-now.is-offline .left-now__badge,
.left-now.is-offline [data-now-service] {
  color: #a46a54;
}

[data-scheme="dark"] .left-now {
  background: rgba(23, 28, 25, 0.5);
}

[data-scheme="dark"] .left-sidebar__ink-panel {
  background: rgba(143, 184, 162, 0.035);
}

[data-scheme="dark"] .left-sidebar__ink-panel::before {
  background:
    radial-gradient(ellipse at 12% 10%, rgba(143, 184, 162, 0.12), transparent 34%),
    radial-gradient(ellipse at 94% 92%, rgba(232, 237, 233, 0.04), transparent 36%);
}

[data-scheme="dark"] .left-now::before {
  background:
    radial-gradient(ellipse at 8% 14%, rgba(143, 184, 162, 0.12), transparent 32%),
    radial-gradient(ellipse at 94% 86%, rgba(232, 237, 233, 0.04), transparent 34%);
}

@media (max-width: 768px) {
  .left-sidebar .site-description {
    max-width: none;
  }

  .left-sidebar #main-menu > li > a,
  .left-sidebar #dark-mode-toggle,
  .left-sidebar #translate-toggle {
    font-size: 15px !important;
  }

  .left-sidebar .submenu li a {
    max-width: 270px;
    font-size: 12px !important;
  }

  .left-now {
    display: none;
  }
}

@media (min-width: 769px) and (max-height: 820px) {
  .left-now {
    display: none;
  }
}
