.shell > main > .admin-domain-rotation-panel { display: none; }
body.admin-domain-rotation-active .shell > main > :not(.admin-domain-rotation-panel) { display: none !important; }
body.admin-domain-rotation-active .shell > main > .admin-domain-rotation-panel { display: block !important; }
.admin-domain-rotation-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.admin-domain-rotation-header h1 { margin: 0; font-size: 24px; color: var(--admin-ink, #2b2025); }
.admin-domain-rotation-header p { margin: 6px 0 0; color: var(--admin-muted, #75686d); font-size: 13px; }
.admin-domain-rotation-header > button { flex: 0 0 auto; }
.admin-domain-rotation-content { max-width: 960px; min-width: 0; }
.admin-domain-rotation-form { display: grid; gap: 22px; }
.admin-domain-rotation-field { min-width: 0; }
.admin-domain-rotation-field label { display: block; margin: 0 0 8px; font-weight: 650; }
.admin-domain-rotation-field input,
.admin-domain-rotation-field textarea { box-sizing: border-box; display: block; width: 100%; max-width: 100%; margin: 0; padding: 12px; border: 1px solid var(--admin-border, #e5dce0); border-radius: 9px; font-family: inherit; font-size: 14px; }
.admin-domain-rotation-field textarea { min-height: 154px; resize: vertical; line-height: 1.65; }
.admin-domain-rotation-hint { margin: 7px 0 0; color: var(--admin-muted, #75686d); font-size: 13px; line-height: 1.7; }
.admin-domain-rotation-preview { padding: 15px 18px; border-radius: 10px; background: var(--admin-soft, #fff4f5); }
.admin-domain-rotation-preview strong { font-size: 14px; }
.admin-domain-rotation-preview ol { margin: 10px 0 0; padding-left: 24px; line-height: 1.8; overflow-wrap: anywhere; }
.admin-domain-rotation-note { padding: 0 0 0 12px; border-left: 3px solid var(--admin-primary, #d83d52); color: var(--admin-muted, #75686d); font-size: 13px; line-height: 1.8; }
.admin-domain-rotation-note p { margin: 0 0 5px; }
.admin-domain-rotation-note p:last-child { margin-bottom: 0; }
.admin-domain-rotation-state { margin: 0; color: var(--admin-muted, #75686d); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.admin-domain-rotation-state.error { color: #bd273b; }
.admin-domain-rotation-actions { display: flex; gap: 12px; }
.admin-domain-rotation-actions button { min-width: 130px; min-height: 42px; }
.admin-domain-rotation-panel button:disabled { opacity: 0.55; cursor: wait; }
.admin-domain-rotation-panel input:disabled,
.admin-domain-rotation-panel textarea:disabled { opacity: 0.65; }
@media (max-width: 600px) {
  .admin-domain-rotation-header { flex-wrap: wrap; align-items: flex-start; }
  .admin-domain-rotation-header h1 { font-size: 22px; }
  .admin-domain-rotation-form { gap: 20px; }
}

.admin-domain-rotation-content { max-width: 1180px; }
.domain-role-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.domain-role-card { display: grid; align-content: start; gap: 18px; padding: 24px; background: #fff; border: 1px solid #ebe3e7; border-radius: 12px; }
.domain-role-card h2 { margin: 0; font-size: 17px; }
@media (max-width: 700px) { .domain-role-grid { grid-template-columns: 1fr; } .domain-role-card { padding: 18px; } }

.domain-role-switch { display:flex; align-items:center; gap:8px; font-weight:600; }
.domain-role-switch input { width:18px; height:18px; accent-color:#d83d52; }

.domain-landing-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.domain-landing-count { color:#d83d52; background:#fff1f3; border-radius:7px; font-size:12px; padding:5px 8px; white-space:nowrap; }
.domain-landing-table-wrap { overflow-x:auto; }
.domain-landing-table { width:100%; border-collapse:collapse; font-size:13px; min-width:640px; }
.domain-landing-table th { text-align:left; padding:10px 8px; background:#fff3f5; color:#75686d; }
.domain-landing-table td { padding:10px 8px; border-bottom:1px solid #eee8ea; vertical-align:middle; }
.domain-landing-table td:nth-child(2) { width:42%; }
.domain-landing-table input[type=text] { width:100%; box-sizing:border-box; padding:9px; border:1px solid #e5dce0; border-radius:8px; }
.domain-landing-table input[type=checkbox] { accent-color:#d83d52; }
.domain-landing-health span, .domain-landing-health small { display:block; }
.domain-landing-health small { color:#75686d; margin-top:3px; }
.health-ok { color:#228655; } .health-bad { color:#be3145; }
.domain-landing-actions { display:flex; gap:10px; flex-wrap:wrap; }
