/* Premium Port Detail photo editor. Preview-only clean UI. */
.np-port-photo-modal{width:min(540px,calc(100vw - 28px))}
.np-port-photo-modal>header button{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;padding:0!important;border-radius:8px!important}
.np-port-photo-modal>header button .np-icon{width:13px!important;height:13px!important}
.np-port-photo-form{display:grid;gap:10px;padding:2px}
.np-port-photo-form label,.np-port-photo-field{display:grid;gap:5px}
.np-port-photo-form label>span,.np-port-photo-label{display:flex;align-items:center;gap:6px;color:var(--np-text);font-size:7px;font-weight:600}
.np-port-photo-form label>span em{color:var(--np-faint);font-size:6px;font-style:normal;font-weight:500}
.np-port-photo-form input:not([type="file"]){width:100%;min-height:34px;padding:0 9px;border:1px solid var(--np-line-strong);border-radius:8px;outline:0;background:var(--np-surface-2);color:var(--np-text);font:500 7.4px/1.2 Inter,sans-serif}
.np-port-photo-form input:not([type="file"]):focus{border-color:color-mix(in srgb,var(--np-accent-2) 65%,var(--np-line));box-shadow:0 0 0 2px color-mix(in srgb,var(--np-accent-soft) 70%,transparent)}
.np-port-photo-form label>small,.np-port-photo-field>small{color:var(--np-faint);font-size:6.1px;line-height:1.4}
.np-port-photo-choice{display:grid;gap:6px}
.np-port-photo-picker{position:relative;width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;padding:0!important;overflow:hidden;border:1px dashed var(--np-line-strong)!important;border-radius:10px!important;background:var(--np-surface-2)!important;color:var(--np-muted)!important;box-shadow:none!important;cursor:pointer}
.np-port-photo-picker.has-image{border-style:solid!important}
.np-port-photo-picker-preview{min-height:132px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.np-port-photo-picker-preview>img{width:100%;height:142px;display:block;object-fit:cover}
.np-port-photo-picker-preview>.np-icon{width:25px;height:25px;color:var(--np-accent-2)}
.np-port-photo-picker-preview>strong{font-size:7.2px;font-weight:600;color:var(--np-text)}
.np-port-photo-picker-preview>small{font-size:6px;color:var(--np-muted)}
.np-port-photo-picker-overlay{position:absolute;right:8px;bottom:8px;min-height:25px;padding:0 8px;display:flex;align-items:center;gap:4px;border:1px solid rgba(255,255,255,.38);border-radius:7px;background:rgba(5,19,34,.72);color:#fff;backdrop-filter:blur(7px);font:600 6.2px/1 Inter,sans-serif}
.np-port-photo-picker-overlay .np-icon{width:11px;height:11px}
.np-port-photo-choice-meta{min-height:24px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.np-port-photo-choice-meta>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--np-faint);font-size:6.1px}
.np-port-photo-remove{width:auto!important;min-width:0!important;height:25px!important;min-height:25px!important;padding:0 7px!important;border:1px solid var(--np-line-strong)!important;border-radius:7px!important;background:var(--np-surface-2)!important;color:var(--np-muted)!important;font:600 6.1px/1 Inter,sans-serif!important;cursor:pointer}
.np-port-photo-remove.is-hidden{display:none!important}
.np-port-photo-url-field{padding-top:2px;border-top:1px solid var(--np-line)}
.np-port-photo-editor-error{display:none;margin:0;padding:7px 9px;border-radius:7px;background:color-mix(in srgb,var(--np-red) 10%,var(--np-surface));color:var(--np-red);font-size:6.4px;line-height:1.4}
.np-port-photo-editor-error.show{display:block}
.np-port-photo-editor-actions{display:flex!important;justify-content:flex-end!important;align-items:center;gap:6px;margin-top:1px;padding-top:9px;border-top:1px solid var(--np-line)}
.np-port-photo-editor-actions button{width:auto!important;min-width:0!important;height:30px!important;min-height:30px!important;padding:0 9px!important;border:1px solid var(--np-line-strong)!important;border-radius:7px!important;background:var(--np-surface-2)!important;color:var(--np-text)!important;font:600 6.6px/1 Inter,sans-serif!important;letter-spacing:0!important;box-shadow:none!important;cursor:pointer}
.np-port-photo-editor-actions button.primary{border-color:transparent!important;background:var(--np-accent-2)!important;color:#fff!important}
.np-port-photo-editor-actions button:disabled{opacity:.58;cursor:wait}
.np-port-photo-editor-loading{min-height:160px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--np-muted)}
.np-port-photo-editor-loading>span{width:17px;height:17px;border:2px solid var(--np-line-strong);border-top-color:var(--np-accent-2);border-radius:50%;animation:npPortSpin .7s linear infinite}
.np-port-photo-editor-loading p{margin:0;font-size:6.6px}

@media(max-width:620px){
  .np-port-photo-modal{width:min(100% - 18px,540px);max-height:calc(100vh - 20px)}
  .np-port-photo-form{gap:9px}
  .np-port-photo-picker-preview{min-height:124px}
  .np-port-photo-picker-preview>img{height:132px}
  .np-port-photo-editor-actions{display:flex!important;justify-content:flex-end!important}
  .np-port-photo-editor-actions button{height:32px!important;min-height:32px!important;padding:0 9px!important;font-size:6.8px!important}
}
