:root{font-family:system-ui,"Microsoft YaHei",sans-serif;color:#142944;background:#f0f4f8;line-height:1.55}
*{box-sizing:border-box}body{margin:0}a{color:#075a83;text-underline-offset:3px}
header{background:#0b1a34;color:#fff}nav,main{width:min(1250px,100% - 36px);margin:auto}nav{display:flex;gap:22px;align-items:center;min-height:72px;flex-wrap:wrap;padding:8px 0}
nav img{width:150px;display:block}nav a{color:#fff;text-decoration:none}nav .end{margin-left:auto;display:flex;align-items:center;gap:12px}
main{padding:28px 0 48px}h1{font-size:clamp(24px,4vw,36px);margin:0 0 16px}h2{font-size:20px;margin:0 0 12px}
.card{background:white;border:1px solid #d8e3ee;border-radius:12px;padding:18px;margin:0 0 18px}
.metrics,.fields{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.metrics strong{display:block;font-size:30px;color:#0a648a}.muted{color:#506078}
.actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin-bottom:12px}.actions form,.inline{margin:0}
button,.button{font:inherit;font-weight:650;padding:8px 13px;border-radius:7px;border:1px solid #0d6685;background:#0d6685;color:#fff;text-decoration:none;cursor:pointer;display:inline-block}
.secondary{background:white;color:#075a83;border-color:#9ab8cc}label{display:block;font-weight:600}input,select,textarea{display:block;width:100%;font:inherit;border:1px solid #aebed1;border-radius:6px;padding:8px;margin:4px 0 10px;color:inherit;background:#fff}textarea{resize:vertical;min-height:78px}
input:focus,textarea:focus,select:focus,a:focus-visible,button:focus-visible{outline:2px solid #008aa3;outline-offset:2px}table{border-collapse:collapse;width:100%;text-align:left;background:white}td,th{padding:9px 12px;border-bottom:1px solid #dbe5ef;vertical-align:top}thead{background:#eaf2f8}table td:first-child{min-width:140px}
.scroll{overflow:auto}.login{max-width:450px;margin:9vh auto}.notice{padding:10px 14px;background:#e1f3f6;border-left:4px solid #00889a;margin-bottom:14px}.wrapped{white-space:pre-wrap;overflow-wrap:anywhere}.badge{display:inline-block;border-radius:8px;background:#e4f0f6;padding:1px 7px}
@media(max-width:540px){nav{gap:10px}nav .end{margin-left:0}main{padding-top:18px}.card{padding:12px}}
.customer-template-grid .scroll{max-height:65vh}
.customer-template-grid table{min-width:2200px}
.customer-template-grid th{white-space:nowrap;position:sticky;top:0;background:#eaf2f8;z-index:1}
.customer-template-grid td{max-width:250px;overflow-wrap:anywhere;white-space:pre-wrap}
.customer-template-grid th:first-child,.customer-template-grid td:first-child{position:sticky;left:0;box-shadow:1px 0 #dbe5ef;z-index:1}
.customer-template-grid th:first-child{z-index:2}
.customer-template-grid td:first-child{background:#fff}
