@font-face{
font-family:Inter;
src:url('/fonts/Inter-Regular.woff2') format('woff2');
font-weight:400;
font-display:swap}
@font-face{
font-family:Inter;
src:url('/fonts/Inter-SemiBold.woff2') format('woff2');
font-weight:600 800;
font-display:swap}
:root{
font-family:Inter,Arial,sans-serif;
color:#233047;
background:#edf0f5;
font-size:13px;
--accent:#cf064a;
--accent-soft:#fff0f5;
--line:#e5e8ef;
--muted:#758094;
--paper-width:792px;
--paper-height:1122px}
*{
box-sizing:border-box}
body{
margin:0}
button,input,select,textarea{
font:inherit}
button,a,input,select,textarea{
-webkit-tap-highlight-color:transparent}
button{
display:inline-flex;
align-items:center;
justify-content:center;
gap:8px;
border:1px solid #dce1e9;
background:#fff;
color:#35415a;
border-radius:7px;
padding:9px 12px;
cursor:pointer;
font-weight:600;
white-space:nowrap;
transition:background .15s,border-color .15s}
button:hover{
background:#f5f6f9;
border-color:#b8c0ce}
button:disabled{
opacity:.4;
cursor:default}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{
outline:3px solid #e7739b;
outline-offset:2px}
button.primary{
background:var(--accent);
border-color:var(--accent);
color:#fff}
button.primary:hover{
background:#ad0340}
button.icon-button{
padding:7px;
border-color:transparent;
width:30px;
height:30px;
flex-shrink:0}
button.quiet-button{
border-color:transparent;
padding:5px 7px;
background:transparent}
a{
color:var(--accent);
text-decoration:none}
a:hover{
text-decoration:underline}
h1,h2,h3,p{
margin:0}
input,select,textarea{
width:100%;
padding:9px 10px;
border:1px solid #dce1e9;
border-radius:6px;
background:#fff;
color:#233047}
textarea{
resize:vertical;
line-height:1.6;
min-height:96px}
label{
display:block;
font-size:11px;
font-weight:600;
margin-bottom:7px}
input[type=checkbox]{
width:14px;
height:14px;
accent-color:var(--accent)}
input[type=color]{
height:36px;
padding:3px;
width:42px;
flex-shrink:0}
input[type=range]{
padding:0;
accent-color:var(--accent)}
.small{
font-size:10px}
.muted{
color:var(--muted)}
.wide{
width:100%}
.eyebrow{
font-size:10px;
text-transform:uppercase;
letter-spacing:1.65px;
font-weight:600;
color:var(--muted)}
.field-hint{
color:var(--muted);
font-size:10px;
line-height:1.65;
margin-top:7px}
.optional{
font-size:10px;
color:var(--muted);
font-weight:400;
float:right}
.danger-text{
color:#bd2550}
.skip-link{
position:fixed;
top:-100px;
left:10px;
padding:12px;
background:#fff;
z-index:1000}
.skip-link:focus{
top:10px}
.app-header{
height:76px;
display:flex;
align-items:center;
gap:24px;
padding:0 26px;
background:#fff;
border-bottom:1px solid var(--line)}
.app-brand{
display:flex;
align-items:center;
gap:12px;
min-width:226px}
.brand-mark{
width:37px;
height:37px;
background:var(--accent);
color:#fff;
border-radius:10px;
display:grid;
place-items:center;
font-size:17px}
.brand-mark:hover{
text-decoration:none;
background:#ad0340}
.app-brand h1{
font-size:16px;
letter-spacing:-.4px}
.app-brand span{
display:block;
font-size:10px;
color:var(--muted);
margin-top:4px}
.document-heading{
min-width:80px;
flex:1;
display:flex;
flex-direction:column;
gap:5px;
overflow:visible}
.document-heading>span:first-child{
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
font-size:12px;
font-weight:600}
#save-status{
font-size:10px;
color:var(--muted);
padding-left:8px;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap}
#save-status.error{
color:#bd2550}
.header-actions{
display:flex;
gap:8px;
align-items:center}
.header-actions button{
font-size:11px;
height:35px}
.editor-layout{
height:calc(100dvh - 76px);
min-height:540px;
display:grid;
grid-template-columns:254px minmax(200px,1fr) 282px}
.panel{
background:#fff;
min-width:0;
display:flex;
flex-direction:column;
overflow:hidden}
.navigator{
border-right:1px solid var(--line)}
.panel-heading{
padding:20px 20px 10px;
display:flex;
align-items:center;
justify-content:space-between;
min-height:51px}
.report-settings{
padding:10px 20px 20px;
border-bottom:1px solid var(--line)}
.report-settings>label:not(:first-child){
margin-top:17px}
.report-settings input,.report-settings select{
font-size:11px}
.section-heading{
display:flex;
justify-content:space-between;
align-items:center;
padding:15px 18px 8px}
.section-heading h2{
font-size:11px;
font-weight:600}
.count-badge{
display:inline-block;
padding:2px 6px;
background:#f0f2f6;
color:var(--muted);
border-radius:4px;
font-size:9px;
margin-left:5px}
.page-list{
padding:0 12px 10px;
max-height:185px;
min-height:60px;
overflow:auto;
flex-shrink:0}
.page-button{
width:100%;
text-align:left;
justify-content:flex-start;
padding:9px;
border-color:transparent;
font-size:11px;
margin:2px 0;
gap:10px}
.page-button[aria-current=true]{
background:var(--accent-soft);
color:var(--accent);
border-color:#f9c7d8}
.page-thumb{
width:23px;
height:30px;
display:grid;
place-items:center;
border:1px solid #d4d9e2;
border-radius:3px;
background:#fff;
font-size:9px;
color:var(--muted);
flex-shrink:0}
.page-copy{
overflow:hidden;
flex:1}
.page-copy strong{
display:block;
font-size:11px;
overflow:hidden;
text-overflow:ellipsis}
.page-copy small{
display:block;
font-size:9px;
margin-top:3px;
font-weight:400;
opacity:.7;
overflow:hidden;
text-overflow:ellipsis}
.outline-heading{
border-top:1px solid var(--line);
padding-top:16px}
.outline{
padding:6px 10px 16px;
overflow:auto;
flex:1;
min-height:70px}
.outline ul{
padding:0;
margin:0;
list-style:none}
.outline li>ul{
margin-left:13px;
padding-left:7px;
border-left:1px solid #e9ecf2}
.tree-button{
width:100%;
border:0;
justify-content:flex-start;
text-align:left;
font-size:10px;
font-weight:400;
padding:8px 6px;
overflow:hidden;
gap:9px;
min-height:31px}
.tree-button i{
width:15px;
color:#8e98a9;
flex-shrink:0}
.tree-button span{
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap}
.tree-button[aria-pressed=true]{
background:#fff0f5;
color:var(--accent);
font-weight:600}
.tree-button[aria-pressed=true] i{
color:var(--accent)}
.navigator-footer{
padding:14px 16px;
border-top:1px solid var(--line);
flex-shrink:0}
.navigator-footer button{
font-size:10px}
.navigator-footer a{
display:block;
text-align:center;
font-size:10px;
color:var(--muted);
margin-top:13px}
.navigator-footer a i{
font-size:8px;
margin-left:5px}
.workspace{
display:flex;
flex-direction:column;
min-width:0;
overflow:hidden}
.canvas-toolbar{
height:53px;
min-height:53px;
background:#f8f9fb;
border-bottom:1px solid var(--line);
padding:0 20px;
display:flex;
align-items:center;
justify-content:space-between;
gap:8px}
.history-controls,.view-controls{
display:flex;
align-items:center;
gap:6px;
font-size:10px}
.canvas-toolbar .icon-button{
background:transparent}
.toolbar-divider{
height:18px;
width:1px;
background:#dce1e9;
margin:0 8px}
.guides-label{
display:flex;
align-items:center;
gap:5px;
margin:0;
font-size:10px;
font-weight:400}
.canvas-toolbar output{
min-width:34px;
text-align:center;
font-size:10px}
.canvas-viewport{
position:relative;
flex:1;
min-height:0;
overflow:auto;
padding:36px 32px;
background-color:#edf0f5;
background-image:radial-gradient(#cdd3df .7px,transparent .7px);
background-size:14px 14px}
.paper-wrap{
position:relative;
margin:0 auto;
width:var(--paper-width);
height:var(--paper-height)}
.paper{
width:var(--paper-width);
height:var(--paper-height);
transform-origin:top left;
background:#fff;
box-shadow:0 8px 36px #2234541c,0 0 0 1px #dce1e9;
display:flex;
flex-direction:column;
color:#233047;
position:relative;
overflow:hidden;
font-family:Arial,sans-serif}
.report-node{
display:flex;
min-width:0;
min-height:0;
position:relative;
cursor:pointer;
flex-basis:0;
overflow:hidden}
.report-node.row{
flex-direction:row}
.report-node.column{
flex-direction:column}
.report-node.cell{
flex-direction:column}
.paper.show-guides .report-node{
outline:1px dashed #8599b35c;
outline-offset:-1px}
.paper .report-node:hover{
box-shadow:inset 0 0 0 2px #e6759bbf;
z-index:1}
.paper .report-node.selected{
outline:2px solid var(--accent);
outline-offset:-2px;
z-index:2}
.cell-content{
width:100%;
height:100%;
min-height:0;
display:flex;
flex-direction:column;
overflow:hidden;
line-height:1.4}
.cell-content.text-content{
padding:24px}
.cell-content h3{
font-size:2em;
line-height:1.2;
margin:0;
font-weight:700;
white-space:pre-wrap;
overflow-wrap:anywhere;
flex-shrink:0}
.cell-kicker{
font-size:.85em;
font-weight:600;
letter-spacing:.08em;
margin-bottom:8px;
white-space:pre-wrap;
overflow-wrap:anywhere;
flex-shrink:0}
.cell-body{
margin-top:8px;
line-height:1.5;
white-space:pre-wrap;
overflow-wrap:anywhere;
flex-shrink:0}
.blank-label,.image-placeholder{
display:flex;
align-items:center;
justify-content:center;
gap:8px;
color:#78869b;
width:100%;
height:100%;
font:11px Inter,Arial,sans-serif}
.blank-label{
opacity:.55}
.paper:not(.show-guides) .blank-label{
visibility:hidden}
.image-placeholder{
flex-direction:column;
background:#f3f5f8;
padding:12px;
text-align:center;
gap:10px}
.image-placeholder i{
font-size:26px;
color:#aab3c3}
.report-image{
width:100%;
height:100%;
background-repeat:no-repeat;
background-position:center}
.overflow-mark{
position:absolute;
bottom:3px;
right:4px;
background:#fff2d3;
color:#8a5900;
padding:2px 5px;
font:9px Inter,sans-serif;
border-radius:3px;
pointer-events:none}
.empty-paper{
margin:auto;
text-align:center;
padding:35px;
font-family:Inter,Arial,sans-serif;
color:var(--muted)}
.empty-paper i{
font-size:28px;
margin-bottom:18px;
color:#abb6c9}
.empty-paper p{
font-size:13px;
line-height:1.8}
.canvas-footer{
display:flex;
align-items:center;
justify-content:space-between;
gap:15px;
padding:11px 19px;
min-height:36px;
color:var(--muted);
font-size:9px;
border-top:1px solid var(--line);
background:#f8f9fb}
.canvas-footer>span:first-child{
display:flex;
align-items:center;
gap:6px;
white-space:nowrap}
.status-dot{
width:5px;
height:5px;
background:#28a37c;
border-radius:50%}
.inspector{
border-left:1px solid var(--line)}
.selection-type{
font-size:9px;
background:#f2f4f8;
color:var(--muted);
padding:4px 7px;
border-radius:4px;
text-transform:uppercase;
letter-spacing:.6px}
.inspector-scroll{
overflow:auto;
flex:1;
padding:8px 20px 20px}
.selection-heading{
padding:8px 0 17px;
font-size:15px;
font-weight:600;
letter-spacing:-.4px}
.property-field{
margin-bottom:16px}
.property-field input,.property-field select,.property-field textarea{
font-size:11px}
.property-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:12px}
.color-field{
display:flex;
align-items:center;
gap:6px}
.color-field input[type=text]{
min-width:0}
.property-heading{
font-size:10px;
letter-spacing:1.2px;
text-transform:uppercase;
padding-top:14px;
border-top:1px solid var(--line);
margin:18px 0 15px;
color:var(--muted)}
.size-control{
display:flex;
align-items:center;
gap:9px}
.size-control input{
width:77px}
.size-control span{
font-size:10px;
color:var(--muted)}
.add-section{
border-top:1px solid var(--line);
padding-top:18px;
margin-top:20px}
.add-section h2{
font-size:11px}
.insert-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:7px;
margin-top:13px}
.insert-grid button{
flex-direction:column;
font-size:9px;
padding:12px 5px;
gap:8px;
font-weight:400}
.insert-grid button i{
font-size:14px;
color:#65748b}
.selection-actions{
display:flex;
flex-direction:column;
gap:7px;
border-top:1px solid var(--line);
margin-top:22px;
padding-top:17px}
.selection-actions button{
font-size:10px;
font-weight:400}
.move-actions{
display:flex;
gap:7px}
.move-actions button{
flex:1;
min-width:0;
padding:8px}
.inspector-note{
border-top:1px solid var(--line);
padding:14px 20px;
color:var(--muted);
font-size:9px;
line-height:1.6;
display:flex;
gap:9px}
.inspector-note i{
padding-top:3px}
.image-tools{
display:flex;
gap:6px;
margin:8px 0}
.image-tools button{
flex:1;
font-size:10px}
.content-note{
line-height:1.8;
font-size:11px;
color:var(--muted)}
dialog{
border:1px solid var(--line);
border-radius:14px;
padding:28px;
max-width:710px;
width:calc(100% - 36px);
max-height:85dvh;
box-shadow:0 24px 100px #17213940;
color:#233047}
dialog::backdrop{
background:#1721397a;
backdrop-filter:blur(3px)}
.dialog-heading{
display:flex;
align-items:center;
justify-content:space-between;
gap:20px;
margin-bottom:18px}
.dialog-heading h2{
font-size:23px;
letter-spacing:-.7px;
margin-top:8px}
.dialog-intro{
font-size:12px;
color:var(--muted);
line-height:1.8;
margin-bottom:23px}
.template-list{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:12px}
.template-card{
display:flex;
align-items:stretch;
flex-direction:column;
text-align:left;
white-space:normal;
padding:0;
overflow:hidden;
font-size:12px;
gap:0}
.template-art{
height:143px;
background:#edf0f5;
display:flex;
align-items:center;
justify-content:center;
padding:16px}
.mini-page{
background:#fff;
box-shadow:0 2px 9px #25354e16;
width:77px;
height:105px;
padding:11px;
display:flex;
flex-direction:column;
gap:6px}
.mini-page b{
height:16px;
background:#223047}
.mini-page i{
height:3px;
background:#dce2eb}
.mini-page em{
flex:1;
background:#f1dce5}
.template-card:nth-child(3) .mini-page{
width:125px;
height:86px}
.template-card:nth-child(3) .mini-page em{
background:#d6e8e4}
.template-card:first-child .mini-page>*{
visibility:hidden}
.template-copy{
padding:15px}
.template-copy strong{
display:block;
font-size:12px;
margin-bottom:8px}
.template-copy span{
font-size:10px;
color:var(--muted);
line-height:1.7;
font-weight:400}
.import-box{
border:1px dashed #b8c3d4;
border-radius:9px;
padding:20px;
display:flex;
gap:17px;
align-items:center;
background:#fafbfe}
.import-box>i{
font-size:24px;
color:var(--accent)}
.import-box div{
flex:1}
.import-box strong{
font-size:12px}
.import-box p{
font-size:10px;
line-height:1.7;
margin-top:5px;
color:var(--muted)}
.import-box button{
font-size:10px}
.library-heading{
font-size:11px;
margin:25px 0 13px}
.saved-list{
display:flex;
flex-direction:column;
gap:8px}
.saved-row{
display:flex;
align-items:center;
gap:7px}
.saved-row .saved-open{
flex:1;
justify-content:space-between;
font-size:11px;
text-align:left;
white-space:normal}
.saved-row small{
font-size:9px;
font-weight:400;
color:var(--muted)}
.empty-library{
padding:24px;
text-align:center;
color:var(--muted);
font-size:11px;
background:#f7f8fb;
border-radius:7px;
line-height:1.8}
.help-steps{
padding-left:22px;
font-size:12px;
line-height:1.9}
.help-steps li{
padding:0 0 15px 7px}
.help-steps strong{
display:block}
.validation-errors{
padding-left:22px;
font-size:12px;
line-height:1.9;
max-height:45vh;
overflow:auto}
.toast{
position:fixed;
bottom:25px;
left:50%;
transform:translateX(-50%);
max-width:calc(100vw - 40px);
background:#233047;
color:#fff;
border-radius:8px;
padding:13px 20px;
box-shadow:0 5px 30px #17213930;
font-size:12px;
line-height:1.6;
z-index:1000}
.toast.error{
background:#a82648}
.toast[hidden]{
display:none}
.noscript{
position:fixed;
inset:0;
display:grid;
place-items:center;
background:white;
padding:30px;
z-index:1000}

.file-actions{
display:flex;
gap:10px;
flex-wrap:wrap;
}
.download-link{
display:inline-flex;
gap:9px;
align-items:center;
padding:10px 15px;
border-radius:7px;
background:var(--accent);
color:#fff;
font-weight:600;
}
.download-link:hover{
background:#ad0340;
text-decoration:none;
}
.export-details{
margin-top:24px;
font-size:11px;
}
.export-details summary{
cursor:pointer;
color:var(--muted);
padding:8px 0;
}
#export-json{
height:240px;
font:11px/1.6 Consolas,monospace;
margin-top:8px;
}





/* Preview checks use the same unscaled paper and content styles as the canvas. */
.report-preflight {
position: fixed;
left: -100000px;
top: 0;
visibility: hidden;
pointer-events: none;
}
.report-preflight .paper { transform: none; box-shadow: none; }
.image-status {
position: absolute;
left: 8px;
right: 8px;
bottom: 8px;
padding: 6px 9px;
border-radius: 4px;
background: #eef2f8;
color: #46576f;
font: 11px/1.4 Arial, sans-serif;
text-align: center;
pointer-events: none;
z-index: 3;
}
.image-status.error { background: #fff0f1; color: #9e2142; }
.retry-image { margin-bottom: 15px; font-size: 10px; }
.preflight-issue { margin: 0 0 17px; }
.preflight-issue p { margin: 5px 0 0; font-size: 11px; line-height: 1.65; }
.preflight-jump {
justify-content: flex-start;
max-width: 100%;
padding: 5px 9px;
text-align: left;
white-space: normal;
overflow-wrap: anywhere;
color: #ab1746;
background: #fff4f7;
border-color: #f4d6e0;
font-size: 12px;
}
.preflight-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.preflight-actions button { white-space: normal; }
.export-with-warnings { color: #8a5900; background: #fff7e4; border-color: #e5cea4; }
/* Calm editing shell: one panel, with details revealed when needed. */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
:root { --muted: #667085; --line: #e8eaf0; background: #f5f6fa; }
body { overflow: hidden; }
.app-header { height: 72px; padding: 0 24px; gap: 28px; }
.app-brand { flex: 0 0 auto; min-width: 0; }
.app-brand h1 { font-size: 15px; letter-spacing: -.4px; }
.brand-mark { width: 34px; height: 38px; border-radius: 10px; }
.document-heading { display: flex; flex: 1; min-width: 80px; max-width: 510px; gap: 3px; margin-right: auto; }
#report-name { padding: 4px 7px; margin-left: 0; height: 29px; border: 1px solid transparent; background: transparent; font-size: 13px; font-weight: 600; text-overflow: ellipsis; }
#report-name:hover, #report-name:focus { border-color: #dce1e9; background: #fafbfc; }
#save-status { font-size: 10px; }
.header-actions { gap: 10px; }
.header-actions button { font-size: 12px; height: 37px; }
.editor-layout { height: calc(100dvh - 72px); min-height: 0; grid-template-columns: 292px minmax(0, 1fr); }
.editor-sidebar { border-right: 1px solid var(--line); min-height: 0; overflow: visible; position: relative; z-index: 5; }
.sidebar-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 14px 16px; gap: 5px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.sidebar-tabs button { border: 0; border-radius: 7px; padding: 10px 8px; color: #667085; font-size: 12px; background: transparent; }
.sidebar-tabs button[aria-selected=true] { color: #b30843; background: #fff0f5; }
.sidebar-panel { overflow-y: auto; overflow-x: hidden; min-height: 0; flex: 1; padding: 0 18px 24px; }
.sidebar-panel .section-heading { padding: 20px 0 6px; }
.section-heading h2 { font-size: 13px; }
.panel-intro { font-size: 11px; color: var(--muted); line-height: 1.7; margin-bottom: 18px; max-width: 220px; }
.page-list { padding: 0; gap: 9px; max-height: none; overflow: visible; flex: initial; }
.page-button { min-width: 0; width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; min-height: 77px; gap: 12px; }
.page-button[aria-current=true] { border-color: #e9a6bf; background: #fff6f9; box-shadow: 0 0 0 1px #f6e0e8; }
.page-thumb { width: 35px; height: 49px; flex: 0 0 35px; font-size: 11px; background: #fff; border-color: #dce1e9; overflow: hidden; }
.page-copy { min-width: 0; }
.page-copy strong { font-size: 12px; }
.page-copy small { font-size: 10px; line-height: 1.5; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.page-options { margin: 12px 0 15px; color: #667085; font-size: 11px; }
.sidebar-section { border-top: 1px solid var(--line); }
.sidebar-section summary, .property-section summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; font-size: 12px; font-weight: 600; padding: 18px 0; color: #344054; }
.sidebar-section summary span { display: flex; align-items: center; gap: 10px; }
.sidebar-section summary i, .property-section summary::after { color: #8a93a3; font-size: 10px; }
summary::-webkit-details-marker { display: none; }
.sidebar-section[open] > summary > i { transform: rotate(180deg); }
.section-body { padding-bottom: 18px; }
.report-settings { padding: 0 0 18px; border: 0; }
.report-settings label { margin-top: 16px; font-size: 11px; }
.report-settings label:first-child { margin-top: 0; }
.outline { padding: 10px 0 0; max-height: none; overflow: visible; flex: initial; }
.tree-button { min-height: 33px; font-size: 11px; }
.sidebar-footer { border-top: 1px solid var(--line); padding: 15px 18px; font-size: 10px; line-height: 1.6; color: #788195; background: #fff; display: flex; gap: 7px; align-items: center; }
.selection-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 15px 0 20px; }
.selection-toolbar > button { color: var(--muted); font-size: 10px; padding: 6px 0; }
.selection-type { display: inline-block; padding: 4px 7px; font-size: 9px; letter-spacing: .65px; color: #787f8d; background: #f2f4f7; border-radius: 4px; }
.selection-heading { margin: 11px 0 22px; padding: 0; font-size: 17px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.property-field { margin-bottom: 18px; }
.property-field label { font-size: 11px; margin-bottom: 8px; }
.property-field textarea { min-height: 140px; }
.property-section { border-top: 1px solid var(--line); margin-top: 4px; }
.property-section summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; }
.property-section[open] summary::after { transform: rotate(180deg); }
.property-section-body { padding: 0 0 5px; }
.property-section-body .property-field:last-child { margin-bottom: 14px; }
.property-grid { gap: 10px; }
.content-note { padding: 16px; background: #f7f8fb; border: 1px solid var(--line); border-radius: 9px; color: #667085; font-size: 12px; line-height: 1.8; margin-bottom: 18px; }
.image-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.image-tools button:first-child { flex: 1; }
.image-tools button { font-size: 11px; }
.field-hint { font-size: 10px; color: #707b8e; line-height: 1.65; }
.workspace { min-width: 0; min-height: 0; background: #f5f6fa; }
.canvas-toolbar { min-height: 61px; height: auto; padding: 12px 25px; border-bottom: none; background: transparent; flex-wrap: wrap; row-gap: 8px; }
.history-controls, .view-controls { gap: 8px; }
.add-content-button { color: #a90c42; background: white; border-color: #e8dbe1; font-size: 12px; padding: 9px 13px; box-shadow: 0 1px 2px #26304a05; }
.view-controls > button { font-size: 11px; color: #5b667a; }
.toolbar-divider { background: #e0e4ec; height: 20px; margin: 0 5px; }
.canvas-caption { display: flex; align-items: center; justify-content: center; gap: 12px; color: #8890a0; padding: 0 22px 9px; font-size: 10px; flex: 0 0 auto; }
.canvas-caption #canvas-page-label { color: #596479; font-weight: 600; }
.preview-page-button { display: none; width: 27px; height: 25px; padding: 3px; font-size: 10px; }
.preview-mode .preview-page-button { display: inline-flex; }
.canvas-instruction::before { content: '·'; padding-right: 12px; }
.canvas-viewport { padding: 12px 32px 26px; min-height: 0; }
.paper { box-shadow: 0 8px 30px #1c294c12, 0 1px 3px #1c294c12; }
.canvas-footer { padding: 9px 25px; background: transparent; border-top: none; font-size: 10px; min-height: 42px; height: auto; }
.canvas-footer button { font-size: 10px; padding: 5px 0; color: #606e82; }
.popover-menu { position: relative; }
.popover-menu > summary { display: flex; align-items: center; justify-content: center; gap: 9px; list-style: none; padding: 9px 11px; border-radius: 7px; color: #536076; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.popover-menu > summary:hover, .popover-menu[open] > summary { background: #ebedf3; }
.popover-menu summary > .fa-chevron-down { font-size: 8px; }
.header-actions .popover-menu > summary { border: 1px solid var(--line); }
.menu-content { position: absolute; z-index: 30; top: calc(100% + 7px); right: 0; min-width: 235px; padding: 7px; background: #fff; border: 1px solid #e1e5ee; border-radius: 11px; box-shadow: 0 8px 35px #1b254426; display: flex; flex-direction: column; gap: 2px; }
.menu-content button, .menu-content a { width: 100%; border: 0; background: transparent; padding: 10px; border-radius: 5px; justify-content: flex-start; text-align: left; font-size: 11px; font-weight: 400; height: auto; color: #344054; display: flex; gap: 10px; align-items: center; text-decoration: none; }
.menu-content button:hover, .menu-content a:hover { background: #f4f5f9; }
.menu-content .danger-text { color: #bd2550; }
.menu-content button > i, .menu-content a > i { width: 14px; text-align: center; color: #848b9b; }
.menu-content hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 5px 0; }
.icon-summary { width: 30px; height: 30px; }
#selection-menu .menu-content { min-width: 190px; }
.view-menu-content { min-width: 185px; }
.zoom-controls { display: flex; align-items: center; justify-content: space-between; padding: 2px 7px; font-size: 11px; color: var(--muted); }
.zoom-controls button { width: 30px; justify-content: center; padding: 7px; }
.view-menu-content .guides-label { padding: 8px 10px; font-size: 11px; white-space: nowrap; display: flex; align-items: center; gap: 8px; margin: 0; }
.preview-mode .editor-layout { grid-template-columns: minmax(0, 1fr); }
.preview-mode #editor-sidebar, .preview-mode #open-insert, .preview-mode .history-controls .toolbar-divider, .preview-mode .canvas-instruction { display: none; }
.preview-mode #paper .report-node { outline: none !important; cursor: default; }
.preview-mode #paper .report-node:hover { box-shadow: none; }
.preview-mode .report-node::after, .preview-mode .blank-label, .preview-mode .overflow-mark { display: none; }
.preview-mode .canvas-viewport { padding-left: 40px; padding-right: 40px; }
.preview-mode #toggle-preview { color: #b30843; background: #fff0f5; padding: 8px 12px; }
.preview-mode .canvas-toolbar { justify-content: space-between; }
.preview-mode .history-controls { visibility: hidden; }
.preview-mode #view-menu .guides-label { display: none; }
dialog { border-radius: 16px; padding: 28px; border-color: #e0e4eb; box-shadow: 0 20px 80px #15244433; max-height: calc(100dvh - 40px); overflow-y: auto; }
dialog::backdrop { background: #17203360; backdrop-filter: blur(3px); }
.dialog-heading h2 { font-size: 24px; letter-spacing: -.65px; }
.dialog-intro { font-size: 12px; line-height: 1.75; }
#insert-dialog { width: 620px; }
#export-dialog { width: 470px; }
#export-dialog > label { font-size: 12px; }
#export-dialog > input { font-size: 13px; padding: 11px; }
.insert-grid { display: grid; padding: 0; gap: 10px; }
.content-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.insert-grid button { border: 1px solid #e1e5ed; padding: 20px 10px 16px; background: #fff; border-radius: 10px; height: auto; min-height: 115px; display: flex; flex-direction: column; gap: 10px; white-space: normal; }
.insert-grid button:hover { border-color: #d76b92; background: #fff8fb; }
.insert-grid button > i { color: #b8134a; font-size: 22px; }
.insert-grid button strong { font-size: 12px; }
.insert-grid button > span:not(.layout-glyph) { font-size: 10px; line-height: 1.5; font-weight: 400; color: #7b8496; }
.insert-subheading { margin: 25px 0 12px; font-size: 11px; color: #727c8e; font-weight: 600; }
.layout-choices { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.layout-choices button { padding: 15px 8px 12px; min-height: 92px; gap: 11px; }
.layout-choices button strong { font-size: 10px; }
.layout-glyph { width: 60px; height: 34px; display: flex; gap: 4px; }
.layout-glyph > i { flex: 1; border-radius: 3px; background: #f1e3ec; border: 1px solid #dcb4c5; }
.layout-glyph.stacked { flex-direction: column; }
.image-text-glyph > i:first-child { display: flex; align-items: center; justify-content: center; background: #e5edf1; border-color: #bcced8; color: #6d8b9b; font-size: 14px; }
.insert-destination { display: flex; align-items: center; gap: 15px; margin-top: 25px; border-top: 1px solid var(--line); padding-top: 18px; }
.insert-destination label { flex: 0 0 auto; margin: 0; font-size: 11px; }
.insert-destination select { font-size: 11px; }
.advanced-insert { margin-top: 18px; }
.advanced-insert summary, .export-theme-settings summary { cursor: pointer; color: #667085; font-size: 11px; font-weight: 600; padding: 8px 0; }
.custom-layout-choices { display: flex; gap: 8px; margin-top: 12px; }
.custom-layout-choices button { font-size: 10px; white-space: normal; }
.export-theme-settings { margin-top: 24px; padding-top: 8px; border-top: 1px solid var(--line); }
.export-theme-settings summary { font-size: 12px; }
.export-theme-settings label { margin-top: 16px; }
.dialog-footer { margin-top: 26px; display: flex; gap: 10px; justify-content: flex-end; }
.dialog-footer button { font-size: 12px; }
.report-preflight .paper { box-shadow: none; }
@media (min-width: 1500px) { .editor-layout { grid-template-columns: 320px minmax(0, 1fr); } .sidebar-panel { padding-left: 22px; padding-right: 22px; } }
@media (max-width: 1050px) { .editor-layout { grid-template-columns: 270px minmax(0, 1fr); } .app-header { padding: 0 18px; gap: 20px; } .canvas-toolbar { padding-left: 20px; padding-right: 20px; } .document-heading { display: flex; } }
@media (max-width: 760px) { .app-brand > div { display: none; } .app-header { height: 64px; gap: 14px; padding: 0 12px; } .editor-layout { height: calc(100dvh - 64px); grid-template-columns: 235px minmax(0, 1fr); } .sidebar-panel { padding-left: 14px; padding-right: 14px; } .canvas-toolbar { padding: 10px 12px; } .canvas-viewport { padding: 12px 16px 20px; } .canvas-instruction { display: none; } .history-controls { gap: 2px; } .toolbar-divider { margin: 0 2px; } .header-actions button { font-size: 11px; padding: 9px; } .header-actions .popover-menu > summary { font-size: 11px; padding: 9px; } }
@media (max-width: 560px) { body { overflow: auto; } .editor-layout { height: auto; min-height: calc(100dvh - 64px); grid-template-columns: 1fr; grid-template-rows: auto minmax(460px, 1fr); } .editor-sidebar { max-height: 380px; border-right: 0; border-bottom: 1px solid var(--line); } .sidebar-tabs { padding: 9px 14px; } .sidebar-panel { max-height: 285px; } .sidebar-footer { display: none; } .page-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .page-button { padding: 8px; } .page-thumb { width: 24px; height: 34px; flex-basis: 24px; } .panel-intro { max-width: none; margin-bottom: 10px; } .workspace { min-height: 550px; height: calc(100dvh - 90px); } .document-heading { min-width: 50px; } #save-status { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; max-width: 130px; font-size: 9px; } #report-name { font-size: 11px; } .header-actions { gap: 6px; } .header-actions .fa-file-export, .header-actions .fa-folder-open { display: none; } .brand-mark { width: 28px; height: 32px; font-size: 13px; } .app-header { gap: 10px; } .preview-mode .editor-layout { grid-template-rows: minmax(460px, 1fr); } .preview-mode .workspace { height: calc(100dvh - 64px); } dialog { padding: 22px; max-width: calc(100vw - 24px); } .layout-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } .content-choices button { padding: 15px 7px; } .content-choices button > span { display: none; } .content-choices button { min-height: 90px; } .template-list { grid-template-columns: 1fr; } .template-card { flex-direction: row; } .template-art { width: 120px; height: 120px; flex: 0 0 120px; } .template-copy { align-self: center; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

@media (max-width: 560px) { #file-menu .menu-content { position: fixed; top: 60px; right: 12px; max-width: calc(100vw - 24px); } .import-box { flex-wrap: wrap; } .import-box button { width: 100%; } }
