
  * { box-sizing: border-box; }
  html, body {
    margin: 0; padding: 0;
    background: #fcfcfc;
    color: #2c3426;
    font-family: "IBM Plex Mono", monospace;
    font-weight: 500;
    font-size: 17px;
    line-height: 1.52;
    letter-spacing: 0.2px;
  }
  h1, h2, h3, .heading-font {
    font-family: "Oxygen", "IBM Plex Mono", monospace;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
  }
  a { color: #179d31; text-decoration: none; }
  a:hover { text-decoration: underline; }
  img { max-width: 100%; display: block; }

  .wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px; }

  /* HEADER */
  .site-header {
    background: #264015;
    color: #fcfcfc;
    padding: 14px 0;
  }
  .site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }
  .site-logo { height: 34px; width: auto; }

  .utility-row {
    background: #e6e7e5;
    border-bottom: 1px solid #b9c6b1;
    padding: 8px 0;
  }
  .utility-row .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }
  .search-box {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .search-box input[type="text"] {
    border: 1px solid #b9c6b1;
    border-radius: 5px;
    padding: 6px 10px;
    font-family: inherit;
    font-size: 14px;
    background: #fbfbfb;
    color: #2c3426;
    width: 200px;
    max-width: 45vw;
  }
  .search-box button {
    border: 1px solid #b9c6b1;
    background: #fbfbfb;
    border-radius: 5px;
    padding: 6px 10px;
    cursor: pointer;
    color: #2c3426;
  }
  .auth-links a {
    margin-left: 12px;
    font-size: 14px;
    color: #2c3426;
  }
  .auth-links a:first-child { margin-left: 0; }

  /* THREAD HERO */
  .thread-hero {
    text-align: center;
    padding: 34px 16px 18px;
  }
  .thread-title {
    font-size: 28px;
    margin: 0 auto 14px;
    max-width: 780px;
    color: #264015;
  }
  .thread-meta-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    font-size: 13px;
    color: #5f6759;
    margin-top: 6px;
  }
  .thread-meta-bar span { white-space: nowrap; }
  .cat-badge {
    background: #6ed93f;
    color: #264015;
    border-radius: 5px;
    padding: 2px 9px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
  }

  /* TABS */
  .tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 16px 24px;
    border-bottom: 1px solid #b9c6b1;
  }
  .tabs a {
    padding: 7px 14px;
    border: 1px solid #b9c6b1;
    border-radius: 5px;
    font-size: 13px;
    color: #2c3426;
    background: #fbfbfb;
  }
  .tabs a.active {
    background: #264015;
    color: #fcfcfc;
    border-color: #264015;
  }

  /* THREAD BODY */
  .thread-body { padding: 26px 0 40px; }

  .op-block, .post {
    background: #fbfbfb;
    border: 1px solid #b9c6b1;
    border-radius: 5px;
    display: flex;
    margin-bottom: 22px;
    overflow: hidden;
  }
  .post-user-col {
    width: 150px;
    min-width: 120px;
    flex-shrink: 0;
    background: #e6e7e5;
    border-right: 1px solid #b9c6b1;
    padding: 18px 12px;
    text-align: center;
  }
  .post-content-col {
    flex: 1;
    padding: 18px 20px;
    min-width: 0;
  }
  .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 auto 8px;
    object-fit: cover;
    display: block;
    border: 1px solid #b9c6b1;
  }
  .avatar-initial {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #179d31;
    color: #fcfcfc;
    font-weight: 600;
    font-family: "Oxygen", sans-serif;
    border: 1px solid #b9c6b1;
  }
  .username {
    font-weight: 600;
    font-size: 14px;
    color: #264015;
    word-break: break-word;
  }
  .role-tag {
    font-style: italic;
    font-size: 11px;
    color: #5f6759;
    margin-top: 2px;
  }
  .user-sub {
    font-size: 11px;
    color: #5f6759;
    margin-top: 6px;
    line-height: 1.4;
  }
  .post-top-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: #5f6759;
    border-bottom: 1px solid #b9c6b1;
    padding-bottom: 8px;
    margin-bottom: 10px;
  }
  .edited-tag {
    color: #5f6759;
    font-style: italic;
  }
  .post-text p { margin: 0 0 10px; }
  .post-text p:last-child { margin-bottom: 0; }
  .post-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #b9c6b1;
    font-size: 13px;
    color: #5f6759;
  }
  .reaction {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .reaction i { color: #179d31; }
  .reply-hint {
    font-size: 12px;
    color: #5f6759;
    margin-bottom: 8px;
  }

  .time-gap {
    text-align: center;
    font-size: 12px;
    color: #5f6759;
    margin: 6px 0 22px;
    position: relative;
    border-bottom: 4px double #b9c6b1;
    padding-bottom: 10px;
  }

  .op-post p { margin: 0 0 10px; }

  /* FOOTER */
  .site-footer {
    background: #264015;
    color: #fcfcfc;
    margin-top: 20px;
  }
  .footer-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 28px 16px 18px;
    max-width: 1060px;
    margin: 0 auto;
  }
  .footer-block {
    flex: 1 1 220px;
    font-size: 13px;
    color: #e6e7e5;
  }
  .footer-block h3 {
    font-size: 14px;
    color: #6ed93f;
    margin: 0 0 8px;
  }
  .footer-social {
    text-align: center;
    padding: 6px 0 4px;
  }
  .footer-social a {
    color: #fcfcfc;
    margin: 0 8px;
    font-size: 16px;
  }
  .footer-disclaimer {
    text-align: center;
    font-size: 11px;
    color: #b9c6b1;
    padding: 8px 16px 20px;
  }

  @media (max-width: 620px) {
    .op-block, .post { flex-direction: column; }
    .post-user-col {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 10px;
      text-align: left;
      padding: 12px 14px;
    }
    .avatar, .avatar-initial { margin: 0; }
    .user-sub { margin-top: 0; }
    .thread-title { font-size: 22px; }
  }
