/* Portrait has no global player. One hidden audio owner keeps portrait and landscape in sync. */
#prelude-audio{display:none}

body .chat-artifact{display:grid;grid-template-columns:66px minmax(0,1fr);align-items:stretch;gap:0;padding:0;margin-top:18px;min-height:74px;background:var(--portrait-surface);border:1px solid var(--portrait-border);border-radius:9px;box-shadow:0 2px 3px #1717140b,0 5px 15px #1717140a;color:var(--portrait-text);text-align:left;width:100%;font:inherit;overflow:hidden}
.chat-artifact-art{display:grid;place-items:center;align-self:stretch;background:color-mix(in srgb,var(--mood-sad) 10%,var(--portrait-surface));border-right:1px solid color-mix(in srgb,var(--mood-sad) 14%,var(--portrait-border))}
.chat-artifact-art svg{width:30px;height:30px;fill:var(--mood-sad)}
.chat-artifact-content{display:grid;grid-template-rows:auto 25px;align-content:center;gap:2px;min-width:0;padding:5px 12px}
body .chat-artifact-heading{display:grid;gap:1px;min-width:0;padding:0}
body .chat-artifact-heading strong{color:var(--portrait-text);font:500 13px system-ui;overflow-wrap:anywhere}
body .chat-artifact .chat-artifact-detail{display:block!important;font:11px system-ui;color:var(--portrait-muted);white-space:normal}
.chat-artifact-controls{display:flex;align-items:center;gap:9px;min-width:0}
.chat-artifact-play{display:grid;place-items:center;flex:none;width:25px;height:25px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:var(--portrait-text);cursor:pointer;touch-action:manipulation}
.chat-artifact-play:active{background:color-mix(in srgb,var(--mood-sad) 12%,transparent)}
.chat-artifact-play:disabled{opacity:.35;cursor:default}
.chat-artifact-play svg{width:16px;height:16px;fill:currentColor}
.chat-artifact-seek{appearance:none;-webkit-appearance:none;flex:1;min-width:0;height:25px;margin:0;padding:0;border:0;background:transparent;cursor:pointer;touch-action:none;accent-color:var(--mood-sad)}
.chat-artifact-seek:disabled{opacity:.35;cursor:default}
.chat-artifact-seek::-webkit-slider-runnable-track{height:2px;border-radius:2px;background:color-mix(in srgb,var(--mood-sad) 32%,var(--portrait-border))}
.chat-artifact-seek::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:10px;height:10px;margin-top:-4px;border:0;border-radius:50%;background:var(--mood-sad)}
.chat-artifact-seek::-moz-range-track{height:2px;border-radius:2px;background:color-mix(in srgb,var(--mood-sad) 32%,var(--portrait-border))}
.chat-artifact-seek::-moz-range-thumb{width:10px;height:10px;border:0;border-radius:50%;background:var(--mood-sad)}
.chat-artifact.is-selected{border-color:color-mix(in srgb,var(--mood-sad) 24%,var(--portrait-border))}
.chat-artifact-play:focus-visible,.chat-artifact-seek:focus-visible{outline:2px solid var(--mood-sad);outline-offset:2px}
.chat-artifact.has-music-report .chat-artifact-heading{position:relative;padding-right:32px}
.chat-artifact-report{position:absolute;right:-7px;top:-5px;display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--mood-sad);cursor:pointer;touch-action:manipulation}
.chat-artifact-report svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.chat-artifact-report:active{background:color-mix(in srgb,var(--mood-sad) 10%,transparent)}
.chat-artifact-report:focus-visible{outline:2px solid var(--mood-sad);outline-offset:-3px}
/* Same rounded, inset sheet treatment as the information/ideas popup. */
#music-report-dialog{box-sizing:border-box;width:min(480px,calc(100vw - 36px));max-height:82dvh;padding:24px;border:1px solid var(--portrait-border);border-radius:24px;background:var(--portrait-surface);color:var(--portrait-text);box-shadow:0 18px 60px var(--portrait-scrim);overflow:hidden}
#music-report-dialog[open]{display:flex;flex-direction:column}
#music-report-dialog::backdrop{background:var(--portrait-scrim)}
.music-report-head{display:flex;align-items:flex-start;gap:8px;flex:none}
.music-report-head h2{flex:1;margin:0;font:400 27px/1.15 Georgia,'Times New Roman',serif}
.music-report-close{flex:none;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--portrait-muted);font:24px system-ui;cursor:pointer}
.music-report-close:focus-visible{outline:2px solid var(--mood-sad);outline-offset:-2px}
.music-report-body{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.music-report-track{margin:8px 0 18px;color:var(--mood-sad);font:13px/1.5 system-ui;overflow-wrap:anywhere}
.music-report-body .chat-music-analysis{margin:0}
@media(max-height:550px){#music-report-dialog{max-height:86dvh;padding:16px}.music-report-head h2{font-size:23px}}
.music-performance-table{width:100%;table-layout:fixed;border-collapse:collapse;margin:0 0 24px;color:#626069;font:400 15px/1.55 Georgia,serif;text-align:left}
.music-performance-table caption{text-align:left;color:#7f44c9;font:600 17px/1.4 system-ui,sans-serif;padding:0 0 12px}
.music-performance-table th,.music-performance-table td{vertical-align:top;padding:10px 8px;border-bottom:1px solid #e8dff0;overflow-wrap:anywhere}
.music-performance-table thead th{font:600 13px/1.45 system-ui,sans-serif;background:#f6f0fc;color:#665477}
.music-performance-table th:first-child{width:27%;padding-left:0}
.music-performance-table tbody th{font:500 13px/1.5 system-ui,sans-serif;color:#74647e}
.music-performance-table tbody th span{display:block;white-space:nowrap;font-size:11px;font-weight:400;color:#89828e}
.music-performance-table caption{display:flex;align-items:center;gap:10px}.music-performance-table caption svg{width:35px;height:35px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.music-performance-table td p{margin:0 0 7px}.music-performance-table td p:last-child{margin-bottom:0}
.music-report-section{margin:12px 0;padding:14px 15px 12px;border:1px solid color-mix(in srgb,var(--mood-sad) 16%,var(--portrait-border));border-radius:16px;background:color-mix(in srgb,var(--mood-sad) 4%,var(--portrait-surface))}
.music-report-section-head{display:flex;align-items:center;gap:12px;margin:0 0 9px}.music-report-section .music-report-section-head h4{margin:0}
.music-report-vector{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:14px;background:color-mix(in srgb,var(--mood-sad) 10%,var(--portrait-surface));color:var(--mood-sad)}
.music-report-vector svg{width:39px;height:39px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.music-report-section p{font-size:15px;line-height:1.6;margin:0 0 8px}.music-report-section p:last-child{margin-bottom:0}
