.rotation-shell { margin-bottom: 32px; scroll-margin-top: 90px; }
.rotation-feature {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  background: #114940;
  border: 1px solid #215e51;
  border-radius: 16px;
  box-shadow: 0 8px 22px #183e3520;
}
.rotation-intro {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: clamp(20px, 3vw, 42px);
  color: #fff;
  border-radius: 16px 0 0 16px;
  background: radial-gradient(ellipse at 10% 30%, #277d6e 0, transparent 67%);
}
.rotation-intro h2 { margin: 0 0 9px; font-size: clamp(20px, 2.35vw, 32px); line-height: 1.22; letter-spacing: -.025em; }
.rotation-intro p { margin: 0; color: #d4efe6; font-size: 14px; line-height: 1.6; max-width: 35ch; }
.rotation-illustration { position: relative; display: grid; place-items: center; flex: 0 0 77px; width: 77px; height: 77px; border: 1px solid #84ceaf75; border-radius: 24px; background: #276e60; transform: rotate(-7deg); }
.rotation-illustration img { object-fit: contain; width: 62px; height: 62px; }
.rotation-illustration span { position: absolute; bottom: -5px; right: -7px; display: grid; place-items: center; width: 29px; height: 29px; border: 2px solid #114940; border-radius: 50%; color: #174f43; background: #b4f0c7; }
.rotation-illustration span svg { width: 15px; height: 15px; }
.rotation-controls {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-content: center;
  gap: 13px;
  margin: 7px 7px 7px 0;
  padding: clamp(16px, 2.35vw, 28px);
  border-radius: 11px;
  background: #f1f8f2;
  color: #1c392f;
}
.rotation-field { display: grid; align-content: start; gap: 5px; min-width: 0; font-size: 13px; font-weight: 650; }
.rotation-field :is(select, input, textarea) { display: block; width: 100%; min-width: 0; padding: 9px 10px; color: #16392e; background: #fff; border: 1px solid #b6cdc0; border-radius: 8px; font: inherit; font-weight: 500; }
.rotation-field :is(select, input) { min-height: 42px; }
.rotation-field small, .rotation-actions small, .rotation-guest-pool small { color: #416255; font-size: 12px; line-height: 1.45; font-weight: 400; }
.rotation-guest-pool { display: flex; align-items: center; align-self: center; gap: 9px; min-height: 43px; padding: 5px 9px; border-radius: 8px; background: #dcefe3; }
.rotation-guest-pool strong, .rotation-guest-pool small { display: block; }
.rotation-guest-pool strong { font-size: 13px; }
.rotation-guest-pool svg { color: #176554; }
.rotation-pool, .rotation-actions, .rotation-feedback, .rotation-prompt { grid-column: 1 / -1; }
.rotation-pool { position: relative; }
.rotation-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 15px; }
.rotation-actions small { flex-basis: 100%; }
.rotation-copy, .rotation-work { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 9px; min-height: 42px; padding: 8px 15px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.rotation-copy { color: #fff; background: #086858; }
.rotation-copy:hover { background: #084f43; }
.rotation-copy:disabled { opacity: .55; cursor: wait; }
.rotation-work { background: #fff; border-color: #b6cdc0; color: #115b4c; text-decoration: none; }
.rotation-work:hover { background: #e6f4ed; border-color: #8fb8a7; }
.rotation-work svg { width: 15px; height: 15px; }
.rotation-link { display: inline-flex; align-items: center; gap: 3px; padding: 4px 0; background: none; color: #115b4c; border: 0; font: inherit; font-size: 12px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rotation-link svg { width: 13px; height: 13px; }
.rotation-feedback { margin: 0; font-size: 13px; line-height: 1.5; }
.rotation-feedback[data-error="true"] { color: #98302a; }
.rotation-prompt textarea { resize: vertical; font-family: ui-monospace, monospace; font-weight: 400; line-height: 1.55; }
.rotation-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.rotation-chips:empty { display: none; }
.rotation-chips button { border: 1px solid #b2d3c3; border-radius: 16px; background: #dcefe3; color: #245344; padding: 4px 9px; font: inherit; font-size: 12px; cursor: pointer; overflow-wrap: anywhere; }
.rotation-results { list-style: none; margin: 4px 0 0; padding: 3px; max-height: 175px; overflow-y: auto; background: #fff; border: 1px solid #c5d8cf; border-radius: 9px; }
.rotation-results button { display: block; width: 100%; border: 0; border-radius: 5px; padding: 7px 8px; background: transparent; color: #245344; text-align: start; font: inherit; font-size: 13px; cursor: pointer; }
.rotation-results button:hover, .rotation-results button:focus-visible { background: #e6f4ed; }
.rotation-results button:disabled { opacity: .5; cursor: default; }
.rotation-results li:not(:has(button)) { padding: 7px 8px; font-size: 12px; color: #416255; }
@media (max-width: 810px) {
  .rotation-feature { grid-template-columns: 1fr; }
  .rotation-intro { border-radius: 16px 16px 0 0; gap: 14px; }
  .rotation-illustration { width: 62px; height: 62px; flex-basis: 62px; border-radius: 18px; }
  .rotation-illustration img { width: 49px; height: 49px; }
  .rotation-controls { margin: 0 6px 6px; }
}
@media (max-width: 460px) {
  .rotation-controls { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .rotation-actions :is(.rotation-copy, .rotation-work) { width: 100%; }
}
