
@import url("../../shared/text-panels.css");
@import url("../../shared/pattern-panels.css");
@import url("../../shared/editor-doodle-actions.css");
@import url("../shared/editor-base.css");

.notebook-download .notebook-back-choice{display:flex;align-items:flex-start;gap:12px;padding:16px;border:1px solid #d9cbb7;border-radius:14px;cursor:pointer}.notebook-download .notebook-back-choice input{width:20px;height:20px;flex:0 0 20px;margin:3px 0;accent-color:#173f73}.notebook-back-choice strong,.notebook-back-choice small{display:block}.notebook-back-choice small{font-size:13px;line-height:1.6;margin-top:6px;color:#53677f}.notebook-download .notebook-back-choice:has(input:checked){background:#eaf1f8;border-color:#173f73}

.notebook-resize-choices{display:grid;gap:12px}.notebook-resize-choices button{display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;padding:16px;background:#fffaf3;border:1px solid #bfd4c5;border-radius:12px;color:#285740;font:inherit;cursor:pointer}.notebook-resize-choices button:hover{background:#e7f0e8}.notebook-resize-choices button:focus-visible{outline:2px solid #397558;outline-offset:3px}.notebook-resize-choices strong{font-size:16px}.notebook-resize-choices span{font-size:13px;line-height:1.6}#size-status:empty{display:none}#size-status{color:#805425}

/* Notebook adapter for the approved shared cards and canvas action components. */
body[data-text-theme=notebook]{--text-card-soft:#E2EEE3;--text-card-edge:#8DAD98;--text-card-hover:#D3E5D6;--text-item-hover:#EFF5EF;--za-selection-ink:#397558;--pattern-soft:#E2EEE3;--pattern-edge:#8DAD98;--illustrated-paper:#FFFAF0;--illustrated-border:#C8D5C8;--illustrated-selected:#E2EEE3;--illustrated-stroke:#397558;--illustrated-hover:#EFF5EF}
#text-panel,#motifs-panel{font:400 14px/1.5 'Yuanti SC',STYuanti,'Avenir Next','PingFang SC',sans-serif;color:#173f73}
#text-panel h3,#motifs-panel h3{font:600 13px/1.5 'Yuanti SC',STYuanti,'Avenir Next','PingFang SC',sans-serif;margin:20px 0 9px}
#text-editor{border-top:1px solid #d4dfd4;padding-top:16px;margin-top:16px}
#text-content{background:#fffdf6;border:1px solid #c8c9bd;border-radius:13px;resize:vertical;min-height:88px;font:400 15px/1.6 'Yuanti SC',STYuanti,'Avenir Next','PingFang SC',sans-serif;margin:0 0 16px}
#text-status{font-size:13px;line-height:1.5;color:#805425}#text-status:empty{display:none}
#text-empty,#pattern-empty{margin:18px 0;font-size:13px;color:#62756a}
#text-tools>button,#pattern-tools>button,#hole-tools>button{width:100%;margin:12px 0;font:400 14px 'Yuanti SC',STYuanti,'Avenir Next','PingFang SC',sans-serif}
#motifs-panel .christmas-pattern-grid img{filter:none;mix-blend-mode:normal;width:64px;height:64px;object-fit:contain}
#motifs-panel .christmas-pattern-grid .motif-card{display:flex;flex-direction:column;align-items:center;justify-content:center;font:500 13px/1.5 'Yuanti SC',STYuanti,'Avenir Next','PingFang SC',sans-serif}
#motifs-panel .christmas-pattern-upload{box-shadow:none;transform:none}#motifs-panel .christmas-pattern-upload:hover{background:var(--text-card-hover)}
#motifs-panel .motif-categories button{font:400 12px/1.4 'Yuanti SC',STYuanti,'Avenir Next','PingFang SC',sans-serif;min-height:36px;flex-shrink:0;padding:8px 10px}
#motifs-panel .motif-categories{scrollbar-width:thin;padding-bottom:5px}#motifs-panel .help:empty{display:none}
#pattern-list button:hover:not([aria-pressed=true]){background:var(--text-item-hover);border-color:var(--text-card-edge)}
html body.christmas-canvas-style #canvas-area>.za-canvas-dock{position:relative;inset:auto;flex:0 0 auto;min-height:50px;width:100%;gap:8px}
html body.christmas-canvas-style #canvas-area #history{position:static!important;inset:auto!important;margin-left:auto!important;align-self:center}
html body.christmas-canvas-style #canvas-area #history button{height:40px!important;min-height:40px!important}
#selection{margin-top:14px;padding:12px;border:1px solid #c8d5c8}#selection .fields{grid-template-columns:1fr 1fr}
#selection-label{display:block;font-size:13px;font-weight:600;margin-bottom:9px}
#drawing [data-id]{cursor:move}#drawing [data-handle]{cursor:grab}#drawing:focus-visible{outline:2px solid #397558;outline-offset:-3px}
@media(max-width:760px){html body.christmas-canvas-style #canvas-area>.za-canvas-dock{gap:4px;min-height:46px}.zl-editor[data-editor=notebook] .zl-inspector{max-width:100%}#canvas-area #surface{min-height:210px}#selection .fields{grid-template-columns:1fr 1fr}#text-panel,#motifs-panel{padding-bottom:10px}}
body[data-text-theme=notebook] :is(.zf-trigger,.zf-dialog){--zf-accent:#397558;--zf-tint:#e2eee3;--zf-line:#bdcfc2}
body[data-text-theme=notebook] .zf-language{color:#397558}
