.kdsamref-modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:100000}
.kdsamref-modal{background:#fff;border:1px solid #e5e7eb;border-radius:8px;min-width:320px;max-width:460px;box-shadow:0 10px 25px rgba(0,0,0,.15);overflow:hidden}
.kdsamref-modal-header{font-weight:600;padding:12px 16px;border-bottom:1px solid #e5e7eb}
.kdsamref-modal-body{padding:16px;color:#374151}
.kdsamref-modal-footer{padding:12px 16px;border-top:1px solid #e5e7eb;text-align:right}

/* subtle polish for details table */
.kdsamref-pro-details code{font-size:12px;background:#f9fafb;border:1px solid #e5e7eb;border-radius:4px;padding:4px 6px}
.kdsamref-pro-license .kdsamref-pro-row{gap:10px}
.kdsamref-pro-license .kdsamref-pro-button{border-radius:6px}

/* 2025 Modern UI */
.kdsamref-pro-hero{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;margin:10px 0}
.kdsamref-pro-hero-title{margin:0;font-size:20px;color:#111827;font-weight:700}
.kdsamref-pro-hero-desc{margin:4px 0 0;color:#6b7280}
.kdsamref-pro-status-chip{display:inline-flex;align-items:center;gap:8px;border:1px solid #e5e7eb;border-radius:999px;padding:6px 12px;font-weight:600}
.kdsamref-pro-status-chip .chip-dot{width:8px;height:8px;border-radius:50%;background:#9ca3af}
.kdsamref-pro-status-chip.ok{color:#065f46;background:#f0fdf4;border-color:#d1fae5}
.kdsamref-pro-status-chip.ok .chip-dot{background:#10b981}
.kdsamref-pro-status-chip.off{color:#6b7280;background:#f9fafb}

.kdsamref-pro-grid-2{display:grid;grid-template-columns:1fr;gap:16px;margin-top:14px}
@media (min-width: 900px){.kdsamref-pro-grid-2{grid-template-columns:1fr 1fr}}
.kdsamref-pro-card{border:1px solid #e5e7eb;border-radius:10px;background:#fff;padding:16px}
.kdsamref-pro-card .card-title{margin:0 0 10px;font-weight:700;color:#111827}
.kdsamref-pro-form{display:flex;flex-direction:column;gap:12px}
.kdsamref-pro-form-inline{display:flex;align-items:center;gap:12px}
.kdsamref-pro-label{font-weight:600;color:#374151;font-size:13px}
.kdsamref-pro-input{width:100%;border:1px solid #d1d5db;border-radius:8px;padding:10px 12px;font-size:14px}
.kdsamref-pro-input.monospace{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono','Courier New',monospace}
.kdsamref-pro-input-group{display:flex;gap:10px;align-items:stretch}
.kdsamref-pro-actions{display:flex;gap:8px;align-items:center}
.kdsamref-pro-button{border:1px solid #d1d5db;background:#111827;color:#fff;border-radius:8px;height:40px;padding:0 12px;cursor:pointer}
.kdsamref-pro-button:hover{background:#000}
.kdsamref-pro-button.danger{background:#ef4444;border-color:#ef4444}
.kdsamref-pro-button.danger:hover{background:#dc2626}
.kdsamref-pro-button.primary{background:#111827;border-color:#111827}
.kdsamref-pro-switch{position:relative;display:inline-block;width:42px;height:22px}
.kdsamref-pro-switch input{opacity:0;width:0;height:0}
.kdsamref-pro-switch .slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background:#e5e7eb;transition:.2s;border-radius:999px}
.kdsamref-pro-switch .slider:before{position:absolute;content:"";height:18px;width:18px;left:2px;top:2px;background:#fff;transition:.2s;border-radius:50%;border:1px solid #d1d5db}
.kdsamref-pro-switch input:checked+.slider{background:#111827}
.kdsamref-pro-switch input:checked+.slider:before{transform:translateX(20px)}
.kdsamref-pro-switch-label{color:#374151}
.kdsamref-pro-benefits{margin:8px 0 0;padding-left:18px;color:#374151}
.section-title{margin:20px 0 8px;font-weight:700;color:#111827}
.kdsamref-pro-details{max-width:820px}
.kdsamref-pro-details-card{border:1px solid #e5e7eb;border-radius:10px;background:#fff;max-width:820px}
.kdsamref-pro-details-card .details-card-header{padding:12px 14px;border-bottom:1px solid #e5e7eb;font-weight:700;color:#111827}
.kdsamref-pro-details-card .detail-row{display:grid;grid-template-columns:220px 1fr;gap:12px;padding:12px 14px;border-top:1px solid #f1f5f9}
.kdsamref-pro-details-card .detail-row:first-child{border-top:0}
.kdsamref-pro-details-card .detail-label{color:#6b7280;font-weight:600}
.kdsamref-pro-details-card .detail-value{color:#111827}
.kdsamref-pro-details-card .detail-value .detail-muted{color:#6b7280;margin-left:6px}
