#thesis-workspace [hidden] { display: none !important; }
.th-grid { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(0, 4fr); gap: 1rem; }
.th-grid > * { min-width: 0; }
.th-document-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.th-document-head h2 { margin: 0; overflow-wrap: anywhere; }
.th-document-head [aria-pressed="true"] { border-color: var(--site-accent); color: var(--site-accent); font-weight: 700; }
.th-reading-frame { display: block; width: 100%; height: 72vh; min-height: 32rem; border: 1px solid var(--bs-border-color); border-radius: .5rem; background: var(--bs-body-bg); }
#th-reading { min-height: 32rem; margin-bottom: 1rem; }
.th-toolbar { margin-block: 1rem; flex-wrap: wrap; }
.th-files h2, .th-edit label { margin-top: 0; }
#th-files { display: grid; gap: .35rem; margin-bottom: 1.5rem; }
#th-files button { text-align: left; overflow-wrap: anywhere; white-space: normal; }
#th-files button[aria-current="true"] { border-color: var(--bs-primary); font-weight: 700; }
#th-add-form { display: grid; gap: .5rem; }
#th-source { display: block; width: 100%; min-height: 34rem; margin-top: .5rem; padding: 1rem; resize: vertical; font-family: var(--bs-font-monospace); font-size: .88rem; line-height: 1.65; tab-size: 2; color: var(--bs-body-color); background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: .5rem; }
#th-log { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 20rem; overflow: auto; }
#th-history { display: grid; gap: .5rem; }
#th-revision { align-self: center; }
@media (max-width: 800px) { .th-grid { grid-template-columns: 1fr; } #th-files { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); } #th-source { min-height: 26rem; } }
