.rotation-main { padding-block: 28px 46px; }
.rotation-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; margin: 24px 0; }
.rotation-cases a, .rotation-panel { padding: clamp(20px, 4vw, 35px); border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.rotation-cases a { text-decoration: none; }
.rotation-cases a:hover, .rotation-cases a:focus-visible { border-color: var(--teal); background: #ecf6f0; }
.rotation-cases span, .rotation-meta { color: var(--teal); font-size: .9rem; font-weight: 700; }
.rotation-cases h2 { font: 1.5rem/1.2 Georgia, serif; margin: 8px 0 0; }
.rotation-panel { max-width: 820px; margin: 0 auto 20px; }
.rotation-panel h1 { font: clamp(1.9rem, 5vw, 2.8rem)/1.1 Georgia, serif; margin: 12px 0; }
.rotation-panel h2 { line-height: 1.3; }
.rotation-nameplate { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.rotation-history { padding: 16px; border-left: 3px solid var(--teal); background: #edf4ef; border-radius: 4px; }
.rotation-panel textarea { display: block; width: 100%; margin: 8px 0 16px; border: 1px solid #819b94; border-radius: 8px; padding: 12px; font: inherit; color: var(--ink); resize: vertical; }
.rotation-panel button { padding: 10px 16px; border: 0; border-radius: 8px; background: var(--teal); color: #fff; font: inherit; font-weight: 650; cursor: pointer; }
.rotation-panel label { font-weight: 650; }
.rotation-feedback { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); }
.rotation-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.rotation-links a { padding: 5px 10px; border: 1px solid var(--line); border-radius: 7px; background: #edf4ef; }
.rotation-main [hidden] { display: none; }
.rotation-return { margin-top: 14px; font-weight: 700; }
.rotation-filters { grid-template-columns: 2fr 1fr; margin-top: 24px; }
.rotation-cases p { margin: 10px 0 0; color: var(--muted); font-size: .9rem; }
#case-count { color: var(--muted); margin-bottom: 0; }
@media (max-width: 640px) {
  .rotation-filters { grid-template-columns: minmax(0, 1fr); }
}
