/* Procedure card layout matching the central line form. */

    :root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: #183044; background: #eef3f7; color-scheme: light; }
    * { box-sizing: border-box; }
    [hidden] { display: none !important; }
    body { margin: 0; }
    .page-header { background: #003b65; color: white; padding: 30px 24px 38px; }
    .header-inner, main { max-width: 1240px; margin: auto; }
    .back-link { color: #cce4f5; font-size: 14px; text-decoration: none; }
    .back-link:hover { text-decoration: underline; }
    .eyebrow { margin: 30px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #a9d4f0; }
    .page-header h1 { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: clamp(30px, 5vw, 42px); font-weight: 700; letter-spacing: -.035em; line-height: 1.15; }
    .intro { color: #d0e2ef; margin: 12px 0 0; line-height: 1.6; }
    main { padding: 28px 24px 48px; }
    .workspace { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
    .checklist { min-width: 0; }
    .section-card, .note-panel { background: white; border: 1px solid #dce5ed; border-radius: 16px; box-shadow: 0 5px 20px #18304406; overflow: hidden; }
    .section-card { margin-bottom: 22px; }
    .section-heading { margin: 0; padding: 18px 24px; font-size: 15px; font-weight: 700; letter-spacing: .03em; }
    .section-content { padding: 8px 24px 24px; }
    .section-content > div { padding: 16px 0; border-bottom: 1px solid #edf1f5; }
    .section-content > div:last-child { border-bottom: 0; padding-bottom: 0; }
    .details-grid { padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    .bg-red-600 { background: #dc2626; }
    .bg-yellow-400 { background: #facc15; }
    .bg-green-600 { background: #16a34a; }
    .bg-purple-600 { background: #9333ea; }
    .text-white { color: white; }
    .text-black { color: #111827; }
    .text-red-600 { color: #dc2626; }
    .font-medium { font-weight: 600; font-size: 14px; line-height: 1.5; }
    label.font-medium { display: block; margin-bottom: 8px; }
    .font-bold { font-weight: 700; }
    .text-sm { font-size: 13px; line-height: 1.5; }
    .flex { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
    .flex-col { flex-direction: row; align-items: center; }
    .mt-1 { margin-top: 10px; }
    .mt-2 { margin-top: 12px; }
    input:not([type="checkbox"]), textarea { border: 1px solid #cbd7e1; border-radius: 8px; padding: 11px 12px; font: inherit; font-size: 14px; color: #183044; background: white; min-width: 0; }
    input:not([type="checkbox"]) { min-height: 44px; max-width: 100%; }
    input:focus, textarea:focus { outline: 3px solid #005eb829; border-color: #005eb8; }
    input[type="checkbox"] { accent-color: #15803d; width: 18px; height: 18px; vertical-align: middle; }
    .w-full { width: 100%; }
    .w-24 { width: 90px; }
    .w-32 { width: 128px; }
    .w-48 { width: 180px; }
    .choice { position: relative; cursor: pointer; }
    .choice input { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }
    .choice span { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px solid #cbd7e1; border-radius: 8px; background: #f8fafc; font-size: 13px; font-weight: 600; color: #42596b; transition: background .15s, border-color .15s; }
    .choice span::before { content: '+'; font-size: 16px; color: #7b8c9b; }
    .choice:hover span { border-color: #8398aa; }
    .choice input:checked + span { background: #dcfce7; border-color: #15803d; color: #14532d; }
    .choice input:checked + span::before { content: '✓'; color: #15803d; }
    .choice input:focus-visible + span { outline: 3px solid #005eb8; outline-offset: 3px; }
    .other-choice { padding: 10px 12px; border: 1px solid #cbd7e1; border-radius: 8px; background: #f8fafc; font-size: 13px; }
    .other-choice:has(input[type="checkbox"]:checked) { background: #dcfce7; border-color: #15803d; }
    button { font: inherit; font-size: 14px; font-weight: 600; line-height: normal; min-height: 44px; border: 0; border-radius: 8px; padding: 14px 18px; cursor: pointer; width: 100%; }
    button:focus-visible, .back-link:focus-visible { outline: 3px solid #ffcf33; outline-offset: 3px; }
    .generate-button { background: #005eb8; color: white; }
    .generate-button:hover { background: #004b93; }
    .note-panel { position: sticky; top: 24px; padding: 24px; }
    .note-heading { margin: 0 0 10px; font-size: 18px; }
    .note-hint { font-size: 13px; color: #667b8c; line-height: 1.6; margin: 0 0 18px; }
    textarea { display: block; width: 100%; min-height: 420px; resize: vertical; background: #f8fafc; font: 13px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; }
    .copy-button { background: #15803d; color: white; margin-top: 16px; }
    .copy-button:hover { background: #166534; }
    .record-hint { font-size: 13px; color: #667b8c; line-height: 1.6; margin-bottom: 0; }
    @media (max-width: 960px) { .workspace { grid-template-columns: 1fr; } .note-panel { position: static; } }
    @media (max-width: 480px) { main { padding: 18px 12px 30px; } .page-header { padding: 24px 20px 30px; } .details-grid { grid-template-columns: 1fr; padding: 20px; } .section-heading { padding: 16px 20px; } .section-content { padding: 4px 20px 20px; } .note-panel { padding: 20px; } }
    @media (prefers-reduced-motion: reduce) { .choice span { transition: none; } }
  
    textarea:not(#output) { min-height: 100px; font: inherit; font-size: 14px; }
    .section-content > .font-bold { padding-bottom: 10px; color: #003b65; border-bottom: 2px solid #dce5ed; }
    .choice { display: inline-block; margin-top: 8px; margin-right: 4px; vertical-align: top; }
    .technique-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
    .technique-options .choice { display: block; margin: 0; }
    .technique-options .choice-box { height: 100%; min-height: 52px; }
    .technique-other { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: stretch; }
    @media (max-width: 480px) { .technique-options { grid-template-columns: 1fr; } .technique-other { grid-template-columns: 1fr; } }
