body {
    margin: 0;
    padding: 8px;
    background: #f6fafb;
    color: #263445;
    font: 14px/1.4 system-ui, sans-serif;
}
p { margin: 0; }
[hidden] { display: none !important; }
#status { margin-top: 6px; color: #536577; }
#status:empty { display: none; }

button, input, select { font: inherit; }
button {
    padding: 6px 11px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #15568b;
    color: #fff;
    cursor: pointer;
}
button:disabled { opacity: .65; cursor: default; }
:focus-visible { outline: 2px solid #276da3; outline-offset: 2px; }

input, select {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    border: 1px solid #c6d3dd;
    border-radius: 7px;
    padding: 6px 9px;
    background: #fff;
    color: inherit;
}
#query { min-height: 36px; padding-left: 34px; }
#query::placeholder { color: #5c7081; }
#search { position: relative; }
#search::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 11px;
    width: 9px;
    height: 9px;
    border: 1.5px solid #657a8b;
    border-radius: 50%;
    pointer-events: none;
}
#search::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 21px;
    width: 5px;
    height: 1.5px;
    background: #657a8b;
    transform: rotate(45deg);
    pointer-events: none;
}
#company { margin-bottom: 8px; font-weight: 600; overflow-wrap: anywhere; }
#results {
    list-style: none;
    margin: 5px 0 0;
    padding: 3px;
    max-height: 132px;
    overflow: auto;
    border: 1px solid #dbe5ea;
    border-radius: 8px;
    background: #fff;
}
#results button {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    text-align: left;
    overflow-wrap: anywhere;
    background: transparent;
    color: inherit;
}
#results button:hover, #results button:focus-visible { background: #eaf4fa; }
#results button:focus-visible { outline-offset: -2px; }
.result-id { flex-shrink: 0; color: #5c7081; font-size: 12px; }
#show-create { margin-top: 6px; }
#clear, #cancel-create { color: #15568b; background: transparent; }
.search-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.create-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
    margin-bottom: 8px;
}
.create-fields input, .create-fields select { display: block; margin-top: 2px; }
