/* Extend the selected hub shell and existing form/result cards, without changing the homepage. */
.poster-template-panel { margin: 26px 0; padding: 24px; border: 1px solid #e7e7e4; border-radius: 16px; background: #fff; }
.poster-template-panel .workspace-heading { align-items: end; gap: 16px; }
.poster-template-panel h2 { margin: 4px 0; font-size: 22px; }
.poster-template-panel label, .poster-controls label, #poster-section label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; }
.poster-template-panel select, #poster-section select { padding: 10px; border: 1px solid #dedfdf; border-radius: 8px; background: #fff; color: #202b32; max-width: 100%; }
.poster-library-heading { align-items: flex-end; }
.poster-library-heading .field-hint { margin: 0; text-align: right; }
.poster-template-filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 18px 0 2px; }
.poster-template-filters select { width: 100%; }
.poster-template-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-top: 20px; }
.poster-template-grid[hidden] { display: none; }
.poster-gallery-actions { margin-top: 12px; }
#run-tool-form, .tool-form-card h2 { scroll-margin-top: 90px; }
.poster-template { padding: 10px; border: 2px solid transparent; border-radius: 12px; background: #f6f5f2; color: #29323a; cursor: pointer; display: flex; flex-direction: column; gap: 5px; text-align: left; min-width: 0; transition: border-color .16s ease, transform .16s ease, background .16s ease; }
.poster-template[hidden] { display: none; }
.poster-template:hover { border-color: #c8c7c2; transform: translateY(-2px); }
.poster-template[aria-pressed="true"] { border-color: #d84e39; background: #fff4ef; }
.poster-template canvas { width: 100%; height: 170px; object-fit: contain; object-position: center; display: block; margin-bottom: 6px; }
.poster-template strong { font-size: 14px; }
.poster-template span { font-size: 11px; line-height: 1.6; color: #596269; }
.poster-template .poster-template-meta { color: #d84e39; font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.poster-copy-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 14px; min-width: 0; margin: 18px 0; padding: 16px; border: 1px solid #f0d7c9; border-radius: 12px; background: #fffaf6; }
.poster-copy-fields legend { padding: 0 5px; color: #8d3f2e; font-size: 14px; font-weight: 800; }
.poster-copy-fields .field-hint { grid-column: 1 / -1; margin: -3px 0 1px; }
.poster-copy-fields label { display: grid; gap: 8px; min-width: 0; font-size: 13px; font-weight: 650; }
.poster-copy-fields label:has(textarea) { grid-column: 1 / -1; }
.poster-copy-fields textarea { min-height: 100px; }
.poster-controls { display: grid; gap: 18px; }
.poster-controls fieldset { min-width: 0; margin: 0; padding: 16px; border: 1px solid #e6e7e4; border-radius: 10px; }
.poster-controls legend { padding: 0 5px; font-size: 14px; font-weight: 700; }
.poster-controls input[type="file"] { width: 100%; padding: 10px 0; font-size: 12px; border: 0; box-shadow: none; }
.poster-controls input[type="color"] { width: 100%; height: 44px; padding: 5px; }
.poster-controls input[type="range"] { padding: 0; width: 100%; height: 28px; accent-color: #d84e39; }
.poster-inline-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.poster-inline-actions .text-button { padding: 9px 10px; font-size: 12px; }
.poster-stage { padding: 18px; margin: 18px 0; background: #eeefec; border-radius: 10px; text-align: center; }
#poster-section #poster-canvas { width: auto; height: auto; max-width: 100%; max-height: 590px; border-radius: 0; margin: 0 auto; box-shadow: 0 3px 12px #1627351a; display: block; }
#poster-section #poster-canvas.poster-layout-editable { cursor: move; touch-action: none; outline: 3px solid #0b66df; outline-offset: 4px; }
#poster-section #poster-canvas.poster-layout-editable.is-resizing { cursor: nwse-resize; }
#poster-section .workspace-heading { flex-wrap: wrap; gap: 12px; align-items: end; }
#poster-section h3 { margin: 0; }
#poster-section .result-actions { position: static; margin-top: 14px; }
#poster-section .result-actions button { min-height: 44px; }
.poster-layout-editor { display: grid; gap: 12px; margin: 16px 0; padding: 16px; border: 2px solid #8cb8eb; border-radius: 10px; background: #f7fbff; }
.poster-layout-editor strong { color: #173d69; font-size: 15px; }
.poster-layout-editor .field-hint { margin: 5px 0 0; }
.poster-layout-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.poster-layout-actions label { flex: 1 1 220px; }
.poster-layout-actions button { min-height: 42px; }
.poster-layout-fallback { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding-top: 2px; font-size: 12px; color: #38516e; }
.poster-layout-fallback .text-button { min-height: 36px; padding: 7px 9px; }
.poster-layout-editor :focus-visible { outline: 3px solid #2e6187; outline-offset: 3px; }
.poster-readable { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.poster-publish-center { display: grid; gap: 13px; margin: 24px 0 4px; padding: 18px; border: 1px solid #c8ddd9; border-radius: 12px; background: linear-gradient(135deg,#f2fbf8,#f7fbff); }
.poster-publish-center[hidden] { display: none; }
.poster-publish-center h3 { margin: 0; }
.poster-publish-center .workspace-heading { margin: 0; }
.poster-publish-center .field-hint { margin: 0; }
.poster-publish-brief { display: grid; gap: 6px; padding: 13px; border: 1px solid #d7e6e1; border-radius: 9px; background: #fff; }
.poster-publish-brief strong { color: #1c5148; font-size: 14px; }
.poster-publish-brief span { color: #526965; font-size: 12px; line-height: 1.55; }
.poster-publish-brief textarea { width: 100%; min-height: 108px; resize: vertical; box-sizing: border-box; padding: 10px; border: 1px solid #cddbd7; border-radius: 7px; background: #fbfefd; color: #24302e; font: 12px/1.6 "Noto Sans SC", "Microsoft YaHei", sans-serif; white-space: pre-wrap; }
.poster-publish-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.poster-publish-actions button { min-height: 44px; }
.poster-publish-reality { padding-top: 2px; color: #556662; font-size: 12px; line-height: 1.7; }
.poster-publish-reality summary { cursor: pointer; font-weight: 700; }
.poster-publish-reality p { margin: 8px 0 0; }
.poster-copy-details { margin: 26px 0; padding-top: 18px; border-top: 1px solid #e7e7e4; }
.poster-copy-details summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.poster-projects { margin-top: 26px; border-top: 1px solid #e7e7e4; padding-top: 18px; }
.poster-projects h3 { font-size: 16px; }
.poster-projects p { font-size: 12px; line-height: 1.8; color: #5d656a; }
.poster-import-label { cursor: pointer; position: relative; overflow: hidden; }
.poster-import-label input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.poster-import-label:focus-within { outline: 3px solid #2e6187; outline-offset: 3px; }
.poster-zoom-dialog { width: min(1100px,92vw); max-width: 92vw; max-height: 90vh; padding: 20px; border: 1px solid #dedfdf; border-radius: 12px; color: #202b32; }
.poster-zoom-dialog::backdrop { background: #14243380; }
.poster-zoom-dialog h2 { font-size: 18px; margin: 0; }
.poster-zoom-dialog .workspace-heading { gap: 12px; }
.poster-zoom-scroll { max-height: 65vh; overflow: auto; background: #eeefec; }
.poster-zoom-scroll img { max-width: none; width: auto; height: auto; display: block; }
.business-profile { margin-bottom: 18px; }
.poster-template:focus-visible, .poster-controls :focus-visible { outline: 3px solid #2e6187; outline-offset: 3px; }
@media (max-width:1250px) { .poster-template canvas { height: 140px; } }
@media (max-width:760px) { .poster-template-panel { padding: 16px; } .poster-template-panel .workspace-heading { flex-direction: column; align-items: stretch; } .poster-library-heading .field-hint { text-align: left; } .poster-template-panel h2 { font-size: 19px; } .poster-template-filters,.poster-copy-fields { grid-template-columns: 1fr; } .poster-template-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; } .poster-template canvas { height: 150px; } .poster-stage { padding: 10px; } #poster-section select { width: 100%; } .poster-layout-actions { align-items: stretch; } .poster-layout-actions button { flex: 1 1 160px; } .poster-layout-editor { padding: 14px; } .poster-layout-fallback span { flex-basis: 100%; } .poster-layout-fallback .text-button { flex: 1 1 29%; } .poster-publish-center { padding: 14px; } .poster-publish-actions button { flex: 1 1 100%; } }
@media (prefers-reduced-motion:reduce) { .poster-template { transition: none; } }
@media print { .poster-template-panel,.poster-copy-fields,.poster-controls,.poster-projects,.business-profile,#poster-section .workspace-heading,#poster-section .field-hint,#poster-section .form-message,#poster-section details { display: none !important; } .poster-stage { background: transparent; padding: 0; } #poster-section #poster-canvas { max-height: 230mm; box-shadow: none; } }
