.secondary { background: #e4e6df; color: var(--forest); }
.welcome-actions { display: flex; gap: 10px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.settings-grid .wide { grid-column: 1 / -1; }
.check-field { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.check-field input { width: auto; }
.check-field label { margin: 0; }
.card-links { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.card-links .preview { margin: 0; }
.text-button { padding: 0; background: transparent; color: var(--forest); }
.content-line { min-height: auto !important; font-size: .86rem; }
.gallery-heading { align-items: end; margin-top: 12px; }
.gallery-heading h2 { margin-bottom: 5px; }
.gallery-heading p { margin-bottom: 0; }
.gallery-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 16px 0 46px; }
.gallery-panel { background: #fff; border: 1px solid #e2ded3; border-radius: 16px; padding: 20px; }
.gallery-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.gallery-panel-head h3 { margin: 0; font: 500 1.45rem Georgia, serif; }
.gallery-panel-head span { color: var(--muted); font-size: .85rem; }
.gallery-items { display: grid; gap: 14px; }
.gallery-item { display: grid; grid-template-columns: 125px 1fr auto; gap: 12px; align-items: center; border-top: 1px solid #ece8df; padding-top: 14px; }
.gallery-item>img { width: 125px; height: 80px; border-radius: 9px; object-fit: cover; background: #e8e8e2; }
.gallery-item input { padding: 8px 10px; margin-bottom: 6px; }
.gallery-controls { display: flex; align-items: center; gap: 8px; }
.gallery-controls label { display: flex; align-items: center; gap: 6px; margin: 0; white-space: nowrap; }
.gallery-controls label input[type=number] { width: 58px; margin: 0; }
.inline-check input, .gallery-active input { width: auto; margin: 0; }
.gallery-item .danger { background: transparent; color: #9b3d36; padding: 8px; }
.gallery-empty { color: var(--muted); margin: 8px 0; }
.gallery-active { height: 100%; padding-top: 18px; }
@media (max-width: 600px) {
    .welcome-actions { width: 100%; flex-direction: column; }
    .settings-grid { grid-template-columns: 1fr; }
    .settings-grid .wide { grid-column: auto; }
    .gallery-columns { grid-template-columns: 1fr; }
    .gallery-item { grid-template-columns: 95px 1fr; }
    .gallery-item>img { width: 95px; height: 70px; }
    .gallery-item>form:last-child { grid-column: 2; }
    .gallery-controls { flex-wrap: wrap; }
}
