/*
 * Forge canonical identity patch
 * Add after the existing Forge site.css. It changes brand presentation only;
 * operational data attributes, forms, dialogs and runtime behavior are untouched.
 */
:root{
  --forge-brand-accent:#6b4e70;
  --forge-brand-ink:#111312;
  --forge-brand-paper:#ffffff;
  --forge-brand-line:rgba(17,19,18,.16);
}

/* One canonical lockup geometry across landing, workspace, footer and 404. */
.brand img[src*="/forge/logo"],
.workspace-logo img[src*="/forge/logo"],
.not-found-logo[src*="/forge/logo"]{
  display:block;
  width:auto;
  object-fit:contain;
  object-position:left center;
  flex:none;
}
.site-header .brand img[src*="/forge/logo"]{height:38px;max-width:174px}
.site-footer .brand img[src*="/forge/logo"]{height:34px;max-width:156px}
.workspace-logo img[src*="/forge/logo"]{height:30px;max-width:148px}
.not-found-logo[src*="/forge/logo"]{width:min(220px,72vw);height:auto;margin:0 auto 26px}

/* Canonical product marks replace FO / PI / AP pseudo-logos. */
.handoff-track article > .handoff-product-mark{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  min-width:44px;
  padding:8px;
  border:1px solid var(--forge-brand-line);
  border-radius:10px;
  background:rgba(255,255,255,.8);
  font-size:0;
  line-height:0;
  overflow:hidden;
}
.handoff-track article > .handoff-product-mark img,
.handoff-track article > .handoff-product-mark svg{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.handoff-track article.active > .handoff-product-mark{
  border-color:rgba(107,78,112,.42);
  background:rgba(107,78,112,.08);
}
.handoff-track article.future > .handoff-product-mark{opacity:.72}
.handoff-track article > .handoff-product-mark.neutral-mark{
  color:currentColor;
  background:transparent;
}

/* Workspace top bar: use canonical white variants on the dark surface. */
.workspace-tool .tool-icon.product-mark{
  position:relative;
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  min-width:32px;
  padding:5px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:8px;
  background:rgba(255,255,255,.055);
  font-size:0;
  line-height:0;
  overflow:visible;
}
.workspace-tool .tool-icon.product-mark img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.workspace-tool.blocked-control .tool-icon.product-mark::after{
  content:"";
  position:absolute;
  top:-3px;
  right:-3px;
  width:8px;
  height:8px;
  border:2px solid #111318;
  border-radius:50%;
  background:#d7a146;
}

/* Forge speaks with its actual mark in the creation thread. */
.forge-avatar{
  display:grid!important;
  place-items:center!important;
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  padding:6px!important;
  overflow:hidden!important;
  font-size:0!important;
  line-height:0!important;
}
.forge-avatar img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}

/* Eventium identity uses the canonical Eventium mark, not an unrelated symbol. */
.auth-mark img{
  display:block;
  width:44px;
  height:44px;
  object-fit:contain;
  margin:0 auto;
}

/* Keep brand assets crisp and predictable under inherited global rules. */
.brand img,
.workspace-logo img,
.forge-avatar img,
.tool-icon.product-mark img,
.auth-mark img,
.handoff-product-mark img{
  filter:none!important;
  transform:none!important;
}

@media (max-width:760px){
  .site-header .brand img[src*="/forge/logo"]{height:34px;max-width:154px}
  .workspace-logo img[src*="/forge/logo"]{height:27px;max-width:132px}
  .handoff-track article > .handoff-product-mark{width:40px;height:40px;min-width:40px;padding:7px}
  .workspace-tool .tool-icon.product-mark{width:30px;height:30px;min-width:30px}
}

@media (prefers-reduced-motion:reduce){
  .brand img,.workspace-logo img,.forge-avatar img,.handoff-product-mark,.tool-icon.product-mark{transition:none!important}
}
