/* Clara Vale: a single outline, a quiet canvas and a readable inspector. */
.application { grid-template-columns: 260px minmax(0,1fr); }
.topbar { gap: 24px; }
.topbar .main-nav button { font-size: 11px; padding: 12px 14px; }
.top-actions, .top-actions button { font-size: 10px; }
.tenant-label select { font-size: 12px; }
.sidebar { padding: 22px 16px 14px; overflow: hidden; }
.outline-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; margin-bottom: 22px; background: #2c3e5008; }
.outline-tabs button { padding: 10px 8px; background: transparent; color: #7a8e9c; font-size: 11px; font-weight: 400; letter-spacing: 0; }
.outline-tabs button[aria-selected=true] { color: #2c3e50; background: #ffffffb5; box-shadow: 0 1px 3px #203b4b0c; }
.outline-pane { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }
.tree-heading { margin: 0 3px 13px; font-size: 11px; }
#languageFilter, #searchPages { font-size: 11px; padding: 11px; }
.page-tree { margin-top: 12px; }
.tree-row { background: transparent; font-size: 11px; padding-top: 12px; padding-bottom: 12px; margin: 0 0 2px; line-height: 1.6; }
.tree-row[aria-current=page] { background: #ffffff92; box-shadow: inset 2px 0 #48c4de; }
.tree-language { margin-top: 18px; margin-bottom: 10px; font-size: 8px; }
.sidebar-foot { flex: none; margin-top: 16px; padding: 14px 4px 0; font-size: 9px; border-top: 1px solid #2c3e5010; }
.component-column { padding: 0; border: 0; background: transparent; display: flex; flex: 1; min-height: 0; overflow: hidden; }
.component-column { flex-direction: column; }
.column-heading { flex: none; font-size: 11px; font-weight: 400; color: #546f81; }
.component-column .column-heading { padding: 0 4px 15px; }
#sectionCount { margin-left: auto; color: #92a1ad; font-size: 9px; font-weight: 400; }
.component-list { display: flex; flex-direction: column; flex: 1; min-height: 0; gap: 3px; overflow: auto; margin: 0 -5px; padding: 0 5px 12px; }
.component-item { flex: none; position: relative; width: auto; min-height: 66px; margin: 0; padding: 13px 12px 13px 29px; border: 1px solid transparent; background: transparent; }
.component-item:hover { background: #ffffff48; }
.component-item.selected { border-color: transparent; background: #ffffffb0; box-shadow: inset 2px 0 #48c4de; }
.component-item .section-handle { position: absolute; top: 15px; left: 10px; color: #a1b0bb; font-size: 13px; letter-spacing: -3px; cursor: grab; }
.component-item .type { display: block; color: #455f73; font-size: 11px; font-weight: 400; text-transform: none; letter-spacing: 0; line-height: 1.6; }
.component-item .component-title { color: #8a9ba8; margin-top: 3px; font-size: 10px; line-height: 1.6; }
.component-item.disabled .type { color: #8295a3; }
.component-actions { display: none; justify-content: flex-start; gap: 5px; margin: 11px -4px -2px; border-top: 1px solid #2c3e500a; padding-top: 7px; }
.component-item.selected .component-actions { display: flex; }
.component-actions button { padding: 4px 6px; min-height: 25px; font-size: 9px; color: #718a9a; }
.add-component { flex: none; border: 0; border-top: 1px solid #2c3e5012; background: transparent; margin-top: 3px; padding: 15px 6px 2px; text-align: left; font-size: 11px; font-weight: 400; letter-spacing: 0; color: #398ca1; }
.add-component:hover { border-color: #2c3e5012; background: transparent; color: #225e72; }
.connection-strip { min-height: 27px; padding: 6px 26px; gap: 12px; font-size: 9px; background: #ffffff28; border-bottom: 1px solid #2c3e5009; }
.connection-strip strong { font-size: 8px; color: #8295a3; text-transform: uppercase; letter-spacing: .08em; font-weight: 400; }
.connection-strip strong::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; margin-right: 7px; background: #a39a7a; vertical-align: 2px; }
.connection-strip[data-ready=true] strong::before { background: #6d9b8c; }
.connection-strip[data-ready=true] strong, .connection-strip[data-ready=false] strong { color: #8295a3; }
.connection-strip a { font-size: 9px; color: #6f899b; }
.page-header { min-height: 98px; padding: 20px 26px; background: transparent; gap: 20px; }
.page-header h2 { font-size: 25px; line-height: 1.3; }
.page-header .eyebrow { margin-bottom: 6px; font-size: 8px; letter-spacing: .1em; color: #8d9fae; }
.page-header .muted { font-size: 9px; margin-top: 7px; color: #91a0ac; }
.page-actions { gap: 8px; }
.page-actions button { font-size: 9px; padding: 11px 15px; }
#pageDetails { background: transparent; color: #6c8394; text-transform: none; letter-spacing: 0; font-size: 10px; font-weight: 400; margin-right: 9px; }
#pageDetails:hover { background: #ffffff40; }
.builder { grid-template-columns: minmax(0,1fr) 336px; grid-template-rows: minmax(0,1fr); overflow: hidden; }
.canvas-column { height: auto; min-height: 0; background: #ccd6df; }
.canvas-tools { min-height: 48px; padding: 9px 17px; background: #e7edf2; border-bottom: 1px solid #2c3e500b; font-size: 10px; gap: 13px; }
.canvas-tools button { font-size: 10px; padding: 6px 10px; color: #8a9dac; }
.canvas-tools button[aria-pressed=true] { background: #ffffffa6; color: #456378; }
.canvas-tools a { font-size: 10px; color: #7b93a3; }
.preview-wrap { position: relative; overflow: hidden; padding: 0; }
.preview-wrap iframe { border: 0; box-shadow: 0 3px 20px #223d4e1a; }
.inspector { grid-column: auto; grid-row: auto; max-height: none; padding: 25px 23px 35px; background: #edf1f5; border-left: 1px solid #2c3e5012; }
.inspector>.column-heading { font-size: 14px; line-height: 1.5; font-weight: 400; color: #39586d; }
.inspector>.column-note { font-size: 9px; line-height: 1.8; margin: 7px 0 27px; color: #93a3af; }
.inspector-group { margin: 0 0 25px; }
.inspector-group>h3 { font: 400 9px/1.6 Poppins,sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #8398a8; margin: 0 0 19px; }
.inspector details.inspector-group { margin-top: 21px; padding-top: 18px; border-top: 1px solid #2c3e5010; }
.inspector-group>summary { font: 400 11px/1.6 Poppins,sans-serif; color: #627f92; padding: 0 0 3px; cursor: pointer; }
.inspector-group[open]>summary { margin-bottom: 22px; }
.property { margin-bottom: 23px; }
.property>label { margin-bottom: 9px; font-size: 10px; color: #7b91a1; }
.property>label::first-letter { text-transform: uppercase; }
.property input, .property textarea, .property select { background: #ffffffa1; font-size: 12px; padding: 12px; line-height: 1.8; border-bottom-color: #2c3e5018; }
.property textarea { min-height: 96px; resize: vertical; }
.property img { border-radius: 0; max-height: 120px; margin-bottom: 10px; }
.rich-editor { background: #ffffffa1; font-size: 12px; line-height: 1.9; min-height: 135px; padding: 13px; }
.rich-tools { background: #ffffff5c; padding: 5px; }
.rich-tools button { font-size: 9px; padding: 4px 8px; }
.rich-editor .chapter-title { display: block; font-size: 13px; margin: 8px 0; }
.rich-editor .chapter-preview { display: block; font-size: 11px; color: #8296a5; line-height: 1.8; }
.image-actions button { font-size: 9px; font-weight: 400; padding: 8px 11px; }
.page-danger { border-top: 1px solid #2c3e5010; padding-top: 16px; margin-top: 28px; }
.page-danger button { background: transparent; font-weight: 400; font-size: 10px; color: #9b7b7a; padding-left: 0; }
.inspector #historyPanel { margin-top: 28px; padding-top: 18px; border-top-color: #2c3e5010; }
.inspector #historyPanel>summary { font-size: 10px; color: #8b9eac; }
.application[data-view=media], .application[data-view=statistics], .application[data-view=settings] { grid-template-columns: minmax(0,1fr); }
.application[data-view=media]>.sidebar, .application[data-view=statistics]>.sidebar, .application[data-view=settings]>.sidebar { display: none; }
.collection-view { padding-bottom: 50px; }
@media(max-width:1380px) {
 .application { grid-template-columns: 235px minmax(0,1fr); }
 .builder { grid-template-columns: minmax(0,1fr) 308px; }
 .topbar { gap: 16px; }
 .topbar .main-nav button { padding: 11px 9px; font-size: 10px; }
 .inspector { padding: 23px 20px 35px; }
}
@media(max-width:1100px) {
 .builder { grid-template-columns: minmax(0,1fr) 292px; grid-template-rows: minmax(0,1fr); overflow: hidden; }
 .inspector { grid-column: auto; max-height: none; border-top: 0; }
 .page-header { align-items: center; }
 .page-actions { justify-content: flex-end; }
 .topbar .main-nav button { padding: 8px 12px; }
}
.statistics-tools { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:22px; }
.statistics-tools p { margin:0; }
.statistics-tools button { flex-shrink:0; }
#statisticsImportDialog { max-width:600px; }
#statisticsImportDialog p { line-height:1.8; }
#statisticsImportDialog code { overflow-wrap:anywhere; }
#statisticsImportSummary:empty, #statisticsImportError:empty { display:none; }
@media(max-width:760px) {
 .statistics-tools { align-items:flex-start; flex-direction:column; gap:12px; }
 .application { display: block; height: auto; }
 .sidebar { max-height: 300px; height: 300px; padding: 15px 18px; }
 .outline-tabs { margin-bottom: 14px; flex: none; }
 .sidebar-foot { display: none; }
 .page-tree { display: block; overflow: auto; flex: 1; }
 .tree-language { display: block; }
 .tree-row { width: 100%; padding-top: 9px; padding-bottom: 9px; }
 .component-list { display: flex; flex-direction: column; overflow: auto; }
 .component-item { width: auto; min-height: 60px; }
 .component-column { max-height: none; overflow: hidden; }
 .component-column .column-heading { padding-bottom: 10px; }
 .add-component { padding-top: 11px; }
 .builder { display: flex; flex-direction: column; overflow: visible; }
 .canvas-column { height: 530px; flex: none; }
 .inspector { max-height: none; padding: 28px 24px; border-left: 0; border-top: 1px solid #2c3e5010; }
 .page-header { display: block; padding: 22px 20px; }
 .page-header h2 { font-size: 23px; }
 .page-actions { margin-top: 16px; justify-content: flex-start; }
 .page-actions button { padding: 10px 12px; }
 .connection-strip { padding: 8px 20px; gap: 6px 11px; }
 .connection-strip span { flex-basis: auto; }
 .connection-strip a { margin-left: auto; }
 .top-actions { font-size: 9px; }
 .inspector-group { max-width: 650px; }
}
