[hidden] { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 14% -10%, var(--page-glow-a), transparent 36rem),
    radial-gradient(circle at 92% 12%, var(--page-glow-b), transparent 32rem),
    var(--bg);
}

button,
input,
select { font: inherit; }

button { color: inherit; }

button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(25, 186, 242, 0.45);
  outline-offset: 2px;
}

.app-shell { min-height: 100vh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: var(--surface-glass);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 23px;
  letter-spacing: -0.04em;
}

.brand strong { color: var(--cyan); }

.brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid rgba(25, 186, 242, 0.55);
  border-radius: 15px 20px 15px 20px;
  color: var(--cyan-soft);
  background: linear-gradient(145deg, var(--surface-3), var(--surface));
  box-shadow: 0 0 22px rgba(25, 186, 242, 0.16);
  transform: rotate(-8deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
}

.top-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-left: auto;
}

.account-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.account-name {
  max-width: 150px;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-status { max-width: 190px; color: var(--muted); font-size: 11px; }
.google-account-button { min-height: 32px; }
.development-account-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.development-account-button {
  min-height: 36px;
  border-color: color-mix(in srgb, var(--cyan) 64%, var(--line));
  color: var(--text);
  background: var(--surface-2);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}
.development-account-button:hover { border-color: var(--cyan); }
.development-account-button:disabled { opacity: .58; cursor: wait; }
.account-disconnect { min-height: 36px; }

.account-menu { position: relative; }
.account-menu summary { list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu-trigger { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.account-menu[open] .account-menu-trigger { border-color: var(--cyan); background: var(--surface-2); }
.account-avatar {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--cyan) 70%, transparent);
  border-radius: 50%;
  color: #00131e;
  background: var(--cyan-soft);
  font-size: 12px;
  font-weight: 900;
}
.account-menu-chevron { color: var(--muted); transition: transform .16s ease; }
.account-menu[open] .account-menu-chevron { transform: rotate(180deg); }
.account-menu-panel {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 40;
  display: grid;
  width: min(360px, calc(100vw - 24px));
  gap: 11px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface-2);
  box-shadow: 0 22px 60px rgba(0, 10, 18, .35);
}
.account-menu-title { font-size: 16px; }
.account-menu-copy,
.account-danger-zone p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.account-menu-panel .account-disconnect { justify-self: start; }
.account-danger-zone {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, #ff6680 38%, transparent);
}
.account-delete {
  min-height: 40px;
  justify-self: start;
  padding: 0 13px;
  border: 1px solid #ff6680;
  border-radius: 10px;
  color: #ff8aa0;
  background: color-mix(in srgb, #ff6680 8%, var(--surface));
  cursor: pointer;
  font-weight: 800;
}
.account-delete:hover { background: color-mix(in srgb, #ff6680 16%, var(--surface)); }
.account-delete:disabled { opacity: .55; cursor: wait; }
.account-menu-panel .account-status { max-width: none; margin: 0; line-height: 1.45; }

.language-control select {
  min-height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  font-weight: 750;
}

.language-control select:hover { border-color: var(--cyan); }

.shell-button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
}

.shell-button:hover { border-color: var(--cyan); }

.eyebrow {
  margin: 0 0 7px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; gap: 10px 18px; }
  .site-nav { order: 3; width: 100%; overflow-x: auto; }
  .site-nav a { white-space: nowrap; }
}

@media (max-width: 560px) {
  .top-actions { width: 100%; margin-left: 0; }
  .language-control { margin-right: auto; }
  .theme-toggle { font-size: 0; }
  .theme-toggle::after { content: "◐"; font-size: 18px; }
}

.site-photo-footer { padding:18px 24px 24px; text-align:center; font-size:11px; color:var(--muted); }
.site-photo-footer a { color:inherit; text-underline-offset:3px; }

/* Météo and outings use the inventory page frame. */
.site-content { width:min(1880px,calc(100% - 28px)); min-width:0; margin:0 auto; padding:14px 0 72px; }
body:is([data-page="meteo"],[data-page="sorties"]) .topbar { background:var(--surface); backdrop-filter:none; }

/* Same fish sprite and yellow release marker as the mobile home header. */
.brand{gap:19px}
.brand .brand-mark{position:relative;display:block;flex:0 0 52px;width:52px;height:43px;border:0;border-radius:0;transform:none;box-shadow:none;font-size:0;color:transparent;background: url('../assets/brand/logo-home-app.png') left center / auto 100% no-repeat}
.brand .brand-mark::after{content:'';position:absolute;width:9px;height:9px;top:12px;right:-10px;border:1px solid #031A26;border-radius:50%;background:#FFD23F;box-sizing:border-box}
@media(max-width:600px){.brand{gap:17px}.brand .brand-mark{flex-basis:44px;width:44px;height:36px}.brand .brand-mark::after{width:8px;height:8px;top:10px;right:-9px}}
