/* Shared customer support, using the existing S1/workbench palette. */
.customer-support-dialog,.support-settings {
  --support-bg:var(--surface,#111014);--support-text:var(--text,#f6f1f5);--support-muted:var(--muted,#b8afb6);--support-line:var(--ui-control-line,#706374);--support-action:var(--ui-action-fill,#efcde2);--support-ink:var(--brand-ink,#21131c);
  color:var(--support-text);font-family:var(--font,"Microsoft YaHei",sans-serif);font-size:14px;line-height:1.6;
}
html[data-color-theme="light"] .customer-support-dialog,html[data-color-theme="light"] .support-settings{--support-bg:var(--surface,#fff);--support-text:var(--text,#171318);--support-muted:var(--muted,#625b63);--support-line:var(--ui-control-line,#918791);--support-action:var(--ui-action-fill,#a52f73);--support-ink:var(--brand-ink,#fff);}
dialog.customer-support-dialog{box-sizing:border-box;width:min(440px,calc(100% - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:24px;border:1px solid var(--support-line);border-radius:8px;background:var(--support-bg);overflow:auto;}
.customer-support-dialog::backdrop{background:rgba(0,0,0,.6);}
.support-dialog-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;}
.customer-support-dialog .support-close{flex:none;}
.customer-support-dialog h2{flex:1;min-width:0;margin:0;font-size:20px;line-height:1.4;overflow-wrap:anywhere;}
.customer-support-dialog p{margin:12px 0;overflow-wrap:anywhere;}
.customer-support-dialog [hidden],.support-settings [hidden]{display:none!important;}
.customer-support-dialog .support-button,.support-settings .support-button{min-height:42px;padding:9px 14px;border:1px solid var(--support-line);border-radius:6px;background:var(--support-bg);color:var(--support-text);font:inherit;font-weight:600;cursor:pointer;}
.customer-support-dialog .support-button:hover,.support-settings .support-button:hover{border-color:var(--support-action);}
.customer-support-dialog .support-button:focus-visible,.support-settings :is(button,input,textarea):focus-visible{outline:2px solid var(--support-action);outline-offset:3px;}
.support-qr{display:block;width:220px;max-width:100%;height:auto;margin:16px auto;object-fit:contain;border:8px solid #fff;box-sizing:border-box;background:#fff;}
.support-wechat-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;}
.support-wechat-row p{flex:1 1 160px;min-width:0;}.support-wechat-row strong{display:block;font-weight:650;user-select:text;overflow-wrap:anywhere;}
.customer-support-dialog .support-wechat-row p{margin:0;}.customer-support-dialog .support-wechat-row strong{display:inline;}.customer-support-dialog .support-name{display:block;user-select:none;}
.customer-support-dialog .support-button{max-width:100%;white-space:normal;overflow-wrap:anywhere;}
.support-message{white-space:pre-wrap;overflow-wrap:anywhere;}
.support-entry-group{display:flex;align-items:center;gap:12px;}
.support-entry{font-family:inherit;cursor:pointer;}
.support-entry--inline{display:inline;padding:0;border:0;background:none;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer;}
.horse-auth-nav .support-entry{min-height:44px;padding:8px 14px;border:1px solid var(--horse-control-line,#706374);border-radius:6px;color:var(--horse-ink,#f6f1f5);background:var(--horse-control-bg,#17141a);font:600 14px/1.4 "Microsoft YaHei UI","Microsoft YaHei",sans-serif;white-space:nowrap;}
.horse-auth-nav .support-entry:hover:not(:disabled){background:#27202c;border-color:var(--horse-reticle,#e477ba);}
.horse-auth-nav .support-entry:disabled{opacity:.55;cursor:default;}
.horse-auth-dialog .support-entry-footer{margin:18px 0 0;text-align:center;font:14px/1.6 "Microsoft YaHei",sans-serif;}
.support-entry:focus-visible,.support-entry--inline:focus-visible{outline:2px solid currentColor;outline-offset:3px;}
.support-settings{margin-top:32px;padding-top:24px;border-top:1px solid var(--line,#706374);}
.support-settings h3{margin:0 0 8px;}.support-settings h4{margin:0 0 12px;font-size:15px;}
.support-editor-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(240px,1fr);gap:24px;align-items:start;}
.support-settings label{display:block;margin:16px 0;}.support-settings input,.support-settings textarea,.support-settings select{display:block;box-sizing:border-box;width:100%;max-width:100%;margin-top:6px;}
.support-settings textarea{min-height:100px;padding:10px 12px;border:1px solid var(--support-line);border-radius:6px;background:var(--ui-control-bg,var(--support-bg));color:var(--support-text);font:inherit;caret-color:var(--support-action);resize:vertical;}
.support-settings textarea:disabled{opacity:.55;cursor:not-allowed;}
.support-settings input[type="file"]{padding:10px;white-space:normal;}
.support-settings .support-preview{padding:20px;border:1px solid var(--support-line);border-radius:8px;overflow-wrap:anywhere;}
.support-preview p{margin:12px 0;}.support-published{margin-top:24px;}.support-published summary{cursor:pointer;font-weight:600;min-height:40px;}
.support-published .support-qr{width:140px;margin-left:0;}.support-settings .support-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0;}
@media(max-width:700px){.support-editor-layout{grid-template-columns:minmax(0,1fr);}.support-entry-group{gap:8px;}.horse-auth-nav .support-entry{padding:6px;font-size:12px;}.support-dialog-head{gap:12px;}dialog.customer-support-dialog{padding:20px;}}
