body{

    font-family:
    Segoe UI,
    Arial,
    sans-serif;

    background:#f5f5f5;

    color:#222;

    margin:0;

}


.page{

    max-width:1800px;

    margin:30px auto;

    padding:0 25px;

}


h1{

    margin-bottom:25px;

}


.layout{

    display:grid;

    grid-template-columns:
        700px
        1fr;

    gap:30px;

    height:90vh;

    min-height:0;

}

.editorCard:last-child{

    display:flex;

    flex-direction:column;

    min-height:0;

}

.editorCard{

    background:white;

    border-radius:10px;

    padding:25px;

    box-shadow:
    0 2px 10px
    rgba(
        0,0,0,.08
    );

    overflow:visible;

    position:relative;

}

#wordsTab,
#recentTab{

    flex:1;

    min-height:0;

    display:flex;

    flex-direction:column;

}

.field{

    margin-bottom:18px;

}


.field label{

    display:block;

    margin-bottom:7px;

    font-weight:600;

    color:#444;

}


input,
select,
textarea{

    width:100%;

    box-sizing:border-box;

    padding:10px;

    font-size:15px;

    border:1px solid #ccc;

    border-radius:6px;

}


input:focus,
select:focus,
textarea:focus{

    outline:none;

    border-color:#4d82ff;

}


#word_ru{

    font-size:20px;

    font-weight:700;

}


textarea{

    min-height:160px;

    resize:vertical;

    font-family:inherit;

}


.toolbar{

    margin-top:25px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}


button{

    padding:10px 18px;

    border:none;

    border-radius:8px;

    background:#3468d6;

    color:white;

    cursor:pointer;

    font-size:14px;

}



/* ---------- RIGHT COLUMN ---------- */

#wordList,
#recentChanges{

    flex:1;

    min-height:0;

    overflow-y:auto;

    padding-right:10px;

}


.wordRow{

    padding:8px 0;

    border-bottom:
    1px solid #eee;

    line-height:1.45;

    word-break:break-word;

}


.wordRow b{

    font-size:16px;

}


.selectButton{

    padding:3px 8px;

    margin-right:10px;

    font-size:12px;

}


.checkboxLabel{

    display:flex;

    align-items:center;

    gap:8px;

}


.checkboxLabel input{

    width:auto;

}

#wordSearch{

    margin-bottom:15px;

}

.exampleTarget{

    padding:12px;

    background:#f0f3f7;

    border-radius:8px;

    font-size:17px;

}

.wordBlock{

    padding:10px 5px;

    border-bottom:

        1px solid #aaa;

}

.wordHeader{

    line-height:1.5;

}

.exampleBlock{

    margin-left:18px;

    padding-left:10px;

    border-left:2px solid #f0d090;

    font-size:95%;

}

.wordBlock .wordBlock{
  padding: 5px;
border-bottom:

        1px solid #ddd;
}


.entityLink{

    margin-top:6px;

    margin-left:36px;

    font-size:13px;

}

.entityLink a{

    color:#2f5ea8;

    text-decoration:none;

}

.entityLink a:hover{

    text-decoration:underline;

}

.inlineLink{

    position:relative;

    display:inline;

    margin-left:8px;

}

.popupButton{

    background:none;

    border:none;

    padding:0;

    margin:0;

    color:#2f5ea8;

    cursor:pointer;

    font-size:inherit;

    font-family:inherit;

    font-weight:inherit;

}

.popupButton:hover{

    text-decoration:underline;

}


.quotePopup{

    display:none;

    position:fixed;

    left:0;

    top:0;

    z-index:1000000;

    width:520px;

    max-height:320px;

    overflow:auto;

    padding:16px;

    background:white;

    border:1px solid #cfcfcf;

    border-radius:10px;

    box-shadow:
        0 14px 40px rgba(0,0,0,.22);

    white-space:pre-wrap;

    line-height:1.55;

    font-size:14px;

    color:#222;

    user-select:text;

}
.quotePopup.open{

    display:block;

}

.popupUrl{

    margin-top:14px;

    padding-top:12px;

    border-top:

        1px solid #eee;

}

.quoteHighlight{

    background:#fff1a8;

    color:inherit;

    border-radius:3px;

    padding:0px;

    font-weight:600;

}

.inlineRow{

    display:flex;

    gap:8px;

}

#wordResolutionPanel{

    border:1px solid #d8d8d8;

    padding:14px;

    margin-top:8px;

    border-radius:8px;

    background:#fafafa;

}

.wordCandidate{

    border:1px solid #e2e2e2;

    padding:12px;

    margin-bottom:12px;

    border-radius:8px;

    background:white;

}

.wordStatus{

    font-size:12px;

    margin-bottom:8px;

    font-weight:600;

    color:#666;

    text-transform:uppercase;

}

.resolverPopup{

    left:auto;

    right:0;

}

.topToolbar{

    margin-bottom:20px;

}

.inlineRow{

    display:flex;

    align-items:center;

    gap:8px;

}

.clearButton{

    padding:2px 8px;

    font-size:12px;

    cursor:pointer;

}

input,
textarea,
select{

    width:100%;

    box-sizing:border-box;

}

textarea{

    min-height:34px;

    resize:none;

    overflow:hidden;

    line-height:1.4;

    padding:6px;

}

.field{

    margin-bottom:12px;

}

.toolbar{

    display:flex;

    gap:10px;

    margin-bottom:20px;

}

.bottomToolbar{

    justify-content:flex-end;

    margin-top:24px;

}

.topToolbar{

    margin-bottom:20px;

}

.inlineRow{

    display:flex;

    align-items:center;

    gap:8px;

}

.clearButton{

    padding:2px 8px;

    font-size:12px;

    cursor:pointer;

}



.deleteButton{

    background:#b00020;

    color:white;

    margin-left:4px;

    

}

.deleteButton:hover{

    background:#d00030;

}

.deleteButton:active{

    background:#800018;

}

.citationPendingDelete .citationContent{
    opacity:0.35;
    pointer-events:none;
}

.citationDeletePanel{
    opacity:1;
}

.citationPendingDelete .citationDeleteWarning,
.citationPendingDelete .citationDeleteWarning *,
.citationPendingDelete button{
    pointer-events:auto;
}

.citationDeleteWarning{
    margin:10px 0;
    padding:10px;
    border:1px solid #d99;
}

.wordCandidateRemoved .wordStatus,
.wordCandidateRemoved b,
.wordCandidateRemoved .field,
.wordCandidateRemoved .inlineLink{

    opacity:0.35;

}

.wordCandidateRemoved input,
.wordCandidateRemoved select{

    pointer-events:none;

}

.existingExampleLink{

    display:flex;
    align-items:center;
    gap:8px;

    padding:6px 8px;
    margin:4px 0;

    border:1px solid #444;
    border-radius:4px;

}

.existingExampleLink.wordCandidateRemoved{

    opacity:.45;

}


.word{

    font-weight:700;
    font-style:normal;

}

.translation{

    font-weight:400;
    font-style:normal;

}

.example{

    font-weight:500;
    font-style:italic;

}

.exampleTranslation{

    font-weight:400;
    font-style:italic;

}

/* цвета */

.canon{

    color:#000;

}

.helper{

    color:#FF00FF;

}

/* перевод наследует цвет слова */

.word.helper + .translation{

    color:#FF00FF;

}

.word.canon + .translation{

    color:#000;

}

/* перевод примера наследует цвет примера */

.example.helper + .exampleTranslation{

    color:#FF00FF;

}

.example.canon + .exampleTranslation{

    color:#000;

}

.word,
.example{

    position:relative;

}

/* бейджи */

.confirmed::before{

    content:"✓";

    display:inline-block;

    margin-right:6px;

    padding:1px 6px;

    border-radius:10px;

    font-size:10px;

    font-weight:700;

    background:#dff5df;

    color:#1f6b1f;

    vertical-align:middle;

}

.unconfirmed::before{

    content:"?";

    display:inline-block;

    margin-right:6px;

    padding:1px 6px;

    border-radius:10px;

    font-size:10px;

    font-weight:700;

    background:#ffe7b3;

    color:#9a6700;

    vertical-align:middle;

}

.word.helper + .translation{

    color:#FF00FF;

}

.example.helper + .exampleTranslation{

    color:#FF00FF;

}

/* =========================
   EDITOR POLISH
   ========================= */

.topToolbar,
.bottomToolbar{

    display:flex;
    gap:8px;
    align-items:center;

}

.topToolbar{

    margin-bottom:18px;

}

.bottomToolbar{

    margin-top:20px;
    justify-content:flex-end;

}

.topToolbar button{

    padding:4px 10px;
    font-size:12px;

}

.bottomToolbar button{

    padding:6px 12px;
    font-size:13px;

}

.field{

    margin-bottom:10px;

}

.field label{

    display:block;
    margin-bottom:4px;

    font-size:13px;
    font-weight:600;

}

.field label input[type="checkbox"]{

    width:auto;
    margin:0;

}

.field label:has(input[type="checkbox"]){

    display:flex;
    align-items:center;
    gap:6px;

    margin-bottom:0;

}

input,
select{

    padding:6px 8px;
    font-size:14px;

}

textarea{

    padding:6px 8px;
    font-size:14px;

}

button{

    padding:6px 12px;
    font-size:13px;

}

.selectButton{

    padding:2px 7px;
    margin-right:4px;

    font-size:11px;

    border-radius:4px;

}

.clearButton{

    padding:1px 6px;
    font-size:11px;

}

.citationRemoveButton{

    padding:2px 8px;
    font-size:12px;

}

.wordCandidate{

    padding:10px;

}

.wordStatus{

    margin-bottom:4px;
    font-size:11px;

}

.change_word{
    border-left:4px solid #5a7;
}

.change_example{
    border-left:4px solid #57a;
}

.change_citation{
    border-left:4px solid #a75;
}

.recentDate{
    font-size:11px;
    opacity:.6;
}

.listTabs{

    display:flex;

    gap:0;

    margin-bottom:15px;

    border-bottom:1px solid #ddd;

}

.listTab{

    background:#eee !important;

    color:#222 !important;

    border:none !important;

    border-radius:6px 6px 0 0 !important;

    padding:10px 16px !important;

    margin:0 4px 0 0;

    cursor:pointer;

}

.listTab.active{

    background:white !important;

    color:#000 !important;

    font-weight:bold;

    border:1px solid #ddd !important;

    border-bottom:1px solid white !important;

    margin-bottom:-1px;

}

.recentChange{

    padding:10px 0;

    border-bottom:1px solid #ddd;

}

.recentDate{

    font-size:11px;

    opacity:.6;

    margin-bottom:4px;

}

.citation{

    color:#8a5a2b;

}

.commentButton{

    margin-left:6px;

    padding:1px 6px;

    font-size:11px;

    border-radius:4px;

}

.commentNode{
    border-left:2px solid #444;
    padding-left:8px;
    margin:8px 0;
}

.commentText{
    white-space:pre-wrap;
}

.commentMeta{
    font-size:11px;
    opacity:.7;
}

.commentResolved{

    opacity:.45;

}

.commentActions{

    margin-top:4px;

    display:flex;

    gap:6px;

}

.commentActions{

    margin-top:6px;

    display:flex;

    flex-wrap:wrap;

    gap:6px;

    align-items:center;

}

.commentActions button{

    padding:5px 12px;

    font-size:13px;

    border-radius:6px;

}

.resolvedMark{

    color:#666;

    font-style:italic;

}

.shiftActionButton:disabled{

    opacity:.35;
    cursor:not-allowed;

}

.filters{

    display:flex;
    flex-wrap:wrap;
    gap:10px;

    margin-bottom:15px;
    padding:10px;

    background:#fafafa;
    border:1px solid #ddd;
    border-radius:8px;

}

.filterGroup{

    display:flex;
    align-items:center;
    gap:4px;

}

.filterGroup span{

    font-size:12px;
    font-weight:600;

    margin-right:4px;

}

.filterButton{

    padding:3px 8px;
    font-size:11px;

    background:#eee;
    color:#222;

}

.filterButton.active{

    background:#3468d6;
    color:white;

}

.childRow.deleted{

    opacity:0.5;

}

.childRow.deleted select{

    pointer-events:none;

}

.pendingDelete{

    opacity:0.4;

    background:#300;

}

.searchHit{

    background:#ffeb3b;
    border-radius:3px;
    padding:0px;

}

.popupButtons{

    margin-top:10px;

}

.popupCopyButton{

    padding:4px 10px;

    cursor:pointer;

}

.smartSelect{
    position:relative;
}

.smartSelectInput{
    width:100%;
}

.smartSelectDropdown{
    display:none;

    position:absolute;

    left:0;
    right:0;

    max-height:240px;
    overflow-y:auto;

    z-index:1000;

    background:#fff;
    border:1px solid #999;
}

.smartSelectItem{
    padding:4px 8px;
    cursor:pointer;
}

.smartSelectItem:hover{
    background:#eee;
}


.citationOption{

    font-size:14px;
	
}

.citationOptionLabel{

    font-weight:bold;
font-size:14px;

	
}

.citationSelector{

    margin-top:4px;
    margin-bottom:8px;

}

.citationSelector .smartSelectInput{

    display:none;

}

.citationSelector .smartSelectDropdown{

    display:block;
    position:static;
    max-height:160px;

}

.citationOptionLabel{

    font-weight:bold;

}

.citationOption{

    margin-left:4px;

}


.wordCandidate.pendingDelete{

    opacity:0.5;

}

.wordCandidate.pendingDelete .wordStatus{

    text-decoration:line-through;

}

.smartSelectRow{

    display:flex;

    align-items:center;

    gap:4px;

}

.smartSelectInput{

    flex:1;

}

.smartSelectState{

    width:20px;

    text-align:center;

    font-weight:bold;

    user-select:none;

}

.smartSelectSelected{

    border-color:#4caf50;

}

.checkClass{
  zoom:125%;
background-color:#D1F8FF;
}

.exampleToggle{

    cursor:pointer;

    color:#777;

    font-size:0.9em;

    margin-left:12px;

    user-select:none;

    background: transparent;

padding-bottom: 0px;
padding-top: 0px;



}

.exampleToggle:hover{

    color:#aaa;

}

.searchRow{

    display:flex;
    width:

    gap:4px;

}

.searchRow select{
width: 100px;
}

.searchRow select,
.searchRow input{

    height:32px;

    box-sizing:border-box;

    font-size:14px;

}

.word:hover,
.example:hover{

    text-decoration:underline;

}

.word,
.example{

    cursor:pointer;

}

.commentButton.hasComments{

    background:#2e8b57;
    color:white;
    border-color:#2e8b57;

}

.stickyControls{

    position:sticky;

    top:0;

    z-index:100;

    background:#f5f5f5;

    padding:8px 0 0;

    border-bottom:1px solid #ddd;

}

html{

    scroll-behavior:smooth;

}

/* ==================== */
/* ALPHABET BAR */
/* ==================== */

.alphabetBar{

    display:flex;

    flex-wrap:wrap;

    gap:4px;

    

    border-top:1px solid #ddd;

}

.alphabetButton{

    padding:2px 6px;

    border:none;

    background:none;

    color:#0057b8;

    cursor:pointer;

    font-size:14px;

    font-weight:bold;

    text-decoration:underline;

    border-radius:4px;

    transition:
        background .15s,
        color .15s;

}

.alphabetButton:hover{

    color:#c00000;

}

.alphabetButton.disabled{

    color:#aaa;

    cursor:default;

    text-decoration:none;

}

.alphabetButton.active{

    background:#0057b8;

    color:white;

    font-size:16px;

    text-decoration:none;

}

/* ==================== */
/* LETTER HEADERS */
/* ==================== */

.letterHeader{

    z-index:50;

    margin:10px 0 10px;

    padding:4px 12px;

    background:#f5f5f5;

    border-top:2px solid #000;

    border-bottom:1px solid #000;

    font-size:22px;

    font-weight:bold;

}

.about {

    margin: 24px;

    padding-left: 14px;

    border-left: 3px solid #cc8899;

    font-size: 0.85rem;

    color: #666;

}

.about h2 {

    font-size: 1rem;

    margin: 0 0 8px;

    color: #444;

}

.about p {

    margin: 0 0 10px;

}