/* Clean Premium Profile. Shared presentation for My Profile and viewed Crew Profile.
   Scale deliberately follows the locked Premium Home hierarchy. */
.np-profile-root{--profile-teal:#09b9bd;--profile-blue:#2f87d7;--profile-purple:#7d64e8;--profile-coral:#ef795f;--profile-gold:#dda53b}
.np-profile-main{padding:24px 28px 34px;display:flex;flex-direction:column;gap:16px;background:var(--np-bg);min-height:calc(100vh - 68px)}
.np-profile-root button{font:inherit}
.np-profile-root .np-brand{padding:0;overflow:hidden;background:transparent}
.np-profile-root .np-brand img{display:block;width:54px;height:54px;object-fit:cover;border-radius:15px}

/* Identity hero keeps the graphical treatment but uses the Home type hierarchy. */
.np-profile-hero{position:relative;min-height:204px;padding:28px 30px;display:flex;align-items:center;justify-content:space-between;gap:24px;overflow:hidden;border-radius:16px;background:linear-gradient(122deg,#071c2f 0%,#0b5368 48%,#13b4ae 100%);color:#fff;box-shadow:var(--np-shadow-soft)}
.np-profile-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,14,25,.30),transparent 70%);pointer-events:none}
.np-profile-hero-art{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.np-profile-hero-art span{position:absolute;border-radius:999px;border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.05)}
.np-profile-hero-art span:nth-child(1){width:230px;height:230px;right:-46px;top:-78px}
.np-profile-hero-art span:nth-child(2){width:150px;height:150px;right:180px;bottom:-76px;background:rgba(111,231,217,.10)}
.np-profile-hero-art span:nth-child(3){width:64px;height:64px;right:320px;top:26px;background:rgba(255,255,255,.07)}
.np-profile-person,.np-profile-actions{position:relative;z-index:2}
.np-profile-person{display:flex;align-items:center;gap:18px;min-width:0}
.np-profile-avatar{width:94px;height:94px;position:relative;display:grid;place-items:center;flex:0 0 auto;overflow:hidden;border:3px solid rgba(255,255,255,.88);border-radius:25px;background:linear-gradient(145deg,#52d9d0,#266f93);box-shadow:0 12px 28px rgba(0,0,0,.18)}
.np-profile-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.np-profile-avatar>b{font-size:30px;font-weight:700;letter-spacing:-1px}
.np-profile-avatar i{position:absolute;right:5px;bottom:5px;width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:#fff;color:#123249;box-shadow:0 5px 12px rgba(0,0,0,.18)}
.np-profile-avatar i .np-icon{width:13px;height:13px}
.np-profile-kicker{display:block;margin-bottom:5px;font-size:8px;font-weight:700;letter-spacing:.11em;opacity:.72}
.np-profile-identity{min-width:0}
.np-profile-identity h1{margin:0;font-size:26px;line-height:1.12;letter-spacing:-.025em;font-weight:650}
.np-profile-identity>p{margin:6px 0 0;color:rgba(255,255,255,.78);font-size:9.5px}
.np-profile-tags{margin-top:10px;display:flex;flex-wrap:wrap;gap:6px}
.np-profile-tags>span{min-height:25px;padding:4px 8px;display:inline-flex;align-items:center;gap:5px;border:1px solid rgba(255,255,255,.14);border-radius:8px;background:rgba(4,22,32,.2);font-size:8px;font-weight:600}
.np-profile-tags .np-icon{width:12px;height:12px}
.np-profile-tags>span.open{background:rgba(85,224,172,.17);color:#c4ffe8}
.np-profile-tags>span.admin{background:rgba(255,211,120,.14);color:#ffe8b2}
.np-profile-actions{max-width:320px;display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:7px}
.np-profile-primary,.np-profile-secondary{display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer}
.np-profile-primary{border:1px solid #fff!important;background:#fff!important;color:#102c42!important;box-shadow:0 6px 16px rgba(0,0,0,.12)}
.np-profile-primary span,.np-profile-primary .np-icon{color:#102c42!important}
.np-profile-secondary{border:1px solid rgba(255,255,255,.22)!important;background:rgba(7,29,43,.26)!important;color:#fff!important}
.np-profile-secondary span,.np-profile-secondary .np-icon{color:#fff!important}
.np-profile-danger{border-color:rgba(255,196,196,.48)!important;background:rgba(116,20,35,.34)!important}.np-profile-danger:hover{background:rgba(137,24,41,.52)!important}.np-profile-connected.blocked{border-color:rgba(255,214,214,.34);background:rgba(106,22,36,.32);color:#fff}
.np-profile-connected{min-height:30px;padding:0 10px;display:inline-flex;align-items:center;gap:6px;border-radius:8px;background:rgba(90,226,174,.15);border:1px solid rgba(157,255,214,.24);color:#c5ffe8;font-size:7.25px;font-weight:600}
.np-profile-connected.pending{background:rgba(255,211,120,.13);border-color:rgba(255,222,150,.22);color:#ffe4ac}
.np-profile-connected .np-icon{width:11px;height:11px}

/* Summary row matches Home's compact card rhythm. */
.np-profile-glance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.np-profile-glance-card{min-width:0;min-height:104px;padding:15px 16px;display:grid;grid-template-columns:36px minmax(0,1fr) 16px;align-items:center;gap:11px;border:1px solid var(--np-line);border-radius:14px;background:var(--np-surface);color:var(--np-text);box-shadow:var(--np-shadow-soft);text-align:left}
button.np-profile-glance-card{cursor:pointer;transition:border-color .16s ease,transform .16s ease}
button.np-profile-glance-card:hover{transform:translateY(-1px);border-color:var(--np-line-strong);background:var(--np-surface-2)}
.np-profile-glance-card:disabled{cursor:default;opacity:.8}
.np-profile-glance-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:10px}
.np-profile-glance-icon .np-icon{width:18px;height:18px}
.np-profile-glance-card.ship .np-profile-glance-icon{background:#dff9f5;color:#0b998b}
.np-profile-glance-card.ports .np-profile-glance-icon{background:color-mix(in srgb,var(--np-purple) 11%,transparent);color:var(--np-purple)}
.np-profile-glance-card.location .np-profile-glance-icon{background:#e6f0ff;color:#3378c4}
.np-profile-glance-card.network .np-profile-glance-icon{background:#efeafe;color:#785fda}
html[data-theme="dark"] .np-profile-glance-card.ship .np-profile-glance-icon{background:#103a39}
html[data-theme="dark"] .np-profile-glance-card.ports .np-profile-glance-icon{background:#2d254b}
html[data-theme="dark"] .np-profile-glance-card.location .np-profile-glance-icon{background:#102f4d}
html[data-theme="dark"] .np-profile-glance-card.network .np-profile-glance-icon{background:#2d254b}
.np-profile-glance-card small{display:block;margin-bottom:3px;color:var(--np-faint);font-size:7px;font-weight:700;letter-spacing:.09em}
.np-profile-glance-card strong{display:block;overflow:hidden;text-overflow:ellipsis;color:var(--np-text);font-size:13px;line-height:1.2}
.np-profile-glance-card em{display:block;margin-top:3px;color:var(--np-muted);font-size:8px;font-style:normal;line-height:1.35}
.np-profile-glance-card>.np-icon{width:14px;color:var(--np-faint)}

/* About / work */
.np-profile-info-grid{display:grid;grid-template-columns:1.35fr .85fr;gap:12px}
.np-profile-about,.np-profile-work{padding:20px;border:1px solid var(--np-line);border-radius:14px;background:var(--np-surface);box-shadow:var(--np-shadow-soft)}
.np-profile-info-grid .np-eyebrow,.np-profile-destinations .np-eyebrow,.np-profile-management .np-eyebrow,.np-profile-activity .np-eyebrow,.np-profile-edit-head .np-eyebrow,.np-profile-form-head .np-eyebrow{color:var(--np-accent-2);font-size:7px;font-weight:700;letter-spacing:.1em}
.np-profile-about h2,.np-profile-work h2,.np-profile-section-head h2,.np-profile-form-head h2{margin:3px 0 0;font-size:14px;font-weight:650;letter-spacing:-.015em}
.np-profile-about>p{max-width:780px;margin:11px 0;color:var(--np-muted);font-size:9px;line-height:1.6;white-space:pre-wrap}
.np-profile-about>button,.np-profile-section-head>button{padding:0;display:inline-flex;align-items:center;gap:4px;border:0;background:transparent;color:var(--np-accent-2);font-size:8px;font-weight:600;cursor:pointer}
.np-profile-about>button .np-icon,.np-profile-section-head>button .np-icon{width:12px}
.np-profile-interest{margin:12px 0;padding:11px 12px;border-radius:10px;background:var(--np-surface-2)}
.np-profile-interest small{display:block;margin-bottom:3px;color:var(--np-faint);font-size:7px;font-weight:700;letter-spacing:.09em}
.np-profile-interest span{font-size:9px;color:var(--np-text)}
.np-profile-work dl{margin:12px 0 0;display:grid;gap:0}
.np-profile-work dl>div{padding:9px 0;display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid var(--np-line)}
.np-profile-work dl>div:last-child{border-bottom:0}
.np-profile-work dt{color:var(--np-muted);font-size:8px}
.np-profile-work dd{margin:0;max-width:65%;text-align:right;color:var(--np-text);font-size:8px;font-weight:650}
.np-profile-work dd.open{color:var(--np-green)}

/* Primary destinations use the same neutral-card + tinted-icon language as Home attention rows. */
.np-profile-destinations,.np-profile-management,.np-profile-activity{padding-top:2px}
.np-profile-section-head{margin-bottom:10px;display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
.np-profile-destination-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.np-profile-destination-grid>button{position:relative;min-height:76px;padding:11px 12px;display:grid;grid-template-columns:34px minmax(0,1fr) 14px;grid-template-rows:auto auto;align-items:center;gap:2px 10px;overflow:hidden;border:1px solid var(--np-line);border-radius:12px;background:var(--np-surface);color:var(--np-text);text-align:left;cursor:pointer;box-shadow:var(--np-shadow-soft)}
.np-profile-destination-grid>button:hover{border-color:var(--np-line-strong);background:var(--np-surface-2)}
.np-profile-destination-grid>button>span{grid-row:1/3;width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:var(--np-accent-soft);color:var(--np-accent-2)}
.np-profile-destination-grid>button.tone-1>span{background:color-mix(in srgb,var(--np-amber) 11%,transparent);color:var(--np-amber)}
.np-profile-destination-grid>button.tone-2>span{background:color-mix(in srgb,var(--np-purple) 11%,transparent);color:var(--np-purple)}
.np-profile-destination-grid>button.tone-3>span{background:color-mix(in srgb,var(--np-red) 11%,transparent);color:var(--np-red)}
.np-profile-destination-grid>button>span .np-icon{width:16px;height:16px}
.np-profile-destination-grid>button>strong{align-self:end;font-size:9.5px;line-height:1.2;color:var(--np-text)}
.np-profile-destination-grid>button>small{align-self:start;margin-top:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--np-muted);font-size:7.2px;line-height:1.3}
.np-profile-destination-grid>button>.np-icon{grid-column:3;grid-row:1/3;align-self:center;width:12px;color:var(--np-faint)}

/* Settings and administration use compact rows, not another wall of large cards. */
.np-profile-management-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
.np-profile-management-grid:has(.np-profile-management-card:only-child){grid-template-columns:1fr}
.np-profile-management-card{padding:15px;border:1px solid var(--np-line);border-radius:14px;background:var(--np-surface);box-shadow:var(--np-shadow-soft)}
.np-profile-management-card.admin{border-color:color-mix(in srgb,var(--np-amber) 28%,var(--np-line));background:linear-gradient(160deg,color-mix(in srgb,var(--np-surface) 97%,var(--np-amber)),var(--np-surface))}
.np-profile-management-title{padding:0 2px 10px;display:flex;align-items:center;gap:9px;border-bottom:1px solid var(--np-line)}
.np-profile-management-title>span{width:31px;height:31px;display:grid;place-items:center;border-radius:9px;background:var(--np-accent-soft);color:var(--np-accent-2)}
.np-profile-management-card.admin .np-profile-management-title>span{background:color-mix(in srgb,var(--np-amber) 15%,var(--np-surface));color:var(--np-amber)}
.np-profile-management-title .np-icon{width:15px;height:15px}
.np-profile-management-title small{display:block;color:var(--np-faint);font-size:6.5px;font-weight:700;letter-spacing:.09em}
.np-profile-management-title strong{display:block;margin-top:1px;color:var(--np-text);font-size:11px}
.np-profile-management-row{width:100%;min-height:46px;padding:8px 2px;display:grid;grid-template-columns:30px minmax(0,1fr) 14px;align-items:center;gap:9px;border:0;border-bottom:1px solid var(--np-line);background:transparent;color:var(--np-text);text-align:left;cursor:pointer}
.np-profile-management-row:last-of-type{border-bottom:0}
.np-profile-management-row:hover{background:var(--np-surface-2)}
.np-profile-management-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:var(--np-surface-2);color:var(--np-muted)}
.np-profile-management-icon .np-icon{width:14px;height:14px}
.np-profile-management-row strong{display:block;font-size:9px;font-weight:650}
.np-profile-management-row small{display:block;margin-top:2px;color:var(--np-muted);font-size:7px;line-height:1.3}
.np-profile-management-row>.np-icon{width:12px;color:var(--np-faint)}
.np-profile-admin-note{margin-top:9px;padding:8px 10px;display:flex;align-items:center;gap:6px;border-radius:9px;background:color-mix(in srgb,var(--np-green) 10%,var(--np-surface));color:var(--np-green);font-size:7px;font-weight:600}
.np-profile-admin-note .np-icon{width:12px;height:12px}

/* Recent activity */
.np-profile-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.np-profile-post{min-height:112px;display:grid;grid-template-columns:78px 1fr;overflow:hidden;border:1px solid var(--np-line);border-radius:13px;background:var(--np-surface);box-shadow:var(--np-shadow-soft)}
.np-profile-post>img{width:100%;height:100%;min-height:112px;object-fit:cover}
.np-profile-post>div{padding:12px;min-width:0}
.np-profile-post small{color:var(--np-faint);font-size:7px;font-weight:650}
.np-profile-post p{margin:6px 0 8px;display:-webkit-box;overflow:hidden;-webkit-line-clamp:3;-webkit-box-orient:vertical;color:var(--np-text);font-size:8px;line-height:1.45}
.np-profile-post span{display:flex;align-items:center;gap:4px;color:var(--np-muted);font-size:7px}
.np-profile-post span .np-icon{width:11px;height:11px}

.np-profile-state{min-height:320px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px solid var(--np-line);border-radius:14px;background:var(--np-surface)}
.np-profile-state>.np-icon{width:32px;height:32px;margin-bottom:12px;color:var(--np-accent)}
.np-profile-state strong{font-size:14px}.np-profile-state p{max-width:440px;color:var(--np-muted);font-size:9px}.np-profile-state.error>.np-icon{color:var(--np-red)}

/* Edit profile follows the same scale. */
.np-profile-edit-head{padding:4px 2px 0}
.np-profile-edit-head>button{margin-bottom:14px;padding:0;display:flex;align-items:center;gap:5px;border:0;background:transparent;color:var(--np-muted);font-size:8px;cursor:pointer}.np-profile-edit-head>button .np-icon{width:12px;transform:rotate(180deg)}
.np-profile-edit-head h1{margin:3px 0 4px;font-size:22px;letter-spacing:-.025em}.np-profile-edit-head p{margin:0;color:var(--np-muted);font-size:9px}
.np-profile-edit-grid{display:grid;grid-template-columns:250px minmax(0,1fr);gap:12px;align-items:start}
.np-profile-photo-panel,.np-profile-edit-form{padding:20px;border:1px solid var(--np-line);border-radius:14px;background:var(--np-surface);box-shadow:var(--np-shadow-soft)}
.np-profile-photo-panel{position:sticky;top:84px;text-align:center}
.np-profile-edit-avatar{width:118px;height:118px;margin:0 auto 13px;display:grid;place-items:center;overflow:hidden;border-radius:28px;background:linear-gradient(145deg,#47d4cb,#315f8a);color:#fff}.np-profile-edit-avatar img{width:100%;height:100%;object-fit:cover}.np-profile-edit-avatar b{font-size:36px}
.np-profile-photo-panel h2{margin:0;font-size:14px}.np-profile-photo-panel p{margin:6px auto 12px;max-width:210px;color:var(--np-muted);font-size:8px;line-height:1.45}
.np-profile-photo-panel label,.np-profile-photo-panel>button{width:100%;display:flex;align-items:center;justify-content:center;gap:5px;cursor:pointer}
.np-profile-photo-panel label{background:var(--np-accent)!important;color:#fff!important;border:0}.np-profile-photo-panel label .np-icon{color:#fff}.np-profile-photo-panel>button{margin-top:6px;border:1px solid var(--np-line)!important;background:var(--np-surface-2)!important;color:var(--np-muted)!important}
.np-profile-form-head{margin-bottom:15px}
.np-profile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.np-profile-fields label>span:first-child{display:block;margin-bottom:4px;color:var(--np-muted);font-size:8px;font-weight:600}
.np-profile-fields input:not([type="checkbox"]),.np-profile-fields textarea{width:100%;min-height:38px;padding:9px 11px;border:1px solid var(--np-line);border-radius:9px;background:var(--np-surface-2);color:var(--np-text);font:inherit;font-size:9px;outline:0}.np-profile-fields textarea{resize:vertical;line-height:1.5}.np-profile-fields input:focus,.np-profile-fields textarea:focus{border-color:var(--np-accent)}.np-profile-fields input:disabled{opacity:.65}.np-profile-fields .wide{grid-column:1/-1}
.np-profile-toggle{min-height:54px;padding:10px 11px;display:flex;align-items:center;gap:10px;border:1px solid var(--np-line);border-radius:10px;background:var(--np-surface-2)}.np-profile-toggle input{width:16px;height:16px;accent-color:var(--np-accent)}.np-profile-toggle span{margin:0!important}.np-profile-toggle strong{display:block;color:var(--np-text);font-size:9px}.np-profile-toggle small{display:block;margin-top:2px;color:var(--np-muted);font-size:7px}
.np-profile-form-error{padding:8px 10px;border-radius:8px;background:color-mix(in srgb,var(--np-red) 12%,transparent);color:var(--np-red);font-size:8px}
.np-profile-form-actions{margin-top:15px;display:flex;gap:7px}.np-profile-edit-form .np-profile-primary{background:var(--np-accent)!important;border-color:var(--np-accent)!important;color:#fff!important}.np-profile-edit-form .np-profile-primary span,.np-profile-edit-form .np-profile-primary .np-icon{color:#fff!important}.np-profile-edit-form .np-profile-secondary{background:var(--np-surface-2)!important;border-color:var(--np-line)!important;color:var(--np-muted)!important}.np-profile-edit-form .np-profile-secondary span{color:var(--np-muted)!important}

@media(max-width:1050px){.np-profile-hero{padding:24px}.np-profile-glance{grid-template-columns:1fr 1fr}.np-profile-glance-card.network{grid-column:1/-1}.np-profile-destination-grid,.np-profile-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.np-profile-management-grid{grid-template-columns:1fr}}
@media(max-width:760px){.np-profile-main{padding:14px;gap:13px}.np-profile-hero{min-height:auto;padding:22px 18px;align-items:flex-start;flex-direction:column;border-radius:14px}.np-profile-person{align-items:flex-start;gap:13px}.np-profile-avatar{width:82px;height:82px;border-radius:22px}.np-profile-avatar>b{font-size:27px}.np-profile-identity h1{font-size:23px}.np-profile-actions{width:100%;max-width:none;justify-content:flex-start}.np-profile-glance{grid-template-columns:1fr}.np-profile-glance-card.network{grid-column:auto}.np-profile-info-grid,.np-profile-destination-grid,.np-profile-post-grid,.np-profile-edit-grid{grid-template-columns:1fr}.np-profile-photo-panel{position:static}.np-profile-fields{grid-template-columns:1fr}.np-profile-fields .wide{grid-column:auto}.np-profile-edit-head h1{font-size:20px}}
@media(max-width:540px){.np-profile-main{padding:10px}.np-profile-hero{padding:18px 15px}.np-profile-person{flex-direction:column}.np-profile-avatar{width:88px;height:88px}.np-profile-destination-grid{grid-template-columns:1fr;gap:8px}.np-profile-destination-grid>button{min-height:72px;padding:10px 11px}.np-profile-post-grid{grid-template-columns:1fr}.np-profile-form-actions{flex-direction:column}.np-profile-form-actions>*{width:100%}}
