/*
 * Standardized app header, shared by the dashboard and every other signed-in
 * page. Uniquely .lp-prefixed so it composes with both dashboard.css and
 * app.css without collisions. Relies only on the shared design tokens (:root),
 * which both stylesheets define identically.
 *
 * Layout: [glyph + LinProfi] [nav links] .......... [actions]
 * Sits as the first child of the page's centered column (.app / .shell), so it
 * aligns with content exactly like the extension dashboard's topbar.
 */
.lp-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(28px, 5vw, 52px);
}
.lp-brandnav { display: flex; align-items: center; gap: 24px; min-width: 0; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.lp-glyph { width: 26px; height: 26px; color: var(--ink); display: inline-flex; flex: none; }
.lp-glyph svg { width: 26px; height: 26px; display: block; }
.lp-word { font-family: var(--display); font-size: 25px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }

.lp-nav { display: inline-flex; align-items: center; gap: 20px; }
.lp-nav a {
  font-size: 14.5px; font-weight: 600; color: var(--muted); text-decoration: none;
  padding: 4px 0; border-bottom: 2px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.lp-nav a:hover { color: var(--ink); }
.lp-nav a.active { color: var(--ink); border-bottom-color: var(--accent); }

.lp-actions { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; flex: none; }
.lp-email { font-size: 13px; color: var(--muted); }

.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 8px 16px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  font: 600 14px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.06s ease;
}
.lp-btn:hover { background: var(--raise); border-color: var(--ink); }
.lp-btn:active { transform: translateY(1px); }
.lp-btn-primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.lp-btn-primary:hover { background: var(--ink-2); }
.lp-btn-accent { background: var(--accent); border-color: var(--accent-deep); color: var(--accent-ink); }
.lp-btn-accent:hover { background: var(--accent-deep); }

.lp-link {
  background: none; border: 0; padding: 4px 2px; cursor: pointer;
  font: 600 14px/1 var(--font); color: var(--muted); text-decoration: none;
}
.lp-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Export dropdown (dashboard only) */
.lp-menu { position: relative; }
.lp-menu-list {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 210px; padding: 5px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow); z-index: 60; display: grid; gap: 1px;
}
.lp-menu-list[hidden] { display: none; }
.lp-menu-list button,
.lp-menu-list a {
  display: block; text-align: left; padding: 9px 11px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink); font: 500 13.5px/1.2 var(--font);
  cursor: pointer; width: 100%; text-decoration: none;
}
.lp-menu-list button:hover,
.lp-menu-list a:hover { background: var(--accent-soft); }

/* Account dropdown */
.lp-acct-email {
  padding: 8px 11px; margin-bottom: 4px;
  font-size: 12px; color: var(--muted);
  border-bottom: 1px solid var(--line);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lp-acct-active { color: var(--accent-deep); font-weight: 700; }
.lp-caret { transition: transform 0.18s var(--ease); }
[aria-expanded="true"] .lp-caret { transform: rotate(180deg); }

@media (max-width: 760px) {
  .lp-head { flex-wrap: wrap; gap: 12px; }
  .lp-brandnav { gap: 16px; }
  .lp-nav { gap: 14px; }
  .lp-actions { gap: 8px; width: 100%; }
}
