*{box-sizing:border-box}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-size:16px;line-height:1.5;color:#1f2933;background:#f5f7fa}
a{color:#0f5fa8}
.wrap{max-width:1100px;margin:0 auto;padding:0 16px}
header.top{background:#102a43;color:#fff}
header.top .wrap{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;min-height:56px}
header.top .brand{color:#fff;text-decoration:none;font-weight:700;font-size:20px}
header.top nav{display:flex;flex-wrap:wrap;gap:14px;align-items:center}
header.top nav a,header.top nav button.link{color:#d9e2ec;text-decoration:none;font-size:15px}
header.top nav a:hover,header.top nav button.link:hover{color:#fff}
.subnav{background:#fff;border-bottom:1px solid #d9e2ec}
.subnav .wrap{display:flex;flex-wrap:wrap;gap:4px;align-items:center;min-height:48px}
.subnav .client-name{font-weight:700;margin-right:12px}
.subnav a{padding:8px 12px;text-decoration:none;border-radius:6px;color:#334e68}
.subnav a.on{background:#e6f0fa;color:#0f5fa8;font-weight:600}
main.wrap{padding-top:24px;padding-bottom:40px}
h1{font-size:26px;margin:0 0 16px}
h2{font-size:20px;margin:28px 0 12px}
.card{background:#fff;border:1px solid #d9e2ec;border-radius:10px;padding:20px;margin-bottom:20px}
.narrow{max-width:520px;margin:0 auto}
label{display:block;font-weight:600;margin:14px 0 6px}
input[type=text],input[type=email],input[type=tel],input[type=password],select,textarea{width:100%;padding:10px 12px;font-size:16px;border:1px solid #bcccdc;border-radius:6px;background:#fff;font-family:inherit}
textarea{min-height:120px}
.check{display:flex;gap:10px;align-items:flex-start;font-weight:400;margin:18px 0}
.check input{margin-top:5px;width:20px;height:20px;flex:0 0 auto}
button,.btn{display:inline-block;background:#0f5fa8;color:#fff;border:0;border-radius:6px;padding:10px 18px;font-size:16px;cursor:pointer;text-decoration:none;font-family:inherit}
button:hover,.btn:hover{background:#0b4a83}
button.secondary,.btn.secondary{background:#e4e7eb;color:#1f2933}
button.danger{background:#b42318}
button.danger:hover{background:#8f1c13}
button.small{padding:6px 12px;font-size:15px}
button.link{background:none;padding:0;color:#0f5fa8;font-size:inherit}
form.inline{display:inline}
table{width:100%;border-collapse:collapse;background:#fff}
th,td{text-align:left;padding:10px 8px;border-bottom:1px solid #e4e7eb;vertical-align:top;font-size:15px}
th{background:#f0f4f8;font-weight:600}
.table-wrap{overflow-x:auto;border:1px solid #d9e2ec;border-radius:10px}
.flash{padding:12px 16px;border-radius:8px;margin-bottom:16px}
.flash.ok{background:#e3f9e5;border:1px solid #91d8a0}
.flash.err{background:#ffe3e3;border:1px solid #f5a3a3}
.badge{display:inline-block;padding:2px 10px;border-radius:999px;font-size:14px;white-space:nowrap}
.b-pending{background:#fff3c4}.b-awaiting_yes{background:#e6f0fa}.b-active{background:#e3f9e5}
.b-opted_out,.b-removed,.b-rejected{background:#e4e7eb}
.muted{color:#52606d}
.small-text{font-size:14px}
.stats{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:20px}
.stat{background:#fff;border:1px solid #d9e2ec;border-radius:10px;padding:14px 18px;min-width:150px}
.stat b{display:block;font-size:26px}
.linkbox{font-family:Consolas,monospace;font-size:15px;background:#f0f4f8;padding:10px;border-radius:6px;word-break:break-all}
.row{display:flex;gap:16px;flex-wrap:wrap}
.row>div{flex:1 1 240px}
.counter{font-size:14px;color:#52606d;margin-top:6px}
.preview{white-space:pre-wrap;background:#f0f4f8;border-radius:8px;padding:12px;font-size:15px}
.hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.consent{font-size:15px}
.foot{color:#52606d;font-size:14px;padding:20px 16px 30px}
.actions{display:flex;gap:6px;flex-wrap:wrap}
.mt{margin-top:24px}
