.mhs {
    display: none;
}

html.he-compact .mhs {
    display: block;
    position: relative;
    z-index: 50;
    padding: 1px 16px 18px;
    background: var(--mhs-bg);
    color: #FFF;
}

html.he-compact .mhs *,
html.he-compact .mhs *::before,
html.he-compact .mhs *::after {
    box-sizing: border-box;
}

html.he-compact .mhs-wrap {
    position: relative;
}

html.he-compact .mhs-field {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 14px;
    background: var(--mhs-field-bg);
    border: 1px solid var(--mhs-field-border);
    border-radius: 12px;
    transition: border-color 0.15s, background 0.15s, border-radius 0.15s;
    margin: 0;
}

html.he-compact .mhs-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.7);
}

html.he-compact .mhs-field input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #FFF;
    font: inherit;
    font-size: 15px;
    font-family: 'Helvetica Neue', Arial, system-ui, sans-serif;
}

html.he-compact .mhs-field input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

html.he-compact .mhs-field input::-webkit-search-cancel-button,
html.he-compact .mhs-field input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

html.he-compact .mhs-clear {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    border: none;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

html.he-compact .mhs-clear[hidden] {
    display: none;
}

html.he-compact .mhs-clear:hover {
    background: rgba(255, 255, 255, 0.32);
}

html.he-compact .mhs-wrap.is-focus .mhs-field {
    background: var(--mhs-field-focus-bg);
    border-color: rgba(255, 255, 255, 0.18);
    border-radius: 12px 12px 0 0;
    border-bottom-color: transparent;
}

html.he-compact .mhs-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--mhs-dropdown-bg);
    border: 1px solid var(--mhs-field-border);
    border-top: none;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    z-index: 60;
    box-shadow: var(--mhs-dropdown-shadow);
}

html.he-compact .mhs-dropdown[hidden] {
    display: none;
}

html.he-compact .mhs-section {
    display: flex;
    flex-direction: column;
}

html.he-compact .mhs-section + .mhs-section {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

html.he-compact .mhs-section-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

html.he-compact .mhs-clear-all {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    background: transparent;
    border: none;
    cursor: pointer;
    letter-spacing: 0;
    text-transform: none;
    padding: 2px 0;
}

html.he-compact .mhs-clear-all[hidden] {
    display: none;
}

html.he-compact .mhs-clear-all:hover {
    color: #FFF;
}

html.he-compact .mhs-history-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.1s;
    text-align: left;
    border: none;
    background: transparent;
    width: 100%;
    font-family: inherit;
}

html.he-compact .mhs-history-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

html.he-compact .mhs-history-row:active {
    background: rgba(255, 255, 255, 0.12);
}

html.he-compact .mhs-history-icon {
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
    display: grid;
    place-items: center;
}

html.he-compact .mhs-history-text {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    letter-spacing: -0.005em;
}

html.he-compact .mhs-history-arrow {
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    display: grid;
    place-items: center;
}

html.he-compact .mhs-history-empty {
    padding: 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    font-style: italic;
}

html.he-compact .mhs-history-empty[hidden] {
    display: none;
}

html.he-compact .mhs-random {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: #FFF;
    text-decoration: none;
    transition: background 0.1s;
}

html.he-compact .mhs-random:hover {
    background: rgba(255, 255, 255, 0.08);
}

html.he-compact .mhs-random:active {
    background: rgba(255, 255, 255, 0.12);
}

html.he-compact .mhs-random-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4ECDC4, #2A9D8F);
    color: #FFF;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

html.he-compact .mhs-random-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

html.he-compact .mhs-random-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.005em;
    color: #FFF;
}

html.he-compact .mhs-random-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

html.he-compact .mhs-random-arrow {
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
    display: grid;
    place-items: center;
}
