.local-tools-dialog.single-tool-dialog.tencent-hd-dialog {
  width: min(1560px, 92vw); height: min(820px, 88dvh);
  max-width: 92vw; max-height: 88dvh; min-width: 0; min-height: 0;
  padding: 0; resize: none; display: block; overflow: hidden;
  border: 1px solid #34323d; border-radius: 20px; background: #101014;
}
.tencent-hd-dialog > header, .tencent-hd-dialog > .local-tools-contract { display: none; }
.tencent-hd-dialog > main { height: 100%; padding: 0; display: block; overflow: hidden; }
.tencent-hd-workbench { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 320px; color: #e9e8ee; font-size: 13px; }
.tencent-hd-workbench * { box-sizing: border-box; }
.tencent-hd-preview { min-width: 0; min-height: 0; display: grid; grid-template-rows: 72px minmax(0, 1fr) auto; background: radial-gradient(ellipse at center, #16151b, #08080a 75%); }
.tencent-hd-preview-tools { display: flex; align-items: center; gap: 10px; padding: 18px 24px; }
.tencent-hd-original, .tencent-hd-file { display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid #32313a; border-radius: 12px; color: #c5c3cd; cursor: pointer; }
.tencent-hd-original input { accent-color: #9690c3; }
.tencent-hd-file { position: relative; }
.tencent-hd-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.tencent-hd-image-area { position: relative; min-height: 0; margin: 0 24px 12px; overflow: hidden; touch-action: none; }
.tencent-hd-image-area[data-zoom]:not([data-zoom="1"]) { cursor: grab; }
.tencent-hd-image-area:active { cursor: grabbing; }
.tencent-hd-image-frame { position: absolute; left: 50%; top: 50%; transform-origin: center; }
.tencent-hd-image-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; user-select: none; pointer-events: none; }
.tencent-hd-image-label { position: absolute; top: 12px; padding: 5px 10px; border-radius: 14px; background: #201e26d9; color: #e9e8ee; font-size: 12px; pointer-events: none; }
.tencent-hd-image-label.before { left: 12px; }
.tencent-hd-image-label.after { right: 12px; }
.tencent-hd-workbench .tencent-hd-divider { position: absolute; top: 0; bottom: 0; padding: 0; border: 0; background: transparent; cursor: ew-resize; touch-action: none; }
.tencent-hd-divider::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: #e7e3ee; }
.tencent-hd-divider > span { position: absolute; left: 50%; top: 50%; margin: -17px 0 0 -17px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #d0c8dc; border-radius: 50%; background: #292534; font-size: 18px; }
.tencent-hd-workbench .tencent-hd-divider:focus-visible > span { background: #70687e; }
.tencent-hd-preview-controls { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; padding: 0 16px 18px; }
.tencent-hd-preview-controls button { border: 1px solid #39353f; border-radius: 9px; padding: 7px 10px; background: #25232b; min-height: 32px; }
.tencent-hd-preview-controls button[aria-pressed="true"] { background: #37323f; border-color: #8178ac; }
.tencent-hd-preview-controls output { min-width: 48px; text-align: center; color: #c5c3cd; font-variant-numeric: tabular-nums; }
.tencent-hd-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #8e8a9d; }
.tencent-hd-empty > span { font-size: 48px; font-weight: 200; }
.tencent-hd-empty strong { font-size: 16px; font-weight: 500; }
.tencent-hd-config { min-height: 0; display: grid; grid-template-rows: 72px minmax(0, 1fr) auto; background: #18171e; border-left: 1px solid #302e39; }
.tencent-hd-config > header { padding: 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #2b2933; }
.tencent-hd-config h2 { margin: 0; font-size: 17px; font-weight: 600; }
.tencent-hd-workbench button { font: inherit; color: inherit; cursor: pointer; }
.tencent-hd-workbench button:disabled { opacity: .4; cursor: not-allowed; }
.tencent-hd-config .tencent-hd-close { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; padding: 0; margin-inline-end: 7px; border-radius: 50%; border: 1px solid #3a3745; background: #24222b; line-height: 0; }
.tencent-hd-close > svg, .tencent-hd-submit > span > svg { display: block; width: 16px; height: 16px; }
.tencent-hd-settings { overflow-y: auto; min-height: 0; padding: 20px; scrollbar-width: thin; scrollbar-color: #45404f transparent; }
.tencent-hd-stats { margin: 0; padding: 16px 14px; border: 1px solid #34303c; border-radius: 12px; background: #201e26; display: grid; gap: 12px; }
.tencent-hd-stats > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tencent-hd-stats dt { color: #8f8b9b; font-size: 12px; }
.tencent-hd-stats dd { margin: 0; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tencent-hd-settings h3 { margin: 28px 0 12px; font-size: 13px; font-weight: 600; }
.tencent-hd-engine { border: 1px solid #8178ac; border-radius: 12px; padding: 18px 14px; background: #292534; }
.tencent-hd-engine > div { display: flex; justify-content: space-between; align-items: center; color: #bfb5df; }
.tencent-hd-engine > div > span { font-size: 10px; padding: 2px 6px; background: #68607c; color: #f1edf7; border-radius: 4px; }
.tencent-hd-output { color: #bfb5df; font-weight: 600; }
.tencent-hd-scales { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.tencent-hd-scales button { border: 1px solid #39353f; border-radius: 18px; background: #25232b; padding: 9px 13px; }
.tencent-hd-scales button[aria-pressed="true"] { background: #e7e3ee; border-color: #e7e3ee; color: #23202b; }
.tencent-hd-status { margin: 20px 0 0; color: #c7b3c3; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.tencent-hd-config > footer { border-top: 1px solid #2b2933; padding: 20px; display: grid; gap: 10px; }
.tencent-hd-config > footer.has-result { grid-template-columns: 1fr 1fr; }
.tencent-hd-submit { width: 100%; border: 1px solid #70687e; border-radius: 24px; padding: 6px 6px 6px 14px; background: #37323f; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px !important; min-height: 44px; }
.tencent-hd-submit > span { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: #e1dce9; color: #29232f; line-height: 0; }
.tencent-hd-download { background: transparent; border: 1px solid #44404d; border-radius: 24px; padding: 10px; }
.tencent-hd-workbench button:focus-visible, .tencent-hd-file:focus-within, .tencent-hd-original:focus-within { outline: none; border-color: #b8a9cf; }
@media (max-width: 700px) {
  .local-tools-dialog.single-tool-dialog.tencent-hd-dialog { width: 94vw; max-width: 94vw; height: 92dvh; max-height: 92dvh; }
  .tencent-hd-workbench { grid-template-columns: 1fr; grid-template-rows: minmax(180px, 40%) minmax(0, 1fr); }
  .tencent-hd-preview { grid-template-rows: 52px minmax(0, 1fr) auto; }
  .tencent-hd-preview-tools { padding: 8px 14px; }
  .tencent-hd-original, .tencent-hd-file { padding: 7px 10px; }
  .tencent-hd-image-area { margin: 0 14px 8px; }
  .tencent-hd-preview-controls { padding-bottom: 8px; gap: 4px; }
  .tencent-hd-preview-controls button { padding: 5px 8px; }
  .tencent-hd-config { border-left: 0; border-top: 1px solid #302e39; grid-template-rows: 54px minmax(0, 1fr) auto; }
  .tencent-hd-config > header, .tencent-hd-config > footer { padding: 10px 14px; }
}
