@import "tailwindcss";

@theme {
  --font-sans: "InterVariable", "Inter", ui-sans-serif, system-ui, sans-serif;

  --color-fever-50: #fffbe3;
  --color-fever-100: #fff4b8;
  --color-fever-200: #fbe27f;
  --color-fever-300: #f6d84a;
  --color-fever-400: #efc71c;
  --color-fever-500: #ddb10e;
  --color-shell-50: #faf7f0;
  --color-shell-100: #f2ede4;
  --color-shell-200: #e2dacc;
  --color-shell-300: #cdbfa9;
  --color-ink-950: #111111;
  --color-ink-900: #191713;
  --color-ink-800: #2b261f;
  --color-ink-700: #494136;
  --color-ink-600: #665c4d;
  --color-ink-500: #837864;
  --color-ink-400: #a79d8d;
  --color-ink-300: #d5cfc4;
}

@layer base {
  :root {
    color-scheme: light;
  }

  html {
    background: linear-gradient(180deg, #f7f3eb 0%, #f1ece2 45%, #ebe6dc 100%);
  }

  body {
    min-width: 20rem;
    font-family: var(--font-sans);
    color: var(--color-ink-800);
    background:
      radial-gradient(circle at top, rgb(246 228 116 / 0.2), transparent 28rem),
      radial-gradient(circle at 100% 0%, rgb(56 189 248 / 0.14), transparent 24rem),
      linear-gradient(180deg, #f7f3eb 0%, #f0ebe2 42%, #ebe6dc 100%);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }

  abbr[title] {
    text-decoration: none;
  }

  a {
    transition:
      color 180ms ease,
      background-color 180ms ease,
      border-color 180ms ease,
      box-shadow 180ms ease,
      transform 180ms ease;
  }

  input::placeholder,
  textarea::placeholder {
    color: color-mix(in srgb, var(--color-ink-500) 76%, transparent);
  }

  ::selection {
    background: rgb(246 228 116 / 0.55);
    color: var(--color-ink-950);
  }

  mark.search-highlight {
    border-radius: 0.25rem;
    background: rgb(250 204 21 / 0.34);
    box-shadow: inset 0 -0.55em 0 rgb(250 204 21 / 0.34);
    color: inherit;
    padding-inline: 0.08em;
  }
}

@layer components {
  .container {
    margin-inline: auto;
    max-width: 82rem;
    padding-inline: 1rem;
  }

  .app-shell {
    position: relative;
  }

  .page-wrap {
    margin-inline: auto;
    max-width: 82rem;
    padding-inline: 1rem;
    padding-block: 2rem;
  }

  .surface-panel {
    overflow: hidden;
    border: 1px solid rgb(214 211 209 / 0.8);
    border-radius: 1.4rem;
    background: rgb(255 255 255 / 0.88);
    box-shadow:
      0 1px 4px rgb(15 23 42 / 0.04),
      0 12px 28px rgb(15 23 42 / 0.06);
    backdrop-filter: blur(16px);
  }

  .surface-panel-soft {
    overflow: hidden;
    border: 1px solid rgb(226 218 204 / 0.9);
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgb(255 255 255 / 0.92), rgb(250 247 240 / 0.94));
    box-shadow:
      0 1px 4px rgb(15 23 42 / 0.03),
      0 10px 22px rgb(15 23 42 / 0.05);
  }

  .surface-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgb(214 211 209 / 0.8);
    padding: 2rem 1.5rem;
  }

  .surface-hero > * {
    position: relative;
    z-index: 1;
  }

  .surface-hero-dark {
    color: white;
    background:
      radial-gradient(circle at top left, rgb(246 228 116 / 0.28), transparent 26rem),
      radial-gradient(circle at 85% 20%, rgb(56 189 248 / 0.18), transparent 20rem),
      linear-gradient(135deg, #0f172a 0%, #1f2937 36%, #292524 100%);
  }

  .surface-hero-light {
    background:
      radial-gradient(circle at top left, rgb(56 189 248 / 0.16), transparent 22rem),
      radial-gradient(circle at 100% 0%, rgb(246 228 116 / 0.2), transparent 18rem),
      linear-gradient(180deg, rgb(255 255 255 / 0.96), rgb(247 244 237 / 0.98));
  }

  .surface-stack {
    background: linear-gradient(180deg, rgb(250 247 240 / 0.78), rgb(245 242 236 / 0.65));
  }

  .ui-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
  }

  .ui-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-ink-500);
  }

  .ui-title {
    font-size: clamp(2rem, 3.6vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--color-ink-950);
  }

  .ui-title-light {
    color: white;
  }

  .ui-subtitle {
    max-width: 44rem;
    color: color-mix(in srgb, var(--color-ink-700) 92%, white);
  }

  .ui-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 9999px;
    border: 1px solid rgb(214 211 209 / 0.85);
    background: rgb(255 255 255 / 0.92);
    padding: 0.45rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-ink-700);
  }

  .ui-pill-accent {
    border-color: rgb(246 228 116 / 0.9);
    background: rgb(255 251 219 / 0.95);
    color: #8a6200;
  }

  .ui-pill-danger {
    border-color: rgb(252 165 165 / 0.9);
    background: rgb(254 242 242 / 0.95);
    color: rgb(153 27 27);
  }

  .ui-button-primary,
  .ui-button-secondary,
  .ui-button-accent,
  .ui-button-danger,
  .ui-button-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.95rem;
    padding: 0.78rem 1.15rem;
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
  }

  .ui-button-primary {
    border: 1px solid rgb(17 24 39 / 0.9);
    background: linear-gradient(135deg, #111827 0%, #292524 100%);
    color: white;
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.08),
      0 6px 14px rgb(15 23 42 / 0.14);
  }

  .ui-button-primary:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #1f2937 0%, #44403c 100%);
  }

  .ui-button-secondary,
  .ui-button-ghost {
    border: 1px solid rgb(214 211 209 / 0.95);
    background: rgb(255 255 255 / 0.92);
    color: var(--color-ink-700);
    box-shadow: 0 3px 10px rgb(15 23 42 / 0.05);
  }

  .ui-button-secondary:hover,
  .ui-button-ghost:hover {
    transform: translateY(-1px);
    border-color: rgb(168 162 158 / 0.95);
    color: var(--color-ink-950);
    box-shadow: 0 6px 14px rgb(15 23 42 / 0.07);
  }

  .ui-button-accent {
    border: 1px solid rgb(245 158 11 / 0.45);
    background: linear-gradient(135deg, rgb(255 247 205 / 0.95), rgb(254 240 138 / 0.82));
    color: rgb(120 53 15);
    box-shadow: 0 4px 12px rgb(245 158 11 / 0.1);
  }

  .ui-button-accent:hover {
    transform: translateY(-1px);
    border-color: rgb(217 119 6 / 0.55);
    color: rgb(120 53 15);
  }

  .ui-pagination {
    display: flex;
    justify-content: center;
  }

  .ui-pagination__items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
  }

  .ui-pagination-link,
  .ui-pagination-current,
  .ui-pagination-gap {
    display: inline-flex;
    min-height: 2.4rem;
    min-width: 2.4rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
  }

  .ui-pagination-link {
    border: 1px solid rgb(214 211 209 / 0.95);
    background: rgb(255 255 255 / 0.92);
    color: var(--color-ink-700);
    box-shadow: 0 3px 10px rgb(15 23 42 / 0.05);
  }

  .ui-pagination-link:hover {
    transform: translateY(-1px);
    border-color: rgb(168 162 158 / 0.95);
    color: var(--color-ink-950);
    box-shadow: 0 6px 14px rgb(15 23 42 / 0.07);
  }

  .ui-pagination-link-nav {
    padding-inline: 1rem;
  }

  .ui-pagination-current {
    border: 1px solid rgb(245 158 11 / 0.45);
    background: linear-gradient(135deg, rgb(255 247 205 / 0.96), rgb(254 240 138 / 0.86));
    color: rgb(120 53 15);
    box-shadow: 0 4px 12px rgb(245 158 11 / 0.12);
  }

  .ui-pagination-gap {
    color: var(--color-ink-500);
    padding-inline: 0.4rem;
  }

  @media (max-width: 640px) {
    .ui-pagination__items {
      gap: 0.4rem;
    }

    .ui-pagination-link,
    .ui-pagination-current,
    .ui-pagination-gap {
      min-height: 2.15rem;
      min-width: 2.15rem;
      padding: 0.5rem 0.75rem;
      font-size: 0.82rem;
    }

    .ui-pagination-link-nav {
      padding-inline: 0.8rem;
    }
  }

  .ui-button-danger {
    border: 1px solid rgb(248 113 113 / 0.55);
    background: linear-gradient(135deg, rgb(254 242 242 / 0.96), rgb(254 226 226 / 0.94));
    color: rgb(153 27 27);
    box-shadow: 0 4px 12px rgb(239 68 68 / 0.07);
  }

  .ui-button-danger:hover {
    transform: translateY(-1px);
    border-color: rgb(239 68 68 / 0.7);
    color: rgb(127 29 29);
  }

  .ui-button-ghost {
    padding-inline: 0.9rem;
    padding-block: 0.62rem;
    font-size: 0.75rem;
  }

  .ui-form-label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-ink-500);
  }

  .ui-input,
  .ui-select,
  .ui-textarea {
    width: 100%;
    border: 1px solid rgb(214 211 209 / 0.95);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgb(255 255 255 / 0.98), rgb(250 247 240 / 0.92));
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-ink-800);
    box-shadow:
      inset 0 1px 2px rgb(15 23 42 / 0.03),
      0 1px 0 rgb(255 255 255 / 0.8);
  }

  .ui-textarea {
    min-height: 9rem;
  }

  .ui-input:focus,
  .ui-select:focus,
  .ui-textarea:focus {
    outline: none;
    border-color: rgb(56 189 248 / 0.65);
    box-shadow:
      0 0 0 4px rgb(56 189 248 / 0.12),
      0 10px 24px rgb(15 23 42 / 0.08);
  }

  .ui-checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid rgb(226 218 204 / 0.95);
    border-radius: 1rem;
    background: rgb(250 247 240 / 0.82);
    padding: 0.9rem 1rem;
    font-size: 0.92rem;
    color: var(--color-ink-700);
  }

  .ui-table-shell {
    overflow-x: auto;
    border: 1px solid rgb(214 211 209 / 0.9);
    border-radius: 1.15rem;
    background: rgb(255 255 255 / 0.9);
    box-shadow:
      0 1px 4px rgb(15 23 42 / 0.03),
      0 10px 22px rgb(15 23 42 / 0.05);
    backdrop-filter: blur(14px);
  }

  .ui-table {
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.92rem;
  }

  .ui-table thead {
    background:
      linear-gradient(180deg, rgb(250 247 240 / 0.98), rgb(244 239 231 / 0.95));
    color: var(--color-ink-500);
  }

  .ui-table th {
    padding: 0.9rem 1rem;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .ui-table td {
    padding: 0.95rem 1rem;
    color: var(--color-ink-700);
    vertical-align: top;
  }

  .ui-table tbody tr + tr td {
    border-top: 1px solid rgb(241 237 232);
  }

  .ui-table tbody tr:hover td {
    background: rgb(250 247 240 / 0.55);
  }

  .ui-empty-state {
    border: 1px dashed rgb(214 211 209 / 0.95);
    border-radius: 1.5rem;
    background: rgb(255 255 255 / 0.7);
    padding: 2rem;
    text-align: center;
    color: var(--color-ink-500);
  }

  .metric-card {
    border: 1px solid rgb(226 218 204 / 0.95);
    border-radius: 1.1rem;
    background: linear-gradient(180deg, rgb(255 255 255 / 0.96), rgb(250 247 240 / 0.9));
    padding: 1rem 1.1rem;
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.85),
      0 5px 14px rgb(15 23 42 / 0.04);
  }

  .site-topbar {
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
    background:
      radial-gradient(circle at top left, rgb(246 228 116 / 0.16), transparent 16rem),
      linear-gradient(180deg, #080808 0%, #121212 100%);
  }

  .site-mainnav {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgb(214 211 209 / 0.7);
    background: rgb(255 255 255 / 0.78);
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.9), 0 6px 16px rgb(15 23 42 / 0.04);
    backdrop-filter: blur(18px);
  }

  .site-search-shell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgb(255 255 255 / 0.12);
    border-radius: 1.1rem;
    background: rgb(255 255 255 / 0.04);
    padding: 0.3rem;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
  }

  .site-search-input {
    width: 14rem;
    border: none;
    border-radius: 0.9rem;
    background: transparent;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    color: rgb(245 245 244);
  }

  .site-search-input:focus {
    outline: none;
    box-shadow: none;
  }

  .site-search-input::placeholder {
    color: rgb(168 162 158);
  }

  .site-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    border: 1px solid rgb(246 228 116 / 0.65);
    background: linear-gradient(135deg, rgb(246 228 116 / 0.95), rgb(239 196 24 / 0.96));
    padding: 0.55rem 0.95rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--color-ink-950);
  }

  .site-search-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgb(246 228 116 / 0.14);
  }

  .site-nav-link {
    position: relative;
    margin-right: 0.25rem;
    display: inline-flex;
    align-items: center;
    border-bottom: 2px solid transparent;
    padding: 1rem 0.55rem 0.9rem;
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--color-ink-600);
  }

  .site-nav-link:hover {
    color: var(--color-ink-950);
    border-color: rgb(214 211 209 / 0.95);
  }

  .site-nav-link.is-active {
    color: var(--color-ink-950);
    border-color: rgb(246 228 116 / 0.95);
  }

  .site-dropdown-link {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-radius: 1rem;
    padding: 0.9rem 0.95rem;
    color: var(--color-ink-600);
  }

  .site-dropdown-link:hover {
    background: rgb(250 247 240);
    color: var(--color-ink-950);
  }

  .site-dropdown-panel {
    overflow: hidden;
    border: 1px solid rgb(226 218 204 / 0.95);
    border-radius: 1rem;
    background: rgb(255 255 255 / 0.94);
    box-shadow:
      0 6px 16px rgb(15 23 42 / 0.06),
      0 14px 30px rgb(15 23 42 / 0.05);
    backdrop-filter: blur(18px);
  }

  .site-mobile-menu {
    border-top: 1px solid rgb(231 229 228 / 0.9);
    background: rgb(255 255 255 / 0.95);
    backdrop-filter: blur(16px);
  }

  .site-footer {
    position: relative;
    margin-top: 2rem;
    border-top: 1px solid rgb(246 228 116 / 0.28);
    background:
      radial-gradient(circle at 0% 0%, rgb(246 228 116 / 0.12), transparent 18rem),
      linear-gradient(180deg, #080808 0%, #101010 100%);
  }

  .site-footer-sponsor {
    border: 1px solid rgb(255 255 255 / 0.08);
    border-radius: 1.5rem;
    background: rgb(255 255 255 / 0.02);
    padding: 1.25rem;
  }

  .flash-banner {
    border-radius: 1rem;
    padding: 0.95rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 5px 14px rgb(15 23 42 / 0.04);
  }

  .flash-banner.notice {
    border: 1px solid rgb(134 239 172 / 0.85);
    background: linear-gradient(180deg, rgb(240 253 244 / 0.98), rgb(220 252 231 / 0.96));
    color: rgb(21 128 61);
  }

  .flash-banner.alert {
    border: 1px solid rgb(252 165 165 / 0.9);
    background: linear-gradient(180deg, rgb(254 242 242 / 0.98), rgb(254 226 226 / 0.96));
    color: rgb(153 27 27);
  }

  .segmented-nav {
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid rgb(226 218 204 / 0.85);
    border-radius: 1rem;
    background: rgb(255 255 255 / 0.65);
    padding: 0.35rem;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.8);
    backdrop-filter: blur(10px);
  }

  .segmented-nav-link {
    border-radius: 0.8rem;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-ink-600);
  }

  .segmented-nav-link:hover {
    color: var(--color-ink-950);
  }

  .segmented-nav-link.is-active-dark {
    background: rgb(17 24 39 / 0.96);
    color: white;
    box-shadow: 0 5px 12px rgb(17 24 39 / 0.14);
  }

  .segmented-nav-link.is-active-accent {
    background: linear-gradient(135deg, rgb(246 228 116 / 0.98), rgb(239 196 24 / 0.98));
    color: var(--color-ink-950);
    box-shadow: 0 5px 12px rgb(246 228 116 / 0.14);
  }

  .last-post-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgb(226 218 204 / 0.95);
    border-radius: 0.95rem;
    background: linear-gradient(180deg, rgb(255 255 255 / 0.98), rgb(248 245 239 / 0.94));
    padding: 0.75rem 0.85rem;
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.9),
      0 4px 12px rgb(15 23 42 / 0.04);
  }

  .last-post-card:hover {
    transform: translateY(-1px);
    border-color: rgb(125 211 252 / 0.95);
    box-shadow: 0 6px 14px rgb(15 23 42 / 0.06);
  }

  .sidebar-module {
    border: 1px solid rgb(226 218 204 / 0.9);
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgb(255 255 255 / 0.95), rgb(250 247 240 / 0.94));
    padding: 1.35rem;
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.85),
      0 8px 18px rgb(15 23 42 / 0.05);
  }

  .admin-shell {
    padding-block: 2rem;
  }

  .admin-nav {
    margin-block: 1.25rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    border: 1px solid rgb(226 218 204 / 0.88);
    border-radius: 1.1rem;
    background: rgb(255 255 255 / 0.78);
    padding: 0.6rem;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.86);
    backdrop-filter: blur(14px);
  }

  .admin-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    padding: 0.75rem 1rem;
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--color-ink-600);
  }

  .admin-nav-link:hover {
    background: rgb(250 247 240 / 0.9);
    color: var(--color-ink-950);
  }

  .admin-nav-link.is-active {
    background: linear-gradient(135deg, #111827 0%, #292524 100%);
    color: white;
    box-shadow: 0 5px 12px rgb(17 24 39 / 0.14);
  }

  .admin-panel {
    border: 1px solid rgb(214 211 209 / 0.9);
    border-radius: 1.25rem;
    background: rgb(255 255 255 / 0.9);
    box-shadow:
      0 1px 4px rgb(15 23 42 / 0.03),
      0 10px 22px rgb(15 23 42 / 0.05);
    backdrop-filter: blur(14px);
  }

  .text-fever {
    color: rgb(246 228 116);
  }

  .border-fever {
    border-color: rgb(246 228 116);
  }

  .bg-fever {
    background-color: rgb(246 228 116);
  }

  .push-left-1 {
    padding-left: 1px;
  }

  .min-w-apple-embed {
    min-width: calc(290px + 3rem);
  }

  .col-ad img {
    width: 100%;
    border-radius: 1rem;
  }

  .fever-crowd {
    background-position: center;
    background-size: cover;
    clip-path: polygon(0 23%, 100% 0, 100% 100%, 0 100%);
    margin-top: -1rem;
  }

  @media (min-width: 640px) {
    .fever-crowd {
      position: absolute;
      inset-block: 0;
      inset-inline: 50% 0;
      margin-block: -1px;
      clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%);
    }
  }

  .prose {
    color: rgb(41 37 36);
    line-height: 1.75;
  }

  .prose > :first-child {
    margin-top: 0;
  }

  .prose > :last-child {
    margin-bottom: 0;
  }

  .prose p,
  .prose ul,
  .prose ol,
  .prose pre,
  .prose blockquote,
  .prose table,
  .prose figure {
    margin: 0.9rem 0;
  }

  .prose a {
    color: rgb(3 105 161);
    text-decoration: underline;
    text-decoration-color: rgb(125 211 252);
    text-underline-offset: 0.2em;
  }

  .prose ul,
  .prose ol {
    padding-left: 1.35rem;
  }

  .prose ul {
    list-style: disc;
  }

  .prose ol {
    list-style: decimal;
  }

  .prose li + li {
    margin-top: 0.25rem;
  }

  .prose img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
  }

  .prose iframe {
    width: 100%;
    min-height: 20rem;
    border-radius: 1rem;
  }

  .prose code {
    border-radius: 0.4rem;
    background: rgb(245 245 244);
    padding: 0.15rem 0.35rem;
    font-size: 0.925em;
  }

  .prose pre {
    overflow-x: auto;
    border-radius: 1rem;
    background: rgb(28 25 23);
    color: rgb(250 250 249);
    padding: 1rem 1.1rem;
  }

  .prose pre code {
    background: transparent;
    padding: 0;
    color: inherit;
  }

  .post-content {
    overflow-wrap: anywhere;
  }

  .post-content .quote-msg {
    margin: 1rem 0;
    border-left: 4px solid rgb(245 158 11);
    border-radius: 0 1rem 1rem 1rem;
    background: linear-gradient(135deg, rgb(255 251 235), rgb(245 245 244));
    padding: 0.9rem 1rem;
    color: rgb(68 64 60);
  }

  .post-content .quote-msg .quote-msg {
    margin-bottom: 0;
    background: rgb(255 255 255 / 0.7);
  }

  .post-content .quote-author {
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgb(146 64 14);
  }

  .trix-container {
    border: 1px solid rgb(214 211 209 / 0.95);
    border-radius: 1rem;
    background: rgb(255 255 255 / 0.92);
    box-shadow:
      0 1px 3px rgb(28 25 23 / 0.04),
      inset 0 1px 0 rgb(255 255 255 / 0.65);
    overflow: hidden;
  }

  .forum-editor-toolbar {
    display: block;
    border-bottom: 1px solid rgb(231 229 228);
    background: linear-gradient(180deg, rgb(250 247 240), rgb(245 245 244));
    padding: 0.75rem 0.85rem 0.65rem;
  }

  .forum-editor-toolbar__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .forum-editor-toolbar__group {
    display: inline-flex;
    gap: 0.35rem;
  }

  .forum-editor-toolbar__button {
    min-width: 2.4rem;
    border: 1px solid rgb(214 211 209);
    border-radius: 0.7rem;
    background: rgb(255 255 255 / 0.9);
    padding: 0.45rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    color: rgb(68 64 60);
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
  }

  .forum-editor-toolbar__button:hover,
  .forum-editor-toolbar__button[data-trix-active] {
    border-color: rgb(245 158 11);
    background: rgb(255 251 235);
    color: rgb(146 64 14);
  }

  .trix-container .trix-dialogs {
    position: relative;
  }

  .trix-container .trix-dialog {
    margin-top: 0.75rem;
    border: 1px solid rgb(214 211 209);
    border-radius: 0.85rem;
    background: white;
    padding: 0.65rem;
  }

  .trix-container .trix-dialog__link-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
  }

  .trix-container .trix-input--dialog {
    flex: 1 1 16rem;
    border: 1px solid rgb(214 211 209);
    border-radius: 0.75rem;
    padding: 0.55rem 0.8rem;
    font-size: 0.95rem;
  }

  .trix-container .trix-button--dialog {
    border: 1px solid rgb(214 211 209);
    border-radius: 0.75rem;
    background: rgb(250 250 249);
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgb(68 64 60);
  }

  .trix-container trix-editor {
    display: block;
    min-height: 16rem;
    padding: 1rem 1.1rem 1.15rem;
    color: rgb(41 37 36);
    outline: none;
  }

  .trix-container trix-editor ul,
  .trix-container trix-editor ol {
    margin: 0.9rem 0;
    padding-left: 1.35rem;
  }

  .trix-container trix-editor ul {
    list-style: disc;
  }

  .trix-container trix-editor ol {
    list-style: decimal;
  }

  .trix-container trix-editor li + li {
    margin-top: 0.25rem;
  }

  .trix-container trix-editor:empty:not(:focus)::before {
    color: rgb(120 113 108);
    content: attr(placeholder);
    pointer-events: none;
  }

  .forum-editor-hint {
    border-top: 1px solid rgb(245 245 244);
    background: rgb(250 250 249 / 0.8);
    padding: 0.7rem 1rem 0.8rem;
    font-size: 0.78rem;
    color: rgb(120 113 108);
  }

  .prose blockquote,
  .post-content .quote-msg,
  .trix-container trix-editor blockquote,
  .trix-container trix-editor .quote-msg {
    margin: 1rem 0;
    border-left: 4px solid rgb(245 158 11);
    border-radius: 0 1rem 1rem 1rem;
    background: linear-gradient(135deg, rgb(255 251 235), rgb(245 245 244));
    padding: 0.9rem 1rem;
    color: rgb(68 64 60);
    font-style: normal;
  }

  .prose blockquote blockquote,
  .post-content blockquote blockquote,
  .post-content .quote-msg .quote-msg,
  .trix-container trix-editor blockquote blockquote,
  .trix-container trix-editor .quote-msg .quote-msg {
    margin-bottom: 0;
    background: rgb(255 255 255 / 0.7);
  }

  .post-content .quote-author,
  .trix-container trix-editor .quote-author {
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgb(146 64 14);
  }

  .trix-container trix-editor blockquote.twitter-tweet,
  .trix-container trix-editor .instagram-media,
  .post-content blockquote.twitter-tweet,
  .post-content .instagram-media {
    margin-inline: auto;
  }

  .trix-container trix-editor figure,
  .trix-container trix-editor iframe {
    margin: 1rem 0;
  }

  .post-content table {
    width: 100%;
    border-collapse: collapse;
  }

  .post-content th,
  .post-content td {
    border: 1px solid rgb(214 211 209);
    padding: 0.55rem 0.65rem;
    text-align: left;
  }

  .post-signature {
    border-top: 1px solid rgb(231 229 228);
    padding-top: 1rem;
    font-size: 0.95rem;
  }

  .post-history-entry {
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6);
  }
}
