#maav {
    position: fixed;
    inset: auto max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) auto;
    z-index: 90;
    max-width: calc(100vw - 32px);
    color: #20231f;
    font: 400 14px/1.5 Inter, system-ui, sans-serif;
    text-align: start;
}
#maav, #maav * { box-sizing: border-box; }
#maav summary {
    list-style: none;
    width: max-content;
    margin-left: auto;
    padding: 10px 17px;
    border: 1px solid #c6aa74;
    border-radius: 22px;
    background: #252922;
    color: #fffaf1;
    box-shadow: 0 3px 14px #201b1426;
    cursor: pointer;
    font-weight: 600;
}
#maav summary::-webkit-details-marker { display: none; }
#maav summary::after { content: '+'; margin-left: .7em; color: #edcf91; }
#maav[open] summary::after { content: '−'; }
#maav .maav-panel {
    width: min(350px, calc(100vw - 32px));
    max-height: min(65vh, 480px);
    max-height: min(65dvh, 480px);
    overflow: auto;
    margin-top: 6px;
    padding: 16px;
    border: 1px solid #d7cebc;
    border-radius: 16px;
    background: #fffdf8;
    box-shadow: 0 8px 35px #191c1824;
}
#maav p { margin: 0 0 10px; color: inherit; line-height: 1.5; }
#maav .maav-note { font-size: 13px; color: #565647; }
#maav .maav-log { max-height: 27vh; overflow: auto; overflow-wrap: anywhere; }
#maav .maav-user { color: #5e512e; font-weight: 650; }
#maav .maav-answer { white-space: pre-line; }
#maav .maav-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px; margin: 0; }
#maav .maav-form[hidden] { display: none; }
#maav label { grid-column: 1 / -1; font-size: 13px; font-weight: 600; }
#maav input, #maav button { border-radius: 8px; padding: 8px; margin: 0; font: inherit; min-height: 40px; }
#maav input { width: 100%; border: 1px solid #9f9c90; background: white; color: #20231f; font-size: 16px; }
#maav button { border: 0; background: #343a2f; color: white; cursor: pointer; }
#maav button:disabled { opacity: .65; }
#maav a { color: #3f513c; text-decoration: underline; text-underline-offset: 2px; }
#maav .maav-status:not(:empty) { margin: 8px 0 0; }
#maav .maav-status:empty { display: none; }
#maav .maav-links { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; font-size: 12px; }
#maav :focus-visible { outline: 2px solid #665126; outline-offset: 2px; }
#maav [hidden] { display: none !important; }
#maav .maav-guide, .mae-application-form button.maav-inline-guide, #categories button.maav-inline-guide {
    width: fit-content;
    max-width: 100%;
    padding: 7px 12px;
    border: 1px solid #c5b58e;
    border-radius: 9px;
    background: #f5f0e2;
    color: #3e422e;
    cursor: pointer;
    font: 600 13px/1.4 Inter, system-ui, sans-serif;
    text-align: start;
}
#maav .maav-guide { margin: 0 0 10px; }
.mae-application-form button.maav-inline-guide { grid-column: 1 / -1; min-height: 40px; }
#categories button.maav-inline-guide { margin-top: 8px; min-height: 40px; }
#maav .maav-result {
    margin: 0 0 12px;
    padding: 9px 12px;
    border-left: 3px solid #ab915d;
    background: #f4f2e9;
}
#maav .maav-result strong, #maav .maav-result a { display: block; }
#maav .maav-result a { margin-top: 5px; font-weight: 600; }
#maav .maav-options ul { margin: 3px 0 10px; padding-inline-start: 18px; }
#maav .maav-options li + li { margin-top: 5px; }
#maav .maav-invitation-note { font-size: 13px; }
