:root { --g: #4A7C23; --g2: #7FA84A; --ink: #0F1A06; --gray: #434343; --muted: #6b7064; --line: #e4e7df; --bg: #f5f6f2; --card: #fff; --red: #b3261e; --amber: #b7791f; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); font-size: 14.5px; }
a { color: var(--g); text-decoration: none; }
a:hover { text-decoration: underline; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 28px; background: #fff; border-bottom: 1px solid var(--line); }
.top img { height: 30px; display: block; }
.top nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.top form button { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 28px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--g2); text-transform: uppercase; }
h1 { margin: 4px 0 0; font-size: 30px; letter-spacing: -.02em; }
h1 small { display: block; margin-top: 4px; font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
h2 { margin: 0 0 4px; font-size: 17px; }
.muted { color: var(--muted); }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--g); background: var(--g); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; }
.btn:hover { background: #3d6a1c; }
.btn--ghost { background: #fff; color: var(--g); }
.btn--ghost:hover { background: #f1f6ea; }
.btn--sm { height: 32px; padding: 0 14px; font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.stat b { display: block; font-size: 26px; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 13px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.client { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; color: inherit; text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.client:hover { border-color: var(--g2); box-shadow: 0 8px 24px rgba(74, 124, 35, .10); }
.client h3 { margin: 0; font-size: 18px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eef4e6; color: var(--g); }
.pill--off { background: #f3f3f1; color: var(--muted); }
.pill--red { background: #fbeceb; color: var(--red); }
.pill--amber { background: #fdf3e2; color: var(--amber); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.list { display: flex; flex-direction: column; }
.list a, .list div.it { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: inherit; }
.list a:first-child, .list div.it:first-child { border-top: 0; }
form.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
form.fields .wide { grid-column: 1 / -1; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
input[type=text], input[type=email], input[type=url], input[type=password], select, textarea { height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 400; background: #fff; }
textarea { height: auto; min-height: 84px; padding: 10px 12px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--g2); outline-offset: 0; border-color: var(--g2); }
.mod { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.mod:first-of-type { border-top: 0; }
.mod small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.switch { position: relative; width: 44px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #d6d9d0; cursor: pointer; transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--g); }
.switch input:checked + span::after { transform: translateX(20px); }
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; background: #eef4e6; color: var(--g); font-weight: 600; }
.alert--key { background: #fff8e6; color: #6b4e00; border: 1px solid #f0d58a; font-weight: 400; }
.alert--err { background: #fbeceb; color: var(--red); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; word-break: break-all; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login .card { width: 100%; max-width: 400px; padding: 32px; }
.login img { height: 44px; display: block; margin: 0 auto 22px; }
.cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 13.5px; }
dt { color: var(--muted); }
dd { margin: 0; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols, form.fields { grid-template-columns: 1fr; } .wrap { padding: 18px 16px; } .top { padding: 12px 16px; } }
