.catalog-layout{
display:grid;
grid-template-columns:650px 280px;
gap:20px;
justify-content:center;
align-items:start;
}

.catalog-main{
width:650px;
background:#f5f5f5;
border:1px solid #d9d9d9;
border-top:8px solid #191970;
padding:24px;
}

.catalog-sidebar{
width:280px;
display:flex;
flex-direction:column;
gap:20px;
}

.sidebar-block{
background:#f5f5f5;
border:1px solid #d9d9d9;
border-left:8px solid #191970;
padding:18px;
}

.catalog-title{
margin:0 0 20px 0;
font-size:42px;
font-weight:300;
color:#191970;
}

.search-row{
display:flex;
justify-content:space-between;
margin-bottom:12px;
}

.search-row select{
width:180px;
height:40px;
padding:0 10px;
background:#fff;
border:1px solid #ccc;
color:#191970;
}

.search-panel input[name="q"]{
width:220px !important;
height:40px;
padding:0 12px;
border:1px solid #ccc;
color:#191970;
}

.search-panel input::placeholder{
color:#191970;
}

.search-options{
margin-top:12px;
color:#191970;
}

.search-options label{
display:flex;
align-items:center;
gap:6px;
color:#191970;
}

.search-options input[type="checkbox"]{
margin:0;
}

.search-actions{
display:flex;
justify-content:space-between;
align-items:flex-start;
margin-top:15px;
}

.search-actions button{
background:#191970;
color:#fff;
border:none;
padding:10px 18px;
cursor:pointer;
}

.sidebar-block h2,
.sidebar-block p,
.sidebar-block li,
.results-header,
.record,
.record h3,
.record .meta{
color:#191970;
}

.sidebar-block ul{
margin:0;
padding-left:18px;
}

.sidebar-block li{
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}

.result-card{
display:flex;
gap:15px;
margin-top:15px;
padding:15px;
background:#fff;
border:1px solid #ddd;
}

html[data-theme="dark"] .catalog-main,
html[data-theme="dark"] .sidebar-block{
background:#2d2d2d;
border-color:#444;
}

html[data-theme="dark"] .catalog-title,
html[data-theme="dark"] .sidebar-block h2,
html[data-theme="dark"] .sidebar-block p,
html[data-theme="dark"] .sidebar-block li,
html[data-theme="dark"] .record,
html[data-theme="dark"] .record h3,
html[data-theme="dark"] .record .meta{
color:#fff;
}

html[data-theme="dark"] .search-row select,
html[data-theme="dark"] .search-panel input[name="q"]{
background:#1f1f1f;
color:#fff;
border-color:#555;
}

html[data-theme="dark"] .result-card{
background:#232323;
border-color:#444;
}
