/* ===== GLOBAL ===== */
body {
    font-family: system-ui, Arial, sans-serif;
    background: #eee;
    margin: 0;
    box-sizing: border-box;
}

/* ===== APP ===== */
.app {
    max-width: 720px;
    margin: 40px auto;
    min-height: calc(100vh - 80px); /* 40 + 40 */
    display: flex;
    padding: 0 10px; /* небольшой отступ слева и справа */
    flex-direction: column;
}

/* ===== HEADER ===== */
/*.header {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    gap: 10px;*/
/*    margin-bottom: 20px;*/
/*}*/

.header {
    display: flex;
    flex-direction: column; /* h1 сверху, nav под ним */
    align-items: center;    /* выравнивание по поперечной оси (горизонтально) */
    justify-content: center; /* выравнивание по основной оси (вертикально) */
    gap: 10px;              /* расстояние между h1 и nav */
    margin-bottom: 20px;
}

.main-nav {
    display: flex;          /* горизонтальное расположение ссылок */
    gap: 15px;              /* расстояние между ссылками */
}

.main-nav a {
    text-decoration: none;
    color: #000;
    /*     padding: 5px 10px; */
}

.main-nav a.active {
    font-weight: bold;
    color: #0060df; /* выделение */
    border-bottom: 2px solid #0060df; /*  подчеркивание */
    pointer-events: none; /* деактивируем ссылку на себя */
    cursor: default;
}

.logo {
    width: 28px;
}

.title {
    font-weight: 700;
    font-size: 22px;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 20px;
    background-color: #f8f8f8;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}
.footer a {
    color: #0066cc;
    text-decoration: none;
}
.footer a:hover {
    text-decoration: underline;
}

/* ===== PANELS ===== */
.panel {
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    margin-bottom: 14px;
    overflow: hidden;
}

.panel-title {
    background: #dcdcdc;
    padding: 8px 10px;
    font-size: 15px;
}

.panel-body {
    background: #eee;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

select {
    padding: 3px 6px;
}

.container {
    flex: 1;
}

/* ===== RESULT SECTION ===== */
.senses li::marker {
    font-weight: bold;
}

.results ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.results li {
    background: white;
    padding: 4px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.word {
    display: flex;
    font-weight: bold;
    font-size: 16px;
}

.item_number {
    margin-left: auto;
    font-weight: normal;
    font-size: 12px;
}

.meta {
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
}

[data-cc="cookie-settings"] {
    all: unset;      /* сбрасывает почти все стили */
    cursor: pointer; /* чтобы оставался курсор */
    font-weight: normal; /* отменяем жирный шрифт */
    font-size: inherit;
    background: none;
    border: none;
    padding: 0;
    color: #0066cc;
}