.artifact-dialog{color:var(--text,#e7edf3);background:var(--panel,#0b121b);border:1px solid var(--line,#344557);border-radius:16px;width:min(1180px,calc(100vw - 32px));max-width:none;height:calc(100dvh - 48px);max-height:none;padding:16px;overflow:auto}.artifact-dialog::backdrop{background:rgba(3,10,18,.7)}.artifact-restore{position:sticky;top:0;z-index:3;margin-bottom:12px}.artifact-viewer{min-width:0;max-width:100%;text-align:left}.artifact-header{display:flex;align-items:center;gap:16px;justify-content:space-between;flex-wrap:wrap;padding:12px 0}.artifact-header h3{font-size:16px;max-width:100%;overflow-wrap:anywhere;margin:0}.artifact-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.artifact-viewer button,.artifact-viewer select,.artifact-viewer input,.artifact-restore{font:inherit;font-size:13px;min-height:36px;border:1px solid var(--reading-border,#344557);border-radius:7px;padding:7px 11px;color:var(--reading-text,#e7edf3);background:var(--reading-control,#182330)}.artifact-viewer button{cursor:pointer}.artifact-viewer button:hover{border-color:var(--reading-accent,#5ee0e6)}.artifact-viewer :focus-visible,.artifact-restore:focus-visible{outline:3px solid var(--reading-accent,#5ee0e6);outline-offset:2px}.artifact-content{color:var(--reading-text,#e7edf3);background:var(--reading-bg,#182330);border:1px solid var(--reading-border,#344557);border-radius:10px;overflow:hidden;min-width:0}.artifact-status{font-size:13px;line-height:1.5;color:var(--reading-muted,#b2becb);margin:10px 0}.artifact-status:empty{display:none}.artifact-details,.artifact-annotations{padding:12px 0;border-top:1px solid var(--reading-border,#344557);font-size:14px}.artifact-viewer summary{cursor:pointer;padding:6px 0}.artifact-details dl{display:grid;grid-template-columns:100px minmax(0,1fr);gap:7px;margin:10px 0}.artifact-details dd{margin:0;overflow-wrap:anywhere}.artifact-details a{display:block;color:var(--reading-accent,#5ee0e6);padding:5px 0}.artifact-document{max-width:76ch;margin:auto;padding:clamp(20px,4vw,48px);font-size:16px;line-height:1.75}.artifact-document p{white-space:pre-wrap;overflow-wrap:anywhere}.artifact-document h1,.artifact-document h2,.artifact-document h3{line-height:1.3;margin-block:1.4em .6em}.artifact-document pre{overflow:auto}.artifact-document img{max-width:100%;height:auto;filter:none!important}.artifact-table-scroll{max-height:65dvh;overflow:auto}.artifact-viewer table{border-collapse:collapse;min-width:100%;width:max-content;font-size:14px}.artifact-viewer caption{text-align:left;padding:12px;font-weight:600}.artifact-viewer th,.artifact-viewer td{text-align:left;border:1px solid var(--reading-border,#344557);padding:10px 14px;max-width:420px;overflow-wrap:anywhere}.artifact-viewer th{position:sticky;top:0;background:var(--reading-bg,#182330);z-index:1}.artifact-viewer th button{text-align:left;border:0;padding:0;background:none;width:100%}.artifact-viewer td{font-variant-numeric:tabular-nums}.artifact-image-viewport{max-height:65dvh;overflow:auto;background:#e8ecef;touch-action:pan-x pan-y}.artifact-image-viewport img{display:block;max-width:100%;height:auto;margin:auto;filter:none!important;user-select:none;cursor:grab}.artifact-content video,.artifact-content audio{display:block;width:100%;max-height:65dvh;filter:none!important}.artifact-content video{background:#000}.artifact-content>details{padding:12px}.artifact-content>details pre{white-space:pre-wrap;overflow-wrap:anywhere}.artifact-waveform{width:100%;height:100px;background:#fff;cursor:crosshair}.artifact-pdf{width:100%;height:65dvh;border:0;background:#fff;color-scheme:light;filter:none!important}.artifact-code-tabs{display:flex;gap:5px;overflow:auto;padding:10px}.artifact-code-tabs [aria-selected=true]{border-color:var(--reading-accent,#5ee0e6)}.artifact-code-editor{height:55dvh;min-height:200px;--panel:var(--reading-bg,#182330);--text:var(--reading-text,#e7edf3);--muted:var(--reading-muted,#b2becb);--line:var(--reading-border,#344557)}.artifact-code-editor .cm-editor{border:0}.artifact-content>iframe:not(.artifact-pdf){width:100%;height:50dvh;border:0;background:#fff}.artifact-content>svg{display:block;width:100%;max-height:60dvh;filter:none!important}.artifact-content>output{display:block;padding:12px}.artifact-annotations form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;max-width:700px;margin-top:12px}.artifact-annotations textarea{grid-column:1/-1;width:100%;resize:vertical;background:var(--reading-control,#182330);border:1px solid var(--reading-border,#344557);color:var(--reading-text,#e7edf3);font:inherit;padding:10px;border-radius:7px}.artifact-annotations article{border-left:2px solid var(--reading-border,#344557);padding:8px 12px;margin:8px 0}.artifact-annotations article p{white-space:pre-wrap;overflow-wrap:anywhere}.annotation-actions-wrap{display:flex;align-items:center;gap:8px;margin-bottom:6px}.annotation-update-btn{background:rgba(0,242,254,0.08)!important;border-color:rgba(0,242,254,0.3)!important;color:var(--cyan,#00f2fe)!important;font-size:11.5px!important;min-height:28px!important;padding:4px 9px!important}.annotation-update-btn:hover{background:rgba(0,242,254,0.18)!important;border-color:var(--cyan,#00f2fe)!important}.artifact-annotations [role=status]{grid-column:1/-1}.artifact-viewer [hidden]{display:none!important}
@media(max-width:600px){.artifact-dialog{width:100vw;height:100dvh;margin:0;border-radius:0;padding:12px}.artifact-header{gap:12px}.artifact-toolbar{gap:6px}.artifact-viewer button,.artifact-viewer select,.artifact-viewer input,.artifact-restore{min-height:44px}.artifact-toolbar input{max-width:100%;min-width:0}.artifact-document{padding:20px;font-size:16px}.artifact-annotations form{grid-template-columns:minmax(0,1fr)}.artifact-details dl{grid-template-columns:80px minmax(0,1fr)}.artifact-code-editor{height:55dvh}.artifact-image-viewport,.artifact-content video{max-height:55dvh}}
.artifact-table-pages{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 0}.artifact-table-pages input{width:5rem;min-height:36px}.artifact-table-pages span{font-size:.875rem}.artifact-table-scroll{overflow:auto;max-height:65dvh;contain:layout paint}.artifact-table-scroll table{table-layout:auto}.artifact-table-scroll th{position:sticky;top:0;z-index:1;background:var(--reading-bg,#182330)}
