:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #ffffff;
  --text: #121417;
  --muted: #667085;
  --line: #dde4ed;
  --line-strong: #bcc6d2;
  --link: #1f2937;
  --scroll-track: #ffffff;
  --scroll-thumb: #c4ced9;
  --scroll-thumb-hover: #d3dbe5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Courier Prime", "Courier New", monospace;
  line-height: 1.7;
  font-size: 16px;
  padding-bottom: 3.7rem;
}

html,
body,
.modal-content,
#detailBody {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.modal-content::-webkit-scrollbar,
#detailBody::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track,
#detailBody::-webkit-scrollbar-track {
  background: var(--scroll-track);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb,
#detailBody::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border: 2px solid var(--scroll-track);
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover,
#detailBody::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-thumb-hover);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: clamp(1.6rem, 2.5vw, 2.15rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
}

h2 {
  font-size: 1.08rem;
  line-height: 1.35;
}

h3 {
  font-size: 1rem;
}

h4 {
  font-size: 0.92rem;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) minmax(0, 980px) minmax(max-content, 1fr);
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 1.1rem;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
  justify-self: start;
}

.brand strong {
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

.brand .muted {
  font-size: 0.72rem;
}

.auth-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  justify-self: end;
}

.site-header-tools {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) minmax(140px, 1.35fr) minmax(140px, 1.35fr) auto;
  gap: 0.4rem;
  align-items: center;
  min-width: 0;
  justify-self: stretch;
  width: 100%;
}

.container {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 1.35rem 1.25rem 2.6rem;
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
}

/* Safety guard: if footer is rendered twice for any reason, keep only one visible. */
footer.site-footer ~ footer.site-footer {
  display: none !important;
}

.site-footer-inner {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.hero-notice {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid #bcc6d2;
  border-left: 4px solid #bcc6d2;
  border-radius: 0.45rem;
  background: #f8fafc;
  color: #121417;
  font-size: 0.88rem;
}

.site-header-tools input,
.site-header-tools select,
.stack input,
.stack textarea,
.stack select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0.45rem;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  padding: 0.46rem 0.6rem;
}

.stack textarea,
.comment-form textarea,
.reply-form textarea {
  resize: vertical;
  max-width: 100%;
}

.site-header-tools select,
.stack select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.35rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23374151' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 10px 6px;
}

.post-reason-field {
  display: grid;
  gap: 0.28rem;
}

.post-reason-field textarea {
  padding-bottom: 0.6rem;
}

.post-reason-counter {
  justify-self: end;
  font-size: 0.74rem;
  color: #667085;
  line-height: 1;
  padding: 0;
}

.post-reason-counter.limit {
  color: #334155;
}

.site-header-tools input:focus,
.site-header-tools select:focus,
.stack input:focus,
.stack textarea:focus,
.stack select:focus {
  outline: none;
  border-color: #6b7280;
}

.site-header-tools .btn {
  white-space: nowrap;
  font-size: 0.78rem;
  padding: 0.44rem 0.58rem;
}

.header-filter-clear {
  padding: 0.44rem 0.58rem;
  font-size: 0.78rem;
}

.auth-controls .btn {
  font-size: 0.8rem;
  padding: 0.42rem 0.6rem;
}

.auth-controls .muted {
  font-size: 0.78rem;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.panel-stack {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.9rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.22rem;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}

.top-list {
  counter-reset: top-rank;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.top-list > li {
  counter-increment: top-rank;
  min-width: 0;
}

.top-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.62rem 0.72rem;
  border: 1px solid #d9dee5;
  border-radius: 0.2rem;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
  color: var(--text);
  text-decoration: none;
  font-size: 0.84rem;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.top-item::before {
  content: counter(top-rank, decimal-leading-zero);
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 1.45rem;
  border: 1px solid #d3dbe5;
  border-radius: 0.12rem;
  color: #4b5563;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  background: #ffffff;
}

.top-item:hover {
  border-color: #7d8ea4;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #000000;
  transform: translateY(-1px);
}

.top-item-company {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.feed {
  display: grid;
  gap: 1.35rem;
}

.feed-status {
  margin-top: 0.85rem;
  text-align: center;
}

.feed-sentinel {
  width: 100%;
  height: 1px;
}

.post-card {
  border: 1px solid var(--line);
  border-radius: 0.22rem;
  padding: 1.1rem 1rem;
  background: #ffffff;
  display: grid;
  gap: 0.85rem;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.12);
}

.feed > .post-card:nth-child(odd) {
  background: #ffffff;
  border-color: #d8e0e9;
}

.feed > .post-card:nth-child(even) {
  background: #f7f9fc;
  border-color: #c8d3e0;
}

.post-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

.post-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.post-company {
  font-size: 1rem;
}

.post-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.post-website {
  font-size: 0.82rem;
  margin-top: -0.2rem;
}

.post-reason {
  font-size: 0.95rem;
}

.stars {
  white-space: nowrap;
  letter-spacing: 0.07em;
  font-size: 0.96rem;
}

.stars.has-tooltip {
  position: relative;
  cursor: help;
}

.stars.has-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: max-content;
  max-width: min(300px, 80vw);
  padding: 0.4rem 0.55rem;
  border: 1px solid #d3dbe5;
  border-radius: 0.4rem;
  background: #ffffff;
  color: #17212f;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: normal;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  z-index: 15;
}

.stars.has-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #d3dbe5;
  opacity: 0;
  pointer-events: none;
  z-index: 15;
}

.stars.has-tooltip:hover::after,
.stars.has-tooltip:hover::before {
  opacity: 1;
}

.star {
  display: inline-block;
  line-height: 1;
  font-size: 1rem;
}

.star-filled {
  color: #111827;
}

.star-empty {
  color: #9aa8ba;
}

.post-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 0.06rem;
}

.post-menu-trigger {
  width: 1.95rem;
  height: 1.95rem;
  border: 1px solid #d9dee5;
  border-radius: 0.58rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  color: #121417;
  font: inherit;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: inset 0 1px 0 rgba(16, 24, 40, 0.12), 0 2px 8px rgba(16, 24, 40, 0.12);
  transition:
    border-color 0.14s ease,
    background 0.14s ease,
    transform 0.14s ease,
    box-shadow 0.14s ease;
}

.post-menu-trigger:hover {
  border-color: #7d8ea4;
  background: linear-gradient(180deg, #f7f9fc 0%, #f8fafc 100%);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(16, 24, 40, 0.12), 0 6px 14px rgba(16, 24, 40, 0.12);
}

.post-menu-trigger:focus-visible {
  outline: none;
  border-color: #9aa8ba;
  box-shadow:
    0 0 0 2px rgba(107, 114, 128, 0.12),
    inset 0 1px 0 rgba(16, 24, 40, 0.12);
}

.post-menu-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
}

.post-menu-dots > span {
  width: 0.2rem;
  height: 0.2rem;
  border-radius: 999px;
  background: currentColor;
}

.post-menu {
  position: absolute;
  top: calc(100% + 0.42rem);
  right: 0;
  min-width: 184px;
  border: 1px solid #d5dee9;
  border-radius: 0.55rem;
  background: #ffffff;
  padding: 0.34rem;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.2);
  display: grid;
  z-index: 35;
}

.post-menu-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: #121417;
  text-align: left;
  font: inherit;
  font-size: 0.83rem;
  padding: 0.5rem 0.58rem;
  border-radius: 0.4rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  transition: background 0.12s ease, color 0.12s ease;
  line-height: 1.2;
}

.post-menu-item:hover {
  background: #e6ebf2;
}

.post-menu-item-danger {
  color: #1d4ed8;
}

.post-menu-item-danger:hover {
  background: #eef2f6;
  color: #1f2937;
}

.menu-trash-icon {
  width: 0.9rem;
  height: 0.9rem;
  color: currentColor;
  flex: 0 0 auto;
  display: block;
  transform: translateY(-1px);
}

.post-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.comments {
  border-top: 1px solid #e4e9f0;
  padding-top: 0.75rem;
  display: grid;
  gap: 0.45rem;
}

.comments-head {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.8rem;
}

.comments-content {
  display: grid;
  gap: 0.5rem;
}

.comments-list-wrap {
  margin-top: 0.6rem;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.comment-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.comment-avatar {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: #dde4ed;
  color: #111827;
  display: grid;
  place-items: center;
  font-size: 0.73rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.comment-main {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 0.22rem;
}

.comment-bubble {
  background: #f1f4f8;
  border: 1px solid #e6ebf2;
  border-radius: 0.85rem;
  padding: 0.4rem 0.55rem;
  display: grid;
  gap: 0.08rem;
}

.comment-author {
  font-size: 0.76rem;
  font-weight: 700;
  color: #17212f;
}

.comment-text {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #2d3748;
}

.comment-reply-to {
  color: #1d4ed8;
  font-weight: 700;
}

.comment-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding-right: 0.12rem;
}

.fb-action {
  font-size: 0.74rem;
  color: #9aa8ba;
  text-decoration: none;
}

.fb-action:hover {
  color: #111827;
  text-decoration: underline;
}

.fb-like-count {
  font-size: 0.74rem;
  color: #667085;
}

.active-like {
  color: #1d4ed8 !important;
}

.view-replies-link {
  font-size: 0.75rem;
  color: #1d4ed8;
  margin-left: 0.2rem;
  text-decoration: none;
}

.view-replies-link:hover {
  text-decoration: underline;
}

.subcomments-wrapper {
  margin-top: 0.2rem;
}

.subcomment-list {
  list-style: none;
  margin: 0;
  padding: 0.1rem 0 0 1rem;
  display: grid;
  gap: 0.42rem;
  border-left: 1px solid #d2dbe6;
}

.subcomment-list .subcomments-wrapper {
  margin-left: -2.2rem;
}

.subcomment-list .subcomment-list {
  padding-left: 0;
  border-left: 0;
}

.comment-form {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.comment-form textarea {
  font-size: 0.84rem;
  border-radius: 0.4rem;
  padding: 0.55rem 0.68rem;
  background: #eef2f6;
  color: #2d3748;
  border: 1px solid #c9d4e1;
}

.comment-form textarea::placeholder {
  color: #adb9c8;
}

.comment-form textarea:focus {
  border-color: #9aa8ba;
  background: #f4f7fa;
}

.comment-form button {
  justify-self: start;
  font-size: 0.78rem;
  padding: 0.38rem 0.6rem;
}

.reply-form {
  margin-top: 0.25rem;
  display: grid;
  gap: 0.4rem;
}

.reply-form textarea {
  width: 100%;
  font-size: 0.82rem;
  padding: 0.45rem 0.58rem;
  background: #eef2f6;
  color: #2d3748;
  border: 1px solid #c9d4e1;
  border-radius: 0.4rem;
}

.reply-form textarea::placeholder {
  color: #adb9c8;
}

.reply-form textarea:focus {
  border-color: #9aa8ba;
  background: #f4f7fa;
}

.reply-form button {
  justify-self: start;
  font-size: 0.76rem;
  padding: 0.35rem 0.55rem;
}

.comment-lock-note {
  font-size: 0.8rem;
  color: #667085;
}

.stack {
  display: grid;
  gap: 0.65rem;
}

.captcha-field {
  display: grid;
  gap: 0.4rem;
}

.captcha-field label {
  font-size: 0.82rem;
  color: #4b5563;
}

.captcha-field span {
  color: #121417;
}

.captcha-field-turnstile {
  align-items: start;
}

.turnstile-widget-host {
  min-height: 65px;
}

.small-note {
  font-size: 0.82rem;
  color: #667085;
}

.page-message-important {
  margin-top: 0.35rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #bcc6d2;
  border-left: 4px solid #334155;
  border-radius: 0.45rem;
  background: #f8fafc;
  color: #121417;
  font-weight: 700;
}

.locked-box {
  border: 1px dashed #b5c1ce;
  border-radius: 0.5rem;
  padding: 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.btn {
  border: 1px solid #9aa8ba;
  background: #ffffff;
  color: var(--text);
  border-radius: 0.45rem;
  padding: 0.52rem 0.8rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn:hover {
  border-color: #7d8ea4;
  background: #f8fafc;
}

.btn-outline {
  background: transparent;
}

.btn-primary {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
}

.btn-primary:hover {
  background: #121417;
  border-color: #121417;
}

.btn-danger {
  border-color: #334155;
  background: #1f2937;
  color: #ffffff;
}

.btn-danger:hover {
  border-color: #1f2937;
  background: #111827;
}

.btn.active {
  border-color: #667085;
  background: #e6ebf2;
  color: #334155;
}

.nav-link,
.text-link {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
  font-size: 0.88rem;
}

.nav-link:hover,
.text-link:hover {
  color: #000000;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.1rem;
  background: rgba(15, 23, 42, 0.28);
}

.modal.modal-confirm {
  z-index: 60;
}

.loading-modal {
  z-index: 55;
  background: radial-gradient(circle at 50% 35%, rgba(16, 24, 40, 0.12), rgba(15, 23, 42, 0.28) 55%);
  backdrop-filter: blur(2px);
}

.loading-modal-content {
  width: min(250px, 100%);
  gap: 0.6rem;
  padding: 1rem 0.9rem;
  border-color: #d5dee9;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
  justify-items: center;
  text-align: center;
}

.loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #c8d3e0;
  border-top-color: #334155;
  border-radius: 999px;
  animation: loading-spin 0.85s linear infinite;
}

.loading-title {
  margin: 0;
  color: #121417;
  font-size: 0.9rem;
  font-weight: 700;
}

@keyframes loading-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-spinner {
    animation: none;
  }
}

.modal-content {
  width: min(620px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid #d5dee9;
  border-radius: 0.65rem;
  background: #ffffff;
  padding: 1.15rem;
  position: relative;
  display: grid;
  gap: 0.9rem;
}

.terms-modal-content {
  max-height: 85vh;
  overflow-y: auto;
}

.terms-content {
  gap: 0.85rem;
}

.profile-modal-content {
  width: min(560px, 100%);
}

.profile-password-section {
  border-top: 1px solid #e2e8f0;
  padding-top: 0.65rem;
  display: grid;
  gap: 0.5rem;
}

.profile-password-section h3 {
  font-size: 0.9rem;
}

.profile-delete-link {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font-size: 0.84rem;
  justify-self: start;
}

.profile-delete-link:hover {
  color: #1d4ed8;
}

.profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.delete-profile-modal-content {
  width: min(460px, 100%);
  gap: 0.7rem;
}

.delete-post-modal-content {
  width: min(460px, 100%);
  gap: 0.7rem;
}

.terms-section-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #121417;
}

.terms-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.2rem;
}

.detail-modal-content {
  padding: 0;
  gap: 0;
}

.detail-modal-top {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.9rem 1rem 0.85rem;
  background: #ffffff;
  border-bottom: 1px solid #d8e0e9;
}

.detail-top-info {
  min-width: 0;
  display: grid;
  gap: 0.16rem;
}

.detail-company {
  font-size: 1rem;
  line-height: 1.35;
}

.detail-meta {
  font-size: 0.78rem;
}

.detail-meta-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  vertical-align: middle;
}

#detailBody {
  padding: 1rem 1rem 1.15rem;
  display: grid;
  gap: 1.25rem;
}

.detail-post-content {
  font-size: 0.94rem;
  color: #1f2937;
}

.detail-website {
  margin-bottom: 0.55rem;
}

.detail-post-actions {
  margin-top: 0.7rem;
  justify-content: flex-end;
}

.detail-comments-section {
  margin-top: 0.55rem;
  padding-top: 0.95rem;
  border-top: 1px solid #e6ebf2;
  display: grid;
  gap: 0.6rem;
}

.modal-switch {
  display: flex;
  gap: 0.55rem;
}

.close {
  position: absolute;
  top: 0.45rem;
  right: 0.5rem;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 1.25rem;
  cursor: pointer;
}

.close:hover {
  color: #111827;
}

.close-inline {
  position: static;
  width: 2rem;
  height: 2rem;
  border: 1px solid #d3dbe5;
  border-radius: 999px;
  background: #f8fafc;
  display: grid;
  place-items: center;
  color: #4b5563;
  line-height: 1;
  flex: 0 0 auto;
}

.close-inline:hover {
  border-color: #9fb0c4;
  color: #111827;
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 0.55rem;
  }

  .brand {
    min-width: 0;
  }

  .site-header-tools {
    grid-column: 1 / -1;
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .header-search-input {
    grid-column: 1 / -1;
  }

  .header-filter-clear {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .top-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .site-header {
    gap: 0.45rem;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .site-header-tools {
    grid-template-columns: minmax(165px, 1.8fr) minmax(125px, 1.2fr) minmax(125px, 1.2fr) auto;
    gap: 0.3rem;
  }

  .site-header-tools input,
  .site-header-tools select {
    font-size: 0.8rem;
    padding: 0.4rem 0.52rem;
  }

  .site-header-tools .btn,
  .header-filter-clear,
  .auth-controls .btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.5rem;
  }

  .brand strong {
    font-size: 0.88rem;
  }

  .brand .muted {
    font-size: 0.68rem;
  }
}

@media (max-width: 620px) {
  .site-header {
    grid-template-columns: 1fr;
    align-items: flex-start;
    padding: 0.7rem 0.85rem;
  }

  .brand {
    width: 100%;
  }

  .site-header-tools {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .header-filter-clear {
    grid-column: auto;
  }

  .auth-controls {
    width: 100%;
    justify-self: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .panel-head,
  .post-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
