/* Shared layout primitives for narrative boards, media galleries and revision comparisons. */
@scope (.tellingApp) {
.telling-book-hero {
position: relative;
border-radius: 1.5rem;
padding: 2.5rem 2rem;
background: var(--surface-subtle, var(--bs-tertiary-bg));
}
.telling-book-hero::after {
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
background: var(--surface-subtle, var(--bs-tertiary-bg));
pointer-events: none;
}
.telling-book-hero > .row {
position: relative;
z-index: 1;
}
.telling-book-cover {
width: 220px;
height: 320px;
border-radius: 1rem;
overflow: hidden;
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
}
@media (max-width: 575.98px) {
.telling-book-cover {
width: 180px;
height: 260px;
}
}
.telling-book-stats {
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
border-radius: 1rem;
padding: 1.5rem;
box-shadow: var(--shadow-sm, none);
backdrop-filter: blur(4px);
}
.telling-book-actions .btn-action {
display: inline-flex;
align-items: center;
gap: 0.5rem;
}
.telling-book-actions .btn-action i {
font-size: 1.1rem;
}

.telling-book-actions .btn-action {
border-radius: 0.85rem;
padding: 0.65rem 1.25rem;
font-weight: 500;
}
.telling-book-actions .btn-action i {
font-size: 1rem;
}
.tracking-wide {
letter-spacing: 0.08em;
}
.telling-structure-summary-item {
height: 100%;
padding: 1rem;
border: 1px solid var(--border-default, var(--bs-border-color));
border-radius: 0.75rem;
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
box-shadow: var(--shadow-sm, none);
}
.telling-structure-summary-item strong {
display: block;
margin-top: 0.25rem;
font-size: 1.5rem;
line-height: 1.2;
}
.telling-structure-summary-label {
display: block;
color: var(--content-primary, var(--bs-body-color));
font-size: 0.8rem;
font-weight: 600;
text-transform: none;
}
.telling-structure-overview .list-group-item {
border-color: var(--border-default, var(--bs-border-color));
}
.telling-world-overview {
background-color: var(--background-alternate);
color: var(--content-primary, var(--bs-body-color));
border-radius: 1rem 1rem 0 0;
}
.telling-world-summary-item {
display: flex;
align-items: center;
gap: 0.85rem;
height: 100%;
padding: 1rem;
border: 1px solid var(--border-default, var(--bs-border-color));
border-radius: 0.75rem;
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
color: inherit;
text-decoration: none;
box-shadow: var(--shadow-sm, none);
transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.telling-world-summary-item:hover,
.telling-world-summary-item:focus {
color: inherit;
border-color: var(--border-default, var(--bs-border-color));
box-shadow: var(--shadow-sm, none);
transform: translateY(-1px);
}
.telling-world-summary-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2.5rem;
height: 2.5rem;
border-radius: 0.75rem;
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
color: var(--bs-primary);
flex: 0 0 auto;
}
.telling-world-summary-label {
display: block;
color: var(--content-primary, var(--bs-body-color));
font-size: 0.8rem;
font-weight: 600;
text-transform: none;
}
.telling-world-summary-item strong {
display: block;
margin-top: 0.15rem;
font-size: 1.35rem;
line-height: 1.2;
}
.telling-book-tabs {
background-color: transparent;
color: var(--content-primary, var(--bs-body-color));
}
.telling-book-entities {
background-color: var(--surface-card, var(--bs-body-bg));
color: var(--content-primary, var(--bs-body-color));
}
.telling-book-tabs .card-header,
.telling-book-entities .card-header {
background-color: var(--surface-card, var(--bs-body-bg));
color: var(--content-primary, var(--bs-body-color));
}
.telling-book-tabs .nav-tabs .nav-link,
.telling-book-entities .nav-tabs .nav-link {
border: none;
border-bottom: 3px solid transparent;
color: var(--content-primary, var(--bs-body-color));
font-weight: 600;
transition: all 0.2s ease;
}
.telling-book-tabs .nav-tabs .nav-link.active,
.telling-book-tabs .nav-tabs .nav-link:hover,
.telling-book-tabs .nav-tabs .nav-link:focus,
.telling-book-entities .nav-tabs .nav-link.active,
.telling-book-entities .nav-tabs .nav-link:hover,
.telling-book-entities .nav-tabs .nav-link:focus {
color: var(--content-primary, var(--bs-body-color));
border-bottom-color: var(--border-default, var(--bs-border-color));
background-color: transparent;
}
.telling-book-tabs .card-body,
.telling-book-entities .card-body {
background-color: var(--background-alternate);
color: var(--content-primary, var(--bs-body-color));
border-radius: 0 0 1rem 1rem;
}
.telling-book-entities .telling-world-overview {
border-radius: 1rem 1rem 0 0;
border-bottom: 1px solid var(--border-default, var(--bs-border-color));
}
.telling-book-entities .telling-world-overview + .card-header {
border-radius: 0;
}
.telling-book-tabs .card-footer {
background-color: var(--background-alternate);
border-top: 1px solid var(--border-default, var(--bs-border-color));
border-radius: 0 0 1rem 1rem;
}
.telling-entity-card {
border: none;
border-radius: 1rem;
box-shadow: var(--shadow-sm, none);
}
.telling-entity-form {
border: none;
border-radius: 1rem;
box-shadow: var(--shadow-sm, none);
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
}
.telling-entity-form .card-header {
padding: 0;
border: none;
border-bottom: 1px solid var(--border-default, var(--bs-border-color));
background-color: transparent;
}
.telling-entity-toggle {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
padding: 0.9rem 1.25rem;
font-weight: 600;
color: inherit;
background-color: transparent;
border: none;
text-align: left;
transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.telling-entity-toggle:hover {
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
}
.telling-entity-toggle:focus {
outline: none;
box-shadow: var(--shadow-sm, none);
}
.telling-entity-toggle-icon {
transition: transform 0.3s ease;
}
.telling-entity-toggle.collapsed .telling-entity-toggle-icon {
transform: rotate(-90deg);
}
.telling-fullscreen-trigger {
cursor: pointer;
}
.telling-fullscreen-viewer {
position: fixed;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
background: var(--surface-subtle, var(--bs-tertiary-bg));
opacity: 0;
pointer-events: none;
z-index: 2000;
transition: opacity 0.2s ease;
}
.telling-fullscreen-viewer.is-visible {
opacity: 1;
pointer-events: auto;
}
.telling-fullscreen-viewer img {
max-width: 92vw;
max-height: 92vh;
border-radius: 0.75rem;
box-shadow: var(--shadow-sm, none);
}
body.telling-fullscreen-open {
overflow: hidden;
}
.telling-entity-form .collapse {
border-top: 1px solid var(--border-default, var(--bs-border-color));
}
.telling-entity-form .card-footer {
border-top: 1px solid var(--border-default, var(--bs-border-color));
border-radius: 0 0 1rem 1rem;
}
.telling-entity-card > .card-header {
background-color: var(--surface-card, var(--bs-body-bg));
border-bottom: 1px solid var(--border-default, var(--bs-border-color));
color: var(--content-primary, var(--bs-body-color));
}
.telling-entity-card.is-open > .card-header {
border-bottom-color: var(--border-default, var(--bs-border-color));
}
.telling-entity-card > .card-header i,
.telling-entity-card > .card-header strong,
.telling-entity-card > .card-header .small {
color: inherit !important;
}
.telling-entity-card .card-body,
.telling-entity-card .card-footer {
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
}
.telling-structure .list-group-item {
border: none;
border-radius: 1rem;
box-shadow: var(--shadow-sm, none);
padding: 1.5rem;
}
.chapter-item-layout {
display: grid;
grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr) auto;
gap: 1.5rem;
align-items: stretch;
}
.chapter-item-info {
display: flex;
flex-direction: column;
justify-content: center;
min-width: 0;
}
.chapter-item-meta {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
}
.chapter-item-meta-entry {
display: inline-flex;
align-items: center;
gap: 0.35rem;
}
.chapter-item-stats {
display: flex;
flex-direction: column;
justify-content: space-between;
gap: 1rem;
min-width: 190px;
}
.chapter-stat-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 0.75rem;
}
.chapter-stat-label {
display: block;
font-size: 0.75rem;
text-transform: none;
letter-spacing: 0.08em;
color: var(--content-primary, var(--bs-body-color));
margin-bottom: 0.25rem;
}
.chapter-stat-value {
display: block;
font-weight: 600;
font-size: 1rem;
color: var(--content-primary, var(--bs-body-color));
}
.chapter-progress-wrapper {
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
border-radius: 0.75rem;
padding: 0.85rem;
box-shadow: var(--shadow-sm, none);
}
.chapter-progress-wrapper .word-progress {
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
}
.chapter-item-actions {
display: flex;
flex-direction: column;
gap: 0.5rem;
align-items: flex-end;
justify-content: center;
}
.btn-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2.75rem;
height: 2.75rem;
border-radius: 0;
padding: 0;
}
.btn-icon i {
font-size: 1rem;
}
@media (max-width: 1199.98px) {
.chapter-item-layout {
grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) auto;
}
}
@media (max-width: 991.98px) {
.chapter-item-layout {
grid-template-columns: 1fr;
}
.chapter-item-stats {
min-width: auto;
}
.chapter-stat-grid {
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.chapter-item-actions {
flex-direction: row;
justify-content: flex-start;
align-items: center;
}
.chapter-item-actions .btn-icon {
width: 2.5rem;
height: 2.5rem;
}
}
.telling-structure .part-drag-handle,
.telling-structure .chapter-drag-handle {
cursor: grab;
color: var(--content-primary, var(--bs-body-color));
font-size: 1.25rem;
}
.telling-structure .chapter-item,
.telling-structure .part-item {
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
}
.telling-structure .chapter-item .card-body {
padding: 1.25rem;
}
.telling-structure .chapter-item:last-child {
margin-bottom: 0;
}
.telling-character-photo-list .list-group-item {
cursor: grab;
}
.telling-character-photo-list .list-group-item:active {
cursor: grabbing;
}
.word-progress {
position: relative;
height: 0.65rem;
border-radius: 999px;
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
overflow: hidden;
}
.word-progress-bar {
display: block;
height: 100%;
border-radius: inherit;
background-color: var(--bs-primary);
transition: width 0.3s ease;
}
.word-progress-bar-overflow {
background-color: var(--bs-success);
}
.revision-description {
word-break: break-word;
}

.emotion-board-modal .emotion-board-wrapper {
position: relative;
}
.emotion-board-modal .emotion-board-layout {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.emotion-board-modal .emotion-board-stage {
display: flex;
flex-direction: column;
gap: 1rem;
min-height: 320px;
}
@media (min-width: 992px) {
.emotion-board-modal .emotion-board-stage {
flex-direction: row;
align-items: flex-start;
}
}
.emotion-board-modal .emotion-board-roster {
display: flex;
flex-direction: column;
gap: 0.75rem;
min-width: 260px;
max-width: 260px;
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
border-radius: 1rem;
padding: 1rem;
border: 1px solid var(--bs-border-color);
box-shadow: var(--shadow-sm, none);
overflow-y: auto;
max-height: 520px;
}
@media (max-width: 991.98px) {
.emotion-board-modal .emotion-board-roster {
width: 100%;
max-width: none;
max-height: none;
}
}
.emotion-board-modal .emotion-board-scrollable {
flex-grow: 1;
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
border-radius: 1rem;
border: 1px solid var(--bs-border-color);
padding: 1.5rem;
box-shadow: var(--shadow-sm, none);
overflow: hidden;
}
.emotion-board-modal .emotion-board-header-track {
margin-bottom: 1.5rem;
}
.emotion-board-modal .emotion-chapter-header .card {
border: none;
box-shadow: var(--shadow-sm, none);
border-radius: 1rem;
}
.emotion-board-modal .emotion-board-body {
display: grid;
grid-template-columns: auto 1fr;
gap: 1.5rem;
align-items: flex-start;
}
@media (max-width: 767.98px) {
.emotion-board-modal .emotion-board-body {
grid-template-columns: 1fr;
}
}
.emotion-board-modal .emotion-board-emotions {
display: flex;
flex-direction: column;
gap: 1rem;
}
.emotion-board-modal .emotion-emotion-label {
font-weight: 600;
color: var(--bs-secondary);
padding: 0.6rem 0.85rem;
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
border-radius: 0.85rem;
box-shadow: var(--shadow-sm, none);
}
.emotion-board-modal .emotion-board-columns {
overflow-x: auto;
}
.emotion-board-modal .emotion-board-column {
min-width: 260px;
}
.emotion-board-modal .emotion-column-cells {
display: flex;
flex-direction: column;
gap: 1rem;
}
.emotion-board-modal .emotion-cell {
min-height: 72px;
border-radius: 0.85rem;
border: 1px dashed var(--border-default, var(--bs-border-color));
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
padding: 0.85rem;
}
.emotion-board-modal .emotion-cell[data-empty="1"] {
display: flex;
align-items: center;
justify-content: center;
}
.emotion-board-modal .emotion-character {
box-shadow: var(--shadow-sm, none);
}
.emotion-board-modal .emotion-character + .emotion-character {
margin-top: 0.5rem;
}
.emotion-board-modal .emotion-character-roster {
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
}
.emotion-board-modal .emotion-character .card-body {
padding: 0.5rem 0.75rem;
}

.chapter-editor-layout {
display: flex;
flex-direction: column;
gap: 1.5rem;
align-items: stretch;
}
.chapter-editor-main {
width: 100%;
min-width: 0;
}
.chapter-editor-sidebar {
display: flex;
flex-direction: column;
gap: 1rem;
}
.chapter-editor-aside {
width: 100%;
}
#chapterWritingCard,
.chapter-editor-sidebar > .card {
border: 1px solid var(--border-default, var(--bs-border-color));
border-radius: 0.85rem;
box-shadow: var(--shadow-sm, none);
overflow: hidden;
}
#chapterWritingCard > .card-header,
.chapter-editor-sidebar > .card > .card-header {
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
border-bottom: 1px solid var(--border-default, var(--bs-border-color));
font-weight: 600;
}
#chapterWritingCard > .card-body {
padding: 1.25rem;
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
}
#chapter-title {
border: 0;
border-bottom: 1px solid var(--border-default, var(--bs-border-color));
border-radius: 0;
padding-left: 0;
padding-right: 0;
font-size: 1.35rem;
font-weight: 600;
box-shadow: none;
}
#chapter-title:focus {
border-bottom-color: var(--bs-primary);
box-shadow: none;
}
#chapterToolsPanel.collapsing {
transition: height 0.2s ease;
}
.telling-fullscreen-trigger {
cursor: pointer;
}
.telling-fullscreen-viewer {
position: fixed;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
background: var(--surface-subtle, var(--bs-tertiary-bg));
opacity: 0;
pointer-events: none;
z-index: 2000;
transition: opacity 0.2s ease;
}
.telling-fullscreen-viewer.is-visible {
opacity: 1;
pointer-events: auto;
}
.telling-fullscreen-viewer img {
max-width: 92vw;
max-height: 92vh;
border-radius: 0.75rem;
box-shadow: var(--shadow-sm, none);
}
body.telling-fullscreen-open {
overflow: hidden;
}
@media (min-width: 992px) {
.chapter-editor-layout {
flex-direction: row;
align-items: flex-start;
}
.chapter-editor-main {
flex: 1 1 auto;
}
.chapter-editor-aside {
flex: 0 0 360px;
position: sticky;
top: 1rem;
max-height: calc(100vh - 2rem);
overflow-y: auto;
padding-right: 0.15rem;
}
}
@media (min-width: 1200px) {
.chapter-editor-aside {
flex-basis: 400px;
}
}
.chapter-editor-header {
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
padding: 1rem 1.25rem;
border: 1px solid var(--border-default, var(--bs-border-color));
border-radius: 0.85rem;
box-shadow: var(--shadow-sm, none);
}
.chapter-assignment-list {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.chapter-assignment-item-actions {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
@media (min-width: 576px) {
.chapter-assignment-item-actions {
flex-direction: row;
}
}
.chapter-assignment-description {
font-size: 0.875rem;
white-space: pre-line;
}
.chapter-assignment-search-results {
border: 1px solid var(--border-default, var(--bs-border-color));
border-radius: 0.65rem;
padding: 0.75rem;
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
}
.chapter-assignment-search-results .chapter-assignment-item {
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
}
.chapter-editor-toolbar {
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 1030;
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
box-shadow: var(--shadow-sm, none);
}
.editorial-standards-content p,
.editorial-standards-content ul,
.editorial-standards-content ol {
margin-bottom: 1rem;
}
.editorial-standards-content p:last-child,
.editorial-standards-content ul:last-child,
.editorial-standards-content ol:last-child {
margin-bottom: 0;
}
.chapter-editor-toolbar .container {
padding-top: 0.75rem;
padding-bottom: 0.75rem;
}
.chapter-editor-toolbar-spacer {
height: 5rem;
}
@media (max-width: 575.98px) {
.chapter-editor-toolbar .container {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}
.chapter-editor-toolbar-spacer {
height: 6rem;
}
}
.word-progress-summary {
border: 1px solid var(--border-default, var(--bs-border-color));
border-radius: 0.65rem;
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
padding: 0.75rem;
}
.word-progress {
position: relative;
height: 0.75rem;
border-radius: 999px;
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
overflow: hidden;
}
.word-progress-bar {
display: block;
height: 100%;
border-radius: inherit;
background-color: var(--bs-primary);
transition: width 0.3s ease;
}
.word-progress-bar-overflow {
background-color: var(--bs-success);
}
#chapter-revisions .diff-table td {
vertical-align: top;
}
#chapter-revisions .diff-table code {
white-space: pre-wrap;
word-break: break-word;
}
.chapter-revision-description {
word-break: break-word;
}

.telling-ideas-grid {
display: grid;
gap: 1.5rem;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
align-items: start;
}
.telling-ideas-page {
--telling-panel-border: var(--border-default, var(--bs-border-color));
--telling-panel-shadow: var(--shadow-sm, none);
}
.telling-ideas-header {
padding: 1.25rem;
border: 1px solid var(--telling-panel-border);
border-radius: 0.75rem;
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
box-shadow: var(--telling-panel-shadow);
}
.telling-ideas-board {
border: 1px solid var(--telling-panel-border);
border-radius: 0.75rem;
background: var(--surface-subtle, var(--bs-tertiary-bg));
box-shadow: var(--telling-panel-shadow);
transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.telling-ideas-board .card-header {
background: var(--surface-subtle, var(--bs-tertiary-bg));
border-bottom: 1px solid var(--border-default, var(--bs-border-color));
border-radius: 0.75rem 0.75rem 0 0;
}
.telling-ideas-board:hover {
transform: translateY(-2px);
border-color: var(--border-default, var(--bs-border-color));
box-shadow: var(--shadow-sm, none);
}
.telling-ideas-postits {
display: grid;
gap: 1rem;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.telling-ideas-postit {
border: 1px solid var(--border-default, var(--bs-border-color));
border-radius: 0.75rem;
background: var(--surface-subtle, var(--bs-tertiary-bg));
box-shadow: var(--shadow-sm, none);
transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.telling-ideas-postit:hover {
transform: translateY(-2px);
border-color: var(--border-default, var(--bs-border-color));
box-shadow: var(--shadow-sm, none);
}
.telling-ideas-synopsis-editor {
min-height: 120px;
padding: 0.75rem;
border: 1px solid var(--border-default, var(--bs-border-color));
background: var(--surface-subtle, var(--bs-tertiary-bg));
border-radius: 0.5rem;
cursor: text;
}
.telling-ideas-synopsis-editor:focus {
outline: 2px solid var(--focus-ring-color, var(--bs-primary));
outline-offset: 2px;
}
.telling-ideas-chapter-number {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2.1rem;
height: 2.1rem;
border-radius: 0.65rem;
background: var(--surface-subtle, var(--bs-tertiary-bg));
color: var(--bs-primary);
font-size: 0.85rem;
font-weight: 600;
line-height: 1;
}
.telling-ideas-chapter-title {
font-weight: 600;
}
.telling-ideas-visibility {
padding: 0.5rem 0.75rem;
border-radius: 0.6rem;
background: var(--surface-subtle, var(--bs-tertiary-bg));
border: 1px solid var(--border-default, var(--bs-border-color));
}
.telling-ideas-expand {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2.2rem;
height: 2.2rem;
border-radius: 999px;
border: 1px solid var(--border-default, var(--bs-border-color));
background: var(--surface-subtle, var(--bs-tertiary-bg));
color: var(--content-primary, var(--bs-body-color));
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.telling-ideas-expand i {
transition: transform 0.2s ease;
}
.telling-ideas-expand[aria-expanded="true"] i {
transform: rotate(180deg);
}
.telling-ideas-filters {
background: var(--surface-subtle, var(--bs-tertiary-bg));
border: 1px solid var(--telling-panel-border);
border-radius: 0.75rem;
padding: 0.75rem 1rem;
box-shadow: var(--shadow-sm, none);
}
.telling-ideas-new-chapter {
background: var(--surface-subtle, var(--bs-tertiary-bg));
border: 1px solid var(--border-default, var(--bs-border-color));
border-radius: 0.75rem;
box-shadow: var(--shadow-sm, none);
}
.telling-ideas-add-chapter {
white-space: nowrap;
}
.part-drag-handle,
.chapter-drag-handle {
cursor: grab;
color: var(--content-primary, var(--bs-body-color));
}

.telling-export-header,
.telling-export-summary-card,
.telling-export .card {
border: 1px solid var(--border-default, var(--bs-border-color));
border-radius: 0.85rem;
box-shadow: var(--shadow-sm, none);
}
.telling-export-header {
padding: 1.25rem;
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
}
.telling-export-summary-card {
display: flex;
align-items: center;
gap: 0.85rem;
height: 100%;
padding: 1rem;
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
}
.telling-export-summary-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2.5rem;
height: 2.5rem;
border-radius: 0.75rem;
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
color: var(--bs-primary);
flex: 0 0 auto;
}
.telling-export-summary-label {
display: block;
color: var(--content-primary, var(--bs-body-color));
font-size: 0.78rem;
font-weight: 600;
text-transform: none;
}
.telling-export-summary-value {
display: block;
margin-top: 0.15rem;
font-weight: 600;
}
.telling-export .nav-tabs {
border-bottom: 0;
gap: 0.35rem;
}
.telling-export .nav-tabs .nav-link {
border: 1px solid var(--border-default, var(--bs-border-color));
border-radius: 0.65rem;
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
color: var(--content-primary, var(--bs-body-color));
font-weight: 600;
}
.telling-export .nav-tabs .nav-link.active {
border-color: var(--border-default, var(--bs-border-color));
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
color: var(--bs-primary);
}
.telling-export .card {
overflow: hidden;
}
.telling-export .card-header,
.telling-export .card-footer {
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
border-color: var(--border-default, var(--bs-border-color));
}
.telling-export-option-panel {
border: 1px solid var(--border-default, var(--bs-border-color));
border-radius: 0.75rem;
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
}
.telling-export-actions {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}

.emotion-board-wrapper {
position: relative;
}
.emotion-board-layout {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.emotion-roster-filter {
font-size: 0.85rem;
}
.emotion-board-stage {
display: flex;
flex-direction: column;
gap: 1rem;
min-height: 320px;
}
.emotion-board-roster {
display: flex;
gap: 0.75rem;
overflow-x: auto;
padding: 0.25rem 0.5rem 0.75rem;
scrollbar-width: thin;
}
.emotion-board-roster::-webkit-scrollbar {
height: 6px;
}
.emotion-board-roster::-webkit-scrollbar-thumb {
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
border-radius: 3px;
}
.emotion-board-scrollable {
overflow-x: auto;
padding-bottom: 1rem;
--emotion-label-width: 200px;
--emotion-column-width: 240px;
position: relative;
}
.emotion-board-scrollable::-webkit-scrollbar {
height: 8px;
}
.emotion-board-scrollable::-webkit-scrollbar-thumb {
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
border-radius: 4px;
}
.emotion-board-header {
display: flex;
gap: 1rem;
margin-bottom: 0.75rem;
min-width: max-content;
}
.emotion-board-header-offset {
flex: 0 0 var(--emotion-label-width);
min-width: var(--emotion-label-width);
position: sticky;
left: 0;
z-index: 2;
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
box-shadow: var(--shadow-sm, none);
top: 0;
will-change: transform;
}
.emotion-board-header-track {
display: flex;
gap: 1rem;
min-width: max-content;
}
.emotion-board-header-track .emotion-chapter-header {
flex: 0 0 var(--emotion-column-width);
min-width: var(--emotion-column-width);
}
.emotion-board-body {
display: flex;
gap: 1rem;
min-width: max-content;
}
.emotion-board-emotions {
display: flex;
flex-direction: column;
gap: 0.75rem;
flex: 0 0 var(--emotion-label-width);
min-width: var(--emotion-label-width);
position: sticky;
left: 0;
z-index: 2;
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
box-shadow: var(--shadow-sm, none);
align-self: flex-start;
top: 0;
will-change: transform;
}
.emotion-emotion-label {
font-weight: 600;
font-size: 0.85rem;
text-transform: none;
color: var(--bs-secondary-color);
min-height: 110px;
display: flex;
align-items: center;
}
.emotion-board-columns {
display: flex;
gap: 1rem;
min-width: max-content;
}
.emotion-board-column {
flex: 0 0 var(--emotion-column-width);
min-width: var(--emotion-column-width);
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.emotion-chapter-header {
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
border: 1px solid var(--bs-border-color);
border-radius: 0.5rem;
padding: 0.75rem;
}
.emotion-chapter-title {
font-weight: 600;
margin-bottom: 0.35rem;
}
.emotion-chapter-actions {
display: flex;
justify-content: flex-end;
gap: 0.5rem;
}
.emotion-chapter-synopsis {
display: none;
font-size: 0.8rem;
color: var(--bs-secondary-color);
margin-top: 0.5rem;
white-space: pre-line;
}
.emotion-chapter-synopsis[data-visible="1"] {
display: block;
}
.emotion-column-cells {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.emotion-cell {
min-height: 110px;
background-color: var(--bs-body-bg);
border: 1px dashed var(--bs-border-color);
border-radius: 0.5rem;
padding: 0.35rem;
display: flex;
flex-direction: column;
gap: 0.35rem;
font-size: 0.8rem;
transition: border-color 0.2s ease;
}
.emotion-cell[data-highlight="1"] {
border-color: var(--bs-primary);
}
.emotion-cell[data-empty="1"]::after {
content: 'Trascina qui';
font-size: 0.7rem;
color: var(--bs-secondary-color);
text-align: center;
margin-top: auto;
margin-bottom: auto;
}
.emotion-cell[data-filtered-empty="1"]::after {
content: 'Nessun personaggio selezionato';
font-size: 0.7rem;
color: var(--bs-secondary-color);
text-align: center;
margin-top: auto;
margin-bottom: auto;
}
.emotion-character {
font-size: 0.8rem;
}
.emotion-character .card-body {
padding: 0.45rem 0.5rem;
}
.emotion-character-remove {
font-size: 0.75rem;
padding: 0.2rem 0.4rem;
}
@media (max-width: 991.98px) {
.emotion-board-layout {
gap: 1rem;
}
.emotion-board-roster {
flex-wrap: wrap;
}
}

.telling-book-hero {
position: relative;
border-radius: 1.5rem;
padding: 2.5rem 2rem;
background: var(--surface-subtle, var(--bs-tertiary-bg));
}
.telling-book-hero::after {
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
background: var(--surface-subtle, var(--bs-tertiary-bg));
pointer-events: none;
}
.telling-book-hero > .row {
position: relative;
z-index: 1;
}
.telling-book-cover {
width: 220px;
height: 320px;
border-radius: 1rem;
overflow: hidden;
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
}
@media (max-width: 575.98px) {
.telling-book-cover {
width: 180px;
height: 260px;
}
}
.telling-book-stats {
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
border-radius: 1rem;
padding: 1.5rem;
box-shadow: var(--shadow-sm, none);
backdrop-filter: blur(4px);
}
.tracking-wide {
letter-spacing: 0.08em;
}
.telling-book-tabs,
.telling-book-entities {
background-color: var(--surface-card, var(--bs-body-bg));
color: var(--content-primary, var(--bs-body-color));
}
.telling-book-tabs .card-header,
.telling-book-entities .card-header {
background-color: var(--surface-card, var(--bs-body-bg));
color: var(--content-primary, var(--bs-body-color));
}
.telling-book-tabs .nav-tabs .nav-link,
.telling-book-entities .nav-tabs .nav-link {
border: none;
border-bottom: 3px solid transparent;
color: var(--content-primary, var(--bs-body-color));
font-weight: 600;
transition: all 0.2s ease;
}
.telling-book-tabs .nav-tabs .nav-link.active,
.telling-book-tabs .nav-tabs .nav-link:hover,
.telling-book-tabs .nav-tabs .nav-link:focus,
.telling-book-entities .nav-tabs .nav-link.active,
.telling-book-entities .nav-tabs .nav-link:hover,
.telling-book-entities .nav-tabs .nav-link:focus {
color: var(--content-primary, var(--bs-body-color));
border-bottom-color: var(--border-default, var(--bs-border-color));
background-color: transparent;
}
.telling-book-tabs .card-body,
.telling-book-entities .card-body {
background-color: var(--background-alternate);
color: var(--content-primary, var(--bs-body-color));
border-radius: 0 0 1rem 1rem;
}
.telling-structure .list-group-item {
border: none;
border-radius: 1rem;
box-shadow: var(--shadow-sm, none);
padding: 1.5rem;
}
.telling-structure .part-drag-handle,
.telling-structure .chapter-drag-handle {
cursor: grab;
color: var(--content-primary, var(--bs-body-color));
font-size: 1.25rem;
}
.telling-structure .chapter-item {
border-radius: 1rem;
}
.telling-structure .chapter-item .card-body {
padding: 1.25rem;
}
.telling-structure .chapter-item:last-child {
margin-bottom: 0;
}
.telling-book .list-group-item {
border-color: var(--border-default, var(--bs-border-color));
}
.telling-book .revision-description {
word-break: break-word;
}
.word-progress {
position: relative;
height: 0.65rem;
border-radius: 999px;
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
overflow: hidden;
}
.word-progress-bar {
display: block;
height: 100%;
border-radius: inherit;
background-color: var(--bs-primary);
transition: width 0.3s ease;
}
.word-progress-bar-overflow {
background-color: var(--bs-success);
}
#book-statistics .table-success {
--bs-table-bg: var(--state-success-surface, var(--bs-success-bg-subtle));
}
.object-fit-cover {
object-fit: cover;
}

.telling-public-book-card .book-description p {
margin-bottom: 0.75rem;
}
.telling-public-book-card .accordion-button {
gap: 0.75rem;
font-weight: 600;
}
.telling-public-book-card .accordion-button:not(.collapsed) {
color: var(--bs-primary);
background-color: var(--surface-subtle, var(--bs-tertiary-bg));
}
.telling-public-book-card .accordion-body {
background: var(--bs-body-bg);
}
.telling-public-book-card .telling-public-chapter-item {
border: 1px solid var(--border-default, var(--bs-border-color));
border-radius: 0.5rem;
padding: 0.75rem 1rem;
background: var(--surface-subtle, var(--bs-tertiary-bg));
}
.telling-public-book-card .telling-public-chapter-item .btn {
white-space: nowrap;
}
@media (max-width: 767.98px) {
.telling-public-book-card .accordion-button {
padding-top: 0.75rem;
padding-bottom: 0.75rem;
}
.telling-public-book-card .telling-public-chapter-item {
padding: 0.75rem;
}
}

.telling-chapter-body .telling-chapter-content p {
margin-bottom: 1.25rem;
}
.telling-chapter-sidebar-card .telling-chapter-sidebar > li {
margin-bottom: 1rem;
}
.telling-chapter-sidebar-card .telling-chapter-sidebar > li:last-child {
margin-bottom: 0;
}
.telling-chapter-sidebar-card .telling-chapter-sidebar ul {
margin: 0.5rem 0 0;
padding-left: 1rem;
list-style: none;
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.telling-chapter-sidebar-card .telling-chapter-sidebar a {
text-decoration: none;
color: var(--bs-body-color);
display: inline-flex;
align-items: center;
gap: 0.35rem;
}
.telling-chapter-sidebar-card .telling-chapter-sidebar a.active {
color: var(--bs-primary);
font-weight: 600;
}
.telling-chapter-sidebar-card .telling-chapter-sidebar a:hover {
color: var(--bs-primary);
}

.telling-character-photo-list .list-group-item {
cursor: grab;
}
.telling-character-photo-list .list-group-item:active {
cursor: grabbing;
}
}
body.telling-fullscreen-open { overflow: hidden; }
.telling-fullscreen-viewer { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--surface-overlay, var(--bs-dark)); opacity: 0; pointer-events: none; z-index: 2000; }
.telling-fullscreen-viewer.is-visible { opacity: 1; pointer-events: auto; }
.telling-fullscreen-viewer img { max-width: 92vw; max-height: 92vh; }
