:root {
  color-scheme: light;
  --navy-950: #07182f;
  --navy-900: #0b2447;
  --navy-800: #12345d;
  --blue-700: #1d4f83;
  --blue-100: #eaf3fb;
  --orange-500: #f59e0b;
  --orange-600: #df8500;
  --green-600: #16805f;
  --green-100: #e8f7f1;
  --slate-900: #172033;
  --slate-700: #405069;
  --slate-500: #68768a;
  --slate-300: #cbd3df;
  --slate-200: #dfe5ec;
  --slate-100: #f3f6f9;
  --white: #ffffff;
  --shadow: 0 8px 24px rgba(11, 36, 71, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--slate-100);
}

body {
  margin: 0;
  color: var(--slate-900);
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 230px),
    var(--slate-100);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

button,
select,
textarea,
input {
  font: inherit;
}

button,
a,
select,
textarea,
input {
  outline-offset: 3px;
}

:focus-visible {
  outline: 3px solid rgba(29, 79, 131, 0.35);
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 17px;
  color: var(--white);
  background: linear-gradient(130deg, var(--navy-950), var(--navy-800));
  border-bottom: 4px solid var(--orange-500);
}

.brand-header img {
  flex: 0 0 auto;
  border-radius: 11px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.brand-header h1,
.brand-header p {
  margin: 0;
}

.brand-header h1 {
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.eyebrow {
  margin-bottom: 3px !important;
  color: #ffd88b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

main {
  padding: 14px;
}

.privacy-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 9px 11px;
  color: #105f49;
  background: var(--green-100);
  border: 1px solid #b8e4d4;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

.privacy-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--green-600);
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(22, 128, 95, 0.12);
}

.card {
  margin-bottom: 12px;
  padding: 15px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-heading h2,
.section-heading p {
  margin: 0;
}

.section-heading h2 {
  font-size: 15px;
  line-height: 1.25;
}

.step-label {
  margin-bottom: 3px !important;
  color: var(--orange-600);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.help-text {
  margin: 0 0 12px;
  color: var(--slate-500);
  font-size: 11px;
}

.help-text.centered {
  margin: 10px 4px 0;
  text-align: center;
}

.button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.button {
  min-height: 41px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 750;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:active:not(:disabled) {
  transform: translateY(0);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.button-primary {
  color: var(--white);
  background: var(--navy-800);
  box-shadow: 0 4px 12px rgba(18, 52, 93, 0.18);
}

.button-primary:hover:not(:disabled) {
  background: var(--navy-900);
}

.button-secondary {
  color: var(--navy-800);
  background: var(--white);
  border-color: var(--slate-300);
}

.button-secondary:hover:not(:disabled) {
  background: var(--blue-100);
  border-color: #9db7d2;
}

.button-chatgpt {
  width: 100%;
  color: var(--navy-950);
  background: linear-gradient(135deg, #ffc857, var(--orange-500));
  border-color: #e08b00;
  box-shadow: 0 5px 14px rgba(245, 158, 11, 0.26);
}

.button-chatgpt:hover:not(:disabled) {
  background: linear-gradient(135deg, #ffd16f, #f7a91d);
}

.secondary-actions {
  margin-top: 8px;
}

.text-button {
  padding: 2px 0;
  color: var(--blue-700);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.status {
  margin: 10px 0;
  padding: 8px 10px;
  color: var(--slate-700);
  background: var(--slate-100);
  border-left: 3px solid var(--slate-300);
  border-radius: 5px;
  font-size: 11px;
}

.status.success {
  color: #105f49;
  background: var(--green-100);
  border-left-color: var(--green-600);
}

.status.error {
  color: #8d2626;
  background: #fff0f0;
  border-left-color: #c43d3d;
}

.field-label {
  display: block;
  margin: 11px 0 5px;
  color: var(--slate-700);
  font-size: 11px;
  font-weight: 800;
}

textarea,
select {
  width: 100%;
  color: var(--slate-900);
  background: var(--white);
  border: 1px solid var(--slate-300);
  border-radius: 8px;
}

textarea {
  display: block;
  padding: 9px;
  resize: vertical;
}

select {
  min-height: 40px;
  padding: 8px 32px 8px 9px;
}

.context-area {
  min-height: 130px;
  max-height: 280px;
  color: #26364d;
  background: #fbfcfe;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  line-height: 1.4;
}

.notes-area {
  min-height: 70px;
  font-size: 12px;
}

.context-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 5px;
  color: var(--slate-500);
  font-size: 10px;
}

.context-meta span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.context-meta span:last-child {
  flex: 0 0 auto;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 11px;
  color: var(--slate-700);
  cursor: pointer;
  font-size: 11px;
}

.check-row input {
  margin: 2px 0 0;
  accent-color: var(--blue-700);
}

.security-note {
  margin-top: 9px;
  padding: 8px 9px;
  color: #5a4612;
  background: #fff8e6;
  border: 1px solid #f2d894;
  border-radius: 7px;
  font-size: 10px;
}

.quick-links {
  padding: 3px 2px 10px;
}

.quick-links h2 {
  margin: 0 0 7px;
  color: var(--slate-700);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quick-link-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.quick-link-grid a {
  padding: 9px;
  color: var(--blue-700);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.quick-link-grid a:hover {
  background: var(--white);
  border-color: #9db7d2;
}

footer {
  padding: 16px 18px 22px;
  color: #6f7c8d;
  background: #e9edf2;
  border-top: 1px solid #d9e0e8;
  font-size: 10px;
  text-align: center;
}

footer strong {
  color: var(--navy-800);
}

@media (max-width: 350px) {
  .button-grid,
  .quick-link-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
