.skyinpo-modal .components-modal__frame {
    max-width: calc(100vw - 32px);
    width: 420px;
}

.skyinpo-header-suggestions-root {
    align-items: center;
    display: inline-flex;
}

.skyinpo-header-suggestions-button.components-button {
    min-width: 36px;
}

.skyinpo-panel {
    padding: 0 0 4px;
}

.skyinpo-panel__header {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    min-height: 0;
}

.skyinpo-suggestions-modal .skyinpo-panel__header {
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.skyinpo-results {
    margin-top: 10px;
    max-height: 320px;
    overflow-y: auto;
}

.skyinpo-state {
    align-items: center;
    color: #646970;
    display: flex;
    justify-content: center;
    min-height: 56px;
    text-align: center;
}

.skyinpo-result {
    border-top: 1px solid #dcdcde;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 8px 0;
}

.skyinpo-result:first-child {
    border-top: 0;
}

.skyinpo-result__button.components-button {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    height: auto;
    min-width: 0;
    padding: 6px 8px;
    text-align: left;
    white-space: normal;
}

.skyinpo-result__button.components-button:hover,
.skyinpo-result__button.components-button:focus {
    background: #f0f6fc;
}

.skyinpo-result__title {
    color: #1d2327;
    font-weight: 600;
    line-height: 1.35;
}

.skyinpo-result__meta,
.skyinpo-result__excerpt {
    color: #646970;
    font-size: 12px;
    line-height: 1.4;
}

.skyinpo-result__preview {
    align-self: start;
    font-size: 12px;
    margin-top: 8px;
}

.skyinpo-suggestions-modal .components-modal__frame {
    width: 560px;
}

.skyinpo-suggestions {
    margin-top: 10px;
    max-height: 420px;
    overflow-y: auto;
}

.skyinpo-suggestions-filter {
    flex: 1 1 280px;
    margin: 0 auto 0 0;
    min-width: 220px;
}

.skyinpo-suggestion {
    align-items: flex-start;
    border-top: 1px solid #dcdcde;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px 0;
}

.skyinpo-suggestion:first-child {
    border-top: 0;
}

.skyinpo-suggestion--current {
    background: #fff8e5;
    border-left: 3px solid #dba617;
    padding-left: 10px;
}

.skyinpo-suggestion__content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.skyinpo-suggestion__title {
    color: #1d2327;
    font-weight: 600;
    line-height: 1.35;
}

.skyinpo-rating {
    border-radius: 999px;
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    margin-left: 8px;
    padding: 1px 7px;
    vertical-align: 1px;
}

.skyinpo-rating--ideal {
    background: #d1e7dd;
    color: #0f5132;
}

.skyinpo-rating--best {
    background: #cff4fc;
    color: #055160;
}

.skyinpo-rating--good {
    background: #e7f1ff;
    color: #084298;
}

.skyinpo-rating--normal {
    background: #f0f0f1;
    color: #50575e;
}

.skyinpo-suggestion__meta,
.skyinpo-suggestion__excerpt {
    color: #646970;
    font-size: 12px;
    line-height: 1.4;
}

.skyinpo-keyword-highlight {
    background: #fff2a8;
    border-radius: 2px;
    color: inherit;
    padding: 0 2px;
}
