.template-brief-edits { border: 1px solid var(--line, currentColor); border-radius: 1rem; padding: 1rem; background: var(--ink-2, transparent); margin-block: 1rem; line-height: 1.6; overflow-wrap: anywhere; }
.template-brief-edits form { display: grid; gap: .8rem; }
.template-brief-edits label { display: flex; flex-direction: column; gap: .3rem; }
.template-brief-edits input:not([type=checkbox]), .template-brief-edits textarea, .template-brief-edits select { box-sizing: border-box; max-width: 100%; width: 100%; min-height: 44px; font: inherit; }
.template-brief-edits fieldset { min-width: 0; display: flex; flex-wrap: wrap; gap: .8rem; }
.template-brief-edits fieldset label { flex-direction: row; align-items: center; min-height: 44px; }
.template-brief-edits button { min-height: 44px; font: inherit; margin-block: .4rem; margin-inline-end: .5rem; }
.template-brief-edits [hidden] { display: none !important; }
.template-brief-edits [name=primary], .template-brief-edits [name=accent] { direction: ltr; }
.template-brief-edits[lang=ar] { letter-spacing: normal; }
.template-brief-edits :focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

#templateReview { min-width: 0; max-width: 100%; }
#templateReviewClose { position: sticky; inset-block-start: 0; z-index: 2; background: var(--ink, #171717); color: var(--bone, white); min-height: 44px; }

.template-brief-edits fieldset { border: 1px solid var(--line, currentColor); border-radius: 12px; padding: .6rem; }
.template-brief-edits .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.5; padding-block: .5rem; }
.template-brief-edits select option { background: var(--ink, #171717); color: var(--bone, white); }

@media (min-width: 901px) { #templateReviewClose { display: none; } }
