:root {
  --bg: #0e131d;
  --panel: #171f2e;
  --panel-2: #202a3c;
  --text: #edf4ff;
  --muted: #a9b7ca;
  --line: rgba(255, 255, 255, 0.13);
  --accent: #72e8ca;
  --accent-2: #8eb6ff;
  --warn: #f8c45f;
  --danger: #ff8f9b;
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body.clipboardcheck-page {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(114, 232, 202, 0.13), transparent 34rem),
    linear-gradient(145deg, #090d14, #111827 60%, #0e131d);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

button,
textarea {
  font: inherit;
}

.cc-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 42px;
}

.cc-hero,
.cc-panel,
.cc-related,
.cc-comments,
.cc-return a {
  background: rgba(23, 31, 46, 0.9);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.cc-hero {
  padding: 28px;
}

.cc-back {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.92rem;
  text-decoration: none;
}

.cc-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.cc-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.cc-lead,
.cc-warning,
.cc-panel p,
.cc-panel li,
.cc-status,
.cc-comment-note,
.cc-footer {
  color: var(--muted);
}

.cc-lead {
  max-width: 820px;
  margin: 18px 0 0;
  font-size: 1.06rem;
}

.cc-warning {
  max-width: 900px;
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(248, 196, 95, 0.38);
  border-radius: 8px;
  background: rgba(248, 196, 95, 0.08);
}

.cc-policy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.cc-policy span {
  padding: 8px 12px;
  border: 1px solid rgba(114, 232, 202, 0.25);
  border-radius: 999px;
  background: rgba(114, 232, 202, 0.08);
  color: #d8fff6;
  font-size: 0.8rem;
  font-weight: 800;
}

.cc-tool-grid,
.cc-result-grid,
.cc-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.cc-result-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cc-panel,
.cc-related,
.cc-comments {
  min-width: 0;
  padding: 20px;
}

.cc-panel h2,
.cc-related h2 {
  margin: 0 0 12px;
  font-size: 1.28rem;
}

.cc-panel-head p:last-child {
  margin-bottom: 16px;
}

.cc-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: #0f1724;
  color: var(--text);
  padding: 12px;
  resize: vertical;
  caret-color: var(--accent);
}

textarea:focus {
  outline: 2px solid rgba(114, 232, 202, 0.45);
  outline-offset: 2px;
}

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.cc-actions button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

.cc-actions .cc-primary {
  border-color: rgba(114, 232, 202, 0.7);
  background: linear-gradient(135deg, #34d7b0, #6592ff);
  color: #061018;
}

.cc-actions .cc-quiet {
  color: var(--muted);
}

.cc-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.cc-stats div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.cc-stats dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.cc-stats dd {
  margin: 0;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.cc-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.cc-flags span,
.cc-token {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(142, 182, 255, 0.12);
  color: #dfeaff;
  font-size: 0.83rem;
  font-weight: 800;
}

.cc-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cc-list li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.cc-list strong {
  color: var(--text);
}

.cc-preview-panel,
.cc-copy-test,
.cc-related,
.cc-comments,
.cc-return,
.cc-ad {
  margin-top: 18px;
}

.cc-preview,
.cc-test-string {
  max-width: 100%;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b111b;
  color: #e8f3ff;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.cc-marker {
  display: inline;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(248, 196, 95, 0.22);
  color: #ffe7ad;
  font-weight: 800;
}

.cc-fallback {
  margin-top: 12px;
}

.cc-ad {
  padding: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.cc-ad-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.cc-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cc-link-grid a,
.cc-return a {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  text-decoration: none;
}

.cc-link-grid a:hover,
.cc-return a:hover {
  border-color: rgba(114, 232, 202, 0.46);
  background: rgba(114, 232, 202, 0.08);
}

.cc-link-grid strong,
.cc-return strong {
  color: var(--text);
}

.cc-link-grid span,
.cc-return span,
.cc-return small {
  color: var(--muted);
}

.cc-return {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cc-footer {
  margin-top: 22px;
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .cc-tool-grid,
  .cc-result-grid,
  .cc-info-grid,
  .cc-link-grid,
  .cc-return {
    grid-template-columns: 1fr;
  }

  .cc-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .cc-shell {
    width: min(100% - 20px, 1160px);
    padding-top: 14px;
  }

  .cc-hero,
  .cc-panel,
  .cc-related,
  .cc-comments {
    padding: 16px;
  }

  .cc-stats {
    grid-template-columns: 1fr;
  }

  .cc-actions button {
    width: 100%;
  }
}
