.mt-select, .mt-copy { display: inline-flex; align-items: center; min-height: 30px; }
.mt-select { gap: .3em; cursor: pointer; }
.mt-copy {
  font: inherit; background: transparent; color: var(--green, #284a3f);
  border: 0; padding: 2px 0; text-decoration: underline; text-underline-offset: .16em;
}
.mt-dialog {
  box-sizing: border-box; color: var(--ink, #231f1a); background: var(--paper, #fcfbf7);
  width: min(920px, calc(100vw - 26px)); max-width: none; max-height: 88dvh;
  padding: clamp(16px, 3vw, 30px); overflow: auto; overscroll-behavior: contain;
  border: 1px solid var(--line, #cdc9bc); border-radius: 4px;
}
.mt-dialog::backdrop { background: rgb(25 25 20 / 48%); }
.mt-dialog-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.mt-dialog-head h2 { margin:0; font: normal clamp(25px, 5vw, 38px)/1.15 Georgia, serif; }
.mt-dialog-head button { background:transparent; border:1px solid var(--line,#cdc9bc); border-radius:3px; padding:6px 12px; min-height:40px; }
.mt-share, .mt-item-actions { display:flex; flex-wrap:wrap; gap:5px 16px; align-items:center; font:14px/1.4 system-ui,sans-serif; }
.mt-share { margin:10px 0; }
.mt-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 24px; }
.mt-item { min-width:0; border-top:1px solid var(--line,#cdc9bc); padding:14px 0 0; overflow-wrap:anywhere; }
.mt-story { margin:0 0 6px; }
.mt-item h3 { font:normal 23px/1.25 Georgia,serif; margin:0 0 10px; }
.mt-refs { list-style:none; margin:0; padding:0; }
.mt-refs li { margin:8px 0; }
.mt-label, .mt-degree, .mt-edition, .mt-feedback, .mt-reader-status { font:14px/1.4 system-ui,sans-serif; }
.mt-label, .mt-degree { color:var(--muted,#605e53); }
.mt-label { display:block; font-weight:650; }
.mt-degree { display:block; }
.mt-gloss { margin: .35em 0 .8em; line-height: 1.45; }
.mt-edition strong { display: block; }
.mt-feedback:empty, .mt-reader-status:empty { margin:0; }
.mt-feedback:not(:empty), .mt-reader-status:not(:empty) { margin:8px 0; }
.mt-edition { margin:10px 0; }
.mt-manual-copy { display:block; box-sizing:border-box; width:100%; min-height:80px; }
@media(max-width:620px) {
  .mt-grid { grid-template-columns:1fr; }
  .mt-select, .mt-copy, .mt-dialog-head button { min-height:44px; }
}
