.candidate-reply-helper{--reply-bg:#fff;--reply-panel:#f3f6fa;--reply-text:#1c2c42;--reply-muted:#455a75;--reply-border:#9aacc3;--reply-focus:#a85200;flex:none;min-width:0;margin:0 16px 10px;border:1px solid var(--reply-border);border-radius:10px;background:var(--reply-bg);color:var(--reply-text);font-size:16px;line-height:1.5;overflow-wrap:anywhere}
html[data-theme="dark"] .candidate-reply-helper{--reply-bg:#202e40;--reply-panel:#172333;--reply-text:#f1f5fc;--reply-muted:#c7d3e5;--reply-border:#7e91aa;--reply-focus:#ffbc65;color-scheme:dark}
.candidate-reply-helper [hidden]{display:none!important}.candidate-reply-helper summary{padding:12px 14px;min-height:44px;box-sizing:border-box;font-size:16px;font-weight:700;cursor:pointer;color:var(--reply-text)}.candidate-reply-helper__body{padding:0 14px 14px;min-width:0;max-height:min(400px,45dvh);overflow:auto;overscroll-behavior:contain}.candidate-reply-helper p{margin:10px 0;font-size:16px;line-height:1.5;color:var(--reply-text)}.candidate-reply-helper label{display:grid;gap:6px;font-size:16px;color:var(--reply-text)}.candidate-reply-helper select{width:100%;min-width:0;min-height:44px;box-sizing:border-box;padding:10px;border:1px solid var(--reply-border);border-radius:8px;color:var(--reply-text);background:var(--reply-bg);font:inherit}.candidate-reply-preview{padding:12px;margin:12px 0;border:1px solid var(--reply-border);border-radius:8px;background:var(--reply-panel);color:var(--reply-text);white-space:pre-wrap}.candidate-reply-helper label.candidate-reply-confirm{display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px;align-items:start;min-height:44px;padding:12px 0;cursor:pointer}.candidate-reply-confirm input{width:18px;height:18px;margin:3px 0 0;accent-color:#a85200}.candidate-reply-helper button{min-height:44px;margin:10px 0 0;padding:10px 14px;white-space:normal;font:inherit;border:1px solid var(--reply-border);border-radius:8px;background:var(--reply-bg);color:var(--reply-text)}.candidate-reply-helper button:disabled{opacity:1;color:var(--reply-muted);background:var(--reply-panel);cursor:default}.candidate-reply-helper .candidate-reply-boundary{font-size:14px;color:var(--reply-muted)}.candidate-reply-helper .candidate-reply-status:empty{display:none}.candidate-reply-helper :focus-visible{outline:3px solid var(--reply-focus);outline-offset:3px}.candidate-reply-helper summary:hover,.candidate-reply-helper button:not(:disabled):hover{background:var(--reply-panel)}
.chat-actions-zone>.candidate-reply-helper{margin:0}
.candidate-reply-helper__body{max-height:min(300px,35dvh)}
@media(max-width:540px){.candidate-reply-helper{margin:0 10px 8px}.candidate-reply-helper__body{padding:0 10px 10px;max-height:38dvh}.candidate-reply-helper summary{padding:10px}.candidate-reply-helper button{width:100%}}
@media(max-width:760px){
  .chat-page{height:auto}
  .chat-hub,.chat-thread,.chat-actions-zone{grid-template-columns:minmax(0,1fr)}
  .chat-thread>*,.chat-actions-zone>*{min-width:0;max-width:100%;box-sizing:border-box}
  .chat-thread__header>div{flex:1;min-width:0;overflow:hidden}
  .chat-thread__header .chat-ad-link{flex:0 0 44px;width:44px;min-width:44px;min-height:44px;justify-content:center;overflow:hidden;font-size:0}
  .chat-thread__header .chat-ad-link svg{width:18px;height:18px;flex:none}
  .chat-thread__context em{display:none}
  .chat-composer{grid-template-columns:minmax(0,1fr) 44px;padding-inline:9px}
  .chat-composer textarea{min-width:0;width:100%;min-height:44px;box-sizing:border-box;font-size:16px}
  .chat-composer button{width:44px;min-width:44px;max-width:44px;min-height:44px;box-sizing:border-box;padding:10px}
  .candidate-reply-helper__body{max-height:30dvh}
}
