.public-title-row{grid-area:title;display:flex;align-items:center;gap:10px;min-width:0}
.public-title-row h1{flex:0 1 auto}
#public-new-chat{display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:none;box-sizing:border-box;height:26px;min-height:26px;padding:0 8px;border:1px solid #d6e8f9;border-radius:6px;background:#eaf4ff;color:#3976ad;font:inherit;font-size:12px;font-weight:600;line-height:1;white-space:nowrap;cursor:pointer;touch-action:manipulation;transition:background .18s,border-color .18s,color .18s}
#public-new-chat svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#public-new-chat.hidden{display:none}
#public-new-chat:hover:not(:disabled){background:#dcecff;border-color:#bed9f1;color:#28679f}
#public-new-chat:focus-visible{outline:2px solid #0759c5;outline-offset:3px}
#public-new-chat:disabled{opacity:.5;cursor:default}
.public-welcome strong,.public-message strong,.answer-text strong{font-weight:650}
@media(max-width:600px){.public-title-row{gap:6px}#public-new-chat{height:24px;min-height:24px;padding:0 7px;font-size:11px}#public-new-chat svg{width:13px;height:13px}}

.chat-session-boundary{margin:24px 0;padding:12px 16px;border-top:1px solid #d6e8f9;border-bottom:1px solid #d6e8f9;color:#64717c;font-size:12px;line-height:1.6;text-align:center}

/* 紧凑表头：标题/品牌第一行，角色说明/人工入口第二行。 */
.public-header{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"title brand" "role support";
  align-items:center;
  column-gap:18px;
  row-gap:8px;
  padding-top:12px;
  padding-bottom:12px;
}
.public-header .public-title-row{grid-area:title;min-width:0}
.public-header #bot-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.public-header .public-brand{grid-area:brand;justify-self:end;line-height:0}
.public-header .public-brand img{display:block;width:104px;height:38px;object-fit:contain}
.public-header #bot-role{
  grid-area:role;
  min-width:0;
  margin:0;
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.public-header #request-support{grid-area:support;justify-self:end;gap:5px;white-space:nowrap}
.public-header #public-new-chat,.public-header #request-support{height:36px!important;min-height:36px!important}
.public-header #public-new-chat.hidden,.public-header #request-support.hidden{display:none!important}
@media(max-width:600px){
  .public-header{column-gap:10px;row-gap:6px;padding-top:10px;padding-bottom:10px}
  .public-header #bot-title{font-size:18px!important}
  .public-header .public-brand img{width:85px;height:32px}
  .public-header #public-new-chat{
    width:44px!important;
    height:44px!important;
    min-height:44px!important;
    padding:0!important;
    justify-content:center;
  }
  .public-header #public-new-chat span{display:none}
  .public-header #request-support{height:44px!important;min-height:44px!important;padding:0 8px!important}
}
