.compiler-root { --compiler-border: #c5d0c0; min-width: 0; }
.compiler-intro { max-width: 78ch; font-size: 1.05rem; }
.compiler-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 22px 0; }
.compiler-field { min-width: 0; }
.compiler-field label { display: block; font-weight: 700; margin-bottom: 6px; }
.compiler-field select { width: 100%; max-width: 100%; padding: 9px 10px; border: 1px solid var(--compiler-border); border-radius: 6px; background: #fffdf8; color: #17212b; }
.compiler-hint { color: #536153; font-size: .88rem; margin: 6px 0 12px; }
.compiler-source-card { padding: 18px 22px; background: #eef2e8; border: 1px solid var(--compiler-border); border-radius: 8px; }
.compiler-source-card h3 { margin-top: 0; }
.compiler-source-card li { margin-bottom: 8px; }
.compiler-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.compiler-actions button { padding: 10px 15px; border: 1px solid #294c35; border-radius: 6px; background: #fffdf8; color: #193b32; font-weight: 650; cursor: pointer; }
.compiler-actions button:first-child { background: #193b32; color: white; }
.compiler-actions button:disabled { opacity: .45; cursor: not-allowed; }
.compiler-status { border-left: 4px solid #527c57; background: #eef2e8; padding: 12px 15px; }
.compiler-status[data-state="stale"] { border-color: #a75d00; background: #fff0d8; }
.compiler-status[data-state="draft"] { border-color: #6b7e90; background: #edf1f4; }
.compiler-packet { margin-top: 24px; min-width: 0; overflow-wrap: anywhere; }
.compiler-packet-heading { border-bottom: 2px solid #294c35; padding-bottom: 10px; }
.compiler-packet-heading h3 { font-family: Georgia, serif; font-size: 1.6rem; margin-bottom: 10px; }
.compiler-section { margin: 26px 0; }
.compiler-section h3 { font-size: 1.12rem; color: #193b32; }
.compiler-section h4 { margin: 0 0 6px; text-transform: none; color: #193b32; }
.compiler-steps { padding-left: 28px; }
.compiler-steps > li { padding: 12px 0 12px 8px; border-bottom: 1px solid #d9d3c8; }
.compiler-steps p { margin: 5px 0; }
.compiler-stop { color: #874420; font-size: .91rem; }
.compiler-harvest-item { border-left: 3px solid #b2bfa4; margin: 12px 0; padding: 8px 16px; }
.compiler-harvest-item p { margin: 5px 0; }
.compiler-detail { margin: 10px 0; border: 1px solid #d9d3c8; border-radius: 6px; background: #fffdf8; min-width: 0; }
.compiler-detail summary { cursor: pointer; padding: 11px 13px; font-weight: 650; color: #193b32; }
.compiler-pre { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .83rem; line-height: 1.5; padding: 14px; margin: 0; border-top: 1px solid #d9d3c8; background: #f4f3ec; max-height: 640px; overflow-y: auto; }
.compiler-checks { list-style: none; padding: 0; }
.compiler-checks li { margin: 8px 0; padding: 10px 12px; border-radius: 4px; }
.compiler-pass { background: #e5f3e9; color: #23532f; }
.compiler-fail { background: #fdebea; color: #842e2c; }
.compiler-empty { padding: 24px; text-align: center; color: #536153; border: 1px dashed #b2bfa4; border-radius: 8px; }
@media (max-width: 660px) { .compiler-choices { grid-template-columns: 1fr; gap: 10px; } .compiler-source-card { padding: 14px; } .compiler-actions { flex-direction: column; } .compiler-actions button { width: 100%; } .compiler-pre { font-size: .75rem; } }
@media print { .compiler-actions, .compiler-choices { display: none; } .compiler-pre { max-height: none; overflow: visible; } .compiler-section { break-inside: avoid; } }

.compiler-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0 24px; }
.compiler-summary > div { padding: 12px; background: #eef2e8; border-radius: 6px; }
.compiler-summary dt { color: #536153; font-size: .8rem; }
.compiler-summary dd { margin: 4px 0 0; font-weight: 700; }
@media (max-width: 660px) { .compiler-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
