.od-panel { min-width: 0; }
.od-panel .ord-panel-head { margin-bottom: 22px; }
.od-panel .ord-panel-head .ord-note { margin-top: 9px; }
.od-form { display: grid; gap: 9px; }
.od-label { font-size: .86rem; font-weight: 550; color: #e2dce9; }
.od-input-row { display: flex; gap: 8px; align-items: stretch; }
.od-input {
  min-width: 0; flex: 1; border: 1px solid #49434e; background: #131216; color: #faf8fe;
  padding: 12px 14px; border-radius: 9px; font: inherit; font-size: .94rem;
}
.od-input::placeholder { color: #aba5b5; }
.od-input:focus-visible { outline: 2px solid #cbb0ff; outline-offset: 2px; }
.od-examples { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 0; }
.od-examples button {
  background: #232127; border: 1px solid #45404c; border-radius: 15px; color: #d6d0de;
  padding: 5px 10px; min-height: 31px; font: inherit; font-size: .78rem; line-height: 1.4; text-align: left;
}
.od-examples button:hover { background: #302a38; border-color: #806891; color: #f0e2ff; }
.od-result { display: grid; gap: 9px; margin-top: 20px; }
.od-result:empty { display: none; }
.od-answer {
  border: 1px solid #51415f; background: linear-gradient(115deg,#2c2432,#211e25 80%);
  border-radius: 13px; padding: 18px clamp(14px,2vw,23px);
}
.od-answer h3, .od-library h3 { margin: 0; font-size: 1.05rem; line-height: 1.25; letter-spacing: -.025em; }
.od-answer p, .od-clause p { margin: 8px 0 0; font-size: .94rem; line-height: 1.52; color: #e0dce5; }
.od-answer p.od-context { margin-top: 7px; color: #c6bdce; font-size: .82rem; }
.od-answer a { display: inline-block; margin-top: 13px; color: #dfc4ff; font-size: .82rem; font-weight: 550; text-underline-offset: 3px; }
.od-answer a:hover { color: #fff; }
.od-no-match { background: #211f24; border-color: #4e4653; }
.od-library { margin-top: 26px; }
.od-library-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; margin-bottom: 12px; }
.od-library-head > span, .od-file-name small, .od-clause-number { font-size: .73rem; color: #c0b6c9; }
.od-file { border-top: 1px solid #3b363f; }
.od-file:last-child { border-bottom: 1px solid #3b363f; }
.od-file summary { display: flex; align-items: center; gap: 12px; padding: 13px 2px; list-style: none; cursor: pointer; }
.od-file summary::-webkit-details-marker { display: none; }
.od-file summary:focus-visible { outline: 2px solid #d0b6ff; outline-offset: -1px; border-radius: 5px; }
.od-file summary:hover .od-file-name strong { color: #dec8fa; }
.od-file-icon {
  display: grid; place-items: center; width: 31px; height: 35px; line-height: 1; font-size: 1.35rem; font-weight: 400;
  color: #cfb1ed; border: 1px solid #5c496c; border-radius: 4px 8px 4px 4px; background: #29232f;
}
.od-file-name { display: grid; gap: 1px; flex: 1; }
.od-file-name strong { color: #f2edf7; font-size: .94rem; font-weight: 500; }
.od-file-name small { letter-spacing: .04em; }
.od-file-toggle { width: 8px; height: 8px; border-right: 1.5px solid #c6b6d1; border-bottom: 1.5px solid #c6b6d1; transform: rotate(45deg); margin: -4px 7px 0; }
.od-file[open] .od-file-toggle { transform: rotate(225deg); margin-top: 4px; }
.od-clauses { display: grid; gap: 8px; margin: 0 0 13px clamp(0px,2vw,28px); }
.od-clause { border: 1px solid #35303b; border-radius: 9px; padding: 12px 14px; background: #1a181d; scroll-margin-block: 1rem; }
.od-clause.is-od-selected { border-color: #9b77b9; background: #302735; }
.od-clause:focus { outline: 2px solid #c3a2df; outline-offset: 2px; }
.od-clause h4 { margin: 4px 0 0; color: #f3ecf8; font-size: .95rem; font-weight: 550; }
.od-clause p { margin-top: 5px; font-size: .88rem; }
.od-next { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 21px; }
@media (max-width: 540px) {
  .od-input-row { flex-direction: column; }
  .od-input-row .ord-btn { align-self: flex-start; }
  .od-clauses { margin-left: 0; }
}
