.content-adaptation-view {
  min-width: 0;
  background: #f5f6f8;
  color: #20242a;
}

.content-adaptation-view .content-adaptation-workspace {
  width: min(100%, 1240px);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 36px 32px 56px;
}

.content-adaptation-view .content-adaptation-workspace *, .content-adaptation-view .content-adaptation-workspace *::before, .content-adaptation-view .content-adaptation-workspace *::after {
  box-sizing: border-box;
  min-width: 0;
}

.content-adaptation-view .content-adaptation-exit-navigation {
  display: flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 14px;
}

.content-adaptation-view .content-adaptation-exit-navigation button {
  display: inline-flex;
  width: auto;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: #626a76;
  padding: 4px 2px;
  box-shadow: none;
  font-size: 14px;
  font-weight: 650;
}

.content-adaptation-view .content-adaptation-exit-navigation button:hover {
  color: #f53662;
}

.content-adaptation-view main, .content-adaptation-view section, .content-adaptation-view article, .content-adaptation-view aside, .content-adaptation-view form, .content-adaptation-view fieldset {
  max-width: 100%;
}

.content-adaptation-view [data-content-adaptation-import], .content-adaptation-view .content-adaptation-analysis, .content-adaptation-view .content-adaptation-results {
  display: grid;
  gap: 20px;
}

.content-adaptation-view .content-adaptation-intro, .content-adaptation-view [data-content-adaptation-link], .content-adaptation-view [data-content-adaptation-manual], .content-adaptation-view [data-content-adaptation-source], .content-adaptation-view [data-content-adaptation-records], .content-adaptation-view [data-content-adaptation-analysis-entry], .content-adaptation-view .content-adaptation-analysis, .content-adaptation-view .content-adaptation-results {
  border: 1px solid #e2e5e9;
  border-radius: 20px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 12px 36px rgb(32 36 42 / 6%);
}

.content-adaptation-view .content-adaptation-intro {
  position: relative;
  overflow: hidden;
  padding: 34px 36px 30px;
  background:
    radial-gradient(circle at 88% 18%, rgb(255 74 111 / 13%), transparent 28%),
    linear-gradient(135deg, #fff 0%, #fff9fa 58%, #f4f7ff 100%);
}

.content-adaptation-view .content-adaptation-intro::after {
  position: absolute;
  right: -56px;
  bottom: -86px;
  width: 220px;
  height: 220px;
  border: 1px solid rgb(255 74 111 / 18%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.content-adaptation-view .content-adaptation-intro-collapsed .content-adaptation-intro-body {
  display: none;
}

.content-adaptation-view .content-adaptation-intro-collapsed {
  min-height: 72px;
  padding: 15px 20px;
}

.content-adaptation-view .content-adaptation-intro-toggle {
  position: absolute;
  z-index: 1;
  top: 18px;
  right: 20px;
  min-height: 34px;
  border: 1px solid #e4e7ec;
  background: rgb(255 255 255 / 82%);
  color: #5c6370;
  padding: 6px 12px;
  box-shadow: none;
}

.content-adaptation-view .content-adaptation-eyebrow, .content-adaptation-view .content-adaptation-card-head > span, .content-adaptation-view .content-adaptation-records-head > span {
  display: inline-block;
  color: #f53662;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .12em;
}

.content-adaptation-view .content-adaptation-intro h1 {
  margin: 12px 0 6px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.content-adaptation-view .content-adaptation-intro-body > p {
  max-width: 680px;
  margin: 0;
  color: #5f6672;
  font-size: 16px;
  line-height: 1.7;
}

.content-adaptation-view .content-adaptation-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.content-adaptation-view .content-adaptation-steps li {
  display: grid;
  gap: 4px;
  min-height: 84px;
  border-top: 2px solid #e8ebf0;
  padding: 12px 4px 0;
}

.content-adaptation-view .content-adaptation-steps li:first-child {
  border-color: #ff3767;
}

.content-adaptation-view .content-adaptation-steps li > span {
  color: #ff3767;
  font-size: 12px;
  font-weight: 800;
}

.content-adaptation-view .content-adaptation-steps strong {
  font-size: 15px;
}

.content-adaptation-view .content-adaptation-steps small {
  color: #818793;
  font-size: 12px;
}

.content-adaptation-view .content-adaptation-card-head h2, .content-adaptation-view .content-adaptation-records-head h2 {
  margin: 7px 0 0;
  font-size: 22px;
  letter-spacing: -.02em;
}

.content-adaptation-view .content-adaptation-card-head p {
  margin: 8px 0 22px;
  color: #737a86;
  font-size: 14px;
  line-height: 1.65;
}

.content-adaptation-view label, .content-adaptation-view .content-adaptation-field {
  display: grid;
  gap: 8px;
  overflow-wrap: anywhere;
}

.content-adaptation-view input, .content-adaptation-view select, .content-adaptation-view textarea, .content-adaptation-view button {
  max-width: 100%;
  min-height: 42px;
  border-radius: 12px;
  font: inherit;
}

.content-adaptation-view input, .content-adaptation-view select, .content-adaptation-view textarea {
  width: 100%;
  border: 1px solid #cfd5dc;
  background: #fff;
  padding: 10px 13px;
}

.content-adaptation-view input[type="file"] {
  overflow: hidden;
  padding: 7px;
}

.content-adaptation-view input[type="checkbox"], .content-adaptation-view input[type="radio"] {
  width: auto;
  min-height: auto;
}

.content-adaptation-view textarea {
  min-height: 112px;
  resize: vertical;
}

.content-adaptation-view button {
  border: 0;
  background: #20242a;
  color: #fff;
  padding: 10px 16px;
  cursor: pointer;
}

.content-adaptation-view .content-adaptation-link-card {
  padding: 28px;
}

.content-adaptation-view .content-adaptation-link-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.content-adaptation-view .content-adaptation-link-row input {
  min-height: 52px;
  border-color: #cbd1d9;
  background: #fbfcfd;
  font-size: 15px;
}

.content-adaptation-view .content-adaptation-link-row button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 142px;
  min-height: 52px;
  background: linear-gradient(135deg, #ff315f, #ff4b73);
  font-weight: 750;
  box-shadow: 0 10px 22px rgb(255 49 95 / 20%);
}

.content-adaptation-view .content-adaptation-link-note {
  margin: 12px 0 0;
  color: #8b919b;
  font-size: 12px;
}

.content-adaptation-view [data-content-adaptation-records] {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.content-adaptation-view .content-adaptation-records-head {
  margin-bottom: 18px;
}

.content-adaptation-view [data-content-adaptation-records] ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-adaptation-view [data-content-adaptation-records] li button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #eceef2;
  background: #fafbfc;
  color: #242931;
  text-align: left;
  box-shadow: none;
}

.content-adaptation-view [data-content-adaptation-records] li button > span {
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-adaptation-view [data-content-adaptation-records] li button small {
  flex: 0 0 auto;
  color: #f53662;
}

.content-adaptation-view .content-adaptation-records-empty {
  display: grid;
  flex: 1;
  place-content: center;
  min-height: 138px;
  border: 1px dashed #d9dde4;
  border-radius: 14px;
  background: #fafbfc;
  padding: 20px;
  color: #777e89;
  text-align: center;
}

.content-adaptation-view .content-adaptation-records-empty > span {
  color: #ff416c;
  font-size: 20px;
}

.content-adaptation-view .content-adaptation-records-empty strong {
  margin-top: 8px;
  color: #383e47;
}

.content-adaptation-view .content-adaptation-records-empty p {
  margin: 5px 0 0;
  font-size: 12px;
}

.content-adaptation-view button:disabled {
  cursor: wait;
  opacity: .55;
}

.content-adaptation-view :is(button, input, select, textarea):focus-visible {
  outline: 3px solid #ff5b74;
  outline-offset: 2px;
}

.content-adaptation-view [hidden] {
  display: none !important;
}

.content-adaptation-view .content-adaptation-source-body, .content-adaptation-view p, .content-adaptation-view h1, .content-adaptation-view h2, .content-adaptation-view h3, .content-adaptation-view li {
  overflow-wrap: anywhere;
}

.content-adaptation-view .content-adaptation-source-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 16px;
  min-width: 0;
}

.content-adaptation-view .content-adaptation-results {
  gap: 26px;
  padding: 30px;
}

.content-adaptation-view .content-adaptation-result-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf0f3;
  padding-bottom: 18px;
}

.content-adaptation-view .content-adaptation-result-navigation button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.content-adaptation-view .content-adaptation-results-head, .content-adaptation-view .content-adaptation-pages-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.content-adaptation-view .content-adaptation-results-head > div > span, .content-adaptation-view .content-adaptation-pages-head > div > span {
  color: #f53662;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.content-adaptation-view .content-adaptation-results-head h2, .content-adaptation-view .content-adaptation-pages-head h3 {
  margin: 5px 0 0;
  letter-spacing: -.025em;
}

.content-adaptation-view .content-adaptation-results-head h2 {
  font-size: 28px;
}

.content-adaptation-view .content-adaptation-results-head p, .content-adaptation-view .content-adaptation-pages-head p {
  margin: 7px 0 0;
  color: #747b87;
  font-size: 13px;
  line-height: 1.6;
}

.content-adaptation-view .content-adaptation-results-head > strong {
  flex: 0 0 auto;
  border: 1px solid #dcefe3;
  border-radius: 999px;
  background: #f2fbf5;
  color: #247a45;
  padding: 8px 12px;
  font-size: 12px;
}

.content-adaptation-view .content-adaptation-generation-progress {
  display: grid;
  gap: 14px;
  border: 1px solid #ffd8e1;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff8fa, #f8faff);
  padding: 18px;
}

.content-adaptation-view .content-adaptation-generation-progress header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.content-adaptation-view .content-adaptation-generation-progress header span {
  color: #f53662;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
}

.content-adaptation-view .content-adaptation-generation-progress h3 {
  margin: 5px 0 0;
  font-size: 17px;
}

.content-adaptation-view .content-adaptation-generation-progress header strong {
  flex: 0 0 auto;
  color: #4e5662;
  font-size: 13px;
}

.content-adaptation-view .content-adaptation-generation-progress-bar {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9edf2;
}

.content-adaptation-view .content-adaptation-generation-progress-value {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff315f, #ff6f8d);
  transition: width .25s ease;
}

.content-adaptation-view .content-adaptation-generation-progress-bar.is-indeterminate .content-adaptation-generation-progress-value {
  width: 35%;
  animation: content-adaptation-progress-pulse 1.25s ease-in-out infinite alternate;
}

@keyframes content-adaptation-progress-pulse {
  from { transform: translateX(-20%); }
  to { transform: translateX(205%); }
}

.content-adaptation-view .content-adaptation-generation-page-states {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.content-adaptation-view .content-adaptation-generation-page-states span {
  border-radius: 999px;
  background: #edf0f4;
  color: #6c7480;
  padding: 5px 9px;
  font-size: 11px;
}

.content-adaptation-view .content-adaptation-generation-page-states .is-succeeded {
  background: #eaf8ef;
  color: #247a45;
}

.content-adaptation-view .content-adaptation-generation-page-states :is(.is-running, .is-reserving) {
  background: #fff3d9;
  color: #8c5b08;
}

.content-adaptation-view .content-adaptation-generation-page-states :is(.is-failed, .is-recovery_required) {
  background: #fff0f3;
  color: #b12845;
}

.content-adaptation-view .content-adaptation-generation-progress-note {
  margin: 0;
  color: #737b87;
  font-size: 12px;
}

.content-adaptation-view .content-adaptation-copy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.content-adaptation-view .content-adaptation-copy-panel {
  min-width: 0;
  margin: 0;
  border: 1px solid #e5e8ed;
  border-radius: 16px;
  background: #fafbfc;
  padding: 18px;
}

.content-adaptation-view .content-adaptation-copy-panel legend, .content-adaptation-view .content-adaptation-copy-panel h3 {
  margin: 0;
  color: #252a32;
  font-size: 16px;
  font-weight: 800;
}

.content-adaptation-view .content-adaptation-copy-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.content-adaptation-view .content-adaptation-copy-panel-head p {
  margin: 2px 0 0;
  color: #7b828d;
  font-size: 12px;
}

.content-adaptation-view .content-adaptation-inline-action {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid #dfe3e8;
  background: #fff;
  color: #4e5560;
  padding: 6px 11px;
  font-size: 12px;
  box-shadow: none;
}

.content-adaptation-view .content-adaptation-title-options {
  display: grid;
  gap: 10px;
}

.content-adaptation-view .content-adaptation-title-option {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid #e2e5ea;
  border-radius: 12px;
  background: #fff;
  padding: 7px 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.content-adaptation-view .content-adaptation-title-option:has(input[type="radio"]:checked) {
  border-color: #ff5478;
  box-shadow: 0 0 0 3px rgb(255 84 120 / 10%);
}

.content-adaptation-view .content-adaptation-title-option > span {
  color: #8a919c;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.content-adaptation-view .content-adaptation-title-option input[name="titles[]"] {
  min-height: 36px;
  border: 0;
  background: transparent;
  padding: 6px 4px;
  color: #252a32;
}

.content-adaptation-view .content-adaptation-body-panel textarea {
  min-height: 238px;
  border-color: #e0e4e9;
  background: #fff;
  line-height: 1.75;
}

.content-adaptation-view .content-adaptation-result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #edf0f3;
  border-bottom: 1px solid #edf0f3;
  padding: 16px 0;
}

.content-adaptation-view .content-adaptation-result-toolbar > div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.content-adaptation-view .content-adaptation-primary-action {
  background: linear-gradient(135deg, #ff315f, #ff4b73);
  font-weight: 750;
  box-shadow: 0 8px 18px rgb(255 49 95 / 18%);
}

.content-adaptation-view .content-adaptation-primary-action.is-download {
  background: #20242a;
  box-shadow: none;
}

.content-adaptation-view .content-adaptation-secondary-action {
  border: 1px solid #d9dde3;
  background: #fff;
  color: #3e454f;
  box-shadow: none;
}

.content-adaptation-view .content-adaptation-danger-action {
  border: 1px solid #f0c8d0;
  background: #fff;
  color: #b12845;
  box-shadow: none;
}

.content-adaptation-view .content-adaptation-pages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}

.content-adaptation-view .content-adaptation-source-image, .content-adaptation-view .content-adaptation-page {
  min-width: 0;
  overflow: hidden;
}

.content-adaptation-view .content-adaptation-page {
  border: 1px solid #e2e5ea;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 8px 22px rgb(32 36 42 / 5%);
}

.content-adaptation-view .content-adaptation-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 11px;
}

.content-adaptation-view .content-adaptation-page-head > div > span {
  color: #8a919c;
  font-size: 11px;
  font-weight: 700;
}

.content-adaptation-view .content-adaptation-page-head h3 {
  margin: 2px 0 0;
  font-size: 16px;
}

.content-adaptation-view .content-adaptation-page-status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 750;
}

.content-adaptation-view .content-adaptation-page-status.is-succeeded {
  background: #edf9f1;
  color: #247a45;
}

.content-adaptation-view .content-adaptation-page-status.is-failed {
  background: #fff1f3;
  color: #b12845;
}

.content-adaptation-view .content-adaptation-page-status.is-running {
  background: #fff7e7;
  color: #8c5b08;
}

.content-adaptation-view .content-adaptation-page-delivery {
  display: flex;
  justify-content: flex-end;
  padding-top: 10px;
}

.content-adaptation-view .content-adaptation-page-delivery button {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 750;
}

.content-adaptation-view .content-adaptation-source-image img, .content-adaptation-view .content-adaptation-page img, .content-adaptation-view .content-adaptation-reference img {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
}

.content-adaptation-view .content-adaptation-reference img {
  width: min(120px, 100%);
  margin-top: 8px;
}

.content-adaptation-view .content-adaptation-page-placeholder {
  display: grid;
  min-height: 260px;
  place-content: center;
  border-radius: 12px;
  background: #f1f3f6;
  padding: 24px;
  color: #757c87;
  text-align: center;
}

.content-adaptation-view .content-adaptation-page-placeholder > span {
  color: #c64963;
  font-size: 24px;
  font-weight: 800;
}

.content-adaptation-view .content-adaptation-page-placeholder p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.55;
}

.content-adaptation-view .content-adaptation-page-references {
  margin-top: 10px;
  border: 1px solid #eceff2;
  border-radius: 12px;
  background: #fafbfc;
  padding: 10px;
}

.content-adaptation-view .content-adaptation-page-references h4 {
  margin: 0;
  color: #555d68;
  font-size: 11px;
}

.content-adaptation-view .content-adaptation-page-references > div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.content-adaptation-view .content-adaptation-page-references figure {
  min-width: 0;
  margin: 0;
}

.content-adaptation-view .content-adaptation-page-references img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.content-adaptation-view .content-adaptation-page-references figcaption, .content-adaptation-view .content-adaptation-page-references > p {
  margin: 5px 0 0;
  color: #747b87;
  font-size: 10px;
  line-height: 1.35;
}

.content-adaptation-view .content-adaptation-page-primary-retry {
  margin-top: 10px;
}

.content-adaptation-view .content-adaptation-page-primary-retry button {
  width: 100%;
}

.content-adaptation-view .content-adaptation-page-controls {
  margin-top: 10px;
  border-top: 1px solid #eceff2;
  padding-top: 10px;
}

.content-adaptation-view .content-adaptation-page-controls summary {
  color: #555d68;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.content-adaptation-view .content-adaptation-page-controls-body {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.content-adaptation-view .content-adaptation-page-controls-body label > span {
  color: #7b828d;
  font-size: 11px;
}

.content-adaptation-view .content-adaptation-page-controls-body :is(select, input, button) {
  min-height: 38px;
  font-size: 12px;
}

.content-adaptation-view .content-adaptation-result-note {
  margin: -4px 0 0;
  color: #858c96;
  font-size: 12px;
  text-align: center;
}

.content-adaptation-view [data-analysis-form], .content-adaptation-view .content-adaptation-generation-settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
}

.content-adaptation-view .content-adaptation-analysis-progress {
  gap: 26px;
  overflow: hidden;
  padding: 30px;
  background:
    radial-gradient(circle at 92% 8%, rgb(255 55 103 / 10%), transparent 30%),
    #fff;
}

.content-adaptation-view .content-adaptation-analysis-progress-head > span {
  color: #f53662;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
}

.content-adaptation-view .content-adaptation-analysis-progress-head h2 {
  margin: 9px 0 7px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.03em;
}

.content-adaptation-view .content-adaptation-analysis-progress-head p {
  margin: 0;
  color: #6d7480;
  line-height: 1.6;
}

.content-adaptation-view .content-adaptation-analysis-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-adaptation-view .content-adaptation-analysis-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 4px 9px;
  align-content: start;
  min-height: 118px;
  border: 1px solid #e6e9ed;
  border-radius: 16px;
  background: rgb(255 255 255 / 84%);
  padding: 16px;
}

.content-adaptation-view .content-adaptation-analysis-steps li > span {
  display: grid;
  width: 28px;
  height: 28px;
  grid-row: 1 / span 2;
  place-items: center;
  border-radius: 50%;
  background: #eceff3;
  color: #7d8590;
  font-size: 12px;
  font-weight: 800;
}

.content-adaptation-view .content-adaptation-analysis-steps strong {
  align-self: center;
  font-size: 14px;
  line-height: 1.45;
}

.content-adaptation-view .content-adaptation-analysis-steps small {
  grid-column: 2;
  color: #858c96;
  font-size: 12px;
  line-height: 1.55;
}

.content-adaptation-view .content-adaptation-analysis-steps li[data-state="done"] {
  border-color: #dce9e2;
  background: #f9fcfa;
}

.content-adaptation-view .content-adaptation-analysis-steps li[data-state="done"] > span {
  background: #e2f3e9;
  color: #247a4d;
}

.content-adaptation-view .content-adaptation-analysis-steps li[data-state="active"] {
  border-color: rgb(245 54 98 / 45%);
  background: #fff8fa;
  box-shadow: 0 10px 24px rgb(245 54 98 / 9%);
}

.content-adaptation-view .content-adaptation-analysis-steps li[data-state="active"] > span {
  position: relative;
  background: #ffdce5;
}

.content-adaptation-view .content-adaptation-analysis-steps li[data-state="active"] > span::after {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f53662;
  content: "";
  animation: content-adaptation-pulse 1.4s ease-in-out infinite;
}

.content-adaptation-view .content-adaptation-analysis-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  border-radius: 14px;
  background: #f5f7f9;
  padding: 14px 16px;
}

.content-adaptation-view .content-adaptation-analysis-status p {
  margin: 0;
  color: #69717d;
  font-size: 13px;
  line-height: 1.55;
}

.content-adaptation-view .content-adaptation-analysis-status .content-adaptation-analysis-elapsed {
  color: #242932;
  font-weight: 750;
}

.content-adaptation-view .content-adaptation-analysis-status .content-adaptation-analysis-retry {
  color: #9a5a00;
}

.content-adaptation-view .content-adaptation-analysis-status .content-adaptation-analysis-long {
  flex-basis: 100%;
  color: #59616d;
}

@keyframes content-adaptation-pulse {
  0%, 100% { opacity: .45; transform: scale(.78); }
  50% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .content-adaptation-view .content-adaptation-analysis-steps li[data-state="active"] > span::after,
  .content-adaptation-view .content-adaptation-generation-progress-value {
    animation: none;
    transition: none;
  }
}

.content-adaptation-view .content-adaptation-error {
  color: #a51d35;
}

@media (max-width: 1000px) {
  .content-adaptation-view .content-adaptation-copy-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-adaptation-view .content-adaptation-pages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .content-adaptation-view [data-content-adaptation-import] {
    grid-template-columns: 360px minmax(0, 1fr);
    align-items: start;
  }

  .content-adaptation-view [data-content-adaptation-phase="landing"] {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .content-adaptation-view .content-adaptation-intro {
    grid-column: 1 / -1;
  }

  .content-adaptation-view [data-content-adaptation-source] {
    grid-column: 2;
    grid-row: span 4;
  }
}

@media (max-width: 767px) {
  .content-adaptation-view .content-adaptation-workspace {
    padding: 14px 12px 32px;
  }

  .content-adaptation-view [data-content-adaptation-import], .content-adaptation-view [data-analysis-form], .content-adaptation-view .content-adaptation-generation-settings {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-adaptation-view .content-adaptation-results {
    padding: 20px 16px;
  }

  .content-adaptation-view .content-adaptation-results-head, .content-adaptation-view .content-adaptation-pages-head, .content-adaptation-view .content-adaptation-result-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .content-adaptation-view .content-adaptation-result-navigation {
    align-items: stretch;
    flex-direction: column;
  }

  .content-adaptation-view .content-adaptation-copy-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .content-adaptation-view .content-adaptation-results-head > strong {
    align-self: flex-start;
  }

  .content-adaptation-view .content-adaptation-generation-progress header {
    flex-direction: column;
  }

  .content-adaptation-view .content-adaptation-generation-page-states {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-adaptation-view .content-adaptation-page-delivery button {
    width: 100%;
  }

  .content-adaptation-view .content-adaptation-copy-grid, .content-adaptation-view .content-adaptation-pages {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-adaptation-view .content-adaptation-result-toolbar > div, .content-adaptation-view .content-adaptation-result-toolbar button {
    width: 100%;
  }

  .content-adaptation-view .content-adaptation-title-option {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .content-adaptation-view .content-adaptation-title-option > span {
    display: none;
  }

  .content-adaptation-view button, .content-adaptation-view input, .content-adaptation-view select, .content-adaptation-view textarea {
    width: 100%;
  }

  .content-adaptation-view .content-adaptation-intro {
    padding: 26px 20px 22px;
  }

  .content-adaptation-view .content-adaptation-intro-toggle {
    position: static;
    width: auto;
    margin-bottom: 18px;
  }

  .content-adaptation-view .content-adaptation-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 22px;
  }

  .content-adaptation-view .content-adaptation-link-card {
    padding: 22px 18px;
  }

  .content-adaptation-view .content-adaptation-link-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .content-adaptation-view .content-adaptation-analysis-progress {
    gap: 20px;
    padding: 22px 16px;
  }

  .content-adaptation-view .content-adaptation-analysis-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-adaptation-view .content-adaptation-analysis-steps li {
    min-height: auto;
  }
}

.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) {
  background: var(--bg);
  color: var(--text);
}

.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-intro,
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) [data-content-adaptation-link],
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) [data-content-adaptation-manual],
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) [data-content-adaptation-source],
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) [data-content-adaptation-records],
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) [data-content-adaptation-analysis-entry],
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-analysis,
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-results,
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-analysis-progress {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-intro {
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 74, 111, 0.13), transparent 28%),
    linear-gradient(135deg, #171d27, #19171f 58%, #141c29);
}

.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-intro-toggle,
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) input,
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) select,
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) textarea,
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-inline-action,
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-secondary-action,
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-danger-action {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--text);
}

.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-link-row input,
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) [data-content-adaptation-records] li button,
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-records-empty,
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-copy-panel,
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-title-option,
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-page,
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-page-references,
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-page-placeholder,
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-analysis-steps li,
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-analysis-status {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--text-soft);
}

.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-intro-body > p,
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-card-head p,
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-results-head p,
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-pages-head p,
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-copy-panel-head p,
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-analysis-progress-head p,
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-analysis-status p {
  color: var(--muted);
}

.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-records-empty strong,
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-copy-panel legend,
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-copy-panel h3,
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-title-option input[name="titles[]"],
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-page-references h4,
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-analysis-status .content-adaptation-analysis-elapsed {
  color: var(--text);
}

.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-generation-progress {
  border-color: rgba(255, 84, 120, 0.32);
  background: linear-gradient(135deg, #241821, #151d2a);
}

.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-generation-progress-bar,
.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-analysis-steps li > span {
  background: #283342;
}

.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-analysis-steps li[data-state="done"] {
  border-color: rgba(62, 154, 111, 0.34);
  background: #14231d;
}

.content-adaptation-view:is(:root[data-appearance="dark"] .content-adaptation-view) .content-adaptation-analysis-steps li[data-state="active"] {
  border-color: rgba(245, 54, 98, 0.45);
  background: #281820;
}
