/* Assistant-only overrides, loaded after the shared skins. */
html body.harbor132.standalone-ai .assistant-main{
  box-sizing:border-box;width:100%;max-width:1360px!important;margin:0 auto;
  padding:28px 32px 40px!important;overflow-y:auto!important;
}
html body.harbor132.standalone-ai .workspace-title{font-size:26px!important;margin:0 0 22px!important;padding:0!important}
/* The graphite :is() list inherits ID specificity even for a class match. */
html body.harbor132.standalone-ai :is(#panel-free,#panel-trial) .consult-sheet{background:#fff!important}
html body.harbor132.standalone-ai .assistant-main #tree-token{height:46px!important}
html body.harbor132.standalone-ai .dual-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;align-items:stretch}
html body.harbor132.standalone-ai .dual-panels>.ai-panel{
  display:flex!important;flex-direction:column;min-width:0;gap:16px;
  padding:22px!important;margin:0!important;border:1px solid #b6cbe3!important;
  border-radius:16px!important;background:#fff!important;box-sizing:border-box;
}
html body.harbor132.standalone-ai .panel-title{margin:0!important;font-size:19px;line-height:1.5;color:#123a6b!important}
html body.harbor132.standalone-ai .dual-panels .consult-sheet{
  display:flex!important;flex-direction:column;gap:12px;flex:1 1 auto!important;
  min-width:0;padding:0!important;margin:0!important;border:0!important;
  border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
/* Shared skins force flex on panels and cards: hidden must win for both. */
html body.harbor132.standalone-ai .assistant-main [hidden]{display:none!important}
html body.harbor132.standalone-ai .assistant-main :is(p,label,span,strong,small,h2,h3){background:transparent!important;box-shadow:none!important;text-shadow:none!important}
html body.harbor132.standalone-ai .assistant-main :is(.consult-sheet>p,[role="status"],#session-status,#consult-status,#tree-session-status,#tree-consult-status){background:transparent!important;color:#526b89!important;font-size:13px!important;line-height:1.65;margin:0!important}
html body.harbor132.standalone-ai .assistant-main :is(#consult-form,#tree-consult-form,#tree-session-form){background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;padding:0!important;margin:0}
html body.harbor132.standalone-ai .assistant-main :is(#question,#tree-question,#tree-token){
  box-sizing:border-box;width:100%;min-width:0;border:1px solid #b6cbe3!important;
  border-radius:10px!important;background:#f3f7fc!important;color:#123a6b!important;
  box-shadow:inset 0 1px 2px #123a6b08!important;text-shadow:none!important;
  font-family:inherit;font-size:16px!important;line-height:1.65;padding:12px!important;
}
html body.harbor132.standalone-ai .assistant-main :is(#question,#tree-question){min-height:112px!important;height:112px!important;max-height:260px;resize:vertical;margin-top:8px}
html body.harbor132.standalone-ai .assistant-main #tree-token{min-height:46px;margin:0}
html body.harbor132.standalone-ai .assistant-main :is(input,textarea)::placeholder{color:#657b94!important}
html body.harbor132.standalone-ai .assistant-main :is(button,input,textarea):focus-visible{outline:2px solid #245fc6!important;outline-offset:3px}
/* ui7: full-width controls meet the sheet's clipping edge; draw the ring inside. */
html body.harbor132.standalone-ai .assistant-main :is(#question,#tree-question,#tree-token):focus-visible{outline-offset:-3px}
html body.harbor132.standalone-ai .assistant-main label{font-size:15px;color:#123a6b!important}
html body.harbor132.standalone-ai .composer-actions{margin-top:12px;gap:12px}
html body.harbor132.standalone-ai .composer-actions span{font-size:13px!important;color:#526b89!important}
html body.harbor132.standalone-ai .assistant-main :is(#send,#tree-send,#tree-login){min-height:46px;background:#245fc6!important;color:#fff!important;margin:0!important}
html body.harbor132.standalone-ai .assistant-main :is(#send,#tree-send,#tree-login):hover{background:#194da8!important}
html body.harbor132.standalone-ai .assistant-main :is(#send,#tree-send,#tree-login):disabled{background:#dce6f2!important;color:#526b89!important;cursor:not-allowed}
html body.harbor132.standalone-ai .assistant-main .messages{background:transparent!important;margin:0!important;padding:0!important;gap:12px;max-height:35vh!important;overflow:auto!important;flex:none!important}
html body.harbor132.standalone-ai .assistant-main .messages:empty{display:none!important}
html body.harbor132.standalone-ai .assistant-main .message{background:#fff!important;border:1px solid #dce6f2!important;border-radius:12px!important;padding:12px 16px!important}
html body.harbor132.standalone-ai .assistant-main .message.user{background:#edf4ff!important;padding:7px 10px!important}
html body.harbor132.standalone-ai .assistant-main .message.user strong{font-size:12px!important;line-height:1.4}
html body.harbor132.standalone-ai .assistant-main .message.user p{font-size:14px!important;line-height:1.5!important;margin:4px 0 0!important;overflow-wrap:anywhere}
@media(max-width:600px){
  html body.harbor132.standalone-ai .assistant-main .message.user{padding:6px 9px!important}
  html body.harbor132.standalone-ai .assistant-main .message.user p{font-size:13px!important}
}
html body.harbor132.standalone-ai .assistant-main .message.assistant{border-left:4px solid #245fc6!important}
html body.harbor132.standalone-ai .assistant-main .message p{font-size:16px!important}
html body.harbor132.standalone-ai #tree-session-form{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
html body.harbor132.standalone-ai #tree-session-form label{white-space:nowrap}
html body.harbor132.standalone-ai #tree-session-form input{flex:1 1 140px;width:auto}
html body.harbor132.standalone-ai #tree-session-form .composer-actions{margin:0}
html body.harbor132.standalone-ai #tree-logout{margin:0;border:1px solid #b6cbe3;border-radius:8px;background:#f3f7fc!important;color:#354f70!important;padding:8px 16px}
/* ui6: bound the card, not individual answers. Legacy skins set height:auto
   and flex:none; every link in the history sizing chain must be shrinkable. */
html:has(> body.standalone-ai){height:auto!important;min-height:100%;overflow-y:auto!important}
html body.harbor132.standalone-ai{height:auto!important;min-height:100dvh;overflow-y:auto!important}
html body.harbor132.standalone-ai .assistant-main{flex:none!important;overflow:visible!important;padding-bottom:20px!important}
html body.harbor132.standalone-ai .dual-panels{flex:none!important;height:clamp(440px,var(--assistant-room,60dvh),760px);min-height:0}
html body.harbor132.standalone-ai .dual-panels>.ai-panel{height:100%!important;min-height:0!important;overflow:hidden!important;gap:12px}
html body.harbor132.standalone-ai .dual-panels .consult-sheet{height:auto!important;min-height:0!important;overflow:hidden!important;flex:1 1 0!important}
html body.harbor132.standalone-ai .assistant-main .messages{display:flex!important;min-height:0!important;height:0!important;max-height:none!important;flex:1 1 0!important;overflow:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable;overflow-anchor:auto}
html body.harbor132.standalone-ai .assistant-main .messages:empty{display:flex!important}
html body.harbor132.standalone-ai .assistant-main .message{flex:0 0 auto;min-width:0;max-width:100%;box-sizing:border-box}
html body.harbor132.standalone-ai .assistant-main :is(#consult-form,#tree-consult-form){flex:0 0 auto!important;min-height:0}
html body.harbor132.standalone-ai .assistant-main :is(#question,#tree-question){resize:none;min-height:80px!important;height:80px!important;max-height:80px!important}
html body.harbor132.standalone-ai .voice-help{flex:none;font-size:12px;color:#526b89;line-height:1.5}
html body.harbor132.standalone-ai .voice-help summary{cursor:pointer}
html body.harbor132.standalone-ai .voice-help p{margin:6px 0!important;font-size:12px!important}
html body.harbor132.standalone-ai .composer-actions{margin-top:8px;flex-wrap:wrap}
html body.harbor132.standalone-ai .composer-actions button{margin-left:auto!important}
html body.harbor132.standalone-ai .assistant-main :is(#consult-status,#tree-consult-status):empty{display:none!important}
@media(max-width:979px){
  html body.harbor132.standalone-ai .assistant-main{padding:12px 12px 16px!important}
  html body.harbor132.standalone-ai .workspace-title{font-size:20px!important;margin-bottom:10px!important}
  html body.harbor132.standalone-ai .dual-switch{margin-bottom:10px}
  html body.harbor132.standalone-ai .dual-panels{height:clamp(400px,var(--assistant-room,60dvh),720px)}
  html body.harbor132.standalone-ai .dual-panels>.ai-panel{padding:14px!important;gap:8px}
  html body.harbor132.standalone-ai .dual-panels .consult-sheet{gap:8px}
  html body.harbor132.standalone-ai .composer-actions span{font-size:12px!important;flex:1 1 120px}
}
@media(max-height:600px){
  /* Keyboard/landscape: keep public navigation in place; main may scroll
     over a minimum usable card rather than clipping its composer. */
  html body.harbor132.standalone-ai{height:var(--vvh,100dvh)!important;min-height:0;overflow:hidden!important}
  html body.harbor132.standalone-ai .assistant-main{flex:1 1 0!important;min-height:0!important;overflow-y:auto!important;padding-top:8px!important}
  html body.harbor132.standalone-ai .dual-panels{height:360px}
  html body.harbor132.standalone-ai .assistant-main :is(#question,#tree-question){height:64px!important;min-height:64px!important;max-height:64px!important}
  html body.harbor132.standalone-ai>header h1{display:block!important}
  html body.harbor132.standalone-ai>header{flex:none;grid-template-rows:28px 48px!important;padding-block:4px!important}
  html body.harbor132.standalone-ai>header .skyline-slot{display:none!important}
  html body.harbor132.standalone-ai>header .header-right{grid-area:2/1/3/-1!important}
  html body.harbor132.standalone-ai>footer{flex:none;font-size:11px!important}
}
html body.harbor132.standalone-ai .dual-switch{display:none}
@media(max-width:979px){
  html body.harbor132.standalone-ai .dual-switch{display:flex;width:max-content;max-width:100%;gap:4px;padding:4px;margin:0 0 10px;border:1px solid #b6cbe3;border-radius:12px;background:#f3f7fc}
  html body.harbor132.standalone-ai .dual-switch .dual-tab{flex:none;min-width:92px;min-height:40px;height:40px;margin:0;border:0!important;border-radius:8px;background:transparent!important;color:#123a6b!important;padding:6px 18px;font-size:14px;font-weight:600}
  html body.harbor132.standalone-ai .dual-switch .dual-tab[aria-selected="true"]{background:#245fc6!important;color:#fff!important}
  html body.harbor132.standalone-ai .dual-panels{display:block}
  html body.harbor132.standalone-ai .panel-title{font-size:18px}
  html body.harbor132.standalone-ai #tree-session-form{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
  html body.harbor132.standalone-ai #tree-session-form input{width:100%}
  html body.harbor132.standalone-ai #tree-session-form .composer-actions{justify-content:flex-end}
}
@media(max-width:600px){
  html body.harbor132.standalone-ai .dual-switch{padding:3px;gap:4px;margin-bottom:8px;border-radius:10px}
  html body.harbor132.standalone-ai .dual-switch .dual-tab{position:relative;min-width:80px;height:32px;min-height:32px;padding:3px 12px;font-size:14px}
  html body.harbor132.standalone-ai .dual-switch .dual-tab::after{content:"";position:absolute;inset:-5px 0}
}
html body.harbor132.standalone-ai .assistant-main .message.assistant{position:relative;padding-top:46px!important}
html body.harbor132.standalone-ai .assistant-main .copy-answer{position:absolute;top:8px;right:10px;min-height:30px;padding:4px 10px;font-size:12px;border:1px solid #b6cbe3;background:#f3f7fc!important;color:#245fc6!important;border-radius:6px}
html body.harbor132.standalone-ai .copy-status{display:block;font-size:12px;color:#526b89}
html body.harbor132.standalone-ai .copy-status:empty{display:none}
/* Trial error/status copy stays in normal flow at every viewport. */
html body.harbor132.standalone-ai .assistant-main :is(#tree-session-status,#tree-consult-status){font-size:13px!important;line-height:1.5!important;overflow-wrap:anywhere;flex-shrink:0}
html body.harbor132.standalone-ai .assistant-main :is(#tree-session-status,#tree-consult-status):empty{display:none!important}

