.mbhd {
    --mbhd-ink: #2e2235;
    --mbhd-muted: #625669;
    --mbhd-plum: #643394;
    --mbhd-line: #e7ddec;
    --mbhd-pale: #f8f1fb;
    color: var(--mbhd-ink);
    max-width: 1120px;
    margin: 0 auto 28px;
}
.mbhd *, .mbhd-app-link * { box-sizing: border-box; }
.mbhd :where(h1,h2,h3,p) { margin: 0; }
.mbhd [hidden] { display: none !important; }
.mbhd :where(a,button,input,select,textarea,summary):focus-visible,
.mbhd-app-link a:focus-visible { outline: 2px solid #985ac7; outline-offset: 3px; }
.mbhd-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: clamp(20px, 5vw, 46px);
    margin-bottom: 14px;
    border: 1px solid var(--mbhd-line);
    border-radius: 20px;
    background: radial-gradient(ellipse at 94% 16%, #efdaf6, transparent 68%), #fbf6f4;
}
.mbhd-brand { font-size: .78em; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: #6d4380; }
.mbhd .mbhd-hero h1 { font-family: Georgia, serif; font-weight: 400; font-size: clamp(31px, 6vw, 60px); line-height: 1.07; margin: .14em 0 .2em; }
.mbhd-hero p:last-child { color: var(--mbhd-muted); }
.mbhd-language, .mbhd-back {
    flex-shrink: 0;
    color: var(--mbhd-plum);
    font-size: .88em;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.mbhd-nav { display: flex; gap: 7px; flex-wrap: wrap; margin: 12px 0; }
.mbhd-nav a { border: 1px solid var(--mbhd-line); border-radius: 999px; padding: 6px 12px; color: var(--mbhd-plum); background: #fff; text-decoration: none; font-size: .88em; font-weight: 630; }
.mbhd-nav a:hover, .mbhd-ticket-row:hover { background: var(--mbhd-pale); }
.mbhd-workspace { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; gap: 12px; }
.mbhd-card { background: #fff; border: 1px solid var(--mbhd-line); border-radius: 15px; padding: clamp(14px, 3vw, 24px); min-width: 0; }
.mbhd-card h2 { font-size: 1.25em; line-height: 1.25; margin-bottom: 7px; }
.mbhd-card h3 { font-size: 1em; margin-top: 12px; }
.mbhd-muted { color: var(--mbhd-muted); }
.mbhd-small { font-size: .78em; }
.mbhd-card > .mbhd-button { margin-top: 12px; }
.mbhd .mbhd-button, .mbhd-app-link .mbhd-button {
    display: inline-flex;
    align-items: center;
    padding: 9px 15px;
    border-radius: 9px;
    border: 1px solid transparent;
    background: #643394;
    color: #fff;
    font: inherit;
    font-weight: 640;
    text-decoration: none;
    line-height: 1.35;
    cursor: pointer;
}
.mbhd .mbhd-button:hover, .mbhd-app-link .mbhd-button:hover { color: #fff; background: #4a2473; }
.mbhd-app-link { margin: 0 0 12px; }
.mbhd-app-link .mbhd-button-alt { color: #572780; background: #f6edf9; border-color: #decde7; font-size: .9em; }
.mbhd form { display: grid; gap: 11px; margin-top: 12px; }
.mbhd form .mbhd-button { justify-self: start; }
.mbhd label { display: grid; gap: 5px; color: var(--mbhd-ink); font-size: .89em; font-weight: 620; min-width: 0; }
.mbhd-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mbhd :is(input,select,textarea) { width: 100%; border: 1px solid #dcd2e1; border-radius: 8px; background: #fdfbfe; color: var(--mbhd-ink); font: inherit; font-weight: 450; min-height: 39px; padding: 7px 9px; }
.mbhd textarea { min-height: 86px; resize: vertical; }
.mbhd-suggestions { padding: 11px 13px; border-radius: 9px; border: 1px solid #dfc9eb; background: var(--mbhd-pale); }
.mbhd-suggestions h3 { margin: 0; font-size: .95em; }
.mbhd-suggestions ul { margin: 6px 0 0; padding-left: 20px; }
.mbhd-suggestions a { color: var(--mbhd-plum); text-decoration: underline; }
.mbhd-extra { font-size: .88em; color: var(--mbhd-muted); }
.mbhd-extra label { margin-top: 5px; }
.mbhd summary { cursor: pointer; color: #4c2b5e; font-weight: 620; }
.mbhd-search { margin: 8px 0 12px; }
.mbhd-guide { border-top: 1px solid var(--mbhd-line); padding: 10px 0; font-size: .91em; }
.mbhd-guide:last-of-type { padding-bottom: 0; }
.mbhd-guide > div { padding-top: 6px; color: var(--mbhd-muted); }
.mbhd-guide p + p { margin-top: .5em; }
.mbhd-history { margin-top: 12px; }
.mbhd-ticket-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--mbhd-line); text-decoration: none; color: var(--mbhd-ink); }
.mbhd-ticket-row span:first-child { min-width: 0; overflow-wrap: anywhere; }
.mbhd-ticket-row small { display: block; color: var(--mbhd-muted); }
.mbhd-state { border-radius: 999px; padding: 3px 8px; background: #f1e8f6; color: #573178; font-size: .75em; font-weight: 670; white-space: nowrap; }
.mbhd-state[data-state="answered"] { background: #eaf3e9; color: #305640; }
.mbhd-state[data-state="closed"] { background: #eeedf0; color: #544e57; }
.mbhd-pagination { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--mbhd-muted); }
.mbhd-pagination a { color: var(--mbhd-plum); }
.mbhd-notice { padding: 8px 10px; background: #e9f5e9; color: #2b5737; border-radius: 8px; margin: 8px 0; }
.mbhd-ticket-meta { color: var(--mbhd-muted); font-size: .88em; }
.mbhd-ticket-meta .mbhd-state { margin-left: 3px; }
.mbhd-message { border: 1px solid var(--mbhd-line); border-radius: 9px; padding: 10px 12px; margin-top: 8px; overflow-wrap: anywhere; }
.mbhd-staff-message { background: #faf5fc; }
.mbhd-time { color: var(--mbhd-muted); font-size: .76em; font-weight: 600; margin-bottom: 4px; }
.mbhd-admin-thread { margin-left: 0; max-width: 900px; }
@media (max-width: 710px) { .mbhd-workspace { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .mbhd-fields { grid-template-columns: 1fr; } .mbhd-hero { gap: 8px; } }
