/* Domain succession records use the same light table surfaces as site metrics. */
#ctrlviewConsole #websiteChangesPanel { min-width: 0; }
#ctrlviewConsole #websiteChangesPanel .domain-changes-toolbar { display: flex; flex-wrap: wrap; align-items: center; }
#ctrlviewConsole #websiteChangesPanel .domain-changes-toolbar label { display: flex; align-items: center; gap: 8px; margin: 0; min-width: 0; color: #344054; font-size: 16px; }
#ctrlviewConsole #websiteChangesPanel .domain-changes-search { flex: 1 1 300px; max-width: 440px; }
#ctrlviewConsole #websiteChangesPanel :is(input, select) { width: auto; min-width: 0; min-height: 42px; margin: 0; padding: 8px 12px; border: 1px solid #dfe3eb; border-radius: 6px; background: #fff; color: #344054; font-size: 16px; box-shadow: none; }
#ctrlviewConsole #websiteChangesPanel input { width: 100%; }
#ctrlviewConsole #websiteChangesPanel input::placeholder { color: #667085; opacity: 1; }
#ctrlviewConsole #websiteChangesPanel :is(input, select, button):focus-visible { outline: 2px solid #8263b8; outline-offset: 2px; }
#ctrlviewConsole #websiteChangesPanel .domain-changes-note { margin: 0; padding: 10px 20px; border-bottom: 1px solid #e5e7ef; color: #596579; background: #fafbfe; font-size: 12px; line-height: 1.7; }
#ctrlviewConsole #websiteChangesPanel .domain-changes-feedback { margin: 0; padding: 12px 20px; color: #963e19; background: #fff7ed; font-size: 16px; }
#ctrlviewConsole #websiteChangesPanel [hidden] { display: none; }
#ctrlviewConsole #domainChangesTable { min-width: 900px; }
#ctrlviewConsole #domainChangesTable :is(th, td) { vertical-align: top; }
#ctrlviewConsole #domainChangesTable th { white-space: nowrap; }
#ctrlviewConsole #domainChangesTable .domain-change-domain { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 140px; max-width: 280px; }
#ctrlviewConsole #domainChangesTable .domain-change-domain strong { font-size: 16px; font-weight: 600; line-height: 1.6; color: #344054; overflow-wrap: anywhere; }
#ctrlviewConsole #domainChangesTable small { display: block; font-size: 12px; line-height: 1.6; color: #596579; }
#ctrlviewConsole #domainChangesTable .domain-change-current { display: inline-flex; padding: 2px 7px; border: 1px solid #d9cee9; border-radius: 4px; color: #624491; background: #f5f1fb; font-size: 12px; line-height: 1.5; }
#ctrlviewConsole #domainChangesTable .domain-change-later { display: grid; gap: 16px; }
#ctrlviewConsole #domainChangesTable .domain-change-restricted { margin-top: 8px; color: #865b16; }
#ctrlviewConsole #domainChangesTable .domain-change-empty { color: #667085; }
#ctrlviewConsole #domainChangesTable .domain-change-empty-state { padding: 48px 24px; text-align: center; color: #596579; font-size: 16px; }
#ctrlviewConsole #domainChangesTable .domain-change-actions { display: flex; flex-wrap: wrap; gap: 8px; min-width: 100px; }
#ctrlviewConsole #domainChangesTable .domain-change-actions button { min-height: 36px; padding: 6px 10px; border: 1px solid #e2dfed; border-radius: 6px; background: #fff; color: #6351a1; font-size: 12px; box-shadow: none; }
#ctrlviewConsole #domainChangesTable .domain-change-actions button:hover { color: #48377f; border-color: #ada1cc; background: #f6f3fd; }
#ctrlviewConsole #domainChangesTable time { display: block; min-width: 138px; color: #475467; font-size: 16px; }

/* A native modal keeps focus and controls above the page and backdrop. */
#ctrlviewConsole #domainChangeDetail {
  position: fixed; inset: 0 0 0 auto; width: min(700px, calc(100vw - 32px)); max-width: none;
  height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; overflow: hidden;
  border: 0; border-left: 1px solid #e0e4ec; border-radius: 0; background: #fff; color: #344054;
  box-shadow: -8px 0 32px #25314d12; font-size: 16px; line-height: 1.6;
}
#ctrlviewConsole #domainChangeDetail[open] { display: flex; flex-direction: column; animation: domain-drawer-enter 180ms ease-out; }
#ctrlviewConsole #domainChangeDetail::backdrop { background: #25314d45; backdrop-filter: none; }
#ctrlviewConsole #domainChangeDetail [hidden] { display: none; }
#ctrlviewConsole #domainChangeDetail .domain-drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 28px 18px; border-bottom: 1px solid #e5e7ef; background: #fff; }
#ctrlviewConsole #domainChangeDetail h2 { margin: 0; color: #25334a; font-size: 22px; line-height: 1.5; }
#ctrlviewConsole #domainChangeDetail .domain-drawer-heading p { margin: 4px 0 0; color: #667085; font-size: 12px; overflow-wrap: anywhere; }
#ctrlviewConsole #domainChangeDetail button { width: auto; min-height: 40px; margin: 0; padding: 8px 16px; border: 1px solid #dfe3eb; border-radius: 6px; background: #fff; color: #57418b; box-shadow: none; font: inherit; cursor: pointer; }
#ctrlviewConsole #domainChangeDetail button:hover { background: #f6f3fd; border-color: #b5a8d0; }
#ctrlviewConsole #domainChangeDetail button:disabled { cursor: wait; opacity: .6; }
#ctrlviewConsole #domainChangeDetail .domain-drawer-heading button { flex: 0 0 36px; min-height: 36px; height: 36px; width: 36px; padding: 0; color: #526076; font-size: 24px; }
#ctrlviewConsole #domainChangeDetail .domain-drawer-tabs { display: flex; flex: 0 0 auto; gap: 28px; padding: 0 28px; border-bottom: 1px solid #e5e7ef; background: #fff; }
#ctrlviewConsole #domainChangeDetail .domain-drawer-tabs button { position: relative; padding: 15px 0 13px; border: 0; border-radius: 0; background: transparent; color: #667085; }
#ctrlviewConsole #domainChangeDetail .domain-drawer-tabs button[aria-selected="true"] { color: #6745ac; font-weight: 600; }
#ctrlviewConsole #domainChangeDetail .domain-drawer-tabs button[aria-selected="true"]::after { content: ''; position: absolute; inset: auto 0 -1px; height: 2px; background: linear-gradient(90deg, #7849be, #4876cf); }
#ctrlviewConsole #domainChangeDetail .domain-drawer-body { flex: 1; min-height: 0; padding: 24px 28px; overflow-y: auto; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #b5bfd0 #f4f6fa; }
#ctrlviewConsole #domainChangeDetail .domain-drawer-body::-webkit-scrollbar { width: 7px; }
#ctrlviewConsole #domainChangeDetail .domain-drawer-body::-webkit-scrollbar-thumb { background: #b5bfd0; border-radius: 4px; }
#ctrlviewConsole #domainChangeDetail .domain-drawer-body::-webkit-scrollbar-track { background: #f4f6fa; }
#ctrlviewConsole #domainChangeDetail .domain-drawer-note { margin: 0 0 16px; color: #596579; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
#ctrlviewConsole #domainChangeDetail .domain-timeline { display: grid; gap: 0; margin: 24px 0 0 7px; padding: 0; list-style: none; }
#ctrlviewConsole #domainChangeDetail .domain-timeline li { position: relative; margin: 0; padding: 0 0 28px 28px; border-left: 1px solid #dfe3eb; }
#ctrlviewConsole #domainChangeDetail .domain-timeline li:last-child { border-color: transparent; padding-bottom: 0; }
#ctrlviewConsole #domainChangeDetail .domain-timeline li::before { content: ''; position: absolute; left: -5px; top: 7px; width: 9px; height: 9px; border: 1px solid #b5bfd0; border-radius: 50%; background: #fff; }
#ctrlviewConsole #domainChangeDetail .domain-timeline li.is-current::before { background: #7350b5; border-color: #7350b5; box-shadow: 0 0 0 4px #f1edf8; }
#ctrlviewConsole #domainChangeDetail .domain-timeline-label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: #667085; font-size: 12px; }
#ctrlviewConsole #domainChangeDetail .domain-drawer-current { padding: 1px 7px; border: 1px solid #d9cee9; border-radius: 4px; background: #f5f1fb; color: #624491; font-size: 12px; }
#ctrlviewConsole #domainChangeDetail .domain-timeline strong { display: block; margin: 4px 0; color: #344054; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
#ctrlviewConsole #domainChangeDetail .domain-timeline p { margin: 0; color: #596579; font-size: 12px; line-height: 1.8; }
#ctrlviewConsole #domainChangeDetail .domain-drawer-footer { display: flex; flex: 0 0 auto; justify-content: flex-end; gap: 12px; padding: 16px 28px; border-top: 1px solid #e5e7ef; background: #fff; }
#ctrlviewConsole #domainChangeDetail button.domain-drawer-primary { background: linear-gradient(110deg, #7143b7, #3565c6); border-color: transparent; color: #fff; }
#ctrlviewConsole #domainChangeDetail button.domain-drawer-primary:hover { filter: brightness(1.07); }
#ctrlviewConsole #domainChangeDetail :is(button, select):focus-visible { outline: 2px solid #8263b8; outline-offset: 3px; }
#ctrlviewConsole #domainChangeDetail .domain-stat-filters { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
#ctrlviewConsole #domainChangeDetail .domain-stat-filters label { display: grid; min-width: 0; gap: 6px; flex: 1; color: #344054; font-size: 16px; }
#ctrlviewConsole #domainChangeDetail .domain-stat-filters label:first-child { flex: 0 0 148px; }
#ctrlviewConsole #domainChangeDetail select { width: 100%; min-width: 0; max-width: 100%; min-height: 42px; margin: 0; padding: 8px 10px; border: 1px solid #dfe3eb; border-radius: 6px; background: #fff; color: #344054; box-shadow: none; font: inherit; }
#ctrlviewConsole #domainChangeDetail .domain-stat-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; padding: 0; }
#ctrlviewConsole #domainChangeDetail .domain-stat-cards > div { min-width: 0; padding: 16px; border: 1px solid #e5e7ef; border-radius: 8px; background: #fff; }
#ctrlviewConsole #domainChangeDetail .domain-stat-cards dt { color: #596579; font-size: 16px; }
#ctrlviewConsole #domainChangeDetail .domain-stat-cards dd { margin: 10px 0 0; color: #25334a; font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#ctrlviewConsole #domainChangeDetail .domain-drawer-warning { margin: 16px 0; padding: 12px 14px; border: 1px solid #efdfb8; border-radius: 6px; background: #fffaf0; color: #805818; font-size: 16px; overflow-wrap: anywhere; }
#ctrlviewConsole #domainChangeDetail .domain-drawer-warning p { margin: 0 0 12px; color: inherit; }
@keyframes domain-drawer-enter { from { transform: translateX(24px); opacity: .5; } to { transform: translateX(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #ctrlviewConsole #domainChangeDetail[open] { animation: none; } }
