.tm-review {
  --tm-gold: #edc866;
  --tm-gold-deep: #c49535;
  --tm-dark: #251a2f;
  --tm-darker: #1b1424;
  --tm-purple: #332345;
  --tm-text: #f5eff8;
  --tm-muted: #d4c5d9;
  box-sizing: border-box;
  width: min(100%, 1180px);
  margin: 24px auto 80px;
  padding: 0 16px;
  color: var(--tm-text);
  line-height: 1.75;
}
.tm-review a, .tm-review button { touch-action: manipulation; }
.tm-review a:focus-visible, .tm-review button:focus-visible, .tm-review textarea:focus-visible, .tm-review input:focus-visible { outline: 3px solid var(--tm-gold); outline-offset: 3px; }
.tm-review-hero {
  position: relative;
  padding: clamp(22px, 3.5vw, 38px);
  border: 1px solid rgba(237, 200, 102, .46);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(64, 42, 78, .98), rgba(31, 21, 42, .98));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}
.tm-review-hero__eyebrow { color: var(--tm-gold); font-size: .85rem; font-weight: 800; }
.tm-review-hero h1 { margin: 4px 0; color: #fff; font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1.3; font-weight: 800; }
.tm-review-hero__topic { margin: 0; color: #f4dfaa; font-size: 1.15rem; font-weight: 700; }
.tm-review-hero__intro { max-width: 75ch; margin: 14px 0 0; color: #eee3f2; line-height: 1.85; }
.tm-review-hero__bottom { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tm-review-count, .tm-review-page-count { display: inline-flex; align-items: center; min-height: 34px; padding: 3px 12px; border: 1px solid rgba(237, 200, 102, .42); border-radius: 100px; color: #ffe2a0; background: rgba(237, 200, 102, .12); font-size: .88rem; font-weight: 700; }
.tm-review-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.tm-review-links a, .tm-review-pages a { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 8px 17px; border: 1px solid rgba(237, 200, 102, .55); border-radius: 10px; color: #ffe4a4; background: rgba(38, 25, 49, .94); font-weight: 700; text-decoration: none; transition: background .18s ease, transform .18s ease; }
.tm-review-links a:hover, .tm-review-pages a:hover { color: #fff; background: #513964; text-decoration: none; transform: translateY(-1px); }
.tm-review-notice { margin: 16px 0 24px; padding: 13px 17px; border: 1px solid rgba(237, 200, 102, .4); border-inline-start: 4px solid var(--tm-gold); border-radius: 10px; color: #f4e9cf; background: rgba(46, 30, 56, .93); }
.tm-review-empty { padding: 38px 22px; border: 1px dashed rgba(237, 200, 102, .55); border-radius: 12px; background: var(--tm-dark); text-align: center; }
.tm-review-workspace.has-index { display: grid; grid-template-columns: 158px minmax(0, 1fr); align-items: start; gap: 18px; }
.tm-review-entries { min-width: 0; }
.tm-review-index { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 112px); min-height: 0; margin: 0; padding: 14px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid rgba(237, 200, 102, .35); border-radius: 11px; color: var(--tm-muted); background: rgba(31, 21, 42, .97); font-weight: 700; scrollbar-width: thin; scrollbar-color: var(--tm-gold-deep) var(--tm-dark); }
.tm-review-index > span { flex: none; }
.tm-review-index__hint { color: var(--tm-muted); font-size: .73rem; font-weight: 500; line-height: 1.55; }
.tm-review-index > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.tm-review-index a { display: inline-flex; align-items: center; justify-content: center; min-width: 0; min-height: 38px; padding: 0 8px; border: 1px solid rgba(237, 200, 102, .45); border-radius: 8px; color: #ffe4a4; background: var(--tm-dark); font-size: .9rem; text-decoration: none; }
.tm-review-index a:hover { color: #fff; background: #4b345d; text-decoration: none; }
.tm-entry { overflow: hidden; margin: 0 0 30px; border: 1px solid var(--tm-gold-deep); border-radius: 11px; background: var(--tm-darker); box-shadow: 0 14px 30px rgba(0, 0, 0, .22); scroll-margin-top: 20px; overflow-wrap: anywhere; }
.tm-entry-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; min-height: 50px; padding: 8px 16px; color: #24162a; background: linear-gradient(90deg, #d39e34, #f1cd70); }
.tm-entry-head__number { display: flex; align-items: baseline; gap: 8px; font-weight: 800; }
.tm-entry-head__number strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.tm-entry-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tm-entry-author, .tm-entry-status { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 9px; border: 1px solid rgba(44, 26, 44, .2); border-radius: 100px; color: #302137; background: rgba(255, 247, 217, .65); font-size: .82rem; font-weight: 700; }
.tm-entry-status.is-pending { background: #fff0ca; }
.tm-entry-status.is-approved { background: #ddf3e9; }
.tm-entry-others { font-weight: 600; }
.tm-entry-others.is-reviewed { background: #e4ecfb; }
.tm-entry-layout { display: grid; grid-template-columns: minmax(108px, 14%) minmax(0, 1fr); min-width: 0; }
.tm-entry-sidebar { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 5px; min-width: 0; min-height: 260px; padding: 34px 18px; border-inline-end: 1px solid rgba(237, 200, 102, .25); background: radial-gradient(circle at 50% 5%, rgba(109, 77, 139, .38), transparent 55%), linear-gradient(160deg, #302449, #211831); text-align: center; }
.tm-entry-sidebar__eyebrow { color: #e8d7f1; font-size: .95rem; font-weight: 700; }
.tm-entry-sidebar strong { color: #fff; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.tm-entry-sidebar__ornament { display: block; width: 72px; height: 2px; margin-top: 18px; background: linear-gradient(90deg, transparent, var(--tm-gold), transparent); }
.tm-entry-main { min-width: 0; background: linear-gradient(155deg, #4d302e, #211923 56%, #2a1d35); }
.tm-entry-content { min-width: 0; padding: clamp(20px, 3vw, 32px); }
.tm-review-published { margin: 0 0 24px; padding: 16px 18px; border: 1px solid rgba(237, 200, 102, .58); border-radius: 10px; background: rgba(237, 200, 102, .10); }
.tm-review-published__title { display: block; margin-bottom: 10px; color: #ffe0a0; }
.tm-review-published__note + .tm-review-published__note { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(237, 200, 102, .24); }
.tm-review-published__note strong { color: #ffe0a0; }
.tm-review-published__note p { margin: 5px 0 0; }
.tm-entry-content h2 { margin: 0 0 22px; padding-bottom: 15px; border-bottom: 1px solid rgba(237, 200, 102, .18); color: #fff; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.45; }
.tm-post-body { min-width: 0; color: var(--tm-text); text-align: justify; }
.tm-post-attachments { margin-top: 24px; }
.tm-notes { padding: clamp(20px, 3vw, 30px); border-top: 1px solid rgba(237, 200, 102, .22); background: rgba(22, 15, 27, .45); }
.tm-notes.tm-results-notes { border-top: 0; border-bottom: 1px solid rgba(237, 200, 102, .22); }
.tm-notes h3 { margin: 0 0 16px; color: #ffe0a0; font-size: 1.2rem; font-weight: 800; }
.tm-note { margin: 0 0 12px; padding: 17px 19px; border: 1px solid rgba(237, 200, 102, .25); border-radius: 10px; color: var(--tm-text); background: rgba(255, 255, 255, .06); }
.tm-note__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.tm-note__head strong { color: #ffe0a0; }
.tm-note__status { color: var(--tm-muted); font-size: .8rem; font-weight: 600; }
.tm-note p { margin: 10px 0 0; white-space: normal; }
.tm-review form { margin: 16px 0 0; }
.tm-compose { padding: 18px; border: 1px solid rgba(237, 200, 102, .36); border-radius: 11px; background: rgba(32, 22, 41, .75); }
.tm-compose label { display: block; color: #ffe0a0; font-weight: 800; }
.tm-review textarea { box-sizing: border-box; display: block; width: 100%; max-width: 100%; min-height: 134px; margin: 10px 0 16px; padding: 14px 16px; border: 1px solid rgba(237, 200, 102, .55); border-radius: 9px; color: #f7effa; background: #261b32; font: inherit; font-weight: 400; line-height: 1.7; resize: vertical; }
.tm-review textarea:hover { border-color: var(--tm-gold); }
.tm-review button { min-height: 44px; padding: 9px 18px; border: 1px solid var(--tm-gold-deep); border-radius: 9px; color: #231629; background: linear-gradient(180deg, #f3d47d, #d6a646); font: inherit; font-weight: 800; cursor: pointer; transition: filter .18s ease, transform .18s ease; }
.tm-review button:hover { filter: brightness(1.1); transform: translateY(-1px); }
.tm-review button:active { transform: translateY(0); }
.tm-note-review-form { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; padding-top: 15px; border-top: 1px solid rgba(237, 200, 102, .18); }
.tm-note-review-form__body { flex: 0 0 100%; display: block !important; color: #ffe0a0 !important; font-weight: 800; }
.tm-note-review-form__body textarea { margin-bottom: 0; }
.tm-note-review-form label { display: inline-flex; align-items: center; gap: 8px; color: var(--tm-text); cursor: pointer; }
.tm-note-review-form input { width: 18px; height: 18px; accent-color: var(--tm-gold); }
.tm-note-review-form button { margin-inline-start: auto; }
.tm-publish-form { padding-top: 18px; border-top: 1px solid rgba(237, 200, 102, .18); }
.tm-publish-form button { color: #ffe4a4; background: transparent; }
.tm-review-pages { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; margin: 26px 0; color: var(--tm-muted); font-weight: 700; }
@media (max-width: 760px) {
  .tm-review-workspace.has-index { display: block; }
  .tm-review-index { position: sticky; top: 70px; flex-direction: row; align-items: center; max-height: none; margin: 0 0 18px; padding: 8px 10px; overflow-x: auto; overflow-y: hidden; }
  .tm-review-index > span { white-space: nowrap; }
  .tm-review-index__hint { display: none; }
  .tm-review-index > div { display: flex; flex: none; }
  .tm-review-index a { min-width: 38px; }
  .tm-entry-layout { display: flex; flex-direction: column; }
  .tm-entry-sidebar { flex-direction: row; min-height: 68px; padding: 13px 18px; border-inline-end: 0; border-bottom: 1px solid rgba(237, 200, 102, .25); }
  .tm-entry-sidebar strong { font-size: 1.5rem; }
  .tm-entry-sidebar__ornament { width: 42px; margin: 0 8px; }
}
@media (max-width: 640px) {
  .tm-review { margin-top: 16px; padding: 0 12px 0 70px; }
  .tm-entry-head { align-items: flex-start; }
  .tm-entry-head__meta { width: 100%; }
  .tm-compose, .tm-note { padding: 15px; }
  .tm-note-review-form button { width: 100%; margin-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tm-review a, .tm-review button { transition: none; }
  .tm-review a:hover, .tm-review button:hover { transform: none; }
}
