#createArea, #issueDetail { margin-top: 24px; padding: 24px; border: 1px solid #dbe2ea; border-radius: 12px; background: #fff; }
#createArea [hidden], #issueDetail [hidden], #createArea[hidden], #issueDetail[hidden] { display: none; }
.create-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border: 0; padding: 0; margin: 16px 0; }
.create-grid label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.create-grid .wide { grid-column: 1 / -1; }
.create-grid input, .create-grid select, .create-grid textarea { width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid #aebdce; border-radius: 6px; font: inherit; }
.create-grid small { font-weight: 400; color: #536174; }
#createArea button, #issueDetail button, .detail-button { padding: 10px 16px; margin: 8px 8px 0 0; border: 1px solid #1757a6; border-radius: 6px; background: #1757a6; color: white; cursor: pointer; }
#createArea button:disabled, #issueDetail button:disabled { opacity: .55; cursor: default; }
#createMessage { white-space: pre-wrap; overflow-wrap: anywhere; color: #704400; }
#issueDetail dt { color: #526070; margin-top: 12px; font-weight: 600; }
#issueDetail dd { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
#issueDetail p { overflow-wrap: anywhere; }
@media (max-width: 600px) { .create-grid { grid-template-columns: 1fr; } #createArea, #issueDetail { padding: 16px; } }

#issueDetail { scroll-margin-top: 90px; font-family: "Microsoft JhengHei", Arial, sans-serif; font-size: 16px; line-height: 1.7; }
#issueDetailContent { min-width: 0; font-size: 16px; line-height: 1.7; }
#issueDetailContent h3 { margin: 0 0 24px; font-size: 22px; line-height: 1.5; color: #18344e; overflow-wrap: anywhere; }
#issueDetailContent h4 { margin: 28px 0 14px; padding-bottom: 8px; border-bottom: 1px solid #dbe2ea; font-size: 18px; color: #18344e; }
#issueDetailContent .issue-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
#issueDetailContent .issue-detail-field { min-width: 0; }
#issueDetailContent .issue-detail-wide { grid-column: 1 / -1; }
#issueDetailContent dt { margin: 0 0 4px; font-weight: 700; color: #536174; }
#issueDetailContent dd { margin: 0; color: #202124; white-space: pre-wrap; overflow-wrap: anywhere; }
#issueDetailContent .issue-detail-card { padding: 16px; margin: 0 0 12px; border: 1px solid #dbe2ea; border-radius: 8px; background: #f8fafc; }
#issueDetailContent .issue-detail-card p { margin: 0 0 12px; font-weight: 700; }
#issueDetailContent a { overflow-wrap: anywhere; }
@media(max-width:600px) { #issueDetailContent .issue-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; } #issueDetailContent h3 { font-size: 20px; } }

#issueDetailContent h4 { scroll-margin-top: 90px; }

/* 2026-10-24 John: secondary buttons white/rounded; only the main submit stays blue. */
#createArea button:not(#createSubmit),#issueDetail button:not(#attachmentSubmit),.detail-button{border-color:#c6d2e0;border-radius:7px;background:#fff;color:#24364b}#createArea button:not(#createSubmit):hover:not(:disabled),#issueDetail button:not(#attachmentSubmit):hover:not(:disabled){background:#f1f5fa}
#createArea button:is(#createSubmit),#issueDetail #attachmentSubmit{border-color:#185ba0;border-radius:7px;background:#185ba0}
