:root {
  --lh-primary: #0e7490;
  --lh-primary-dark: #155e75;
  --lh-bg: #f4f7f9;
  --lh-card-border: #e2e8f0;
  --bs-primary: #0e7490;
  --bs-primary-rgb: 14, 116, 144;
  --bs-link-color: #0e7490;
  --bs-link-color-rgb: 14, 116, 144;
  --bs-link-hover-color: #155e75;
}
body { background: var(--lh-bg); color: #1e293b; min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.btn:hover, .nav-link:hover, .dropdown-item:hover { text-decoration: none; }
.btn-primary { --bs-btn-bg: var(--lh-primary); --bs-btn-border-color: var(--lh-primary);
  --bs-btn-hover-bg: var(--lh-primary-dark); --bs-btn-hover-border-color: var(--lh-primary-dark);
  --bs-btn-active-bg: var(--lh-primary-dark); --bs-btn-disabled-bg: var(--lh-primary); --bs-btn-disabled-border-color: var(--lh-primary); }
.btn-outline-primary { --bs-btn-color: var(--lh-primary); --bs-btn-border-color: var(--lh-primary);
  --bs-btn-hover-bg: var(--lh-primary); --bs-btn-hover-border-color: var(--lh-primary); --bs-btn-active-bg: var(--lh-primary-dark); }
.text-bg-primary { background-color: var(--lh-primary) !important; }

.lh-navbar { background: linear-gradient(90deg, #164e63, #0e7490); }
.lh-navbar .navbar-brand, .lh-navbar .nav-link { color: rgba(255,255,255,.85); }
.lh-navbar .navbar-brand { color: #fff; font-weight: 700; }
.lh-navbar .nav-link:hover, .lh-navbar .nav-link.active { color: #fff; }
.lh-navbar .nav-link.active { font-weight: 600; }
.lh-navbar .navbar-toggler { border-color: rgba(255,255,255,.4); }
.lh-navbar .navbar-toggler-icon { filter: invert(1); }
.lh-logo { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: #fff; color: var(--lh-primary); font-size: 1.2rem; }

.card { border-color: var(--lh-card-border); border-radius: 14px; }
.card-header { background: #fff; border-bottom-color: var(--lh-card-border); font-weight: 600;
  border-top-left-radius: 14px !important; border-top-right-radius: 14px !important; }
.lh-stat { border-radius: 14px; background: #fff; border: 1px solid var(--lh-card-border); padding: 1rem 1.1rem; height: 100%; }
.lh-stat .num { font-size: 1.75rem; font-weight: 700; line-height: 1.1; }
.lh-stat .lbl { color: #64748b; font-size: .85rem; }
.lh-muted { color: #64748b; }

/* The make-a-link box at the top of "My links". */
.lh-create { background: radial-gradient(900px 300px at 0% -20%, #cffafe 0, transparent 60%), #fff;
  border: 1px solid var(--lh-card-border); border-radius: 18px; }

.lh-short { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; color: var(--lh-primary); word-break: break-all; }
.lh-target { color: #64748b; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; display: block; }
.lh-link-row td { vertical-align: middle; }
.lh-link-row .lh-target { max-width: 420px; }
.lh-copy.copied { --bs-btn-color: #15803d; --bs-btn-border-color: #15803d; }

/* Clicks per day: plain bars, no chart library. */
.lh-bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding-top: 6px; }
.lh-bars .bar { flex: 1 1 0; background: #a5f3fc; border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.lh-bars .bar.has { background: var(--lh-primary); }
.lh-bars .bar:hover { background: var(--lh-primary-dark); }
.lh-bars-axis { display: flex; justify-content: space-between; font-size: .75rem; color: #64748b; margin-top: 4px; }
.lh-share { display: flex; align-items: center; gap: .5rem; }
.lh-share .track { flex: 1; height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
.lh-share .fill { height: 100%; background: var(--lh-primary); }

.lh-qr { width: 180px; height: 180px; image-rendering: pixelated; border: 1px solid var(--lh-card-border); border-radius: 10px; background: #fff; }

/* Pages without the menu: sign-in, invitations, and what visitors of a short link see. */
.lh-bare { display: grid; place-items: center; padding: 2.5rem 1rem; }
.lh-panel { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--lh-card-border); border-radius: 18px;
  padding: 2rem; box-shadow: 0 10px 30px rgba(15,23,42,.06); }
.lh-panel.wide { max-width: 620px; }
.lh-panel .brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.15rem; margin-bottom: 1.25rem; color: #0f172a; }
.lh-panel .brand .lh-logo { background: var(--lh-primary); color: #fff; }
.lh-dest { background: #f8fafc; border: 1px solid var(--lh-card-border); border-radius: 10px; padding: .75rem 1rem; word-break: break-all; }
.lh-dest .host { font-weight: 700; color: #0f172a; }

.lh-footer { border-top: 1px solid var(--lh-card-border); background: #fff; }
.lh-powered-by { display: flex; align-items: center; gap: .5rem; }
.lh-powered-by span { font-size: .75rem; color: #94a3b8; }
.lh-powered-by img { display: block; height: auto; }
