:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --card: #ffffff;
  --ink: #1f2933;
  --muted: #667085;
  --border: #ddd8cf;
  --accent: #2f6f73;
  --accent-strong: #20565a;
  --soft: #edf7f7;
  --warning: #8a5a00;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #e1f2f2 0, transparent 32rem), var(--bg);
  color: var(--ink);
}

.shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.hero {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

h2 {
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

.clipboard-card,
.settings-card,
.usage-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(31, 41, 51, 0.08);
  padding: 22px;
  margin-top: 18px;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.card-header p,
.usage-card p {
  color: var(--muted);
  margin-bottom: 0;
}

textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  font: 0.96rem/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--ink);
  background: #fffdf8;
}

#guardedPrompt {
  min-height: 280px;
  background: #f9fbfb;
}

.settings-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: end;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px 12px;
  background: white;
  color: var(--ink);
  font: inherit;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(31, 41, 51, 0.15);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.primary-button {
  background: var(--accent);
  color: white;
}

.secondary-button {
  background: var(--soft);
  color: var(--accent-strong);
}

#statusMessage[data-tone="success"] {
  color: var(--accent-strong);
  font-weight: 700;
}

#statusMessage[data-tone="warning"] {
  color: var(--warning);
  font-weight: 700;
}

.usage-card ol {
  margin: 0 0 14px;
  padding-left: 1.2rem;
  color: var(--ink);
  line-height: 1.8;
}

@media (max-width: 720px) {
  .card-header,
  .settings-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }
}
