.modify-content-page {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
  text-align: left;
}

.modify-content-section {
  padding: 0;
}

.modify-content-use-cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.modify-content-use-case {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 160px;
  padding: 0.9rem 0.9rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #e2e8f0;
  color: #475569;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.05);
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease,
    box-shadow 180ms ease;
}

.modify-content-use-case.is-loading {
  border-color: #cbd5e1;
  background: #e2e8f0;
}

.modify-content-use-case.is-failed {
  border-color: #f1a7a7;
  background: #fce8e8;
  color: #7f1d1d;
  box-shadow: 0 5px 16px rgba(127, 29, 29, 0.08);
}

.modify-content-use-case.is-complete {
  border-color: #86d7a2;
  background: #e7f7ed;
  color: #166534;
  box-shadow: 0 5px 16px rgba(22, 101, 52, 0.08);
}

.modify-content-use-case.is-unknown {
  border-color: #93c5fd;
  background: #eaf3ff;
  color: #1e40af;
}

.modify-content-use-case-icon {
  display: flex;
  width: 1.55rem;
  height: 1.55rem;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.modify-content-use-case-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 1.55rem;
  margin: -0.15rem -0.1rem 0;
}

.modify-content-use-case-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding-top: 0.85rem;
}

.modify-content-use-case h3 {
  margin: 0.45rem 0 0.55rem;
  color: #172554;
  font-size: 1.05rem;
  line-height: 1.35;
}

.modify-content-use-case p {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.5;
}

.modify-content-use-case code {
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.08);
  font-size: 0.9em;
}

.modify-content-use-case-status {
  display: inline-block;
  color: currentColor;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modify-content-console-monitor {
  margin-top: auto;
  padding: 0.9rem 0.65rem 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.8);
}

.modify-content-console-monitor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.modify-content-console-monitor-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.modify-content-console-monitor-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.16);
}

.modify-content-console-monitor-state {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
}

.modify-content-console-monitor-message {
  min-height: 2.1rem;
  margin-top: 0.55rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #ffffff;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  line-height: 1.35;
  box-sizing: border-box;
}

.modify-content-console-monitor.is-found .modify-content-console-monitor-dot {
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
}

.modify-content-console-monitor.is-found .modify-content-console-monitor-state {
  color: #15803d;
}

.modify-content-console-monitor.is-found .modify-content-console-monitor-message {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.modify-content-console-monitor.is-not-found .modify-content-console-monitor-dot {
  background: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.modify-content-console-monitor.is-not-found .modify-content-console-monitor-state {
  color: #b91c1c;
}

.modify-content-animation-monitor {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: auto;
  padding: 0.9rem 0.65rem 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.8);
}

.modify-content-animation-symbol {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #dbeafe;
  font-size: 1.4rem;
}

.is-complete .modify-content-animation-symbol {
  background: #dcfce7;
}

.modify-content-animation-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.modify-content-animation-details > span {
  color: #64748b;
  font-size: 0.76rem;
}

.modify-content-target-control {
  margin-top: auto;
  padding-top: 0.9rem;
}

.modify-content-target-actions {
  display: flex;
  gap: 0.45rem;
}

.modify-content-target-actions > .button {
  display: block;
  flex: 1 1 0;
  box-sizing: border-box;
  padding: 0.55rem 0.75rem;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  background: #dbeafe;
  color: #1e3a8a;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.modify-content-target-actions > .button:hover {
  border-color: #60a5fa;
  background: #bfdbfe;
}

.modify-content-target-actions > .button:active {
  transform: translateY(1px);
}

.modify-content-target-actions > .button:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.modify-content-target-actions > [data-reset-modify-content-targets] {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #475569;
}

.modify-content-target-actions > [data-reset-modify-content-targets]:hover {
  border-color: #94a3b8;
  background: #e2e8f0;
}

.modify-content-targets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  min-height: 3.25rem;
  margin-bottom: 0.55rem;
  padding: 0.45rem;
  border: 1px dashed #94a3b8;
  border-radius: 10px;
  background: #f8fafc;
}

.modify-content-targets:empty::before {
  display: flex;
  min-height: 2.2rem;
  align-items: center;
  justify-content: center;
  flex: 1 0 100%;
  color: #94a3b8;
  content: "Add a box to begin";
  font-size: 0.82rem;
  font-style: italic;
}

.modify-content-target-box {
  display: flex;
  flex: 0 0 2.65rem;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  border-radius: 10px;
  background: #ffffff;
}

.modify-content-target-placeholder,
.modify-content-target-box .changed {
  display: flex;
  width: 2.1rem;
  height: 2.1rem;
  min-height: 2.1rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-sizing: border-box;
}

.modify-content-target-placeholder {
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
}

.modify-content-target-box .changed {
  border: 1px solid #86efac;
  background: #dcfce7;
  color: #166534;
  font-weight: 700;
}

.modify-content-target-box .changed::after {
  content: "✦";
  font-size: 1rem;
  line-height: 1;
}

.modify-content-image-target-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 100px;
  margin-top: auto;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.72);
}

.modify-content-image-target {
  display: block;
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 12px;
}

.modify-content-image-target-status {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
}

.modify-content-image-target-control.is-changed .modify-content-image-target-status {
  color: #166534;
}

.modify-content-referrer-target-control {
  flex-direction: column;
  gap: 0.55rem;
  min-height: 142px;
  padding: 0;
  margin-top: 0.5rem;
}

.modify-content-referrer-target {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(30, 41, 59, 0.12);
}

.modify-content-referrer-test-controls {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.modify-content-referrer-test-label {
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.modify-content-referrer-test-actions {
  display: flex;
  gap: 0.45rem;
}

.modify-content-referrer-test-actions > .button {
  flex: 1 1 0;
  padding: 0.45rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.modify-content-referrer-test-actions > .button:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.modify-content-referrer-test-actions > .button:active {
  transform: translateY(1px);
}

.modify-content-referrer-test-actions > .button:focus-visible,
.modify-content-referrer-source-button:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.modify-content-referrer-test-hint {
  color: #94a3b8;
  font-size: 0.72rem;
  line-height: 1.4;
}

.modify-content-referrer-source-page {
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}

.modify-content-referrer-source {
  width: min(420px, calc(100% - 2rem));
  padding: 2rem;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
  text-align: center;
}

.modify-content-referrer-source-badge {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.modify-content-referrer-source h1 {
  margin: 1rem 0 0.6rem;
  color: #172554;
  font-size: 1.35rem;
}

.modify-content-referrer-source p {
  margin: 0 0 1.25rem;
  color: #64748b;
  line-height: 1.5;
}

.modify-content-referrer-source-button {
  display: inline-block;
  padding: 0.65rem 1rem;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  background: #dbeafe;
  color: #1e3a8a;
  font-weight: 700;
  text-decoration: none;
}

.modify-content-utm-source-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.35rem;
  text-align: left;
}

.modify-content-utm-source-form label {
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
}

.modify-content-utm-source-form select {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font: inherit;
}

.modify-content-utm-source-form .modify-content-referrer-source-button {
  margin-top: 0.25rem;
  cursor: pointer;
  text-align: center;
}

.modify-content-referrer-target-control.is-changed {
  border-color: rgba(134, 215, 162, 0.7);
  background: #fff;
}

.modify-content-referrer-target-control.is-changed .modify-content-image-target-status {
  color: #166534;
  font-weight: 700;
}

@media (max-width: 900px) {
  .modify-content-use-cases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .modify-content-use-cases {
    grid-template-columns: 1fr;
  }
}
