@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Fredoka:wght@500;600;700&display=swap');
:root {
  --accent: #db3941;
  --accent-dark: #bd2e36;
  --ink: #202124;
  --muted: #5f6368;
  --page: #f6f8fc;
  --panel: #ffffff;
  --line: #dadce0;
  --field: #f8fafd;
  --shadow: 0 8px 24px rgba(60,64,67,.10);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: "DM Sans", sans-serif; line-height: 1.45; }
.site-header { max-width: 980px; margin: 0 auto; padding: 34px 24px 22px; display: flex; align-items: center; gap: 16px; }
.brand-mark { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 16px; display: grid; place-items: center; background: var(--accent); color: white; font-size: 32px; font-weight: 500; transform: rotate(-8deg); }
.eyebrow { margin: 0 0 5px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .17em; }
h1,h2,h3,p { margin-top: 0; }
h1 { margin: 0; color: var(--accent); font: 700 29px/1.1 "Fredoka", sans-serif; letter-spacing: -.025em; }
.subtitle { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
main { max-width: 980px; margin: 0 auto; padding: 0 24px 48px; }
.panel, .download-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); margin-bottom: 18px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
h2 { margin: 0 0 6px; font: 600 24px/1.15 "Fredoka", sans-serif; }
.helper { margin: 0; color: var(--muted); font-size: 13px; }
.section-number { color: var(--accent); font: 700 13px "DM Sans",sans-serif; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin-bottom: 14px; }
.field > span, .color-field > label { font-size: 12px; font-weight: 700; color: var(--ink); }
input[type="text"], input[type="time"] { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: var(--field); color: var(--ink); font: 13px "DM Sans",sans-serif; }
input::placeholder { color: #80868b; }
input:focus-visible, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, white); outline-offset: 2px; }
.color-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 8px; }
.color-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.color-input-row { display: flex; gap: 8px; align-items: center; }
input[type="color"] { width: 42px; height: 39px; padding: 3px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 9px; background: var(--field); cursor: pointer; }
.hex-input { flex: 1; width: 100px; }
.field-hint { margin: 12px 0 0; color: var(--muted); font-size: 11px; }
code { color: var(--ink); background: var(--field); border-radius: 4px; padding: 2px 5px; }
.prompt-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.prompt-count { font-size: 12px; font-weight: 700; color: var(--muted); }
.button { border: 0; border-radius: 999px; padding: 12px 18px; font: 700 13px "DM Sans",sans-serif; cursor: pointer; transition: transform .12s, background .12s; }
.button:active { transform: scale(.98); }
.button-primary { background: var(--accent); color: white; }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { background: #e8eaed; color: #3c4043; }
.button-secondary:hover { background: #dadce0; }
.prompt-editor { display: grid; gap: 12px; margin-top: 18px; }
.prompt-card { background: #f8fafd; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.prompt-card-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.prompt-card-title { margin: 0; font: 600 17px "Fredoka",sans-serif; }
.remove-prompt { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #e8eaed; color: #5f6368; font: 22px/1 "DM Sans",sans-serif; cursor: pointer; }
.remove-prompt:hover { background: #fce8e6; color: #b3261e; }
.toggle-row { display: flex; align-items: center; gap: 10px; cursor: pointer; margin: 1px 0 2px; }
.toggle-row input { width: 17px; height: 17px; accent-color: var(--accent); }
.toggle-copy { display: flex; flex-direction: column; gap: 2px; }
.toggle-copy strong { font-size: 12px; }
.toggle-copy small { color: var(--muted); font-size: 11px; }
.timed-fields { border-top: 1px solid var(--line); margin-top: 15px; padding-top: 15px; }
.timed-fields[hidden] { display: none; }
.time-grid { max-width: 440px; }
.replacement-box { display: grid; gap: 4px; padding: 14px; background: #f1f3f4; border: 1px solid var(--line); border-radius: 11px; }
.replacement-heading { margin: 0 0 8px; color: var(--accent); font-size: 12px; font-weight: 800; }
.download-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; }
.download-panel h2 { margin-bottom: 5px; }
.download-panel .button { flex: 0 0 auto; }
.status-message { min-height: 20px; margin: 0; color: var(--muted); font-size: 12px; }
.status-message.error { color: #b3261e; }
.status-message.success { color: #137333; }
footer { max-width: 980px; margin: 0 auto; padding: 0 24px 26px; color: var(--muted); font-size: 10px; }
@media (max-width: 680px) {
  .site-header { padding: 24px 14px 18px; }
  main { padding: 0 10px 30px; }
  .panel, .download-panel { padding: 17px 13px; border-radius: 16px; }
  .field-grid, .color-grid { grid-template-columns: 1fr; gap: 0; }
  .color-grid { gap: 13px; }
  .section-heading { margin-bottom: 16px; }
  h1 { font-size: 24px; }
  h2 { font-size: 21px; }
  .prompt-toolbar { align-items: flex-start; flex-direction: column; }
  .download-panel { align-items: stretch; flex-direction: column; }
  .download-panel .button { width: 100%; }
  footer { padding: 0 14px 20px; }
}
