/* Минималистичный стиль публичной страницы и админки */
* { box-sizing: border-box; }
body {
    margin: 0;
    font: 16px/1.5 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: #1f2733;
    background: #f4f6f8;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }

header h1 { font-size: 1.45rem; margin: 0 0 6px; }
.lead { margin: 0 0 18px; color: #55606e; }
a { color: #1a5fb4; }

.search-form, .card {
    background: #fff;
    border: 1px solid #e2e7ee;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}
.search-form textarea {
    width: 100%;
    font: inherit;
    padding: 10px 12px;
    border: 1px solid #c6cfda;
    border-radius: 8px;
    resize: vertical;
}
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}
.captcha input {
    width: 70px;
    font: inherit;
    padding: 6px 8px;
    border: 1px solid #c6cfda;
    border-radius: 8px;
}
button, .btn {
    display: inline-block;
    font: inherit;
    padding: 9px 18px;
    border: 0;
    border-radius: 8px;
    background: #1a5fb4;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
button:hover, .btn:hover { background: #155099; }
button:disabled { opacity: .55; cursor: default; }
.btn.ghost {
    background: transparent;
    color: #1a5fb4;
    border: 1px solid #1a5fb4;
}
.btn.ghost:hover { background: #eaf1fa; }

.alert {
    background: #fdecea;
    border: 1px solid #f5c6c0;
    color: #8a1c12;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
}
.notice {
    background: #e8f5e9;
    border: 1px solid #bfe3c2;
    color: #1a5e20;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
}
.muted { color: #6b7684; font-size: .92em; }
.src { color: #1a7f37; font-size: .9em; margin: 4px 0 10px; }

.combined {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}
.combined .hint { color: #6b7684; font-size: .85em; }

.card-head { font-size: 1.05rem; margin-bottom: 8px; }
.rec {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: flex-start;
    border-top: 1px solid #edf0f4;
    padding: 12px 0;
}
.rec:first-of-type { border-top: 0; }
.rec-info { min-width: 240px; flex: 1; }
.rec-actions { display: flex; flex-direction: column; gap: 8px; }
.rec-actions .btn { text-align: center; }

.badge {
    display: inline-block;
    font-size: .78em;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 4px;
    margin-right: 4px;
}
.badge.ok { background: #e8f5e9; color: #1a7f37; }
.badge.bad { background: #fdecea; color: #b3261e; }
.badge.new { background: #e3ecf9; color: #1a5fb4; }

footer { margin-top: 28px; color: #6b7684; font-size: .85em; }

/* ---- админка ---- */
.card h2 { font-size: 1.1rem; margin: 0 0 10px; }
.card input[type=text], .card input[type=password], .card input[type=number], .card textarea {
    font: inherit;
    padding: 8px 10px;
    border: 1px solid #c6cfda;
    border-radius: 8px;
    max-width: 100%;
}
.w100 { width: 100%; }
.wnum { width: 90px; }
.logout-form { text-align: right; margin-bottom: 10px; }
.adm-table { width: 100%; border-collapse: collapse; }
.adm-table td, .adm-table th {
    text-align: left;
    padding: 8px 6px;
    border-bottom: 1px solid #edf0f4;
    vertical-align: top;
}
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.inline-form input[type=text] { flex: 1; min-width: 140px; }
.mini-form { display: inline; }
.mini-form .btn { padding: 4px 10px; font-size: .85em; }
.type-actions { white-space: nowrap; }
.progress {
    width: 160px;
    height: 8px;
    background: #e2e7ee;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 6px;
}
.progress .bar { height: 100%; width: 0; background: #1a5fb4; transition: width .3s; }
.sync-status { display: block; font-size: .82em; margin-bottom: 6px; }

@media (max-width: 560px) {
    .rec { flex-direction: column; }
    .rec-actions { flex-direction: row; flex-wrap: wrap; }
}
