.mlq {
  --q-ink: var(--ink, #301833);
  --q-muted: #655b65;
  --q-line: #dfd4ca;
  color: var(--q-ink);
  font-family: var(--sans, Arial, sans-serif);
}
.mlq :where(h1,h2,h3,h4,p,dl,dd) { margin: 0; }
.mlq h1, .mlq h2, .mlq h3, .mlq h4 { font-family: var(--display, Arial, sans-serif); color: var(--q-ink); }
.mlq h1 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.055em; line-height: 1.06; }
.mlq h2 { font-size: clamp(1.4rem, 2.3vw, 2rem); line-height: 1.12; letter-spacing: -.04em; }
.mlq h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.025em; }
.mlq h4 { font-size: 1rem; margin: 1rem 0 .3rem; }
.mlq p { line-height: 1.55; }
.mlq button, .mlq .mlq-button { font: inherit; }
.mlq .mlq-button, .mlq .mlq-text-button { cursor: pointer; }
.mlq .mlq-button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.65rem; padding: .58rem .95rem; background: transparent; border: 1px solid #957f8d; color: var(--q-ink); border-radius: .55rem; font-size: .93rem; font-weight: 680; text-decoration: none; }
.mlq .mlq-button:hover { background: #f3e8dd; }
.mlq .mlq-primary { background: var(--q-ink); border-color: var(--q-ink); color: #fff5e8; }
.mlq .mlq-primary:hover { background: #513152; }
.mlq button:disabled { opacity: .5; cursor: default; }
.mlq .mlq-text-button { border: 0; background: transparent; padding: .25rem 0; font-weight: 680; color: inherit; text-decoration: underline; text-underline-offset: .18em; }
.mlq .mlq-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.mlq :is(input, textarea) { width: 100%; min-width: 0; font: inherit; }
.mlq label { display: grid; gap: .4rem; min-width: 0; font-size: .88rem; font-weight: 660; }
.mlq label :is(input,textarea) { font-size: 1rem; font-weight: 450; line-height: 1.4; }
.mlq .mlq-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mlq-desk { width: min(100% - 2rem, 78rem); margin: 0 auto; padding: clamp(1.75rem,5vw,4rem) 0; }
.mlq-workspace { margin-top: 1.65rem; display: grid; grid-template-columns: minmax(14rem, .72fr) minmax(0, 1.8fr); gap: clamp(1rem,2.5vw,2rem); align-items: start; }
.mlq-inbox, .mlq-editor, .mlq-paper { min-width: 0; border: 1px solid var(--q-line); border-radius: .85rem; background: #fffcf6; }
.mlq-inbox, .mlq-editor { padding: clamp(1rem,2vw,1.75rem); }
.mlq-inbox-head { display: flex; justify-content: space-between; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.mlq-inbox-head h2 { font-size: 1.45rem; }
.mlq-inbox-head .mlq-button, .mlq-line-foot .mlq-button { min-height: 2.15rem; padding: .3rem .65rem; }
.mlq-list { margin-top: 1rem; }
.mlq-list ul { padding: 0; margin: 0; list-style: none; }
.mlq-list li + li { border-top: 1px solid var(--q-line); }
.mlq .mlq-enquiry { display: grid; gap: .32rem; width: 100%; padding: .85rem .55rem; text-align: left; border: 0; border-left: .2rem solid transparent; background: transparent; color: var(--q-ink); overflow-wrap: anywhere; }
.mlq-enquiry[aria-current="true"] { border-left-color: var(--q-ink); background: #f4eae4; }
.mlq-enquiry:hover { background: #f8efe7; }
.mlq-enquiry span, .mlq-enquiry small, .mlq-ref, .mlq-vat-note { color: var(--q-muted); font-size: .85rem; }
.mlq-list-more:not(:empty), .mlq-list-status:not(:empty), .mlq-feedback:not(:empty) { margin-top: 1rem; }
.mlq-feedback:not(:empty) { border-left: .2rem solid var(--q-ink); padding: .4rem .85rem; }
.mlq-detail-head { margin-bottom: 1.2rem; overflow-wrap: anywhere; }
.mlq-detail-head h2 { margin-top: .28rem; }
.mlq-brief { padding: .75rem 0 1.1rem; border-block: 1px solid var(--q-line); }
.mlq-brief summary { cursor: pointer; font-weight: 700; }
.mlq-facts, .mlq-quote-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .9rem 1rem; }
.mlq-facts { margin-top: 1rem; }
.mlq :is(.mlq-facts, .mlq-quote-meta) dt { font-size: .8rem; color: var(--q-muted); margin-bottom: .17rem; }
.mlq :is(.mlq-facts, .mlq-quote-meta) dd { overflow-wrap: anywhere; }
.mlq-notes { white-space: pre-line; overflow-wrap: anywhere; }
.mlq-sharing { background: #f2e9e5; border-radius: .65rem; padding: 1rem; margin: 1.25rem 0; display: grid; gap: .75rem; }
.mlq-sharing p, .mlq-edit-fields > p { color: var(--q-muted); font-size: .9rem; }
.mlq-form { margin-top: 1.45rem; }
.mlq-edit-fields { min-width: 0; border: 0; padding: 0; margin: 0; display: grid; gap: 1rem; }
.mlq-edit-fields > h3 + p { margin-top: -.65rem; }
.mlq-edit-fields > .mlq-button { justify-self: start; }
.mlq-lines { display: grid; gap: .7rem; }
.mlq-line { min-width: 0; margin: 0; display: grid; grid-template-columns: minmax(5.5rem,.7fr) minmax(6.5rem,1fr); align-items: end; gap: .65rem; border: 1px solid var(--q-line); border-radius: .5rem; padding: .85rem; }
.mlq-description, .mlq-line-foot { grid-column: 1 / -1; }
.mlq-line-foot, .mlq-editor-total, .mlq-totals > div { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.mlq-line-total { font-variant-numeric: tabular-nums; font-weight: 650; }
.mlq-two { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.mlq-editor-total { border-top: 1px solid var(--q-line); padding-top: 1rem; font-size: 1.1rem; font-weight: 740; }
.mlq-customer { width: min(100% - 2rem, 55rem); margin: 0 auto; padding: clamp(1.5rem,4vw,3.2rem) 0; }
.mlq-paper { padding: clamp(1rem,4.5vw,3.5rem); }
.mlq-customer-head { border-bottom: 1px solid var(--q-line); padding-bottom: 1.35rem; }
.mlq .mlq-school-name { margin: .6rem 0 1rem; font-size: clamp(1.05rem,2.7vw,1.35rem); overflow-wrap: anywhere; }
.mlq-quote-meta { width: min(100%, 30rem); }
.mlq-prices, .mlq-customer-section { margin-top: 1.6rem; }
.mlq-customer-section { border-top: 1px solid var(--q-line); padding-top: 1.35rem; }
.mlq-prices h2, .mlq-customer-section h2 { font-size: 1.25rem; }
.mlq-customer-section p, .mlq-customer-section .mlq-actions, .mlq-unavailable p, .mlq-unavailable .mlq-actions { margin-top: .75rem; }
.mlq-table-scroll { margin-top: .65rem; overflow-x: auto; }
.mlq-prices table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.mlq-prices th, .mlq-prices td { border-bottom: 1px solid var(--q-line); padding: .65rem .45rem; text-align: right; font-variant-numeric: tabular-nums; vertical-align: top; }
.mlq-prices th:first-child { text-align: left; width: 50%; padding-left: 0; overflow-wrap: anywhere; }
.mlq-prices th:last-child, .mlq-prices td:last-child { padding-right: 0; }
.mlq-prices thead th { color: var(--q-muted); font-size: .81rem; }
.mlq-totals { margin: .9rem 0 0 auto; width: min(100%,20rem); }
.mlq-totals > div { padding: .25rem 0; }
.mlq-totals .mlq-grand { padding: .7rem 0; margin-top: .3rem; border-top: 1px solid var(--q-ink); font-weight: 750; font-size: 1.2rem; }
.mlq-vat-note { text-align: right; }
@media (min-width: 1050px) {
  .mlq-line { grid-template-columns: minmax(10rem,2.35fr) minmax(4.3rem,.7fr) minmax(5.5rem,.9fr); }
  .mlq-description { grid-column: auto; }
}
@media (max-width: 760px) {
  .mlq-workspace { grid-template-columns: minmax(0,1fr); }
  .mlq-list ul { max-height: 17rem; overflow-y: auto; }
}
@media (max-width: 415px) {
  .mlq-facts, .mlq-two { grid-template-columns: 1fr; }
  .mlq-desk, .mlq-customer { width: calc(100% - 1rem); }
  .mlq-prices :is(th,td) { padding-inline: .25rem; }
}
@media print {
  body:has(.mlq-customer) :is(.sitehead, .footer, .skip, .mlq-customer-section:last-child) { display: none; }
  .mlq-customer { width: 100%; padding: 0; }
  .mlq-paper { border: 0; padding: 0; }
  .mlq-prices tr, .mlq-customer-section { break-inside: avoid; }
}

.mlq-brief-names { margin:1rem 0; }
.mlq-brief-names summary { min-height:2.75rem; cursor:pointer; font-weight:700; }
.mlq-brief-names ol { max-height:18rem; overflow:auto; }
