.qd-tool { margin: 20px 0; border-top: 1px solid #cedcda; border-bottom: 1px solid #cedcda; padding: 20px 0; }
.qd-tool[hidden], .qd-result[hidden], .qd-js[hidden] { display: none; }
.qd-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.qd-fields label { display: block; font-weight: 600; margin-bottom: 8px; }
.qd-fields input { display: block; width: 100%; min-width: 0; min-height: 44px; border: 1px solid #91aaa6; border-radius: 4px; padding: 10px; font: inherit; box-sizing: border-box; }
.qd-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.qd-actions button { min-height: 44px; border: 1px solid #08716c; border-radius: 4px; background: #08716c; color: white; padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.qd-actions button.qi-secondary { background: white; color: #00665f; }
.qd-actions button:focus-visible, .qd-fields input:focus-visible, .qd-checks input:focus-visible { outline: 3px solid #987500; outline-offset: 3px; }
.qd-result { border-left: 4px solid #9b7000; background: #fff7dd; color: #322800; padding: 12px 16px; overflow-wrap: anywhere; }
.qd-result[data-match="yes"] { border-color: #006b5f; background: #ecf7f2; color: #16443c; }
.qd-result p:first-child { margin-top: 0; }
.qd-result p:last-child { margin-bottom: 0; }
.qd-note { color: #465d59; font-size: 14px; }
.qd-checks { padding: 0; list-style: none; margin: 20px 0; }
.qd-checks li { border-top: 1px solid #d3dfdc; padding: 14px 0; }
.qd-checks label { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 12px; align-items: start; cursor: pointer; }
.qd-checks input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: #08716c; }
.qd-checks strong { display: block; }
.qd-counter { display: block; font-weight: 600; }
.qd-print-fields { display: none; }
.qd-addition { letter-spacing: 0; }
@media (max-width: 700px) { .qd-fields { grid-template-columns: minmax(0,1fr); } }
@media print {
 html.qd-print header, html.qd-print footer, html.qd-print main > :not(.qd-print-target) { display: none !important; }
 html.qd-print .qd-print-target { width: auto; max-width: none; margin: 0; padding: 0; background: white; color: black; font-size: 11pt; }
 html.qd-print .qd-print-target .qd-actions, html.qd-print .qd-print-target .qd-note, html.qd-print .qd-print-target .qd-js { display: none !important; }
 html.qd-print .qd-print-fields { display: block; }
 html.qd-print .qd-checks li { break-inside: avoid; }
}
