.mt-page{max-width:1100px;margin:25px auto;padding:16px}
.mt-heading{display:flex;justify-content:space-between;gap:24px;align-items:center}
.mt-heading h1{margin:6px 0;font-size:34px}
.mt-heading p{max-width:600px;color:var(--muted,#716d69)}
.mt-actions,.mt-filters,.mt-tabs{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.mt-filters{justify-content:space-between;margin:28px 0}
.mt-page button,.mt-dialog button,.mt-page a.primary{border:1px solid var(--line,#d7d0c9);border-radius:7px;padding:8px 12px;background:var(--bg-paper,#fcfbf8);color:inherit;cursor:pointer}
.mt-page .primary,.mt-dialog .primary,.mt-tabs button[aria-pressed=true]{background:#783c4b;color:white;border-color:#783c4b}
.mt-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:14px}
.mt-card{border:1px solid var(--line,#d7d0c9);border-radius:12px;padding:20px;background:var(--bg-paper,#fcfbf8)}
.mt-card h2{font-size:21px;margin:12px 0;overflow-wrap:anywhere}
.mt-card small,.mt-card p{color:var(--muted,#716d69);font-size:13px}
.mt-dialog{width:min(640px,95vw);max-height:90vh;border:1px solid var(--line,#d7d0c9);border-radius:12px;padding:24px;background:var(--bg-paper,#fcfbf8);color:inherit}
.mt-dialog::backdrop{background:#17100b66}
.mt-dialog header{display:flex;justify-content:space-between;gap:12px}
.mt-dialog h2{margin-top:0}
.mt-field{display:flex;flex-direction:column;gap:6px;margin:16px 0}
.mt-dialog input:not([type=checkbox]),.mt-dialog textarea,.mt-note>input,.mt-note-text{width:100%;border:1px solid var(--line,#d7d0c9);border-radius:6px;padding:10px;background:transparent;color:inherit}
.mt-people{max-height:42vh;overflow:auto;margin:14px 0}
.mt-person{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 0}
.mt-person select,.mt-filters select{padding:8px;border-radius:5px}
.mt-version,.mt-comment{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0;border-top:1px solid var(--line,#d7d0c9);padding-top:12px}
.mt-version strong{flex-basis:100%}
.mt-comment p{white-space:pre-wrap;flex-basis:100%}
.mt-note>input{font-size:26px;margin:22px 0 8px}
.mt-note-text{font-size:17px;line-height:1.6;resize:vertical;min-height:420px}
.mt-attachment{height:600px;border:1px solid var(--line,#d7d0c9);margin-bottom:22px}
.mt-attachment .ge{height:100%}
.ge-embedded .ge-sidebar,.ge-embedded .ge-sidebar-grip,.ge-embedded .ge-chat-toggle,.ge-embedded .ge-start-prompts{display:none!important}
.mt-status{white-space:pre-wrap;color:#843b4b}
.mt-dialog pre{max-height:200px;overflow:auto}
.mt-attachments h2{font-size:21px}
@media(max-width:700px){.mt-heading{display:block}
.mt-heading .mt-actions{margin-top:18px}
.mt-list{grid-template-columns:1fr}
.mt-person{align-items:flex-start}
.mt-attachment{height:470px}
.mt-page{padding:5px}}

.ge-readonly .ge-composer,.ge-readonly .ge-chat-navigation,.ge-readonly .ge-start-prompts{display:none}
.ge-readonly .ge-resize{display:none}

.mt-note-preview{font-size:17px;line-height:1.7;min-height:160px;padding:10px 0}
.mt-note-preview table{width:100%;border-collapse:collapse}
.mt-note-preview th,.mt-note-preview td{border:1px solid var(--line,#d7d0c9);padding:8px}
.mt-note-preview[hidden],.mt-note-text[hidden]{display:none}
