/* Naviquo standalone Premium Home.
   Single presentation source for the clean Home route: no legacy DOM, no override layer. */

html[data-clean-premium="1"]{
  --np-bg:#f4f7fb;
  --np-surface:#ffffff;
  --np-surface-2:#f8fafc;
  --np-text:#122033;
  --np-muted:#66758a;
  --np-faint:#95a1b2;
  --np-line:#e2e8f0;
  --np-line-strong:#d4dce7;
  --np-accent:#08b8c7;
  --np-accent-2:#00a7b8;
  --np-accent-soft:#e7f9fb;
  --np-navy:#0d1b2d;
  --np-green:#20b982;
  --np-amber:#f4a11a;
  --np-purple:#8a63e8;
  --np-red:#ec6a62;
  --np-shadow:0 16px 42px rgba(30,48,70,.08);
  --np-shadow-soft:0 8px 24px rgba(30,48,70,.06);
  --np-action-height:30px;
  --np-action-font:7.25px;
  --np-action-font-small:6.5px;
  --np-action-icon:11px;
  --np-action-radius:8px;
  --np-compact-action-height:24px;
  --np-compact-action-font:6.5px;
  --np-compact-action-icon:9px;
  --np-control-height:32px;
  --np-control-font:7.5px;
  --np-feature-control-height:36px;
  --np-feature-control-font:8px;
  --np-control-label-font:6.5px;
  --np-control-helper-font:6.25px;
  --np-control-radius:8px;
  color-scheme:light;
}
html[data-theme="dark"][data-clean-premium="1"]{
  --np-bg:#07111d;
  --np-surface:#0d1a29;
  --np-surface-2:#101f30;
  --np-text:#f3f7fb;
  --np-muted:#9aabbf;
  --np-faint:#687b90;
  --np-line:#20364a;
  --np-line-strong:#29445a;
  --np-accent:#19c8d6;
  --np-accent-2:#0db2c1;
  --np-accent-soft:#0c2d38;
  --np-navy:#06101b;
  --np-green:#42d59e;
  --np-amber:#ffb341;
  --np-purple:#a782ff;
  --np-red:#ff746d;
  --np-shadow:0 18px 46px rgba(0,0,0,.28);
  --np-shadow-soft:0 8px 24px rgba(0,0,0,.2);
  color-scheme:dark;
}

html[data-clean-premium="1"],
html[data-clean-premium="1"] body{
  margin:0;
  min-height:100%;
  background:var(--np-bg);
  color:var(--np-text);
  font-family:Poppins,Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
html[data-clean-premium="1"] body{padding:0;overflow-x:hidden}
html[data-clean-premium="1"] *{box-sizing:border-box}
html[data-clean-premium="1"] button{
  font-family:inherit;
  font-size:var(--np-action-font);
  line-height:1;
}
:where(html[data-clean-premium="1"]) button{color:inherit}
html[data-clean-premium="1"] input:not([type="checkbox"]):not([type="radio"]),
html[data-clean-premium="1"] select,
html[data-clean-premium="1"] textarea{
  font-family:inherit;
  font-size:var(--np-control-font);
  line-height:1.2;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
html[data-clean-premium="1"] input::placeholder,
html[data-clean-premium="1"] textarea::placeholder{font-size:inherit;line-height:inherit}
html[data-clean-premium="1"] button:focus-visible{outline:2px solid var(--np-accent);outline-offset:3px}

/* Shared Premium control foundation. Screen styles may change colour, width or placement, but not invent a new base scale. */
html[data-clean-premium="1"] .np-premium-action{
  min-height:var(--np-action-height);
  padding:0 10px;
  border-radius:var(--np-action-radius);
  font-size:var(--np-action-font);
  line-height:1;
  font-weight:600;
}
html[data-clean-premium="1"] .np-premium-action :is(span,b,strong,small,em,i){font-size:inherit;line-height:inherit;font-weight:inherit}
html[data-clean-premium="1"] .np-premium-action .np-icon{width:var(--np-action-icon);height:var(--np-action-icon)}
html[data-clean-premium="1"] .np-premium-action.is-compact{min-height:var(--np-compact-action-height);font-size:var(--np-compact-action-font)}
html[data-clean-premium="1"] .np-premium-action.is-compact .np-icon{width:var(--np-compact-action-icon);height:var(--np-compact-action-icon)}
html[data-clean-premium="1"] .np-premium-control{min-height:var(--np-control-height);font-size:var(--np-control-font);border-radius:var(--np-control-radius)}
html[data-clean-premium="1"] .np-premium-control.is-feature{min-height:var(--np-feature-control-height);font-size:var(--np-feature-control-font)}
html[data-clean-premium="1"] .np-premium-field-label{font-size:var(--np-control-label-font)}
html[data-clean-premium="1"] .np-premium-field-help{font-size:var(--np-control-helper-font)}

.np-root{
  width:min(1480px,calc(100vw - 28px));
  min-height:calc(100vh - 28px);
  margin:14px auto;
  display:grid;
  grid-template-columns:92px minmax(0,1fr);
  overflow:clip;
  background:var(--np-surface);
  border:1px solid var(--np-line);
  border-radius:20px;
  box-shadow:var(--np-shadow);
}
.np-icon{width:21px;height:21px;display:block;flex:0 0 auto}

/* Sidebar */
.np-sidebar{
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:16px 9px 14px;
  background:var(--np-surface);
  border-right:1px solid var(--np-line);
}
.np-brand{
  display:grid;
  width:54px;
  height:54px;
  place-items:center;
  margin:0 0 22px;
  border:0;
  border-radius:15px;
  background:linear-gradient(145deg,#e9fbfc,#d8f6f8);
  color:var(--np-accent-2);
  cursor:pointer;
}
html[data-theme="dark"] .np-brand{background:#102b38}
.np-brand .np-icon{width:31px;height:31px}
.np-brand b{display:none}
.np-sidebar nav{display:flex;width:100%;flex-direction:column;gap:8px}
.np-sidebar nav button{
  width:100%;
  min-height:62px;
  padding:8px 3px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  border:0;
  border-radius:12px;
  background:transparent;
  color:var(--np-muted);
  font-size:9.5px;
  font-weight:500;
  cursor:pointer;
  transition:background .16s ease,color .16s ease;
}
.np-sidebar nav button:hover{background:var(--np-surface-2);color:var(--np-text)}
.np-sidebar nav button.active{background:var(--np-accent-soft);color:var(--np-accent-2)}
.np-sidebar nav button.active .np-icon{fill:currentColor}
.np-sidebar-logout{
  width:100%;
  min-height:58px;
  margin-top:auto;
  padding:8px 3px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  border:0;
  border-radius:12px;
  background:transparent;
  color:var(--np-muted);
  font:700 9px/1.1 Inter,system-ui,sans-serif;
  cursor:pointer;
  transition:background .16s ease,color .16s ease;
}
.np-sidebar-logout:hover{background:var(--np-surface-2);color:var(--np-text)}
.np-sidebar-logout .np-icon{width:20px;height:20px}


/* Header */
.np-app{min-width:0;background:var(--np-surface)}
.np-topbar{
  height:68px;
  display:flex;
  align-items:center;
  padding:0 26px;
  border-bottom:1px solid var(--np-line);
  gap:18px;
  background:color-mix(in srgb,var(--np-surface) 94%,transparent);
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter:blur(12px);
}
.np-mobile-brand{display:none}
.np-search{
  height:38px;
  min-width:260px;
  max-width:430px;
  flex:1;
  display:flex;
  align-items:center;
  gap:9px;
  padding:0 13px;
  border:1px solid var(--np-line);
  border-radius:10px;
  background:var(--np-surface-2);
  color:var(--np-muted);
  font-size:11px;
  cursor:pointer;
  text-align:left;
}
.np-search .np-icon{width:17px;height:17px}
.np-top-actions{margin-left:auto;display:flex;align-items:center;gap:5px}
.np-top-actions>button{
  position:relative;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--np-muted);
  cursor:pointer;
}
.np-top-actions>button:hover{background:var(--np-surface-2);color:var(--np-text)}
.np-top-actions .np-header-brand{
  width:38px;
  height:38px;
  margin-left:5px;
  padding:2px;
  overflow:hidden;
  border-radius:10px;
}
.np-header-brand img{display:block;width:34px;height:34px;object-fit:contain;border-radius:9px}
.np-action-badge{
  position:absolute;
  top:-4px;
  right:-4px;
  min-width:19px;
  height:19px;
  padding:0 5px;
  display:grid;
  place-items:center;
  border:2px solid var(--np-surface);
  border-radius:999px;
  background:var(--np-accent-2);
  box-shadow:0 2px 7px rgba(0,0,0,.18);
  color:#fff;
  font-size:8px;
  line-height:1;
  font-weight:700;
  font-variant-numeric:tabular-nums;
}
.np-top-notifications .np-action-badge{background:var(--np-red)}

/* Main Home layout */
.np-main{padding:24px 28px 34px;max-width:1320px;margin:0 auto}
.np-welcome{display:flex;align-items:flex-end;justify-content:space-between;margin:0 2px 18px}
.np-welcome h1{margin:0;font-size:22px;line-height:1.25;letter-spacing:-.025em;font-weight:650;color:var(--np-text)}
.np-welcome h1 span{font-size:20px}
.np-welcome p{margin:5px 0 0;color:var(--np-muted);font-size:11px}
.np-card{background:var(--np-surface);border:1px solid var(--np-line);border-radius:14px;box-shadow:var(--np-shadow-soft);color:var(--np-text)}
.np-top-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(380px,.95fr);gap:16px;align-items:stretch}

/* Port + weather feature */
.np-hero-card{
  min-height:258px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 42%;
  overflow:hidden;
  border-radius:14px;
  border:1px solid var(--np-line);
  background:var(--np-navy);
  box-shadow:var(--np-shadow-soft);
}
.np-hero-photo{min-width:0;position:relative;overflow:hidden;background:linear-gradient(135deg,#194461,#0a7685)}
.np-hero-photo>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.np-photo-fallback{width:100%;height:100%;display:grid;place-items:center;background:linear-gradient(145deg,#2b7089,#16425e);color:rgba(255,255,255,.6)}
.np-photo-fallback .np-icon{width:44px;height:44px}
.np-hero-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(3,13,25,.10),rgba(3,13,25,.76))}
.np-hero-place{position:absolute;left:19px;right:18px;bottom:18px;color:#fff}
.np-hero-place span{display:block;margin-bottom:4px;font-size:9px;font-weight:600;letter-spacing:.08em;opacity:.82}
.np-hero-place h2{margin:0;font-size:21px;line-height:1.15;font-weight:600;letter-spacing:-.02em}
.np-hero-place p{margin:4px 0 0;font-size:10px;opacity:.8}
.np-weather-panel{
  border:0;
  border-left:1px solid rgba(255,255,255,.08);
  padding:20px 16px;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:center;
  background:linear-gradient(160deg,#0d283b,#071d2d);
  color:#fff;
  cursor:pointer;
  text-align:left;
}
.np-weather-panel[disabled]{cursor:default}
.np-weather-reading,.np-weather-loading{display:flex;align-items:center;gap:12px}
.np-weather-symbol{
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:grid;
  place-items:center;
  border-radius:0;
  background:transparent;
  color:#3edbe5;
  font-size:30px;
  line-height:1;
}
.np-weather-symbol .np-icon{width:24px;height:24px}
.np-weather-reading>div,.np-weather-loading>div{min-width:0}
.np-weather-reading strong{display:block;font-size:27px;line-height:1;font-weight:600;color:#fff}
.np-weather-reading span,.np-weather-loading span{display:block;margin-top:4px;font-size:9px;color:#b4c2cf}
.np-weather-loading strong{display:block;font-size:12px;color:#fff}
.np-weather-stats{display:grid;grid-template-columns:1fr;gap:6px;margin-top:18px}
.np-weather-stats span{display:flex;justify-content:space-between;color:#8ea4b5;font-size:9px}
.np-weather-stats b{color:#fff;font-weight:500}
.np-weather-cta{margin-top:auto;padding-top:16px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid rgba(255,255,255,.1);font-size:9px;color:#51d8e1}
.np-weather-cta .np-icon{width:15px;height:15px}

/* My Voyage: the complete card is the action */
.np-voyage-card{
  width:100%;
  min-height:258px;
  padding:18px 19px 16px;
  display:flex;
  flex-direction:column;
  appearance:none;
  text-align:left;
  cursor:pointer;
  color:var(--np-text);
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.np-voyage-card:hover{border-color:color-mix(in srgb,var(--np-accent) 42%,var(--np-line));box-shadow:0 12px 30px rgba(30,48,70,.10);transform:translateY(-1px)}
html[data-theme="dark"] .np-voyage-card:hover{box-shadow:0 14px 34px rgba(0,0,0,.28)}
.np-card-head,.np-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.np-eyebrow{display:block;color:var(--np-muted);font-size:8px;font-weight:600;letter-spacing:.08em}
.np-card-head h2,.np-section-head h2{margin:2px 0 0;font-size:14px;font-weight:650;letter-spacing:-.015em;color:var(--np-text)}
.np-pill{display:inline-flex;align-items:center;min-height:24px;padding:0 9px;border-radius:999px;background:var(--np-accent);color:#fff;font-size:8px;font-weight:600}
.np-voyage-sub{margin:6px 0 10px;color:var(--np-muted);font-size:9px}
.np-progress>div{height:5px;border-radius:999px;background:var(--np-line);overflow:hidden}
.np-progress>div span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#05b7c6,#29c5cd)}
.np-progress p{display:flex;justify-content:space-between;margin:6px 0 0;font-size:8px;color:var(--np-muted)}
.np-progress p b{color:var(--np-text);font-weight:500}
.np-voyage-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}
.np-voyage-stats>div{padding:9px 11px;border-radius:9px;background:var(--np-surface-2)}
.np-voyage-stats span{display:block;color:var(--np-muted);font-size:7px;letter-spacing:.06em}
.np-voyage-stats strong{display:block;margin-top:1px;font-size:17px;color:var(--np-text)}
.np-next-port{display:flex;align-items:flex-end;justify-content:space-between;margin-top:auto;padding:0 1px;gap:10px}
.np-next-port>span{display:flex;flex-direction:column}
.np-next-port>span:last-child{text-align:right}
.np-next-port small{color:var(--np-muted);font-size:7.5px}
.np-next-port strong,.np-next-port b{font-size:10px;color:var(--np-text)}

/* Port Matches */
.np-port-matches{margin-top:16px;padding:14px 16px 15px}
.np-section-head p{margin:2px 0 0;color:var(--np-muted);font-size:9px}
.np-link{display:flex;align-items:center;gap:4px;border:0;background:transparent;color:var(--np-accent-2);font-size:8px;font-weight:600;cursor:pointer}
.np-link .np-icon{width:13px;height:13px}
.np-match-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}
.np-match-card{height:82px;position:relative;overflow:hidden;border:0;border-radius:9px;background:#173149;color:#fff;text-align:left;cursor:pointer}
.np-match-photo{position:absolute;inset:0}
.np-match-photo img{width:100%;height:100%;object-fit:cover}
.np-match-photo .np-photo-fallback{position:absolute;inset:0}
.np-match-photo i{position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,12,23,.93),rgba(3,12,23,.34)),linear-gradient(0deg,rgba(3,12,23,.62),rgba(3,12,23,.04))}
.np-match-copy{position:absolute;inset:0;padding:10px 11px;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto 1fr;gap:0 6px;align-content:start;color:#fff;text-shadow:0 1px 5px rgba(0,0,0,.72)}
.np-match-copy strong{grid-column:1;font-size:10px;color:#fff}
.np-match-copy small{grid-column:1;margin-top:1px;font-size:7.5px;opacity:.9;color:#fff}
.np-match-copy em{grid-column:1;align-self:end;font-size:7.5px;font-style:normal;opacity:.86;color:#fff}
.np-match-copy b.np-match-count{
  grid-column:2;
  grid-row:1/4;
  justify-self:end;
  align-self:end;
  display:flex;
  align-items:center;
  gap:4px;
  max-width:100%;
  padding:4px 7px;
  border:1px solid rgba(255,255,255,.20);
  border-radius:999px;
  background:rgba(2,10,18,.78);
  box-shadow:0 2px 9px rgba(0,0,0,.22);
  backdrop-filter:blur(5px);
  color:#fff;
  font-size:7.5px;
  font-weight:600;
  line-height:1;
  white-space:nowrap;
  text-shadow:none;
}
.np-match-copy b.np-match-count .np-icon{width:11px;height:11px}
.np-match-empty{grid-column:1/-1;min-height:70px}
.np-empty{display:grid;place-items:center;min-height:80px;color:var(--np-muted);font-size:9px;text-align:center}

/* Attention + Events */
.np-balance-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px;align-items:stretch}
.np-flex-card{padding:15px 16px;min-height:190px;color:var(--np-text)}
.np-attention-list{margin-top:10px;display:grid;gap:7px}
.np-attention-row{min-height:36px;display:grid;grid-template-columns:32px 1fr 16px;align-items:center;gap:8px;padding:4px 2px;border:0;border-radius:8px;background:transparent;color:var(--np-text);text-align:left;cursor:pointer}
.np-attention-row:hover{background:var(--np-surface-2)}
.np-attention-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;background:var(--np-accent-soft);color:var(--np-accent-2)}
.np-attention-icon .np-icon{width:16px;height:16px}
.np-attention-icon.tone-1{background:color-mix(in srgb,var(--np-amber) 11%,transparent);color:var(--np-amber)}
.np-attention-icon.tone-2{background:color-mix(in srgb,var(--np-purple) 11%,transparent);color:var(--np-purple)}
.np-attention-icon.tone-3{background:color-mix(in srgb,var(--np-red) 11%,transparent);color:var(--np-red)}
.np-attention-row strong{display:block;font-size:8.7px;color:var(--np-text)}
.np-attention-row small{display:block;margin-top:1px;color:var(--np-muted);font-size:7.4px}
.np-attention-row>.np-icon{width:13px;height:13px;color:var(--np-faint)}
.np-clear-state,.np-event-empty{min-height:116px;margin-top:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--np-muted)}
.np-clear-state>.np-icon,.np-event-empty>.np-icon{width:26px;height:26px;margin-bottom:8px;color:var(--np-green)}
.np-clear-state strong,.np-event-empty strong{color:var(--np-text);font-size:10px}
.np-clear-state small,.np-event-empty span{margin-top:3px;font-size:8px;max-width:280px}
.np-event-list{margin-top:10px;display:grid;gap:7px}
.np-event-feature{width:100%;min-height:36px;margin:0;padding:4px 2px;display:grid;grid-template-columns:32px 1fr 16px;gap:8px;align-items:center;border:0;border-radius:8px;background:transparent;color:var(--np-text);text-align:left;cursor:pointer}
.np-event-feature:hover{background:var(--np-surface-2)}
.np-event-date{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;background:color-mix(in srgb,var(--np-purple) 11%,transparent);color:var(--np-purple)}
.np-event-date .np-icon{width:16px;height:16px}
.np-event-copy{min-width:0}
.np-event-copy em,.np-event-copy p{display:none}
.np-event-copy strong{display:block;font-size:8.7px;color:var(--np-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.np-event-copy small{display:block;margin-top:1px;color:var(--np-muted);font-size:7.4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.np-event-feature>.np-icon{width:13px;height:13px;color:var(--np-faint)}

/* Network + Quick Access */
.np-network-strip{margin-top:16px;padding:11px 14px;display:grid;grid-template-columns:minmax(210px,.75fr) 1.6fr;gap:14px;align-items:center;border:1px solid var(--np-line);border-radius:12px;background:var(--np-surface-2);color:var(--np-text)}
.np-network-strip>div:first-child strong{display:block;margin-top:2px;font-size:9px;color:var(--np-text)}
.np-network-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.np-network-item{min-width:0;height:42px;padding:0 8px;display:grid;grid-template-columns:24px 1fr 12px;align-items:center;gap:5px;border:1px solid var(--np-line);border-radius:8px;background:var(--np-surface);color:var(--np-text);text-align:left;cursor:pointer}
.np-network-item>span{color:var(--np-accent-2)}
.np-network-item .np-icon{width:14px;height:14px}
.np-network-item b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:7.5px;font-weight:500}
.np-network-item>.np-icon{color:var(--np-faint);width:10px}
.np-quick{margin-top:16px;padding:13px 15px 14px}
.np-quick-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;margin-top:8px}
.np-quick-grid button{min-height:64px;padding:8px 5px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid var(--np-line);border-radius:9px;background:var(--np-surface-2);color:var(--np-text);cursor:pointer}
.np-quick-grid button:hover{border-color:var(--np-line-strong);background:var(--np-accent-soft)}
.np-quick-grid button>span{color:var(--np-accent-2)}
.np-quick-grid .np-icon{width:19px;height:19px}
.np-quick-grid strong{margin-top:4px;font-size:7.6px;color:var(--np-text);text-align:center}
.np-quick-grid small{margin-top:1px;color:var(--np-muted);font-size:6.6px;text-align:center}

/* Weather modal */
.np-modal-backdrop{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:20px;background:rgba(3,10,18,.60);backdrop-filter:blur(8px)}
.np-weather-modal{width:min(430px,100%);overflow:hidden;border:1px solid var(--np-line);border-radius:18px;background:var(--np-surface);color:var(--np-text);box-shadow:0 28px 70px rgba(0,0,0,.28)}
.np-weather-modal header{display:flex;justify-content:space-between;padding:20px 21px;border-bottom:1px solid var(--np-line)}
.np-weather-modal header h2{margin:3px 0 0;font-size:20px;color:var(--np-text)}
.np-weather-modal header p{margin:3px 0 0;color:var(--np-muted);font-size:9px}
.np-weather-modal header button{width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:10px;background:var(--np-surface-2);cursor:pointer}
.np-modal-current{display:flex;align-items:center;gap:15px;padding:22px}
.np-modal-current>span{font-size:42px}
.np-modal-current strong{font-size:38px;color:var(--np-text)}
.np-modal-current p{margin:0;color:var(--np-muted);font-size:11px}
.np-modal-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--np-line);border-top:1px solid var(--np-line)}
.np-modal-metrics div{padding:15px 10px;background:var(--np-surface);text-align:center}
.np-modal-metrics small{display:block;color:var(--np-muted);font-size:7px}
.np-modal-metrics strong{display:block;margin-top:3px;font-size:10px;color:var(--np-text)}

/* Mobile drawer */
.np-mobile-drawer{width:min(360px,calc(100vw - 28px));max-height:calc(100vh - 40px);overflow:auto;border:1px solid var(--np-line);border-radius:18px;background:var(--np-surface);color:var(--np-text);box-shadow:0 26px 70px rgba(0,0,0,.28)}
.np-mobile-drawer header{display:flex;align-items:center;justify-content:space-between;padding:17px 18px;border-bottom:1px solid var(--np-line)}
.np-mobile-drawer header strong{font-size:16px}
.np-mobile-drawer header button{width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:9px;background:var(--np-surface-2);cursor:pointer}
.np-mobile-drawer nav{padding:8px}
.np-mobile-drawer nav button{width:100%;height:48px;padding:0 10px;display:grid;grid-template-columns:28px 1fr 16px;gap:8px;align-items:center;border:0;border-radius:10px;background:transparent;text-align:left;color:var(--np-muted);cursor:pointer}
.np-mobile-drawer nav button:hover{background:var(--np-surface-2);color:var(--np-text)}
.np-mobile-drawer nav button .np-icon{width:18px;height:18px}
.np-mobile-drawer nav button .np-icon:last-child{width:12px;height:12px}
.np-mobile-drawer nav button span{font-size:10px;font-weight:500}
.np-drawer-logout{width:calc(100% - 16px);height:42px;margin:2px 8px 10px;border:1px solid var(--np-line);border-radius:10px;background:transparent;color:var(--np-red);font-size:9px;font-weight:600;cursor:pointer}

.np-mobile-nav{display:none}

@media(min-width:861px){
  .np-sidebar{
    position:sticky;
    top:0;
    align-self:start;
    height:calc(100vh - 14px);
    max-height:calc(100vh - 14px);
    z-index:30;
  }
  .np-topbar{top:0}
}

@media(max-width:1120px){
  .np-root{grid-template-columns:80px minmax(0,1fr)}
  .np-main{padding:22px}
  .np-top-grid{grid-template-columns:1fr 1fr}
  .np-hero-card{grid-template-columns:1fr 40%}
  .np-network-strip{grid-template-columns:1fr}
  .np-quick-grid{grid-template-columns:repeat(4,1fr)}
  .np-sidebar nav button,.np-sidebar-logout{font-size:8.5px}
}

@media(max-width:860px){
  .np-root{width:100%;min-height:100vh;min-height:100dvh;margin:0;border:0;border-radius:0;grid-template-columns:1fr;box-shadow:none}
  .np-sidebar{display:none}
  .np-app{
    min-height:100vh;
    min-height:100dvh;
    padding-top:calc(64px + env(safe-area-inset-top));
    padding-bottom:calc(72px + env(safe-area-inset-bottom));
  }
  .np-topbar{
    position:fixed;
    z-index:70;
    top:0;
    right:0;
    left:0;
    height:calc(64px + env(safe-area-inset-top));
    padding:env(safe-area-inset-top) 12px 0;
  }
  .np-mobile-brand{display:flex;align-items:center;gap:10px}
  .np-mobile-brand>span{display:flex;align-items:center;gap:6px;color:var(--np-accent-2);font-size:13px;font-weight:600}
  .np-mobile-brand>span .np-icon{width:26px;height:26px}
  .np-mobile-brand>span img{display:block;width:26px;height:26px;flex:0 0 26px;object-fit:contain;border-radius:7px}
  .np-menu-button{width:42px;height:42px;display:grid;place-items:center;border:0;background:transparent}
  .np-search{min-width:0;max-width:none;margin-left:auto;flex:0 1 220px}
  .np-top-actions{gap:2px}
  .np-top-actions>button{display:grid;width:42px;height:42px}
  .np-top-actions .np-header-brand{width:42px;height:42px;padding:3px}
  .np-header-brand img{width:36px;height:36px}
  .np-action-badge{top:-2px;right:-2px}
  .np-main{width:100%;min-width:0;padding:18px 14px 28px}
  .np-top-grid{grid-template-columns:1fr}
  .np-hero-card,.np-voyage-card{min-height:235px}
  .np-balance-grid{grid-template-columns:1fr}
  .np-network-items{grid-template-columns:1fr}
  .np-mobile-nav{position:fixed;z-index:60;right:0;bottom:0;left:0;height:calc(72px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:0 4px env(safe-area-inset-bottom);background:color-mix(in srgb,var(--np-surface) 96%,transparent);border-top:1px solid var(--np-line);backdrop-filter:blur(14px)}
  .np-mobile-nav button{min-width:0;min-height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:0;background:transparent;color:var(--np-muted);font-size:10px;line-height:1.15;font-weight:500}
  .np-mobile-nav button.active{color:var(--np-accent-2)}
  .np-mobile-nav .np-icon{width:22px;height:22px}
}

@media(max-width:760px){
  html[data-clean-premium="1"]{
    --np-action-height:40px;
    --np-action-font:11px;
    --np-action-font-small:10px;
    --np-action-icon:16px;
    --np-action-radius:10px;
    --np-compact-action-height:34px;
    --np-compact-action-font:10px;
    --np-compact-action-icon:14px;
    --np-control-height:44px;
    --np-control-font:14px;
    --np-feature-control-height:48px;
    --np-feature-control-font:14px;
    --np-control-label-font:12px;
    --np-control-helper-font:11px;
    --np-control-radius:10px;
  }
}

@media(max-width:620px){
  .np-search{display:none}
  .np-top-actions{margin-left:auto}
  .np-welcome{margin-bottom:14px}
  .np-welcome h1{font-size:21px}
  .np-welcome h1 span{font-size:19px}
  .np-welcome p{font-size:12px;line-height:1.45}
  .np-card-head h2,.np-section-head h2{font-size:16px}
  .np-section-head p{font-size:11px;line-height:1.4}
  .np-eyebrow{font-size:10px}
  .np-pill{min-height:28px;font-size:10px}
  .np-hero-card{grid-template-columns:1fr;grid-template-rows:170px auto}
  .np-hero-place span{font-size:10px}
  .np-hero-place h2{font-size:22px}
  .np-hero-place p{font-size:12px}
  .np-weather-reading span,.np-weather-loading span{font-size:11px}
  .np-weather-cta{font-size:10px}
  .np-voyage-sub{font-size:11px;line-height:1.4}
  .np-progress p{font-size:10px}
  .np-voyage-stats span{font-size:10px}
  .np-voyage-stats strong{font-size:18px}
  .np-next-port small{font-size:10px}
  .np-next-port strong,.np-next-port b{font-size:12px}
  .np-link{font-size:10px}
  .np-hero-card,.np-voyage-card{min-height:260px}
  .np-weather-panel{border-left:0;border-top:1px solid rgba(255,255,255,.08);padding:12px 16px;display:grid;grid-template-columns:1fr auto;gap:8px}
  .np-weather-stats{display:none}
  .np-weather-cta{margin:0;padding:0;border:0;align-self:center;gap:5px}
  .np-match-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:2px}
  .np-match-card{height:104px;min-width:82%;scroll-snap-align:start}
  .np-match-copy strong{font-size:12px}
  .np-match-copy small,.np-match-copy em{font-size:10px}
  .np-match-copy b.np-match-count{font-size:10px;padding:5px 7px}
  .np-attention-row,.np-event-feature{min-height:48px}
  .np-attention-row strong,.np-event-copy strong{font-size:11px}
  .np-attention-row small,.np-event-copy small{font-size:10px}
  .np-network-item{height:52px}
  .np-network-item b{font-size:11px}
  .np-network-strip>div:first-child strong{font-size:11px}
  .np-quick-grid{grid-template-columns:repeat(2,1fr)}
  .np-quick-grid button{min-height:84px}
  .np-quick-grid strong{font-size:11px}
  .np-quick-grid small{font-size:10px}
  .np-network-strip{display:block}
  .np-network-items{margin-top:8px}
  .np-modal-metrics{grid-template-columns:repeat(2,1fr)}
}