.dd-hub{display:grid;gap:1.25rem;max-width:1100px}.dd-hub section{background:#fff;border:1px solid #d8d4cc;border-radius:8px;padding:1rem}.dd-hub h2{font-size:1.1rem;margin:0 0 .75rem}.dd-link-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.6rem}.dd-link-grid button,.dd-hub-saved button{background:#faf9f6;border:1px solid #d4d0c8;border-radius:5px;padding:.8rem;text-align:left;color:inherit;cursor:pointer}.dd-hub-saved{display:grid;gap:.5rem}.dd-hub-saved button{display:flex;gap:.7rem;align-items:baseline;flex-wrap:wrap}.dd-hub-saved button small{margin-left:auto}.dd-editor{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:1rem;max-width:1250px}.dd-paper-side,.dd-inspector{min-width:0}.dd-paper-side{background:#eeeae2;padding:1rem;overflow:auto}.dd-paper{font:15px/1.45 'Times New Roman',Times,serif;color:#111;background:white;border:1px solid #c8c8c8;max-width:760px;min-height:850px;margin:auto;padding:3rem 3.5rem;box-shadow:0 2px 12px #0002;overflow-wrap:anywhere}.dd-paper [data-dd-section]{cursor:pointer}.dd-paper [data-dd-section]:hover{outline:1px dashed #777}.dd-paper-status{font:11px/1.2 sans-serif;text-align:right;color:#666;margin-bottom:1rem}.dd-paper h2{text-align:center;font:700 21px 'Times New Roman',Times,serif;letter-spacing:.05em;margin:1.5rem 0}.dd-paper header>div:first-child{text-align:center}.dd-meta{display:flex;justify-content:space-between;gap:1rem}.dd-paper section{margin-top:2rem}.dd-paper table{width:100%;border-collapse:collapse;margin-top:1rem;table-layout:fixed}.dd-paper th,.dd-paper td{border:1px solid #333;text-align:left;vertical-align:top;padding:.35rem;min-height:1.8rem}.dd-paper footer{margin-top:4rem;display:grid;gap:1rem}.dd-paper footer>div,.dd-paper footer[data-dd-section=signatures]{display:flex;justify-content:space-between;align-items:end;gap:.7rem}.dd-paper footer[data-dd-section=signatures] div{display:flex;align-items:end;gap:.5rem;width:100%}.dd-sign-line{display:inline-block;flex:1;border-bottom:1px solid #222;min-width:3rem;height:1.2rem}.dd-change-list section{border-bottom:1px solid #999;margin:1rem 0;padding-bottom:.5rem}.dd-change-list span{float:right}.dd-change-list p{clear:both}.dd-inspector{background:#fff;border:1px solid #ddd7cf;border-radius:6px;padding:1rem;align-self:start;display:grid;gap:.7rem;max-height:80vh;overflow:auto}.dd-inspector h3{margin:0}.dd-inspector label{display:grid;gap:.3rem;font-weight:600}.dd-inspector input,.dd-inspector textarea,.dd-inspector select{max-width:100%;box-sizing:border-box}.dd-inspector textarea{min-height:5rem}.dd-help{font-size:.85rem;color:#655f58}.dd-actions,.dd-row-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.8rem}.dd-person-list{max-height:180px;overflow:auto;display:grid;gap:.25rem}.dd-person-list button{display:flex;align-items:center;gap:.5rem;text-align:left}.dd-person-list img{width:32px;height:40px;object-fit:cover;border-radius:50%}.dd-person-list button[hidden]{display:none}
#dd-print-host{display:none}
#detail .dd-inspector{position:static!important;inset:auto!important;width:auto!important;height:auto!important;transform:none!important;z-index:auto!important;backdrop-filter:none!important;border:1px solid #ddd7cf;border-radius:6px;padding:1rem;overflow:auto;background:#fff;display:grid}
#detail.dialog-workspace:has(.dd-editor){width:min(1250px,calc(100vw - 36px));max-width:1250px}
.dd-paper[data-dd-kind=distribution] footer[data-dd-section=signatures]{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem}
.dd-paper[data-dd-kind=distribution] footer[data-dd-section=signatures]>div{display:flex;align-items:end;justify-content:space-between;gap:.5rem;width:100%}
.dd-section-tabs{display:flex;flex-wrap:wrap;gap:.4rem;margin:0 0 .75rem}.dd-section-tabs button{font-size:.78rem;min-height:34px;padding:.35rem .55rem}.dd-section-tabs button[aria-pressed=true]{border-color:#876834;background:#f2ead8;color:#493b25;font-weight:650}.dd-paper [data-dd-section]{min-height:2rem}.dd-paper [data-dd-selected=true]{outline:2px solid #967240;outline-offset:3px;background:#f7f1e5}
@media(max-width:750px){.dd-editor{grid-template-columns:minmax(0,1fr)}.dd-paper-side{padding:.35rem;overflow:auto}.dd-paper{padding:1.4rem;min-height:550px;font-size:13px;box-shadow:none}.dd-inspector{max-height:none}.dd-hub-saved button small{margin-left:0}}
@media(max-width:390px){.dd-link-grid{grid-template-columns:minmax(0,1fr)}.dd-paper{padding:.75rem;font-size:12px}.dd-paper h2{font-size:16px}.dd-paper td,.dd-paper th{padding:.2rem}.dd-meta{gap:.2rem}.dd-editor,.dd-hub,.dd-hub section{min-width:0}}
@media(max-width:750px){#detail.dialog-workspace:has(.dd-editor){width:100vw;max-width:100vw;height:100dvh;max-height:100dvh}}
@media print{@page department-document{size:A4 portrait;margin:17mm}body:has(#dd-print-host) > :not(#dd-print-host){display:none!important}#dd-print-host{display:block!important}#dd-print-host .dd-paper{page:department-document;border:0;box-shadow:none;max-width:none;min-height:0;margin:0;padding:0;font-size:12pt}#dd-print-host .dd-paper [data-dd-section]{min-height:0;outline:0;background:transparent}#dd-print-host .dd-paper-status{font-size:8pt}}

.dd-paper table th,.dd-paper table td{font-family:inherit;font-size:inherit;line-height:inherit}

.dd-library-heading-actions{display:flex;justify-content:flex-end;margin:-.35rem 0 .65rem}
.dd-call-form-schema{display:grid;gap:.85rem;margin:0 0 1.25rem;padding:1rem;border:1px solid #d8d4cc;border-radius:10px;background:#faf9f6}
.dd-call-form-schema-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;border-bottom:1px solid #ded8ce;padding-bottom:.7rem}
.dd-call-form-schema-head h2{margin:.25rem 0 0;font-size:1.12rem}
.dd-call-form-schema-badge{font-size:.75rem;color:#655f58;border:1px solid #c9c0b2;border-radius:999px;padding:.2rem .55rem;white-space:nowrap}
.dd-call-form-schema-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}
.dd-call-form-schema-grid>section{min-width:0;padding:.7rem;border:1px solid #e4dfd7;border-radius:7px;background:#fff}
.dd-call-form-schema-grid h3{margin:0 0 .55rem;font-size:.9rem}
.dd-call-form-schema dl{display:grid;gap:.4rem;margin:0}
.dd-call-form-schema dl>div{display:flex;justify-content:space-between;gap:1rem;border-bottom:1px dotted #ddd7cf;padding-bottom:.25rem}
.dd-call-form-schema dt{color:#655f58;font-size:.83rem}
.dd-call-form-schema dd{margin:0;text-align:right;font-size:.86rem}
.dd-call-form-schema-table{display:grid;border:1px solid #e4dfd7;border-radius:5px;overflow:hidden;font-size:.82rem}
.dd-call-form-schema-row{display:grid;grid-template-columns:minmax(0,1.35fr) repeat(2,minmax(0,.8fr));gap:.5rem;padding:.42rem .5rem;border-top:1px solid #eeeae4}
.dd-call-form-schema-row:first-child{border-top:0}
.dd-call-form-schema-row-head{background:#f5f2ed;color:#655f58;font-size:.76rem}
.dd-call-form-schema-row span{min-width:0;overflow-wrap:anywhere}
.dd-library-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;align-items:end}
.dd-library-filters label{display:grid;gap:.3rem;font-size:.9rem;min-width:0}
.dd-library-filters input,.dd-library-filters select{box-sizing:border-box;width:100%;min-width:0;max-width:100%}
.dd-library-search{grid-column:1/-1}
.dd-library-results{display:grid;gap:.6rem;min-width:0}
.dd-library-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem;border:1px solid #d8d4cc;border-radius:6px;padding:1rem;background:#faf9f6;min-width:0}
.dd-library-row h3{font-size:1rem;margin:.3rem 0;overflow-wrap:anywhere}
.dd-library-row p{margin:.35rem 0;overflow-wrap:anywhere}
.dd-library-kind{font-size:.78rem;color:#655f58}
.dd-library-actions{display:flex;flex-direction:column;gap:.4rem;align-self:center}
.dd-hub-saved .dd-library-actions button,.dd-library-filters button{font-size:.85rem;margin:0}
.dd-library-preview{overflow:auto;min-width:0}
.rtt-library{display:grid;gap:1rem;max-width:1180px}.rtt-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;border-bottom:1px solid #ded8ce;padding-bottom:1rem}.rtt-heading h2{margin:.25rem 0 .35rem}.rtt-intro{max-width:760px;margin:0;color:#655f58}.eyebrow{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:#8b6f3d}.rtt-filters{display:grid;grid-template-columns:repeat(2,minmax(0,260px));gap:.75rem}.rtt-filters label{display:grid;gap:.3rem;font-weight:600}.rtt-results{display:grid;gap:.65rem}.rtt-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem;border:1px solid #d8d4cc;border-radius:10px;padding:1rem;background:#fff}.rtt-card[hidden]{display:none}.rtt-card-kicker{font-size:.76rem;color:#806631}.rtt-card h3{margin:.25rem 0;font-size:1.05rem}.rtt-card-meta{display:flex;flex-wrap:wrap;gap:.5rem 1rem;margin:.25rem 0}.rtt-card-meta span{color:#655f58}.rtt-card-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.4rem;max-width:340px}.rtt-card-actions button{font-size:.86rem}.rtt-empty{border:1px dashed #c9c0b2;border-radius:10px;padding:1.25rem;background:#faf8f4}.rtt-empty strong{font-size:1.05rem}.rtt-empty p{max-width:620px}.rtt-editor{display:grid;gap:1rem;max-width:1080px}.rtt-editor-head{border-bottom:1px solid #ded8ce;padding-bottom:.75rem}.rtt-editor-head h2{margin:.25rem 0}.rtt-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.rtt-editor-grid label,.rtt-block label{display:grid;gap:.3rem;font-weight:600}.rtt-wide{grid-column:1/-1}.rtt-blocks,.rtt-preview{border:1px solid #ded8ce;border-radius:10px;padding:1rem;background:#faf9f6}.rtt-section-title{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem}.rtt-section-title h3{margin:0}.rtt-blocks{display:grid;gap:.7rem}.rtt-block{display:grid;gap:.55rem;border:1px solid #ded8ce;border-radius:8px;padding:.75rem;background:#fff}.rtt-block-title{display:flex;justify-content:space-between;gap:.5rem}.rtt-block-note{font-size:.82rem;color:#655f58;margin:0}.rtt-preview{overflow:auto}.rtt-paper-preview{overflow:auto;background:#eeeae2;padding:1rem}.rtt-editor-footer{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem}.rtt-editor-footer .small{flex:1 1 100%;margin:0}.rtt-history{display:grid;gap:.6rem}.rtt-history article{display:flex;align-items:center;gap:1rem;border:1px solid #ded8ce;border-radius:8px;padding:.75rem;background:#fff}.rtt-history article span{color:#655f58;margin-right:auto}
@media(max-width:750px){.rtt-heading,.rtt-card{grid-template-columns:minmax(0,1fr);display:grid}.rtt-card-actions{justify-content:flex-start;max-width:none}.rtt-editor-grid{grid-template-columns:minmax(0,1fr)}.rtt-wide{grid-column:auto}.rtt-history article{align-items:flex-start;flex-wrap:wrap}.rtt-history article span{margin-right:0}}
@media(max-width:750px){.dd-library-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.dd-library-row{grid-template-columns:minmax(0,1fr)}.dd-library-actions{flex-direction:row;flex-wrap:wrap}.dd-library-actions button{flex:1;justify-content:center}}
@media(max-width:600px){.dd-call-form-schema-grid{grid-template-columns:minmax(0,1fr)}.dd-call-form-schema-head{display:grid;gap:.5rem}.dd-call-form-schema-badge{justify-self:start}.dd-call-form-schema dl>div{gap:.6rem}}
@media(max-width:450px){.dd-library-filters{grid-template-columns:minmax(0,1fr)}.dd-library-search{grid-column:auto}.dd-library-row{padding:.75rem}.dd-library-actions{flex-direction:column}.dd-library-actions button{width:100%;box-sizing:border-box}.dd-hub-saved{min-width:0}}

/* Library previews wrap their paper; keep that wrapper when printing. */
@media print {
 body:has(#detail[open] .dd-library-preview){height:auto!important;overflow:visible!important;background:#fff!important;color:#000!important}
 body:has(#detail[open] .dd-library-preview)>:not(#detail){display:none!important}
 #detail[open]:has(.dd-library-preview)::backdrop{display:none!important}
 #detail[open]:has(.dd-library-preview){page:theatre-call;display:block!important;position:static!important;inset:auto!important;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important}
 #detail[open]:has(.dd-library-preview) #detail-body{display:block!important;position:static!important;height:auto!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:0!important}
 #detail[open]:has(.dd-library-preview) #detail-body>.dd-library-preview{display:block!important;overflow:visible!important;margin:0!important;padding:0!important}
 #detail[open]:has(.dd-library-preview) #detail-body>:not(.dd-library-preview){display:none!important}
 #detail[open] .dd-library-preview .dd-paper{page:department-document;border:0;box-shadow:none;max-width:none;min-height:0;margin:0;padding:0;font-size:12pt}
 #detail[open] .dd-library-preview .dd-paper [data-dd-section]{min-height:0;outline:0;background:transparent}
 #detail[open] .dd-library-preview .activity-document-private{display:none!important}
}

/* Empty trailing fallback rows must not consume a separate sheet. */
@media print {
 #detail[open].activity-document-dialog .familiar-paper:not(.familiar-word-paper):not(.familiar-roster):not(.familiar-performance-strip) tbody>tr:last-child:not(:has(td:not(:empty))){display:none!important}
}

/* Layout reconstructed from the department paper originals. */
.dd-paper .dd-institution{text-align:center;line-height:1.1}
.dd-paper[data-dd-kind=distribution] h2{margin:1.7rem 0 1.1rem;font-size:1em;letter-spacing:0}
.dd-paper[data-dd-kind=distribution] .dd-meta{display:flex;justify-content:space-between}
.dd-paper[data-dd-kind=distribution] .dd-city{text-align:center;margin:.3rem 0 0}
.dd-paper[data-dd-kind=distribution] [data-dd-section=subject]{text-align:center;margin-top:2rem}
.dd-paper[data-dd-kind=distribution] .dd-basis{font-weight:bold;margin:0 0 2.4rem}
.dd-paper[data-dd-kind=distribution] .dd-author,.dd-paper[data-dd-kind=distribution] .dd-production{margin:.1rem 0}
.dd-paper[data-dd-kind=distribution] [data-dd-section=rows]{margin-top:2rem}
.dd-paper .dd-cast-list{display:grid;gap:.4rem}
.dd-paper .dd-cast-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.9fr);gap:.8rem;align-items:baseline}
.dd-paper .dd-cast-performer{text-align:right;font-weight:bold}
.dd-paper[data-dd-kind=distribution] footer[data-dd-section=signatures]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:2.5rem}
.dd-paper[data-dd-kind=distribution] footer[data-dd-section=signatures]>div{display:grid;grid-template-rows:auto auto;justify-content:stretch;gap:.5rem;min-width:0}
.dd-paper .dd-signature{display:flex;align-items:end;gap:.3rem;min-width:0;white-space:nowrap}
.dd-paper .dd-signature .dd-sign-line{min-width:2rem}
.dd-paper .dd-signature strong{font-size:.85em}
.dd-paper[data-dd-kind=debut]{min-height:0}
.dd-paper[data-dd-kind=debut] [data-dd-section=statement]{margin:0}
.dd-paper[data-dd-kind=debut] [data-dd-section=statement] p{margin:0 0 .35rem}
.dd-paper[data-dd-kind=debut] footer[data-dd-section=issue]{display:flex;flex-direction:column;align-items:center;gap:0;width:max-content;max-width:50%;margin:.3rem 0 0 auto;line-height:1.15}
.dd-paper[data-dd-kind=repertoire_change] [data-dd-section=changes]{margin-top:0}
.dd-paper[data-dd-kind=repertoire_change] [data-dd-section=changes]>p{text-align:center}
.dd-paper .dd-change-list section{display:flex;gap:.4rem;border:0;margin:.7rem 0;padding:0}
.dd-paper .dd-change-list p{margin:0}
.dd-paper .dd-change-number{float:none;flex:none}
.dd-paper[data-dd-kind=repertoire_change] footer[data-dd-section=signatures]{display:flex;align-items:end;gap:.4rem;margin-top:1.5rem}
.dd-paper[data-dd-kind=repertoire_change] .dd-change-signatory{display:flex;flex-direction:column;align-items:start;gap:.1rem;width:auto;flex:none}
.dd-paper[data-dd-kind=repertoire_change] footer[data-dd-section=signatures]>.dd-sign-line{max-width:8rem}
@media print{
 #dd-print-host .dd-paper[data-dd-kind=debut],#detail[open] .dd-library-preview .dd-paper[data-dd-kind=debut]{width:100%;font-size:12pt;line-height:1.18}
 #dd-print-host .dd-paper[data-dd-kind=distribution],#detail[open] .dd-library-preview .dd-paper[data-dd-kind=distribution]{line-height:1.25}
 #dd-print-host .dd-paper .dd-institution,#detail[open] .dd-library-preview .dd-paper .dd-institution{line-height:1.1}
 body:has(#detail[open] .dd-library-preview)>#detail[open]{display:block!important}
 body:has(#detail[open] .dd-library-preview)>#dd-print-host{display:none!important}
}
