.adm { max-width: 1180px; margin: 0 auto; padding: 24px 24px 48px; display: flex; flex-direction: column; gap: 24px; }
.adm-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.adm-top h1 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -.015em; }
.adm-section { display: flex; flex-direction: column; gap: 16px; }
.adm-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adm-head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.adm-msg { max-width: 460px; margin: 15vh auto; padding: 32px; background: var(--panel); border-radius: 18px; box-shadow: var(--shadow); text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.adm-msg h1 { margin: 0; font-size: 22px; }

.status-strip { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding: 14px 16px; background: var(--panel); border-radius: 14px; box-shadow: var(--shadow); }
.status-strip .item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.status-strip .sep { width: 1px; height: 20px; background: var(--line); }

.dot-s { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.dot-s.ok { background: #3E9B5F; }
.dot-s.warn { background: #D89B2B; }
.dot-s.bad { background: #D0493E; }

.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.client { background: var(--panel); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); }
.client-head { display: flex; align-items: center; gap: 12px; }
.client-mark { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; flex-shrink: 0; overflow: hidden; }
.client-mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.client-name { font-weight: 600; font-size: 15px; }
.client-host { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.checks { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.checks .row { display: flex; align-items: center; gap: 8px; }
.checks .row .v { color: var(--muted); margin-left: auto; text-align: right; }
.client-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--subtle); }
.client-stats div { display: flex; flex-direction: column; gap: 2px; }
.client-stats b { font-size: 17px; font-weight: 650; }
.client-stats span { font-size: 12px; color: var(--muted); }
.client-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.client-actions .btn { height: 34px; padding: 0 12px; font-size: 13px; }
.empty { padding: 40px; text-align: center; color: var(--muted); background: var(--panel); border-radius: 16px; }

.table-wrap { overflow-x: auto; background: var(--panel); border-radius: 14px; box-shadow: var(--shadow); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: none; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 8px; font-size: 12px; font-weight: 500; }
.tag.ok { background: rgba(62,155,95,.14); color: #2E7D4B; }
.tag.bad { background: var(--danger-soft); color: var(--danger); }
:root[data-theme="dark"] .tag.ok { color: #7FD19B; }
.sel { width: auto; min-width: 200px; height: 38px; }

.modal-wide { width: min(960px, 100%); }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.editor-fields { display: flex; flex-direction: column; gap: 16px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.color-row { display: flex; gap: 8px; align-items: center; }
.color-row input[type=color] { width: 46px; height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 3px; background: var(--input); cursor: pointer; }
.upload { display: flex; align-items: center; gap: 8px; }
.upload-prev { width: 96px; height: 42px; border-radius: 10px; border: 1px dashed var(--line-strong); display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden; font-size: 11px; color: #888; }
.upload-prev.fav { width: 42px; }
.upload-prev img { max-width: 100%; max-height: 100%; object-fit: contain; }
details.more { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
details.more summary { cursor: pointer; padding: 12px 0; font-weight: 500; }
details.more[open] { padding-bottom: 14px; }
details.more .field + .field, details.more .two, details.more .field + .two, details.more .two + .field { margin-top: 12px; }
.preview-col { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 0; }
.preview { display: flex; height: 230px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #F5F4F0; color: #1A1A1C; }
.pv-left { width: 52%; padding: 16px 14px; display: flex; flex-direction: column; gap: 7px; }
.pv-brand { height: 22px; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; margin-bottom: 14px; }
.pv-brand img { max-height: 22px; max-width: 100px; }
.pv-brand .m { width: 20px; height: 20px; border-radius: 5px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; }
.pv-title { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.pv-text { font-size: 9px; color: #6B6860; line-height: 1.4; }
.pv-input { height: 16px; border-radius: 4px; border: 1px solid #DAD6CC; background: #fff; }
.pv-btn { height: 18px; border-radius: 4px; color: #fff; font-size: 8px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.pv-right { flex: 1; margin: 6px; border-radius: 9px; padding: 14px; display: flex; align-items: flex-end; background-image: repeating-radial-gradient(circle at 120% -20%, transparent 0 18px, rgba(255,255,255,.08) 18px 19px); }
.pv-slogan { color: #fff; font-size: 13px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.dns-box { font-size: 13px; line-height: 1.5; padding: 12px 14px; border-radius: 12px; background: var(--subtle); color: var(--text-2); }
.dns-box code { font-size: 12px; background: var(--raised); padding: 1px 5px; border-radius: 5px; border: 1px solid var(--line); }
pre.out { margin: 0; padding: 14px; border-radius: 10px; background: #111; color: #D6D6D6; font-size: 12px; line-height: 1.5; white-space: pre-wrap; max-height: 60vh; overflow: auto; }

@media (max-width: 860px) {
  .adm { padding: 16px 12px 40px; }
  .editor-grid { grid-template-columns: 1fr; }
  .preview-col { position: static; }
  .clients { grid-template-columns: 1fr; }
}
