/* Build 03 brand header: Principal and GO stay on one baseline, with a compact arrow under GO. */
.topbar .brand{
  position:relative;
  display:inline-flex;
  align-items:baseline;
  min-height:44px;
  padding:3px 0;
  line-height:1;
  font-weight:700;
  white-space:nowrap;
  overflow:visible;
}

.topbar .brand span{
  font-weight:700;
}

.topbar .brand strong{
  position:relative;
  display:inline-block;
  color:var(--green);
  font-weight:800;
  font-style:italic;
  line-height:1;
}

.pg-trademark{
  position:relative;
  top:-.58em;
  margin-left:2px;
  color:currentColor;
  font-size:.42em;
  font-style:normal;
  font-weight:700;
  line-height:1;
  letter-spacing:0;
}

.topbar .brand::after{display:none!important}
.topbar .brand strong::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-7px;
  width:1.7em;
  height:.42em;
  transform:translateX(-50%);
  pointer-events:none;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 8' fill='none'%3E%3Cpath d='M1 4h26' stroke='%2321c76a' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='m23 1.3 4 2.7-4 2.7' stroke='%2321c76a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Reusable in-app product mark for Settings and product-owned dialogs. */
.pg-product-mark{
  display:inline-flex;
  align-items:baseline;
  gap:0;
  margin:0 0 10px;
  color:#0B2A4A;
  font-size:17px;
  font-weight:700;
  line-height:1;
  letter-spacing:-.45px;
  white-space:nowrap;
}
.pg-product-mark span{font-weight:700}
.pg-product-mark strong{
  position:relative;
  display:inline-block;
  color:#21c76a;
  font-style:italic;
  font-weight:800;
  line-height:1;
}
.pg-product-mark strong::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-6px;
  width:1.7em;
  height:.42em;
  transform:translateX(-50%);
  pointer-events:none;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 8' fill='none'%3E%3Cpath d='M1 4h26' stroke='%2321c76a' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='m23 1.3 4 2.7-4 2.7' stroke='%2321c76a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Only GO marks that carry the arrow treatment are italicized. */
.go-motion{
  font-style:normal;
  font-weight:inherit;
}

/* The tagline is the single muted line beneath the personalized greeting. */
.hero-brand-line{
  display:block!important;
  margin:8px 0 0;
  color:#536174;
  font-size:15px;
  line-height:1.4;
  font-weight:700;
}
.hero-explainer{display:none!important}

.topbar .tagline{display:none!important}

.topbar .top-actions{
  margin-left:auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  min-width:0;
}

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

.topbar #googleButton{
  background:transparent;
  color:#fff;
  border:1px solid rgba(255,255,255,.34);
}

.topbar #googleButton:hover{
  background:rgba(255,255,255,.08);
}

.topbar #googleButton.account-connected{
  background:rgba(255,255,255,.08);
  color:#fff;
  border-color:rgba(255,255,255,.34);
}

.topbar #googleButton.account-connected .email-control-label{
  font-size:0;
}

.topbar #googleButton.account-connected .email-control-label::after{
  content:"Email";
  font-size:.81rem;
}

.topbar #newCaptureTop{
  min-width:104px;
  background:var(--green);
  color:#052814;
}

.topbar .sync-state{
  display:none!important;
}

.topbar .sync-state.sync-error{
  display:inline-flex!important;
}

.topbar .account-button{
  width:auto;
  min-width:78px;
  max-width:none;
  height:40px;
  min-height:40px;
  padding:0 12px;
  border-radius:999px;
  flex:0 0 auto;
  overflow:visible;
  font-size:.78rem;
  background:rgba(255,255,255,.06);
  color:#fff;
  border:1px solid rgba(255,255,255,.34);
}

.topbar .account-button::before{
  display:none;
}

.topbar .account-button:hover{
  background:rgba(255,255,255,.12);
}

.email-control-icon{
  width:17px;
  height:17px;
  display:block;
  flex:0 0 auto;
}

.email-control-label{display:inline;}

@media(max-width:600px){
  .topbar{
    height:68px;
    min-height:68px;
    padding:0 12px;
    gap:10px;
    flex-wrap:nowrap;
  }

  .topbar .brand{
    flex:0 0 auto;
    font-size:20px;
    letter-spacing:-.8px;
    white-space:nowrap;
  }

  .hero-brand-line{font-size:14px}
  .pg-product-mark{font-size:16px;margin-bottom:9px}

  .topbar .top-actions{
    display:flex;
    flex-wrap:nowrap;
    align-items:center;
    justify-content:flex-end;
    gap:6px;
    min-width:0;
    margin-left:auto;
  }

  .topbar .top-actions .btn{
    width:44px;
    min-width:44px;
    height:44px;
    min-height:44px;
    padding:0;
    border-radius:12px;
    flex:0 0 44px;
  }

  .topbar #googleButton{
    width:44px;
    min-width:44px;
    max-width:44px;
  }

  .topbar #googleButton .email-control-label,
  .topbar #newCaptureTop .quick-capture-label{
    display:none!important;
  }

  .topbar #newCaptureTop{
    width:44px;
    min-width:44px;
    max-width:44px;
  }

  .topbar .account-menu-wrap{
    flex:0 0 auto;
  }

  .topbar .account-button{
    width:44px;
    min-width:44px;
    max-width:44px;
    height:44px;
    min-height:44px;
    padding:0;
    border-radius:50%;
    flex:0 0 44px;
    overflow:hidden;
    font-size:0;
  }

  .topbar .account-button::before{
    content:"";
    width:19px;
    height:19px;
    display:block;
    background-repeat:no-repeat;
    background-position:center;
    background-size:contain;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='8.2' r='3.4' stroke='%23ffffff' stroke-width='1.8'/%3E%3Cpath d='M5.7 19c.75-3.2 3.1-5 6.3-5s5.55 1.8 6.3 5' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  }

  .account-menu{
    top:calc(100% + 8px);
  }
}

@media(max-width:360px){
  .topbar{
    padding:0 10px;
    gap:7px;
  }

  .topbar .brand{
    font-size:18px;
    letter-spacing:-.7px;
  }

  .topbar .top-actions{gap:4px;}
}
