.ptool-dialog, .production-toolbox { --pt-bg: var(--shell-bg, #111419); --pt-panel: var(--shell-panel, #171b21); --pt-inset: var(--shell-panel-2, #1c2128); --pt-line: var(--shell-line, #2b323b); --pt-ink: var(--shell-text, #edf1f4); --pt-muted: var(--shell-muted, #949da8); --pt-accent: var(--shell-accent, #62c4ca); color: var(--pt-ink); }
dialog.ptool-dialog { position: fixed; inset: 0; z-index: 9200; box-sizing: border-box; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--pt-bg); overflow: hidden; }
dialog.ptool-dialog[open] { display: flex; flex-direction: column; }
.ptool-dialog::backdrop { background: var(--pt-bg); }
.ptool-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex: 0 0 auto; padding: 17px 24px; border-bottom: 1px solid var(--pt-line); background: var(--pt-panel); }
.ptool-dialog .ptool-head h2 { font-size: 21px; color: var(--pt-ink); margin: 0; }
.ptool-dialog .ptool-note { font-size: 12px; line-height: 1.65; color: var(--pt-muted); margin: 0; overflow-wrap: anywhere; }
.ptool-inline-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ptool-toolbar { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 8px 24px; border-bottom: 1px solid var(--pt-line); background: var(--pt-panel); }
.ptool-tools, .ptool-draft-actions { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ptool-dialog .ptool-tool { min-height: 38px; padding: 8px 12px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--pt-muted); font-size: 13px; white-space: nowrap; }
.ptool-dialog .ptool-tool:not(:disabled):hover { background: var(--pt-inset); color: var(--pt-ink); }
.ptool-dialog .ptool-tool[aria-pressed="true"] { border-color: color-mix(in srgb, var(--pt-accent) 35%, var(--pt-line)); background: color-mix(in srgb, var(--pt-accent) 10%, var(--pt-panel)); color: var(--pt-ink); }
.ptool-dialog .ptool-tool:focus-visible { outline: 2px solid var(--pt-accent); outline-offset: 2px; }
.ptool-dialog .ptool-draft-select { box-sizing: border-box; width: min(260px, 38vw); min-width: 0; height: 38px; padding: 5px 8px; border: 1px solid var(--pt-line); border-radius: 6px; color: var(--pt-ink); background: var(--pt-inset); font-size: 12px; text-overflow: ellipsis; }
.ptool-draft-actions button { white-space: nowrap; font-size: 12px; }
.ptool-dialog [hidden] { display: none; }
.ptool-source-toggle { margin-bottom: 12px; }
.ptool-workspace { display: grid; grid-template-columns: 300px minmax(0, 1fr) 280px; min-height: 0; flex: 1 1 auto; overflow: hidden; }
.ptool-sources, .ptool-settings, .ptool-center { padding: 18px; min-width: 0; min-height: 0; overflow: auto; scrollbar-gutter: stable; }
.ptool-sources { border-right: 1px solid var(--pt-line); background: var(--pt-panel); }
.ptool-settings { border-left: 1px solid var(--pt-line); background: var(--pt-panel); }
.ptool-section { display: grid; gap: 12px; padding-bottom: 20px; margin-bottom: 18px; border-bottom: 1px solid var(--pt-line); min-width: 0; }
.ptool-dialog h3 { color: var(--pt-ink); font-size: 14px; line-height: 1.5; margin: 0; }
.ptool-dialog .ptool-field { display: grid; gap: 6px; min-width: 0; color: var(--pt-ink); font-size: 12px; font-weight: 600; }
.ptool-dialog .ptool-field input, .ptool-dialog .ptool-field textarea, .ptool-dialog .ptool-field select, .ptool-dialog .ptool-ref-row select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 40px; border: 1px solid var(--pt-line); border-radius: 7px; background: var(--pt-inset); color: var(--pt-ink); padding: 8px 10px; font: inherit; font-weight: 400; }
.ptool-dialog .ptool-field textarea { line-height: 1.65; resize: vertical; min-height: 90px; }
.ptool-dialog .ptool-field input[type=file] { font-size: 11px; padding: 8px 4px; }
.ptool-dialog .ptool-field input[type=number] { font-variant-numeric: tabular-nums; }
.ptool-asset-filters { display: grid; grid-template-columns: minmax(0, 1fr) 94px; gap: 8px; }
.ptool-asset-list { display: grid; align-content: start; gap: 8px; max-height: 380px; min-height: 96px; overflow: auto; scrollbar-gutter: stable; padding: 2px; }
.ptool-asset-card { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 9px; align-items: center; padding: 7px; border: 1px solid var(--pt-line); border-radius: 8px; background: var(--pt-inset); }
.ptool-asset-card[data-selected=true] { border-color: var(--pt-accent); background: color-mix(in srgb, var(--pt-accent) 7%, var(--pt-inset)); }
.ptool-dialog .ptool-asset-pick { display: grid; align-content: center; gap: 4px; text-align: left; white-space: normal; overflow-wrap: anywhere; width: 100%; min-width: 0; padding: 3px 0; border: 0; background: transparent; color: var(--pt-ink); box-shadow: none; line-height: 1.5; }
.ptool-asset-pick strong { font-size: 12px; font-weight: 600; }
.ptool-asset-card-main { min-width: 0; }
.ptool-dialog .ptool-delete-upload { background: transparent; color: var(--pt-muted); border: 0; border-radius: 4px; box-shadow: none; font-size: 11px; padding: 4px 3px; min-height: 24px; }
.ptool-dialog .ptool-delete-upload:not(:disabled):hover { color: #f3a1a5; }
.ptool-asset-feedback { color: var(--pt-ink); font-size: 12px; line-height: 1.5; }
dialog.ptool-dialog.ptool-clip-history { width: min(680px, calc(100% - 32px)); height: fit-content; max-height: 80dvh; margin: auto; overflow: auto; padding: 20px; border: 1px solid var(--pt-line); border-radius: 12px; background: var(--pt-panel); }
.ptool-clip-history::backdrop { background: rgb(0 0 0 / 60%); }
.ptool-history-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.ptool-history-head h2 { margin: 0; font-size: 20px; }
.ptool-history-list { display: grid; gap: 10px; }
.ptool-history-group { border: 1px solid var(--pt-line); background: var(--pt-inset); border-radius: 8px; padding: 12px; }
.ptool-history-group summary { cursor: pointer; overflow-wrap: anywhere; }
.ptool-history-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding-top: 9px; margin-top: 9px; border-top: 1px solid var(--pt-line); }
.ptool-history-row .ptool-note { margin: 0; }
.ptool-asset-meta { font-size: 11px; color: var(--pt-muted); line-height: 1.5; }
.ptool-asset-selection { font-size: 11px; color: var(--pt-muted); }
.ptool-asset-card[data-selected=true] .ptool-asset-selection { color: var(--pt-accent); font-weight: 600; }
.ptool-dialog .ptool-thumb { position: relative; display: grid; place-items: center; padding: 0; width: 70px; height: 76px; overflow: hidden; border: 1px solid var(--pt-line); border-radius: 5px; background: var(--pt-bg); color: var(--pt-muted); box-shadow: none; }
.ptool-thumb img, .ptool-thumb video { display: block; width: 100%; height: 100%; object-fit: contain; }
.ptool-no-image { font-size: 10px; line-height: 1.5; padding: 5px; white-space: normal; }
.ptool-video-mark { position: absolute; right: 3px; bottom: 3px; z-index: 1; background: #111c; color: #fff; padding: 2px 4px; border-radius: 3px; font-size: 10px; }
.ptool-ref-list { display: grid; grid-column: 1 / -1; gap: 9px; }
.ptool-ref-row { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; padding: 8px; border: 1px solid var(--pt-line); border-radius: 8px; min-width: 0; }
.ptool-ref-details { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px; min-width: 0; }
.ptool-ref-details strong, .ptool-ref-details .ptool-asset-meta { grid-column: 1 / -1; }
.ptool-dialog .ptool-ref-row .ptool-thumb { width: 48px; height: 58px; }
.ptool-ref-row strong { font-size: 12px; overflow-wrap: anywhere; }
.ptool-ref-details button { justify-self: end; font-size: 11px; min-height: 30px; padding: 4px 8px; }
.ptool-dialog .ptool-ref-row select { font-size: 11px; min-height: 34px; padding: 6px; }
.ptool-result { min-width: 0; border: 1px solid var(--pt-line); border-radius: 10px; background: var(--pt-panel); overflow: hidden; }
.ptool-result-header { display: flex; align-items: center; flex-wrap: wrap; column-gap: 12px; row-gap: 4px; min-height: 54px; padding: 8px 14px; }
.ptool-result-header h3 { font-size: 15px; }
.ptool-result-header .ptool-inline-actions { margin-inline-start: auto; }
.ptool-result-status { flex: 1 1 auto; margin: 0; color: var(--pt-muted); font-size: 13px; overflow-wrap: anywhere; }
.ptool-result[data-result-status="failed"] .ptool-result-status { color: var(--shell-danger, #e58783); }
.ptool-result:is([data-result-status="generating"], [data-result-status="submitted"]) .ptool-result-status { color: var(--pt-accent); }
.ptool-comparison { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 8px; padding: 0 10px 10px; min-width: 0; }
.ptool-monitor { margin: 0; border: 1px solid var(--pt-line); border-radius: 7px; overflow: hidden; min-width: 0; background: var(--pt-bg); }
.ptool-monitor figcaption { padding: 7px 10px; color: var(--pt-muted); font-size: 12px; border-bottom: 1px solid var(--pt-line); }
.ptool-monitor video { display: block; width: 100%; height: clamp(180px, 32dvh, 340px); object-fit: contain; background: var(--shell-sidebar, #0d1014); }
.ptool-single-preview .ptool-monitor video { height: auto; max-height: min(52dvh, 480px); }
.ptool-monitor [data-media-error] { padding: 8px 10px; }
.ptool-result .ptool-candidates { margin: 0; padding: 8px 14px; border-top: 1px solid var(--pt-line); }
.ptool-result .ptool-inline-actions > :is(button, a) { min-height: 44px; font-size: 13px; }
.ptool-result-download { display: inline-flex; align-items: center; padding: 0 4px; color: var(--pt-accent); text-decoration: none; }
.ptool-result-download:hover { text-decoration: underline; }
.ptool-prompt-section { display: grid; gap: 12px; margin: 20px 0 24px; padding: 18px; border: 1px solid var(--pt-line); border-radius: 10px; background: var(--pt-panel); }
.ptool-prompt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ptool-prompt-head button { font-size: 12px; flex: 0 0 auto; }
.ptool-dialog .ptool-prompt-section textarea { height: 52vh; min-height: 440px; font-size: 16px; line-height: 1.85; padding: 14px; background: var(--pt-bg); }
.ptool-binding-notice { display: grid; gap: 6px; }
.ptool-binding-excluded, .ptool-binding-ambiguous { margin: 0; font-size: 12px; color: var(--shell-warning, #dfbc81); line-height: 1.65; overflow-wrap: anywhere; }
.ptool-prompt-section > .ptool-note { text-align: right; font-variant-numeric: tabular-nums; }
.ptool-candidates { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 10px; }
.ptool-candidates button { font-size: 12px; }
.ptool-candidates button[aria-pressed=true] { border-color: var(--pt-accent) !important; color: var(--pt-accent) !important; }
.ptool-apply { display: grid; gap: 12px; margin: 18px 0; padding: 16px; border: 1px solid var(--pt-line); border-radius: 10px; background: var(--pt-panel); }
.ptool-dialog .ptool-check { display: flex; align-items: flex-start; gap: 9px; color: var(--pt-ink); font-size: 12px; font-weight: 500; line-height: 1.6; }
.ptool-dialog .ptool-check input { width: 16px; height: 16px; min-height: 0; flex: 0 0 auto; margin-top: 2px; accent-color: var(--pt-accent); }
.ptool-apply-confirmation { padding-top: 12px; border-top: 1px solid var(--pt-line); }
.ptool-apply-confirmation p { margin: 0 0 12px; font-size: 13px; line-height: 1.7; }
.ptool-apply-confirmation button { margin-right: 8px; margin-bottom: 8px; }
.ptool-task-list { display: grid; gap: 8px; }
.ptool-task-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--pt-line); font-size: 12px; }
.ptool-task-details { display: grid; gap: 6px; min-width: 0; flex: 1 1 220px; }
.ptool-task-message { white-space: pre-wrap; overflow-wrap: anywhere; }
.ptool-checks[data-task-status=failed] > strong:first-child, .ptool-task-row[data-task-status=failed] strong { color: var(--shell-danger, #e58783); }
.ptool-checks[data-task-status=submit_unknown] > strong:first-child, .ptool-task-row[data-task-status=submit_unknown] strong { color: var(--shell-warning, #dfbc81); }
.ptool-checks[data-task-status=generating] > strong:first-child, .ptool-checks[data-task-status=submitted] > strong:first-child, .ptool-checks[data-task-status=succeeded] > strong:first-child { color: var(--pt-accent); }
.ptool-model-tools { display: grid; gap: 8px; min-width: 0; }
.ptool-model-tools button { justify-self: start; font-size: 12px; }
.ptool-range { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 8px 10px 10px; border: 1px solid var(--pt-line); border-radius: 8px; background: var(--pt-bg); }
.ptool-range legend { padding: 0 4px; font-size: 13px; font-weight: 650; color: var(--pt-ink); }
.ptool-range-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ptool-range-fields.ptool-range-insert { grid-template-columns: minmax(0, 1fr); }
.ptool-range-fields .ptool-field { grid-template-rows: auto 1fr; }
.ptool-range-status { margin: 0; min-width: 0; color: var(--pt-muted); font-size: 12px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.ptool-range-status[data-invalid="true"] { color: var(--shell-danger); }
.ptool-checks { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--pt-line); font-size: 13px; }
.ptool-error { padding: 12px; border: 1px solid color-mix(in srgb, var(--shell-danger, #e58783) 50%, transparent); border-radius: 8px; color: var(--shell-danger, #e58783); font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.ptool-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; flex: 0 0 auto; padding: 14px 24px; border-top: 1px solid var(--pt-line); background: var(--pt-panel); }
.ptool-status { color: var(--pt-muted); margin: 0; font-size: 12px; line-height: 1.6; flex: 1 1 260px; }
.ptool-action-message { flex: 1 1 260px; min-width: 0; }
.ptool-action-message > .ptool-status { flex: none; }
.ptool-model-blocker { color: #e6bf75; margin: 3px 0 0; font-size: 12px; line-height: 1.6; }
.ptool-model-blocker[hidden] { display: none !important; }
.ptool-choose-model[hidden] { display: none !important; }
.ptool-dialog [hidden] { display: none !important; }
.ptool-dialog :focus-visible { outline: 2px solid var(--pt-accent); outline-offset: 3px; }
.ptool-dialog button:disabled { opacity: .5; cursor: not-allowed; }
.ptool-dialog.ptool-prompt-expanded { overflow: hidden; }
.ptool-dialog.ptool-prompt-expanded .ptool-workspace { display: flex; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.ptool-dialog.ptool-prompt-expanded .ptool-toolbar, .ptool-dialog.ptool-prompt-expanded .ptool-sources, .ptool-dialog.ptool-prompt-expanded .ptool-settings, .ptool-dialog.ptool-prompt-expanded .ptool-center > :not(.ptool-prompt-section) { display: none; }
.ptool-dialog.ptool-prompt-expanded .ptool-center { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.ptool-dialog.ptool-prompt-expanded .ptool-prompt-section { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; margin: 0; overflow: hidden; }
.ptool-dialog.ptool-prompt-expanded .ptool-prompt-section > .ptool-field { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.ptool-dialog.ptool-prompt-expanded .ptool-prompt-section textarea { flex: 1 1 auto; height: auto; min-height: 0; resize: none; }
.ptool-dialog.ptool-prompt-expanded .ptool-binding-notice { flex: 0 0 auto; max-height: 86px; overflow: auto; }
.ptool-dialog.ptool-prompt-expanded .ptool-actions { position: static; }
.ptool-media-dialog { box-sizing: border-box; width: min(1100px, 94vw); max-height: 94dvh; padding: 16px; border: 1px solid var(--shell-line, #2b323b); border-radius: 10px; background: var(--shell-panel, #171b21); color: var(--shell-text, #edf1f4); }
.ptool-media-dialog::backdrop { background: #05070be6; }
.ptool-media-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.ptool-media-dialog h2 { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.ptool-media-dialog img, .ptool-media-dialog video { display: block; max-width: 100%; width: 100%; max-height: 76dvh; object-fit: contain; background: #0d1014; }
.ptool-media-dialog audio { display: block; width: 100%; }
@media (max-width: 1360px) { .ptool-workspace { grid-template-columns: 260px minmax(0, 1fr) 260px; } .ptool-sources, .ptool-settings, .ptool-center { padding: 14px; } .ptool-prompt-section { padding: 14px; } }
@media (min-width: 761px) and (max-width: 1050px) { .ptool-workspace { grid-template-columns: 228px minmax(0, 1fr); } .ptool-settings { grid-column: 2; grid-row: 1; overflow: visible; border-bottom: 1px solid var(--pt-line); } .ptool-sources { grid-row: 1 / 3; } .ptool-center { grid-column: 2; grid-row: 2; overflow: visible; } .ptool-workspace { overflow: auto; align-content: start; } .ptool-settings .ptool-section { grid-template-columns: 1fr 1fr; } .ptool-settings h3, .ptool-settings .ptool-note, .ptool-settings .ptool-checks, .ptool-settings .ptool-range { grid-column: 1 / -1; } .ptool-comparison { grid-template-columns: 1fr; } }
@media (max-width: 760px) { dialog.ptool-dialog { overflow: auto; } .ptool-head { align-items: flex-start; gap: 10px; padding: 14px 16px; } .ptool-head .ptool-note { display: none; } .ptool-head .ptool-inline-actions { justify-content: flex-end; gap: 5px; } .ptool-head button { font-size: 11px; padding: 6px 8px; } .ptool-dialog .ptool-head h2 { font-size: 18px; white-space: nowrap; } .ptool-workspace { display: flex; flex-direction: column; overflow: visible; flex: 1 0 auto; } .ptool-sources, .ptool-settings, .ptool-center { overflow: visible; border: 0; padding: 18px 16px; flex: 0 0 auto; } .ptool-settings { order: -1; } .ptool-sources { order: 0; } .ptool-center { order: 1; } .ptool-asset-list { max-height: 310px; } .ptool-asset-filters { grid-template-columns: minmax(0, 1fr) 110px; } .ptool-comparison { grid-template-columns: 1fr; } .ptool-prompt-section { margin-top: 18px; padding: 12px; } .ptool-prompt-head { gap: 8px; } .ptool-prompt-head .ptool-inline-actions { gap: 5px; justify-content: flex-end; } .ptool-prompt-head button { font-size: 11px; padding: 6px 8px; } .ptool-dialog .ptool-prompt-section textarea { height: 60vh; min-height: 400px; padding: 12px; } .ptool-actions { position: sticky; bottom: 0; padding: 10px 16px; } .ptool-status { flex-basis: 100%; } .ptool-actions button { flex: 1 1 auto; min-height: 44px; font-size: 12px; } }
.ptool-binding-chip {
  display: inline-block;
  margin: 0.15rem 0.35rem 0.15rem 0;
  padding: 0.2rem 0.5rem;
  border: 1px solid currentColor;
  border-radius: 0.45rem;
  font-size: 0.85em;
}
select:has(optgroup) {
  color-scheme: dark;
}
select:has(optgroup) :is(option, optgroup) {
  background-color: var(--pt-inset, #171d24);
  color: var(--pt-ink, #e4ecf1);
}
.ptool-prompt-field { position: relative; }
.ptool-ref-name .ptool-binding-chip { margin-inline-end: 6px; font-weight: 600; }

@media (max-width: 620px) {
  .ptool-toolbar { padding: 8px 12px; }
  .ptool-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; gap: 4px; }
  .ptool-dialog .ptool-tool { min-height: 44px; padding: 7px 3px; font-size: 12px; }
  .ptool-draft-actions { width: 100%; }
  .ptool-dialog .ptool-draft-select { flex: 1 1 auto; width: 0; }
}
.production-toolbox { container-type: inline-size; min-width: 0; padding: 18px 20px; border: 1px solid var(--pt-line); border-radius: 8px; background: var(--pt-panel); }
.production-toolbox-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.production-toolbox-head h2 { margin: 0; font-size: 18px; }
.production-toolbox-head label { display: flex; align-items: center; gap: 8px; max-width: 100%; color: var(--pt-muted); font-size: 13px; white-space: nowrap; }
.production-toolbox-head select { min-width: 0; max-width: min(280px, 64vw); min-height: 38px; padding: 6px 8px; border: 1px solid var(--pt-line); border-radius: 6px; background: var(--pt-bg); color: var(--pt-ink); text-overflow: ellipsis; }
.production-toolbox-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.production-toolbox-tools button { min-height: 42px; padding: 8px 16px; font-size: 14px; }
.production-toolbox-tools button[aria-pressed="true"] { border-color: var(--pt-accent) !important; background: color-mix(in srgb, var(--pt-accent) 12%, var(--pt-panel)) !important; }
.production-toolbox-tools button:focus-visible { outline: 2px solid var(--pt-accent); outline-offset: 2px; }
.production-toolbox-notice { margin: 12px 0 0; color: var(--pt-muted); font-size: 13px; }
.production-toolbox-editor:empty { display: none; }
.ptool-inline { min-width: 0; margin-top: 14px; border: 1px solid var(--pt-line); border-radius: 7px; background: var(--pt-bg); }
.ptool-inline .ptool-head { flex-wrap: wrap; gap: 8px 12px; padding: 10px 12px; border-radius: 7px 7px 0 0; }
.ptool-inline .ptool-workspace { grid-template-columns: minmax(160px, 220px) minmax(0, 1fr) minmax(180px, 240px); overflow: visible; }
.ptool-inline .ptool-workspace > * { grid-area: auto; overflow: visible; padding: 14px; }
.ptool-inline .ptool-actions { position: static; padding: 12px; border-radius: 0 0 7px 7px; }
.ptool-inline.ptool-prompt-expanded .ptool-prompt-section textarea { min-height: clamp(440px, 68vh, 850px); }
@container (max-width: 860px) {
  .ptool-inline .ptool-workspace { display: grid; grid-template-columns: minmax(0, 1fr); }
  .ptool-inline .ptool-workspace > * { border: 0; }
  .ptool-inline .ptool-settings { order: -1; }
  .ptool-inline .ptool-center, .ptool-inline .ptool-settings { border-top: 1px solid var(--pt-line); }
  .ptool-inline .ptool-prompt-section textarea { min-height: 360px; }
}
@container (max-width: 460px) {
  .production-toolbox-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .production-toolbox-tools button { padding-inline: 6px; }
  .ptool-inline .ptool-draft-actions { width: 100%; }
}
