.hux-artifacts { color: var(--hux-text, #dce8f4); display: grid; gap: 0.8rem; grid-template-columns: minmax(12rem, 0.75fr) minmax(20rem, 2fr) minmax(13rem, 0.85fr); min-height: 30rem; } .hux-artifact-list, .hux-artifact-main, .hux-artifact-side { background: color-mix(in srgb, currentColor 2.5%, transparent); border: 1px solid color-mix(in srgb, currentColor 13%, transparent); border-radius: 0.9rem; min-width: 0; padding: 0.8rem; } .hux-artifact-list header h2, .hux-artifact-history h3, .hux-artifact-list button, .hux-artifact-actions, .hux-artifact-actions button, .hux-artifact-heading, .hux-artifact-preview-empty, .hux-artifact-evidence, .hux-artifact-promote, .hux-artifact-diff { align-items: center; display: flex; } .hux-artifact-list header h2, .hux-artifact-history h3 { font-size: 0.9rem; gap: 0.4rem; margin: 0; } .hux-artifact-list header p, .hux-artifact-heading p, .hux-artifact-empty { color: color-mix(in srgb, currentColor 58%, transparent); font-size: 0.7rem; margin: 0.25rem 0 0; } .hux-artifact-list ul, .hux-artifact-history ol { display: grid; gap: 0.4rem; list-style: none; margin: 0.8rem 0 0; padding: 0; } .hux-artifact-list button, .hux-artifact-history button, .hux-artifact-actions button, .hux-artifact-promote, .hux-artifact-diff { background: color-mix(in srgb, currentColor 4%, transparent); border: 1px solid color-mix(in srgb, currentColor 13%, transparent); border-radius: 0.6rem; color: inherit; cursor: pointer; font: inherit; } .hux-artifact-list button { gap: 0.55rem; padding: 0.55rem; text-align: left; width: 100%; } .hux-artifact-list button[aria-current="page"] { background: color-mix(in srgb, var(--hux-accent, #25d4c3) 11%, transparent); border-color: color-mix(in srgb, var(--hux-accent, #25d4c3) 45%, transparent); } .hux-artifact-list button > span { display: grid; gap: 0.15rem; min-width: 0; } .hux-artifact-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hux-artifact-list small { color: color-mix(in srgb, currentColor 55%, transparent); text-transform: capitalize; } .hux-artifact-list svg, .hux-artifact-actions svg, .hux-artifact-history svg, .hux-artifact-preview-empty svg, .hux-artifact-promote svg { flex: 0 0 auto; height: 0.95rem; width: 0.95rem; } .hux-artifact-heading { align-items: start; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; } .hux-artifact-heading > div:first-child > span { color: var(--hux-accent, #25d4c3); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; } .hux-artifact-heading h2 { font-size: 1rem; margin: 0.15rem 0; } .hux-artifact-actions { flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; } .hux-artifact-actions button, .hux-artifact-promote, .hux-artifact-diff { gap: 0.35rem; padding: 0.4rem 0.55rem; } .hux-artifacts button:focus-visible, .hux-artifacts pre:focus-visible { outline: 2px solid var(--hux-accent, #25d4c3); outline-offset: 2px; } .hux-artifacts button:disabled { cursor: not-allowed; opacity: 0.48; } .hux-artifact-document, .hux-artifact-code, .hux-artifact-report, .hux-artifact-data, .hux-artifact-image, .hux-artifact-audio, .hux-artifact-preview-empty { background: color-mix(in srgb, #050a12 70%, transparent); border: 1px solid color-mix(in srgb, currentColor 12%, transparent); border-radius: 0.75rem; margin: 0.85rem 0; min-height: 15rem; overflow: auto; padding: 0.8rem; } .hux-artifact-report h3 { color: var(--hux-accent, #25d4c3); font-size: 0.7rem; letter-spacing: 0.08em; margin: 0 0 0.65rem; text-transform: uppercase; } .hux-artifact-document pre, .hux-artifact-code pre, .hux-artifact-report pre, .hux-artifact-data pre { font: 0.76rem/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; } .hux-artifact-preview-empty { align-content: center; color: color-mix(in srgb, currentColor 55%, transparent); flex-direction: column; justify-content: center; text-align: center; } .hux-artifact-image { display: grid; place-items: center; } .hux-artifact-image img { max-height: 32rem; max-width: 100%; object-fit: contain; } .hux-artifact-image figcaption, .hux-artifact-audio span { color: color-mix(in srgb, currentColor 55%, transparent); font-size: 0.65rem; margin-top: 0.5rem; } .hux-artifact-audio { align-content: center; display: grid; } .hux-artifact-audio audio { width: 100%; } .hux-artifact-evidence { gap: 0.55rem; margin: 0.8rem 0; } .hux-artifact-evidence div { background: color-mix(in srgb, currentColor 4%, transparent); border-radius: 0.55rem; display: grid; flex: 1; padding: 0.55rem; } .hux-artifact-evidence strong { color: var(--hux-accent, #25d4c3); } .hux-artifact-evidence span { font-size: 0.65rem; } .hux-artifact-promote { margin-left: auto; } .hux-artifact-history ol > li { border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent); display: grid; gap: 0.35rem; padding-bottom: 0.45rem; } .hux-artifact-history ol > li[data-current="true"] { border-color: var(--hux-accent, #25d4c3); } .hux-artifact-history li > button:first-child { display: grid; gap: 0.15rem; padding: 0.48rem; text-align: left; width: 100%; } .hux-artifact-history li > button[aria-pressed="true"] { background: color-mix(in srgb, var(--hux-accent, #25d4c3) 9%, transparent); } .hux-artifact-history span, .hux-artifact-history time { color: color-mix(in srgb, currentColor 56%, transparent); font-size: 0.63rem; } .hux-artifact-diff { font-size: 0.68rem; justify-self: end; } .hux-artifact-error, .hux-artifact-warning { border-left: 2px solid #efb756; color: #efcf96; font-size: 0.72rem; margin: 0 0 0.7rem; padding-left: 0.55rem; } .hux-artifact-error { border-color: #e36b7c; color: #f0a4ae; } @media (max-width: 66rem) { .hux-artifacts { grid-template-columns: minmax(12rem, 0.7fr) minmax(20rem, 2fr); } .hux-artifact-side { grid-column: 1 / -1; } .hux-artifact-history ol { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); } } @media (max-width: 42rem) { .hux-artifacts { grid-template-columns: 1fr; } .hux-artifact-side { grid-column: auto; } .hux-artifact-heading { align-items: stretch; } .hux-artifact-actions { justify-content: stretch; } .hux-artifact-actions button { flex: 1; } } @media (prefers-reduced-motion: reduce) { .hux-artifacts * { scroll-behavior: auto; transition: none; } }