:root { --c: #7c6fff; --dark: #080810; --bg: #f3f5f6; --line: #dfe4e8; --txt: #2b3238; --mut: #7a838b; --err: #d93a4a; --ok: #1d9a6c; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: var(--bg); color: var(--txt); }
a { color: #2a7fb5; text-decoration: none; } a:hover { text-decoration: underline; }
code { background: #e9eef0; padding: 1px 6px; border-radius: 4px; font-size: 13px; }

.a-top { background: var(--dark); color: #fff; display: flex; align-items: center; gap: 28px; padding: 12px 28px; flex-wrap: wrap; }
.a-logo { color: #fff; font-weight: 700; font-size: 20px; } .a-logo span { color: var(--c); } .a-logo small { color: #9aa4ab; font-weight: 400; font-size: 12px; margin-left: 6px; }
.a-logo.big { font-size: 34px; text-align: center; }
.a-top nav { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
.a-top nav a { color: #c9d1d6; padding: 6px 12px; border-radius: 6px; } .a-top nav a:hover, .a-top nav a.on { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.a-logout button { background: none; border: 1px solid #4a535a; color: #c9d1d6; padding: 6px 14px; border-radius: 6px; cursor: pointer; } .a-logout button:hover { border-color: var(--c); color: #fff; }

.a-main { max-width: 1280px; margin: 0 auto; padding: 28px; }
.a-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.a-head h1 { margin: 0; font-size: 26px; } .a-head h1 small { font-size: 13px; color: var(--mut); font-weight: 400; margin-left: 10px; }

.a-btn { display: inline-block; background: #fff; border: 1px solid var(--line); color: var(--txt); padding: 9px 18px; border-radius: 8px; cursor: pointer; font: inherit; font-weight: 600; }
.a-btn:hover { border-color: var(--c); text-decoration: none; }
.a-btn.primary { background: var(--c); border-color: var(--c); color: #12262a; } .a-btn.primary:hover { filter: brightness(.95); }

.a-flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 14px; background: #e4f6ee; color: #12664a; border: 1px solid #b9e6d3; }
.a-flash.err { background: #fde9ec; color: #8f1d2c; border-color: #f4bcc4; }
.a-empty { background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 50px; text-align: center; color: var(--mut); }

.a-table { width: 100%; background: #fff; border-collapse: collapse; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.a-table th, .a-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.a-table th { background: #eef2f4; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); }
.a-table tr:last-child td { border-bottom: 0; }
.a-status { font-size: 12px; padding: 3px 10px; border-radius: 99px; background: #eef1f3; color: var(--mut); }
.a-status.published { background: #dff5ea; color: #12664a; }
.a-tag { font-size: 11px; background: #e3f0ff; color: #1f5fa8; border-radius: 4px; padding: 1px 6px; margin-left: 6px; }
.a-actions { white-space: nowrap; } .a-actions a, .a-actions button { margin-right: 10px; }
.a-actions form { display: inline; }
.a-actions button { background: none; border: 0; color: #2a7fb5; cursor: pointer; font: inherit; padding: 0; } .a-actions button:hover { text-decoration: underline; }
.a-actions button.danger { color: var(--err); }

.a-form label { display: block; margin-bottom: 14px; font-weight: 600; font-size: 14px; }
.a-form input[type=text], .a-form input[type=number], .a-form input[type=datetime-local], .a-form select, .a-form textarea, .a-inline input[type=text], .a-login input {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-weight: 400; background: #fff; }
.a-form textarea { resize: vertical; line-height: 1.5; }
.a-form input[type=file] { display: block; margin-top: 6px; max-width: 100%; font-weight: 400; }
.a-form input:focus, .a-form select:focus, .a-form textarea:focus, .a-login input:focus { outline: 2px solid rgba(49,219,219,.5); border-color: var(--c); }
.a-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.a-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 18px; }
.a-card h3 { margin: 0 0 14px; font-size: 15px; }
.a-check { display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; }
.a-hint, .a-count { display: block; color: var(--mut); font-weight: 400; font-size: 12px; margin-top: 4px; }
.a-count.over { color: var(--err); }
.a-preview { max-width: 100%; border-radius: 8px; border: 1px solid var(--line); margin-bottom: 10px; display: block; }
.a-toolbar { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.a-toolbar button { background: #eef2f4; border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; cursor: pointer; font: inherit; }
.a-toolbar button:hover { background: var(--c); border-color: var(--c); }
.a-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.res-row { margin-bottom: 8px; } .res-row input { margin-top: 0 !important; }
.a-block { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 14px; background: #fafbfc; }
.a-block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.a-x { background: #fff; border: 1px solid var(--line); border-radius: 50%; width: 26px; height: 26px; cursor: pointer; line-height: 1; color: var(--err); }
.a-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.a-thumb { position: relative; width: 84px; } .a-thumb img { width: 84px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.a-thumb .a-x { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; }
.a-inline { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; margin-top: 20px; } .a-inline label { margin: 0; font-weight: 600; }

.a-login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--dark); }
.a-login { background: #fff; padding: 36px; border-radius: 14px; width: 360px; max-width: 92vw; } .a-login p { text-align: center; color: var(--mut); margin-top: 0; }
.a-login label { display: block; margin-bottom: 14px; font-weight: 600; } .a-login .a-btn { width: 100%; }

@media (max-width: 960px) { .a-cols { grid-template-columns: 1fr; } .a-row, .a-inline { grid-template-columns: 1fr; } .a-main { padding: 16px; } .a-table { display: block; overflow-x: auto; } }

/* Scripster: блок результатов в заметке */
.a-switch { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 10px; }
.a-switch input { width: auto; }
.a-off { opacity: .45; }
.a-filter{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0 18px}.a-filter a{padding:7px 14px;border:1px solid #d0d5dd;border-radius:20px;font-size:13px;color:inherit;text-decoration:none}.a-filter a.on{background:#111;color:#fff;border-color:#111}
.a-inline-sites{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.a-inline-sites .a-check{margin:0}
