.rcd330-ati-topic-marker {
    display: none !important;
}

#af-wrapper .topic-status.rcd330-ati-custom-status {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

#af-wrapper .topic-status .rcd330-ati-status-svg {
    display: block;
    width: 34px;
    height: 34px;
    color: currentColor;
    fill: none;
    stroke: currentColor;
}

#af-wrapper .topic-status .rcd330-ati-status-flag {
    display: block;
    width: 42px;
    height: 31px;
    max-width: calc(100% - 8px);
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

#af-wrapper .rcd330-ati-editor-row {
    align-items: flex-start;
}

#af-wrapper .rcd330-ati-picker {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px;
    border: 1px solid #d8dde3;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
}

#af-wrapper .rcd330-ati-help {
    margin: 0 0 10px;
    color: #555;
    font-size: 13px;
}

#af-wrapper .rcd330-ati-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

#af-wrapper .rcd330-ati-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 3px;
    border-radius: 5px;
    background: #eef2f5;
}

#af-wrapper button.rcd330-ati-tab {
    min-height: 34px;
    margin: 0;
    padding: 6px 12px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #344054;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
}

#af-wrapper button.rcd330-ati-tab.is-active {
    background: #2495bd;
    color: #fff;
}

#af-wrapper .rcd330-ati-search-label {
    flex: 1 1 220px;
    max-width: 340px;
    margin: 0;
}

#af-wrapper input.rcd330-ati-search {
    width: 100%;
    min-height: 36px;
    margin: 0;
    padding: 7px 10px;
    border: 1px solid #c7cdd4;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
}

#af-wrapper .rcd330-ati-panel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 8px;
    max-height: 330px;
    padding: 2px;
    overflow: auto;
}

#af-wrapper .rcd330-ati-panel[hidden],
#af-wrapper .rcd330-ati-choice[hidden] {
    display: none !important;
}

#af-wrapper button.rcd330-ati-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 78px;
    margin: 0;
    padding: 7px 5px;
    border: 1px solid #d7dce1;
    border-radius: 5px;
    background: #fff;
    color: #344054;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
}

#af-wrapper button.rcd330-ati-choice:hover,
#af-wrapper button.rcd330-ati-choice:focus {
    border-color: #2495bd;
    outline: 2px solid rgba(36, 149, 189, 0.18);
    outline-offset: 1px;
}

#af-wrapper button.rcd330-ati-choice.is-selected {
    border-color: #167ca2;
    background: #e9f7fc;
    color: #0f6f93;
    box-shadow: inset 0 0 0 1px #167ca2;
}

#af-wrapper .rcd330-ati-choice .rcd330-ati-svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
}

#af-wrapper .rcd330-ati-choice .rcd330-ati-flag {
    display: block;
    width: 40px;
    height: 30px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 3px;
}

#af-wrapper .rcd330-ati-choice-label {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#af-wrapper .rcd330-ati-selection {
    min-height: 20px;
    margin: 10px 0 0;
    color: #167ca2;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 700px) {
    #af-wrapper .rcd330-ati-editor-row {
        display: block;
    }

    #af-wrapper .rcd330-ati-editor-row > .row-title {
        display: block;
        margin-bottom: 6px;
    }

    #af-wrapper .rcd330-ati-search-label {
        max-width: none;
    }

    #af-wrapper .rcd330-ati-panel {
        grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
        max-height: 280px;
    }
}
