/* Shared navigation: balanced desktop gaps, a compact fallback, and
   a centered second row only when the real content no longer fits. */
@media(min-width:701px){
 .topbar.crilo-header-inline{
  display:flex!important;flex-wrap:nowrap!important;align-items:center!important;
  column-gap:clamp(12px,1.3vw,22px)!important;
  padding:7px clamp(14px,1.6vw,24px)!important;
  min-height:68px;
 }
 .topbar.crilo-header-inline .brand{flex:0 0 auto;white-space:nowrap}
 .topbar.crilo-header-inline nav{
  display:flex;flex:0 0 auto;min-width:0;width:auto!important;
  max-width:none;order:0!important;white-space:nowrap;align-items:center;
  gap:clamp(16px,1.55vw,26px)!important;
  justify-content:center;flex-wrap:nowrap!important;
 }
 .topbar.crilo-header-inline nav a{
  font-size:clamp(12px,1vw,13px);letter-spacing:.02em;white-space:nowrap;
 }
 .topbar.crilo-header-inline nav a.crilo-owner-review-link{
  padding:9px clamp(10px,1.1vw,15px);
  font-size:clamp(11px,.95vw,13px);
 }
 .topbar.crilo-header-inline .header-actions{
  order:0;display:flex;align-items:center;flex:0 0 auto;margin-left:auto;
  gap:clamp(5px,.6vw,8px)!important;
 }
 /* Use tighter gaps before pushing any tabs onto a second row. */
 .topbar.crilo-header-inline.crilo-header-compact{
  column-gap:clamp(9px,.85vw,13px)!important;
 }
 .topbar.crilo-header-inline.crilo-header-compact nav{
  gap:clamp(9px,.85vw,14px)!important;
 }
 .topbar.crilo-header-inline.crilo-header-compact nav a{
  font-size:clamp(11px,.92vw,13px);
 }
 .topbar.crilo-header-inline.crilo-header-compact nav a.crilo-owner-review-link{
  padding:9px clamp(7px,.8vw,11px);
  font-size:clamp(10px,.84vw,12px);
 }
 .topbar.crilo-header-inline.crilo-header-compact .header-actions{
  gap:clamp(4px,.45vw,7px)!important;
 }
 .topbar.crilo-header-stacked{
  flex-wrap:wrap!important;gap:9px 15px!important;
  padding:10px 18px!important;
 }
 .topbar.crilo-header-stacked nav{
  order:3!important;width:100%!important;flex:1 0 100%;
  justify-content:space-evenly!important;flex-wrap:wrap!important;
  align-items:center;column-gap:clamp(12px,2vw,30px)!important;
  row-gap:12px!important;
  padding-inline:clamp(2px,.8vw,12px);box-sizing:border-box;
 }
 .topbar.crilo-header-stacked .header-actions{margin-left:auto}
}
.topbar nav a{white-space:nowrap}
@media(max-width:700px){
 .topbar nav{
  display:flex;width:100%;justify-content:space-evenly;
  flex-wrap:wrap;align-items:center;
  column-gap:clamp(9px,2.2vw,18px);row-gap:10px;
  padding-inline:2px;box-sizing:border-box;
 }
}

/* Visible only after app.js confirms the current account is the owner. */
.topbar nav a.crilo-owner-test-link{
 display:inline-flex;align-items:center;justify-content:center;
 border:1px solid #a6cfbf;border-radius:999px;
 padding:8px 12px;background:#eaf5ef;color:#23584a;
 font-size:11px;font-weight:900;letter-spacing:.035em;
}
.topbar nav a.crilo-owner-test-link:hover,
.topbar nav a.crilo-owner-test-link.active{
 background:#2a6656;color:#fff;border-color:#2a6656;
}
/* Previewed from the prior page for layout stability, but never clickable
   before the new page confirms the owner identity with Supabase. */
.topbar nav a.crilo-owner-test-link.crilo-owner-pending{
 pointer-events:none;
 cursor:default;
}
.topbar nav a.crilo-owner-test-link:focus-visible{
 outline:3px solid #b99456;outline-offset:3px;
}
html[data-theme="dark"] .topbar nav a.crilo-owner-test-link{
 background:#25463e;color:#c5e9d9;border-color:#527d6d;
}
html[data-theme="dark"] .topbar nav a.crilo-owner-test-link:hover,
html[data-theme="dark"] .topbar nav a.crilo-owner-test-link.active{
 background:#a3d9c2;color:#132620;border-color:#a3d9c2;
}
@media(max-width:700px){
 .topbar nav a.crilo-owner-test-link{padding:7px 10px;font-size:10px}
}
