
*{box-sizing:border-box}body{margin:0;font:15px/1.6 -apple-system,"Hiragino Sans","Yu Gothic",Meiryo,sans-serif;background:#f4f6f9;color:#222}
a{color:#1a5fd0;text-decoration:none}a:hover{text-decoration:underline}
header.top{background:#16253b;color:#fff;display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;padding:10px 18px}
header.top .brand{font-weight:700;font-size:17px;margin-right:12px}header.top a{color:#cfe0ff}
header.top form{margin-left:auto}
main{max-width:1000px;margin:0 auto;padding:18px 14px 60px}
h1{font-size:22px;margin:6px 0 16px}h2{font-size:17px;margin:22px 0 8px}
.card{background:#fff;border-radius:10px;padding:16px 18px;margin-bottom:16px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
table{width:100%;border-collapse:collapse;font-size:14px}th,td{padding:8px 8px;border-bottom:1px solid #e6e9ee;text-align:left;vertical-align:top}
th{background:#f7f9fb;font-weight:600;white-space:nowrap}.tbl{overflow-x:auto}
label{display:block;font-weight:600;margin:12px 0 4px}label small{font-weight:400;color:#666}
input[type=text],input[type=url],input[type=password],input[type=number],input[type=datetime-local],textarea,select{width:100%;padding:9px 10px;border:1px solid #c5ccd6;border-radius:7px;font:inherit;background:#fff}
textarea{min-height:90px}
button,.btn{display:inline-block;border:0;background:#1a73e8;color:#fff;padding:9px 18px;border-radius:7px;font:inherit;font-weight:600;cursor:pointer}
button.sec,.btn.sec{background:#e4e8ee;color:#223}button.danger{background:#d93025}button.green{background:#188038}
.row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.row.end{justify-content:flex-end}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.stat{background:#fff;border-radius:10px;padding:12px 14px;box-shadow:0 1px 3px rgba(0,0,0,.08)}.stat b{display:block;font-size:24px}
.badge{display:inline-block;padding:1px 9px;border-radius:99px;font-size:12px;background:#e4e8ee}
.st-sent{background:#d7f0dd;color:#146c2e}.st-failed{background:#fbd9d5;color:#a1271b}.st-sending{background:#fff0c2;color:#8a6100}.st-scheduled{background:#dbe8ff;color:#1a4fa0}
.msg{padding:10px 14px;border-radius:8px;margin-bottom:14px}.msg.ok{background:#d7f0dd}.msg.err{background:#fbd9d5}
pre,code{background:#f1f3f6;border-radius:6px;font-family:Consolas,monospace;font-size:13px}pre{padding:12px;overflow-x:auto;white-space:pre-wrap;word-break:break-all}
.muted{color:#667}.two{display:grid;grid-template-columns:1fr 340px;gap:18px}@media(max-width:800px){.two{grid-template-columns:1fr}}
.preview{background:#e9edf2;border-radius:10px;padding:14px}
.pv{background:#fff;border-radius:10px;box-shadow:0 2px 8px rgba(0,0,0,.2);overflow:hidden;font-size:13px}
.pv .hd{display:flex;gap:10px;padding:10px}.pv img.ic{width:44px;height:44px;border-radius:8px;object-fit:cover;background:#ddd}
.pv .t{font-weight:700;font-size:14px}.pv .src{color:#777;font-size:11px}.pv img.big{width:100%;display:block;max-height:180px;object-fit:cover}
.login{max-width:380px;margin:70px auto}
