/* Native page: shares the business center's color, type and controls. */
.tx-reply-page [hidden]{display:none!important}
.tx-reply-page{color:var(--ink,#202c44)}
.tx-reply-page .page-heading h1{margin:0}.tx-reply-page .sub{color:var(--muted,#65738a)}
.tx-reply-shell{border:1px solid var(--line,#e5e9f2);border-radius:var(--v2-radius-card,18px);background:white;overflow:hidden}
.tx-reply-tabs{display:flex;gap:8px;padding:12px 20px 0;border-bottom:1px solid var(--line,#e5e9f2)}
.tx-reply-tabs button{border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:var(--muted,#65738a);padding:12px 16px;font-weight:600}
.tx-reply-tabs button.active{color:var(--v2-brand,#4962db);border-bottom-color:var(--v2-brand,#4962db)}
.tx-reply-body{padding:20px}.tx-reply-summary{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.tx-reply-summary span{padding:5px 10px;border-radius:8px;background:var(--canvas,#f4f6fb);font-size:12px;color:var(--muted,#65738a)}.tx-reply-summary .tx-reply-warn{background:#fff1d9;color:#915c10}
.tx-reply-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:16px}.tx-reply-toolbar input{flex:1;min-width:0}.tx-reply-toolbar h3{margin:0}.tx-reply-toolbar p{color:var(--muted,#65738a);font-size:13px}
.tx-reply-workspace{display:grid;grid-template-columns:150px minmax(200px,.85fr) minmax(280px,1.25fr);min-height:440px;gap:16px}
#txReplyCategories{display:flex;flex-direction:column;align-items:stretch;gap:6px;border-right:1px solid var(--line,#e5e9f2);padding-right:12px}
.tx-reply-category{background:transparent;border:0;color:var(--muted,#65738a);text-align:left;padding:9px 10px;overflow-wrap:anywhere}.tx-reply-category.active{background:#eef0ff;color:var(--v2-brand,#4962db);font-weight:600}
.tx-reply-items{display:flex;flex-direction:column;gap:8px;max-height:660px;overflow:auto;min-width:0}
.tx-reply-item{display:flex;flex-direction:column;align-items:stretch;gap:6px;text-align:left;border:1px solid var(--line,#e5e9f2);background:#fff;padding:14px;border-radius:12px;min-width:0;color:inherit}.tx-reply-item.active{border-color:var(--v2-brand,#4962db);background:#f5f6ff}.tx-reply-item strong{font-size:14px;overflow-wrap:anywhere}.tx-reply-item small{color:var(--muted,#65738a)}.tx-reply-item span{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12px;color:var(--muted,#65738a);overflow-wrap:anywhere}
.tx-reply-editor{border:1px solid var(--line,#e5e9f2);border-radius:12px;padding:18px;min-width:0}.tx-reply-editor-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.tx-reply-editor h2{margin:0;font-size:16px}.tx-reply-editor label,.tx-reply-form label{display:block;font-size:13px;color:var(--muted,#65738a);margin-bottom:12px}.tx-reply-editor input,.tx-reply-editor textarea,.tx-reply-form input,.tx-reply-form select,.tx-reply-secret textarea{display:block;width:100%;box-sizing:border-box;margin-top:6px;font:inherit}.tx-reply-editor textarea{resize:vertical;min-height:160px}.tx-reply-advanced summary{cursor:pointer;font-size:12px;color:var(--muted,#65738a)}.tx-reply-advanced label{margin-top:10px}.tx-reply-preview{border-top:1px solid var(--line,#e5e9f2);padding-top:12px;margin-top:16px}.tx-reply-preview h3{font-size:13px;margin:0;color:var(--muted,#65738a)}.tx-reply-preview #txReplyPreview{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--canvas,#f4f6fb);padding:12px;border-radius:10px;font-size:13px;min-height:54px}
.tx-reply-actions{position:sticky;bottom:0;padding:16px 0 0;background:#fff;display:flex;align-items:center;gap:8px;border-top:1px solid var(--line,#e5e9f2);margin-top:20px}.tx-reply-actions span{flex:1;color:#21806b;font-size:12px}.tx-reply-actions .is-error{color:#bb3841}.tx-reply-empty{padding:35px 12px;text-align:center;color:var(--muted,#65738a);font-size:13px}
.tx-reply-form{display:grid;grid-template-columns:1fr 1fr 120px auto;gap:12px;align-items:end}.tx-reply-form label{margin:0}.tx-reply-form button{margin-bottom:0}.tx-reply-secret{margin:16px 0;background:#fff8e5;border:1px solid #f3ce81;border-radius:12px;padding:16px}.tx-reply-secret strong{font-size:13px;color:#976419}.tx-reply-secret textarea{height:70px;margin-bottom:10px}.tx-reply-token-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 0;border-bottom:1px solid var(--line,#e5e9f2);overflow-wrap:anywhere}.tx-reply-token-row small{display:block;color:var(--muted,#65738a);margin-top:4px}
/* Authorization controls use exactly the site's standard button styles. */
.tx-reply-outline{background:#fff;color:var(--v2-brand,#4962db);border:1px solid var(--line,#e5e9f2);padding:8px 14px;border-radius:var(--v2-radius-small,10px)}.tx-reply-primary{background:var(--v2-brand,#4962db);color:#fff;border:1px solid var(--v2-brand,#4962db);padding:8px 14px;border-radius:var(--v2-radius-small,10px)}.tx-reply-danger{background:#fff5f4;color:#c23842;border:1px solid #ffdadc;padding:6px 12px;border-radius:8px}
@media(max-width:1100px){.tx-reply-workspace{grid-template-columns:minmax(200px,.8fr) minmax(270px,1.2fr)}#txReplyCategories{grid-column:1/-1;flex-direction:row;flex-wrap:wrap;border:0;padding:0}.tx-reply-form{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.tx-reply-body{padding:12px}.tx-reply-tabs{padding:8px 12px 0}.tx-reply-workspace{display:flex;flex-direction:column;min-height:0}.tx-reply-items{max-height:240px}.tx-reply-editor{padding:12px}.tx-reply-actions{flex-wrap:wrap;padding-bottom:8px}.tx-reply-actions span{flex-basis:100%}.tx-reply-form{grid-template-columns:1fr}.tx-reply-token-row{align-items:flex-start}.tx-reply-toolbar{gap:8px}}
.tx-reply-page,.tx-reply-page *{box-sizing:border-box}
.tx-reply-shell,.tx-reply-body,.tx-reply-editor{min-width:0}
.tx-reply-page .tx-reply-editor label{display:block;width:auto;white-space:normal}
.tx-reply-rich{min-height:220px;max-height:420px;overflow:auto;border:1px solid var(--line,#dce3ee);border-radius:var(--v2-radius-small,10px);padding:14px;margin-top:8px;background:var(--surface,#fff);color:var(--text,#25324a);line-height:1.7;outline:none;overflow-wrap:anywhere}
.tx-reply-rich:focus{border-color:var(--v2-brand,#4962db);box-shadow:0 0 0 3px #4962db12}
.tx-reply-rich img,.tx-reply-preview img{display:block;max-width:100%;max-height:280px;object-fit:contain;margin:10px 0;border-radius:8px}
.tx-reply-editor>div:has(#txReplyImage){display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.tx-reply-editor>div:has(#txReplyImage)>small{flex-basis:100%;line-height:1.6;color:var(--muted,#65738a)}
.tx-reply-attachments{width:100%;display:grid;gap:8px}
.tx-reply-attachment{display:flex;align-items:center;gap:10px;padding:10px 12px;background:var(--canvas,#f4f6fb);border:1px solid var(--line,#e5e9f2);border-radius:10px;font-size:12px}
.tx-reply-attachment span{flex:1;min-width:0;overflow-wrap:anywhere}.tx-reply-attachment button{flex-shrink:0}
.tx-reply-actions{flex-wrap:wrap;z-index:1;padding-bottom:10px}.tx-reply-actions span{min-width:160px;overflow-wrap:anywhere}

.tx-reply-preview summary{cursor:pointer;font-size:13px;color:var(--muted,#65738a)}

/* Preserve list cards instead of shrinking all replies into the scroll viewport. */
.tx-reply-page .tx-reply-items{justify-content:flex-start;align-self:start;padding:2px 6px 6px 2px;scroll-padding:6px}
.tx-reply-page .tx-reply-item{flex:0 0 auto;min-height:100px;height:auto;white-space:normal}
.tx-reply-page .tx-reply-item small,.tx-reply-page .tx-reply-item span{flex-shrink:0}
#txReplyPlain{width:100%;min-height:220px;line-height:1.7;padding:14px;resize:vertical;margin-bottom:10px}
#txReplyMode{margin-bottom:10px}
#appNoticeSettings form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#appNoticeSettings form>.hint,#appNoticeSettings output{grid-column:1/-1}
#appNoticeSettings label{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
#appNoticeSettings label:has([type=checkbox]){flex-direction:row;align-items:center}
#appNoticeSettings input[type=checkbox]{width:18px;height:18px;margin:0;flex:0 0 auto}
@media(max-width:700px){#appNoticeSettings form{grid-template-columns:1fr}}
