.nsa-cert-wrap{max-width:1180px;margin:18px auto 0;padding:0 16px 28px}
.nsa-cert-card{background:linear-gradient(180deg,#fff 0%,#fdfbf7 100%);border:1px solid #e8dcc4;border-radius:22px;padding:22px;box-shadow:0 10px 28px rgba(18,17,15,.05)}
.nsa-cert-card__header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.nsa-cert-badge{display:inline-flex;align-items:center;justify-content:center;background:#f6efe1;color:#b68a35;border:1px solid rgba(182,138,53,.22);border-radius:999px;padding:6px 11px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;margin-bottom:12px}
.nsa-cert-card h2{margin:0 0 8px;font-size:24px;line-height:1.2;color:#17130d}
.nsa-cert-card h3{margin:0 0 14px;font-size:18px;color:#17130d}
.nsa-cert-muted{color:#6b6254;line-height:1.6;margin:0}
.nsa-cert-button,.nsa-cert-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:14px;padding:11px 15px;text-decoration:none;font-weight:700;font-size:14px}
.nsa-cert-button{background:linear-gradient(135deg,#b68a35 0%,#d9bb76 100%);color:#16120b!important;border:1px solid transparent;box-shadow:0 10px 22px rgba(182,138,53,.16)}
.nsa-cert-link{background:#fff;color:#17130d!important;border:1px solid #e8dcc4}
.nsa-cert-actions{display:flex;gap:10px;flex-wrap:wrap}
.nsa-cert-alert,.nsa-cert-valid,.nsa-cert-invalid{border-radius:16px;padding:14px 16px;margin-bottom:16px;font-weight:600}
.nsa-cert-alert,.nsa-cert-valid{background:#eff8f1;border:1px solid #bfd8c6;color:#1f6a36}
.nsa-cert-invalid{background:#fff4f2;border:1px solid #e7c2bc;color:#8c2f26}
.nsa-cert-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;margin-bottom:16px}
.nsa-cert-panel{border:1px solid #e8dcc4;border-radius:18px;padding:18px;background:#fffdfa}
.nsa-cert-form{display:grid;gap:14px}
.nsa-cert-form label{font-weight:700;color:#17130d;font-size:14px}
.nsa-cert-form input,.nsa-cert-form textarea{width:100%;border:1px solid #e8dcc4;border-radius:14px;padding:12px 14px;background:#fff;box-sizing:border-box;color:#1e1a14;font-size:14px}
.nsa-cert-form textarea{min-height:150px;resize:vertical}
.nsa-cert-form input:focus,.nsa-cert-form textarea:focus{outline:none;border-color:#b68a35;box-shadow:0 0 0 3px rgba(182,138,53,.12)}
.nsa-cert-check{display:flex;gap:10px;align-items:center}
.nsa-cert-check input{width:auto}
.nsa-cert-preview{margin-top:12px;border:1px solid #e8dcc4;border-radius:16px;padding:10px;background:#fff}
.nsa-cert-preview img{display:block;max-width:100%;height:auto;border-radius:12px}
.nsa-cert-hours-table{display:grid;gap:10px}
.nsa-cert-hours-row{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(160px,.8fr);gap:12px;align-items:center;padding:12px;border:1px solid #eee3cf;border-radius:14px;background:#fff}
.nsa-cert-hours-row--head{background:#f9f4ea;font-weight:800;color:#17130d}
.nsa-cert-list{display:grid;gap:14px}
.nsa-cert-item{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border:1px solid #e8dcc4;border-radius:18px;padding:16px;background:#fffdfa}
.nsa-cert-item__meta{display:grid;gap:4px}
.nsa-cert-item__meta strong{font-size:17px;color:#17130d}
.nsa-cert-item__meta span,.nsa-cert-item__meta small{color:#6b6254}
.nsa-cert-empty{border:1px dashed #dbc9a8;border-radius:16px;padding:18px;color:#6b6254;background:#fffcf7}
.nsa-cert-form--inline{margin-top:8px}
.nsa-cert-inline{display:flex;gap:10px;flex-wrap:wrap}
.nsa-cert-inline input{flex:1 1 260px}
.nsa-cert-validation-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-top:18px}
.nsa-cert-validation-grid div{border:1px solid #e8dcc4;border-radius:16px;padding:14px;background:#fffdfa;display:grid;gap:5px}
.nsa-cert-validation-grid strong{color:#17130d}
.nsa-cert-validation-grid span{color:#6b6254}
@media (max-width: 782px){
  .nsa-cert-card{padding:18px}
  .nsa-cert-card h2{font-size:21px}
  .nsa-cert-hours-row{grid-template-columns:1fr}
  .nsa-cert-item{align-items:flex-start}
}
.nsa-cert-builder{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:18px;align-items:start}
.nsa-cert-stage-wrap{display:grid;gap:10px}
.nsa-cert-stage-shell{position:relative;width:100%;border:1px solid #e8dcc4;border-radius:20px;overflow:hidden;background:linear-gradient(180deg,#fff 0%,#fbf8f1 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.7)}
.nsa-cert-stage{position:absolute;top:0;left:0;width:841.89px;height:595.28px;overflow:hidden;transform-origin:top left;background:linear-gradient(180deg,#fff 0%,#fbf8f1 100%)}
.nsa-cert-stage.has-bg{background-size:cover;background-position:center}
.nsa-cert-stage__surface{position:absolute;inset:0;background-image:linear-gradient(180deg,rgba(255,255,255,.1) 0%,rgba(255,255,255,.02) 100%),linear-gradient(rgba(182,138,53,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(182,138,53,.08) 1px,transparent 1px);background-size:auto,24px 24px,24px 24px;background-position:0 0,0 0,0 0;pointer-events:none}
.nsa-cert-stage__element,.nsa-cert-stage__qr{position:absolute;z-index:2;cursor:move;user-select:none;box-sizing:border-box}
.nsa-cert-stage__element{color:#17130d;line-height:1.35;white-space:pre-line;word-break:break-word;min-height:1em}
.nsa-cert-stage__qr{display:flex;align-items:center;justify-content:center;border:2px solid rgba(23,19,13,.88);background:
linear-gradient(45deg,rgba(23,19,13,.95) 25%,transparent 25%,transparent 75%,rgba(23,19,13,.95) 75%),
linear-gradient(45deg,rgba(23,19,13,.95) 25%,transparent 25%,transparent 75%,rgba(23,19,13,.95) 75%);
background-position:0 0,8px 8px;background-size:16px 16px;background-color:#fff;min-width:48px;min-height:48px}
.nsa-cert-stage__qr span{display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.92);padding:3px 6px;border-radius:999px;font-size:11px;font-weight:700}
.nsa-cert-stage__element.is-active,.nsa-cert-stage__qr.is-active{outline:2px dashed #b68a35;outline-offset:4px}
.nsa-cert-controls{display:grid;gap:10px;max-height:680px;overflow:auto;padding-right:4px}
.nsa-cert-control-row{border:1px solid #eadfc8;border-radius:16px;padding:14px;background:#fffdfa;display:grid;gap:10px}
.nsa-cert-control-row.is-active{border-color:#b68a35;box-shadow:0 0 0 3px rgba(182,138,53,.12)}
.nsa-cert-control-row__title{font-weight:800;color:#17130d}
.nsa-cert-control-row__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.nsa-cert-control-row__grid label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#564c3d}
.nsa-cert-control-row__grid input,.nsa-cert-control-row__grid select{width:100%;border:1px solid #e8dcc4;border-radius:12px;padding:10px 12px;background:#fff;box-sizing:border-box;color:#1e1a14;font-size:13px}
@media (max-width: 980px){
  .nsa-cert-builder{grid-template-columns:1fr}
  .nsa-cert-controls{max-height:none;overflow:visible}
}
@media (max-width: 782px){
  .nsa-cert-control-row__grid{grid-template-columns:1fr}
}
.nsa-cert-control-row__header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.nsa-cert-custom-meta{display:grid;gap:10px}
.nsa-cert-custom-meta textarea{min-height:110px}
.nsa-cert-custom-actions{display:flex;justify-content:flex-start}
.nsa-cert-custom-list{display:grid;gap:10px}
.nsa-cert-remove{display:inline-flex;align-items:center;justify-content:center;border:1px solid #eadfc8;background:#fff;border-radius:12px;padding:9px 12px;font-size:13px;font-weight:700;color:#7c3a2d;cursor:pointer}
.nsa-cert-control-row input[type="color"],.nsa-cert-control-row__grid input[type="color"]{padding:4px 6px;height:44px}
.nsa-cert-stage__guide{position:absolute;display:none;z-index:1;pointer-events:none}
.nsa-cert-stage__guide--v{top:0;bottom:0;width:0;border-left:1px dashed rgba(182,138,53,.9)}
.nsa-cert-stage__guide--h{left:0;right:0;height:0;border-top:1px dashed rgba(182,138,53,.9)}
.nsa-cert-stage__element{padding:2px 4px;border:1px dashed transparent;background:rgba(255,255,255,.06)}
.nsa-cert-stage__element.is-active,.nsa-cert-stage__qr.is-active{background:rgba(255,255,255,.72)}
