
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --orange: #e8630a;
    --orange-light: #f97316;
    --orange-faint: #fff4ee;
    --gray-900: #1a1a1a;
    --gray-700: #3d3d3d;
    --gray-500: #737373;
    --gray-300: #d4d4d4;
    --gray-100: #f5f5f5;
    --white: #ffffff;
    --border: #e5e5e5;
  }

  body {
    font-family: 'Work Sans', sans-serif;
    background: var(--white);
    color: var(--gray-900);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  /* HEADER */
  header {
    background: var(--white);
    border-bottom: 2px solid var(--orange);
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .header-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  nav.main-nav {
    display: flex;
    gap: 32px;
    align-items: center;
  }

  nav.main-nav a {
    text-decoration: none;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.15s;
  }

  nav.main-nav a:hover {
    color: var(--orange);
  }

  .auth-links {
    position: absolute;
    right: 20px;
    display: flex;
    gap: 14px;
    align-items: center;
  }

  .auth-links a {
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    transition: color 0.15s;
  }

  .auth-links a:hover { color: var(--orange); }

  .auth-links .btn-login {
    background: var(--orange);
    color: var(--white);
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
  }

  .auth-links .btn-login:hover {
    background: var(--orange-light);
    color: var(--white);
  }

  /* HAMBURGER */
  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: absolute;
    left: 20px;
    padding: 6px;
  }

  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all 0.2s;
  }

  .mobile-menu {
    display: none;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 16px 20px;
  }

  .mobile-menu.open { display: block; }

  .mobile-menu a {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    color: var(--gray-700);
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid var(--gray-100);
  }

  .mobile-menu a:last-child { border-bottom: none; }

  /* MAIN CONTENT */
  main {
    max-width: 900px;
    margin: 0 auto;
    padding: 28px 20px 48px;
    flex: 1;
    width: 100%;
  }

  .category-chip {
    display: inline-block;
    background: var(--orange-faint);
    color: var(--orange);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 12px;
  }

  h1.thread-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
    margin-bottom: 6px;
  }

  .thread-meta-top {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 28px;
    flex-wrap: wrap;
  }

  .thread-meta-top span { display: flex; align-items: center; gap: 5px; }

  .divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0 0 24px;
  }

  /* POSTS */
  .post {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
  }

  .post:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
  }

  .post-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
  }

  .post-body {
    flex: 1;
    min-width: 0;
  }

  .post-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
  }

  .username {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-900);
  }

  .post-time {
    font-size: 11px;
    color: var(--gray-500);
  }

  .post-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--orange);
    color: var(--white);
    padding: 1px 7px;
    border-radius: 3px;
  }

  .post-content {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.65;
  }

  .post-content p { margin-bottom: 8px; }
  .post-content p:last-child { margin-bottom: 0; }

  /* QUOTE */
  .quote-block {
    background: var(--gray-100);
    border-left: 3px solid var(--orange);
    padding: 9px 13px;
    margin-bottom: 10px;
    border-radius: 0 4px 4px 0;
    font-size: 13px;
    color: var(--gray-500);
  }

  .quote-block .quote-author {
    font-weight: 700;
    font-size: 12px;
    color: var(--gray-700);
    margin-bottom: 3px;
  }

  /* POST ACTIONS */
  .post-actions {
    display: flex;
    gap: 16px;
    margin-top: 10px;
  }

  .post-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Work Sans', sans-serif;
    font-size: 12px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    transition: color 0.15s;
  }

  .post-actions button:hover { color: var(--orange); }

  /* THREAD STATS */
  .thread-stats {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
  }

  .stat-item {
    display: flex;
    flex-direction: column;
  }

  .stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--gray-500);
    font-weight: 600;
    margin-bottom: 2px;
  }

  .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
  }

  /* FOOTER */
  footer {
    background: var(--gray-100);
    border-top: 1px solid var(--border);
    padding: 18px 20px;
    text-align: center;
  }

  .footer-inner {
    max-width: 900px;
    margin: 0 auto;
  }

  .social-icons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 10px;
  }

  .social-icons a {
    color: var(--gray-500);
    font-size: 16px;
    text-decoration: none;
    transition: color 0.15s;
  }

  .social-icons a:hover { color: var(--orange); }

  .footer-legal {
    font-size: 12px;
    color: var(--gray-500);
  }

  .footer-legal a {
    color: var(--gray-500);
    text-decoration: underline;
  }

  /* RESPONSIVE */
  @media (max-width: 600px) {
    .hamburger { display: flex; }
    nav.main-nav { display: none; }
    .auth-links { display: none; }
    h1.thread-title { font-size: 18px; }
    .thread-stats { gap: 20px; }
    .stat-value { font-size: 17px; }
  }
