body { background: #f4f7fb; color: #1f2937; font-family: Arial, sans-serif; margin: 0; }
header { align-items: center; background: #111827; color: white; display: flex; justify-content: space-between; padding: 1rem 2rem; }
header a { color: white; text-decoration: none; }
main { margin: 2rem auto; max-width: 1100px; }
.card { background: white; border-radius: 10px; box-shadow: 0 8px 24px #0001; margin-bottom: 1.5rem; padding: 1.5rem; }
.button, button { background: #2563eb; border: 0; border-radius: 6px; color: white; cursor: pointer; padding: .55rem .8rem; }
label { display: block; font-weight: bold; margin: 1rem 0; }
input, textarea { border: 1px solid #cbd5e1; border-radius: 6px; box-sizing: border-box; display: block; margin-top: .35rem; padding: .6rem; width: 100%; }
textarea { min-height: 5rem; }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid #e5e7eb; padding: .75rem; text-align: left; vertical-align: top; }
pre { background: #0f172a; border-radius: 8px; color: #e2e8f0; overflow-x: auto; padding: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.tags li, .status { border-radius: 999px; padding: .25rem .55rem; }
.tags li { background: #e0f2fe; }
.status.pending { background: #fef3c7; }
.status.clean, .status.notified { background: #dcfce7; }
.status.match { background: #fee2e2; }
.customer { border-top: 1px solid #e5e7eb; padding: 1rem 0; }
.muted { color: #64748b; }
.flash { background: #fee2e2; border-radius: 8px; padding: 1rem 2rem; }
.notify { margin-top: 1rem; }
.status.draft { background: #e5e7eb; }
.status.ready_to_hunt { background: #dbeafe; }
.warning { background: #fff7ed; border-left: 4px solid #f97316; border-radius: 6px; margin: 1rem 0; padding: .75rem 1rem; }
.campaign-heading { align-items: flex-start; display: flex; justify-content: space-between; gap: 1rem; }
.inline-form { margin-bottom: 1rem; }
button:disabled { background: #94a3b8; cursor: not-allowed; }
.campaign-title-row { align-items: center; display: flex; gap: 1rem; justify-content: space-between; }
.campaign-title-row h2 { margin: 0; }
.hunt-tag { border-radius: 999px; color: white; font-size: .8rem; font-weight: 700; padding: .3rem .65rem; text-transform: uppercase; white-space: nowrap; }
.hunt-tag.ready { background: #16a34a; }
.hunt-tag.not-ready { background: #dc2626; }
.customer-progress { background: #e5e7eb; border-radius: 999px; display: flex; height: .9rem; margin: 1rem 0 1.5rem; overflow: hidden; }
.customer-progress-segment { min-width: .25rem; }
.customer-progress-segment + .customer-progress-segment { border-left: 2px solid white; }
.customer-progress-segment.pending { background: #cbd5e1; }
.customer-progress-segment.clean { background: #22c55e; }
.customer-progress-segment.match { background: #ef4444; }
.ioc-list li { align-items: center; display: flex; gap: .4rem; }
.ioc-list form { margin: 0; }
.icon-button { align-items: center; background: #0ea5e9; border-radius: 999px; display: inline-flex; font-size: 1rem; height: 1.35rem; justify-content: center; line-height: 1; padding: 0; width: 1.35rem; }
.icon-button:hover { background: #dc2626; }
.ready-form { border-top: 1px solid #e5e7eb; margin: 1rem 0; padding-top: 1rem; }
.section-heading { align-items: center; display: flex; gap: .75rem; justify-content: space-between; }
.section-heading h3 { margin: 1rem 0; }
.description-text { line-height: 1.5; margin-top: 0; white-space: pre-wrap; }
.icon-action { align-items: center; background: #2563eb; border: 0; border-radius: 999px; color: white; cursor: pointer; display: inline-flex; font-size: 1rem; font-weight: 700; height: 1.8rem; justify-content: center; line-height: 1; padding: 0; text-decoration: none; width: 1.8rem; }
.icon-action:hover { background: #1d4ed8; }
.modal { align-items: center; display: none; inset: 0; justify-content: center; padding: 1rem; position: fixed; z-index: 10; }
.modal:target { display: flex; }
.modal-backdrop { background: #0f172a99; inset: 0; position: absolute; }
.modal-panel { background: white; border-radius: 10px; box-shadow: 0 24px 48px #0004; max-width: 640px; padding: 1.5rem; position: relative; width: min(100%, 640px); z-index: 1; }
.modal-panel .section-heading h3 { margin-top: 0; }
.status.hunted, .hunt-tag.hunted { background: #a7f3d0; color: #064e3b; }
.status.finished, .hunt-tag.finished { background: #c4b5fd; color: #312e81; }
.hunt-tag.draft { background: #64748b; }
.hunt-tag.ready_to_hunt { background: #16a34a; }
.choice-buttons { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 1rem 0; }
.choice-buttons input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card { border: 2px solid #cbd5e1; border-radius: 10px; cursor: pointer; margin: 0; padding: 1rem; text-align: center; }
.choice-buttons input:checked + .choice-card { background: #dbeafe; border-color: #2563eb; color: #1e3a8a; }
.campaign-fields { display: none; }
.new-campaign-form:has(#type-ioc:checked) .ioc-fields, .new-campaign-form:has(#type-manual:checked) .manual-fields { display: block; }
.button.secondary { background: #64748b; display: inline-block; margin-bottom: 1rem; text-decoration: none; }
.name-card { max-width: 520px; }

.ioc-list li.unknown-ioc { background: #fee2e2; color: #991b1b; }
nav { display: flex; gap: .75rem; }
.compact-tags { margin: 0; }
.actions-cell { align-items: center; display: flex; gap: .5rem; }
.actions-cell form { margin: 0; }
button.danger { background: #dc2626; }
fieldset { border: 1px solid #cbd5e1; border-radius: 8px; margin: 1rem 0; padding: 1rem; }
legend { font-weight: 700; padding: 0 .35rem; }
.checkbox-grid { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.checkbox-label { align-items: center; display: flex; font-weight: 400; gap: .5rem; margin: .35rem 0; }
.checkbox-label input { display: inline-block; margin: 0; width: auto; }
