
.status-panel {
  display: grid;
  gap: 16px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compact-status-grid {
  margin-top: 6px;
}

.status-card {
  padding: 14px 16px;
  border: 1px solid rgba(167, 185, 214, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.54);
}

.status-k {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-card strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.2;
}

.feed-links,
.feed-list,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feed-links a,
.feed-list a,
.tag,
.tag-link,
.tag-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(167, 185, 214, 0.34);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.tag-button {
  cursor: pointer;
}

.tag-row {
  margin-top: 8px;
}

.tag,
.tag-link,
.tag-button {
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.74rem;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid rgba(167, 185, 214, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.language-toggle button {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
}

.language-toggle button:hover {
  color: var(--accent-strong);
}

.language-toggle button.is-active,
.language-toggle button[aria-pressed="true"] {
  color: var(--ink);
  background: rgba(121, 181, 213, 0.18);
  box-shadow: none;
}

.topbar-inner {
  gap: 12px;
  flex-wrap: nowrap;
}

.topbar-tools {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
  min-width: 0;
  flex: 1 1 auto;
}

.topnav {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  justify-content: flex-end;
  min-width: 0;
}

.topnav a {
  white-space: nowrap;
  font-size: 0.88rem;
}

.topbar-search,
.utility-search {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.topbar-search {
  flex: 0 0 auto;
}

.utility-bar {
  border-bottom: 1px solid rgba(167, 185, 214, 0.24);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(12px);
}

.utility-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 20px 12px;
  display: grid;
  gap: 10px;
}

.utility-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.search-input {
  min-width: min(320px, 100%);
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(167, 185, 214, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font: inherit;
}

.topbar-search .search-input {
  min-width: 0;
  width: 170px;
}

.search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(167, 185, 214, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.search-button:hover,
.tag-button:hover {
  color: var(--accent-strong);
}

.utility-tags {
  margin-top: 0;
}

.entry-meta,
.search-result-meta,
.search-summary {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.search-summary {
  margin-bottom: 14px;
}

.search-results li {
  padding: 16px 0;
}

.search-empty {
  padding: 18px 20px;
  border: 1px solid rgba(167, 185, 214, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.learning-path {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.learning-step {
  padding: 18px 20px;
  border: 1px solid rgba(167, 185, 214, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.learning-step strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.learning-step p + p {
  margin-top: 8px;
}

.table-wrap {
  width: 100%;
  margin-top: 18px;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  border: 1px solid rgba(167, 185, 214, 0.3);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}

.data-table thead th {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(167, 185, 214, 0.3);
  background: rgba(244, 248, 255, 0.92);
  color: var(--ink);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-align: left;
  vertical-align: top;
}

.data-table tbody th,
.data-table tbody td {
  padding: 15px 16px;
  border-top: 1px solid rgba(167, 185, 214, 0.22);
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
  line-height: 1.64;
}

.data-table tbody tr:first-child th,
.data-table tbody tr:first-child td {
  border-top: 0;
}

.data-table tbody th {
  width: 15%;
  min-width: 120px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-good {
  color: #245c42;
  background: rgba(217, 240, 236, 0.9);
  border-color: rgba(112, 184, 155, 0.35);
}

.status-mid {
  color: #7a5a22;
  background: rgba(252, 244, 214, 0.92);
  border-color: rgba(216, 190, 102, 0.32);
}

.status-low {
  color: #7d3341;
  background: rgba(251, 229, 233, 0.92);
  border-color: rgba(214, 120, 140, 0.28);
}

.callout {
  padding: 18px 20px;
  border: 1px solid rgba(167, 185, 214, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.callout strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.kv-list {
  display: grid;
  gap: 14px;
}

.kv-item {
  padding-top: 14px;
  border-top: 1px solid rgba(167, 185, 214, 0.24);
}

.kv-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.kv-item strong {
  display: block;
  margin-bottom: 4px;
}

@media (max-width: 860px) {
  .status-grid {
    grid-template-columns: 1fr;
  }

  .utility-inner {
    padding: 10px 16px 12px;
  }

  .topbar-inner,
  .topbar-tools,
  .topbar-search,
  .utility-search {
    width: 100%;
  }

  .topbar-tools {
    gap: 8px;
  }

  .topnav {
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .topnav::-webkit-scrollbar {
    display: none;
  }

  .search-input {
    min-width: 0;
    flex: 1 1 160px;
  }

  .topbar-search .search-input {
    width: 140px;
  }
}

/* Header layout fix */
.topbar-tools {
  display: contents;
}

.topbar-inner {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 170px minmax(280px, 1fr);
  align-items: center;
  gap: 12px;
}

.brand {
  grid-column: 1;
  justify-self: start;
  min-width: 0;
  order: 1;
}

.topbar-search {
  grid-column: 2;
  justify-self: center;
  width: 170px;
  min-width: 0;
  max-width: none;
  order: 2;
}

.topbar-search .search-input {
  width: 170px;
  min-width: 0;
}

.topbar-search--placeholder {
  visibility: hidden;
  pointer-events: none;
}

.topbar-actions {
  grid-column: 3;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  justify-self: end;
  min-width: 0;
  order: 3;
}

.topnav {
  justify-content: flex-end;
  min-width: 0;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid rgba(167, 185, 214, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.language-button {
  min-width: 34px;
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.language-button:hover,
.language-button.active,
.language-button[aria-pressed="true"] {
  background: rgba(121, 181, 213, 0.18);
  color: var(--ink);
}

@media (max-width: 860px) {
  .topbar-inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .brand,
  .topbar-search,
  .topbar-actions,
  .topnav {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
  }

  .topbar-actions {
    justify-content: space-between;
  }

  .topbar-search .search-input {
    width: 100%;
  }
}
