:root { --ink: #14201c; --ink2: #5b6b64; --line: #d8e0dc; --bg: #f2f4f3; --acc: #1f8f62; --bad: #c8381f; font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 16px; }
body.wide { display: block; padding: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; width: min(420px, 100%); box-shadow: 0 8px 30px rgba(20, 32, 28, .07); }
.card.wide { width: auto; margin-bottom: 16px; }
.page { max-width: 1100px; margin: 0 auto; padding: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-bottom: 14px; }
.brand img { width: 28px; height: 28px; }
h1 { font-size: 22px; margin: 0 0 12px; } h2 { font-size: 18px; margin: 0 0 10px; }
label { display: grid; gap: 4px; margin: 0 0 12px; } label span { font-size: 14px; color: var(--ink2); }
input, select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-height: 44px; width: 100%; }
input:focus, select:focus { outline: 2px solid #9fd8bf; border-color: var(--acc); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; width: 100%; }
.addrow .btn.primary { width: auto; }
.btn.sm { min-height: 36px; padding: 0 10px; font-size: 14px; }
.btn.danger { color: var(--bad); border-color: #efc4bb; }
.err { color: var(--bad); min-height: 1.3em; margin: 4px 0 10px; }
.muted { color: var(--ink2); } .small { font-size: 13px; }
.note { background: #fff5e0; color: #7a4d00; border-radius: 10px; padding: 10px 12px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.lang { display: flex; gap: 4px; justify-content: center; margin-top: 16px; }
.lang button { border: 0; background: none; font: inherit; font-size: 13px; color: var(--ink2); padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.lang button.on { background: #e6ece9; color: var(--ink); font-weight: 600; }
.top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.top .brand { margin: 0; } .grow { flex: 1; }
.addrow { display: grid; grid-template-columns: 1fr 1.4fr 1fr 1.2fr auto auto; gap: 8px; margin: 12px 0 4px; }
@media (max-width: 860px) { .addrow { grid-template-columns: 1fr 1fr; } .top .muted { display: none; } }
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-size: 13px; color: var(--ink2); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); }
td { padding: 8px; border-bottom: 1px solid #edf1ef; vertical-align: middle; }
td select { min-height: 36px; padding: 4px 8px; width: auto; }
td.acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
tr.off td { color: #98a6a0; } tr.bad td { color: var(--bad); }
/* v35: страница входа с рисунком (line-hand) */
body.hasart { grid-template-columns: minmax(0, 640px) 420px; gap: 40px; justify-content: center; align-content: center; background: #fbfbf9; }
.art { margin: 0; text-align: center; }
.art img { width: 100%; height: auto; display: block; }
.art figcaption { color: var(--ink2); font-size: 15px; margin-top: 6px; letter-spacing: .01em; }
body.hasart .card { box-shadow: 0 10px 40px rgba(20, 32, 28, .08); }
@media (max-width: 960px) {
  body.hasart { grid-template-columns: 1fr; gap: 6px; padding-top: 8px; align-content: start; }
  .art { max-width: 460px; margin: 0 auto; width: 100%; }
  .art figcaption { font-size: 13px; margin-top: 0; }
  body.hasart .card { margin: 0 auto; }
}
@media (max-width: 960px) and (max-height: 760px) { .art img { max-height: 34vh; width: auto; margin: 0 auto; } }
.reglink { margin: 12px 0 0; text-align: center; color: var(--ink2); } .reglink a { color: var(--acc); font-weight: 600; text-decoration: none; } .reglink a:hover { text-decoration: underline; }
.ndlg { border: 1px solid var(--line); border-radius: 14px; padding: 20px; width: min(520px, 92vw); box-shadow: 0 20px 60px rgba(20, 32, 28, .2); }
.ndlg::backdrop { background: rgba(20, 32, 28, .35); }
.ndlg textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; width: 100%; resize: vertical; }
.okmsg { color: var(--acc); min-height: 1.2em; margin: 4px 0; }
.addrow { grid-template-columns: 1fr 1.3fr 1fr 1fr 1.1fr auto auto; }
.funnel { display: grid; gap: 6px; margin-top: 8px; }
.frow { display: grid; grid-template-columns: minmax(170px, 230px) 1fr 44px 48px; gap: 10px; align-items: center; font-size: 14px; }
.fbar { height: 14px; background: #edf1ef; border-radius: 7px; overflow: hidden; } .fbar i { display: block; height: 100%; background: linear-gradient(90deg, #1f8f62, #46b386); border-radius: 7px; }
.fn { text-align: right; } .fpc { font-size: 12px; } b.hot { color: #c8381f; }
@media (max-width: 700px) { .frow { grid-template-columns: 1fr 60px 34px 40px; } }

/* окно-помощник, когда JavaScript выключен (показывается через <noscript>, работает без JS) */
.nojs{position:fixed;inset:0;z-index:1000;background:rgba(10,16,14,.92);overflow:auto;padding:16px;display:flex;align-items:flex-start;justify-content:center;font:15px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.nojs-box{background:#fff;color:#14201c;max-width:560px;width:100%;border-radius:14px;padding:18px 20px;box-shadow:0 10px 40px rgba(0,0,0,.4)}
.nojs-box h2{font-size:19px;margin:10px 0 6px;color:#b3261e}.nojs-box ol{padding-left:20px;margin:8px 0}.nojs-box li{margin:6px 0}
.nojs-box hr{border:0;border-top:1px solid #dde3e0;margin:14px 0 4px}.nojs-box p{margin:6px 0}
