.report-shell {width:min(100% - 2.5rem,36rem);margin:1.35rem auto 2rem;}
.product {display:flex;align-items:center;gap:.55rem;}
.product a {color:var(--plum);font-weight:700;text-decoration:none;}
.report-shell h1 {font-size:clamp(1.9rem,5vw,2.6rem);margin:.9rem 0 .5rem;line-height:1.2;}
.report-form {padding:0;}
.report-shell .fine {color:var(--muted);font-size:.86rem;margin:.35rem 0;line-height:1.45;}
.report-form .check {display:flex;align-items:center;gap:.55rem;font-size:.94rem;}
.report-form .check input {width:1.1rem;height:1.1rem;flex:none;accent-color:var(--purple);}
.report-shell footer {font-size:.85rem;margin-top:1.35rem;}
.shape {background:white;border:1px solid var(--line);border-radius:.45rem;margin:.55rem 0;padding:.8rem 1rem;overflow:auto;overflow-wrap:normal;}
.shape .sample-label {white-space:nowrap;}
.shape :is(h1,h2,h3,h4) {font-size:1.2rem;margin:.4rem 0;}
.shape p {margin:.3rem 0;}
.shape .media {display:block;background:#eee7f0;color:var(--purple);padding:.45rem;border-radius:.25rem;}
.shape .link {color:var(--purple);text-decoration:underline;}
#diagnostics {margin:.9rem 0;}
#feedback:empty {display:none;}
.report-form .actions {margin:1rem 0;}
.report-form #screenshot {font-size:.9rem;max-width:100%;}
#screenshot-preview {display:block;width:auto;height:auto;max-width:100%;max-height:20rem;border:1px solid var(--line);margin-top:.5rem;}
#screenshot-preview[hidden] {display:none;}

.report-form #source {resize:vertical; overflow-wrap:anywhere; background:var(--paper,#faf8f5);}
.report-form .field-error {color:#923125; margin:.25rem 0 0; font-size:.9rem;}
.report-form .field-error:empty, .report-form [hidden] {display:none;}
.report-form [aria-invalid=true] {border-color:#923125;}

.shape {max-height:min(28rem,52vh);font-size:.85rem;line-height:1.45;}
.shape :is(h1,h2,h3,h4) {letter-spacing:normal;}
.shape h1 {font-size:1.35rem;} .shape h3,.shape h4 {font-size:1rem;}
.shape :is(nav,aside,blockquote) {padding:.4rem .55rem;border-left:2px solid var(--line);margin:.3rem 0;}
.shape figure,.shape footer {margin:.35rem 0;}
.shape figcaption {font-size:.78rem;color:var(--muted);}
.shape .media {display:grid;place-items:center;border:1px solid #d8cedc;min-height:1.8rem;text-align:center;}
.shape [data-layout^=columns] {display:flex;flex-wrap:wrap;align-items:flex-start;gap:.4rem;}
.shape [data-layout=columns-2] > * {flex:1 1 calc(50% - .4rem);}
.shape [data-layout=columns-3] > * {flex:1 1 calc(33.333% - .4rem);}
.shape [data-layout=columns-2]:has(> [data-width=two-thirds]) > * {flex-basis:calc(33.333% - .4rem);}
.shape [data-layout=columns-2]:has(> [data-width=two-thirds]) > [data-width=two-thirds] {flex-basis:calc(66.667% - .4rem);}
.shape [data-layout=row] {display:flex;flex-wrap:wrap;align-items:flex-start;gap:.35rem;}
.shape [data-layout=stack] {display:flex;flex-direction:column;gap:.2rem;}
.shape [data-layout=row] > [data-width=quarter] {flex:0 1 23%;}
.shape [data-layout=row] > [data-width=third] {flex:0 1 31%;}
.shape [data-layout=row] > [data-width=half] {flex:0 1 47%;}
.shape [data-layout=row] > [data-width=two-thirds] {flex:0 1 63%;}
.shape [data-width=full] {width:100%;}
.shape .media[data-aspect] {width:100%;max-height:12rem;}
.shape [data-aspect=wide] {aspect-ratio:21/9;}
.shape [data-aspect=landscape] {aspect-ratio:16/9;}
.shape [data-aspect=square] {aspect-ratio:1;}
.shape [data-aspect=portrait] {aspect-ratio:3/4;}
.shape [data-lines]:not([data-lines="1"])::after {content:"";display:block;width:85%;height:var(--lines-height);background:repeating-linear-gradient(transparent 0 .3em,#ded9e1 .3em .55em,transparent .55em 1em);}
.shape [data-lines="2"] {--lines-height:1em;}
.shape [data-lines="3"] {--lines-height:2em;}
.shape [data-lines="4"] {--lines-height:3em;}
.shape .table-scroll {width:100%;min-width:0;max-width:100%;overflow-x:auto;}
.shape table {border-collapse:collapse;width:100%;}
/* Position grids can use flex rows on the website. Keep their captured
   table semantics in the preview, including across horizontal scrolling. */
.shape :is(table,thead,tbody,tr,td,th)[data-layout] {display:revert;}
.shape :is(td,th) {border:1px solid var(--line);padding:.25rem .4rem;text-align:start;vertical-align:top;}
.shape th {background:#f5f1f5;}
.shape .positions :is(th,td) {white-space:nowrap;padding:.4rem .55rem}
.shape .positions th {color:#382346}
.shape .positions .position-symbol {position:sticky;left:0;background:#fff;box-shadow:1px 0 #ddd4dd}
.shape .positions th.position-symbol {background:#f5f1f5}
.position-mask {color:#655d66;letter-spacing:.08em}
.shape .table-scroll {position:relative}
.visually-hidden {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.table-scroll:focus-visible {outline:2px solid var(--purple);outline-offset:-2px}
