* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: #222; font: 16px/1.55 Arial, Helvetica, sans-serif; }
main { max-width: 700px; margin: 48px auto 0; padding: 0 24px; }
main.complete { max-width: 1160px; }
h1 { margin: 0 0 18px; font-size: 26px; font-weight: 600; line-height: 1.3; }
h2 { margin: 28px 0 12px; font-size: 19px; font-weight: 600; }
p { margin: 0 0 16px; }
a { color: #2458a6; text-underline-offset: 3px; }
button { min-height: 42px; padding: 9px 18px; font: inherit; border: 1px solid #2458a6; border-radius: 4px; background: #2458a6; color: white; cursor: pointer; }
button.secondary { background: white; color: #2458a6; }
button:disabled { opacity: .5; cursor: default; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #2458a6; outline-offset: 3px; }
h1:focus { outline: none; }
ol { padding-left: 24px; margin: 16px 0 24px; }
li { padding-left: 3px; margin-bottom: 6px; }
dl { margin: 0 0 24px; }
dl > div { display: grid; grid-template-columns: 85px 1fr; gap: 14px; padding: 5px 0; }
dt { font-weight: 600; }
dd { margin: 0; color: #555; }
.note { font-size: 14px; color: #555; line-height: 1.5; }
.progress-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.progress-heading h1 { margin-bottom: 12px; }
.progress-heading span { color: #666; font-size: 14px; }
progress { display: block; width: 100%; height: 4px; border: 0; background: #e6e6e6; accent-color: #2458a6; }
progress::-webkit-progress-bar { background: #e6e6e6; }
progress::-webkit-progress-value { background: #2458a6; }
blockquote { margin: 28px 0; padding: 22px; border: 1px solid #d8d8d8; border-radius: 4px; font-size: 20px; line-height: 1.6; overflow-wrap: anywhere; }
fieldset { border: 0; padding: 0; min-width: 0; margin: 0; }
legend { font-size: 17px; font-weight: 600; }
fieldset > p { margin: 6px 0 12px; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.option { display: flex; align-items: flex-start; gap: 11px; padding: 11px 0; cursor: pointer; }
.option input { margin: 4px 0 0; width: 18px; height: 18px; flex-shrink: 0; accent-color: #2458a6; }
.option > span { display: flex; flex-direction: column; gap: 3px; }
.option strong { font-weight: 500; }
.option input:checked + span strong { color: #2458a6; font-weight: 600; }
.option small { font-size: 14px; color: #555; line-height: 1.4; }
.save-row { margin: 24px 0 14px; }
.error { margin: 16px 0; padding: 14px; border: 1px solid #d9aaaa; color: #912525; border-radius: 4px; }
.error p { margin-bottom: 10px; }
footer { max-width: 700px; margin: 40px auto 24px; padding: 18px 24px 0; display: flex; gap: 24px; font-size: 14px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.receipt-heading, .completion-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin: 28px 0 18px; }
.receipt-heading h2 { margin: 0 0 6px; }
.receipt-heading p, .completion-actions p { margin: 0; font-size: 14px; color: #555; }
.table-wrap { border: 1px solid #d8d8d8; border-radius: 4px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { background: #f5f5f5; padding: 12px; font-size: 14px; }
td { padding: 14px 12px; font-size: 14px; border-top: 1px solid #ddd; }
.tweet-cell { min-width: 220px; max-width: 420px; line-height: 1.5; }
.emotion { text-transform: capitalize; }
.time { color: #555; font-size: 12px; }
@media (max-width: 600px) {
  main { margin-top: 28px; padding: 0 20px; }
  h1 { font-size: 24px; }
  .options { grid-template-columns: 1fr; gap: 0; }
  dl > div { grid-template-columns: 72px 1fr; gap: 10px; }
  blockquote { padding: 16px; font-size: 19px; }
  .receipt-heading, .completion-actions { align-items: flex-start; flex-direction: column; }
  footer { padding: 0 20px; }
}
