/* A small, usable product inside the workshop; no effect on the canvas. */
dialog.notebook-dialog{width:970px;max-width:calc(100vw - 36px);max-height:93dvh;padding:24px 28px;background:#fcfcf3}
.notebook-dialog .dialog-heading{margin-bottom:3px}
.notebook-dialog .dialog-heading h2{font-size:15px;font-weight:550;color:#7b8a77}
.notebook-dialog .nb-back{font-size:11px;color:#7f8c78;padding:6px 0;margin:0 0 16px}
.notebook-dialog .nb-heading{margin:0 0 21px}
.notebook-dialog .nb-heading h3{font-size:27px;line-height:1.35;font-weight:600;letter-spacing:-.5px;color:#355947}
.notebook-dialog .nb-heading>p{font-size:12px;line-height:1.7;color:#829079;margin-top:8px;max-width:60em}
.notebook-dialog .nb-layout{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:25px;align-items:start}
.notebook-dialog .nb-product{border:1px solid #cdd8c2;border-radius:13px;overflow:hidden;background:#f0f3df;box-shadow:0 5px 0 #c9d2bd55;min-width:0}
.notebook-dialog .nb-browser{display:flex;align-items:center;gap:19px;padding:11px 18px;background:#e4ebd9;border-bottom:1px solid #cfd9c1;font-size:10px;color:#829175}
.notebook-dialog .nb-browser>span:first-child{font-size:9px;letter-spacing:3px;color:#91a180}
.notebook-dialog .nb-product-body{padding:25px 25px 26px;min-height:286px;background:radial-gradient(ellipse at 95% 0,#e7efd74d,transparent 65%)}
.notebook-dialog .nb-product-title{display:flex;align-items:center;gap:13px;margin-bottom:22px}
.notebook-dialog .nb-product-title>svg{width:36px;height:36px;flex-shrink:0;color:#c6a25b}
.notebook-dialog .nb-product-title h4{font-size:20px;font-weight:600;color:#456449;line-height:1.4;overflow-wrap:anywhere;margin:0}
.notebook-dialog .nb-product-title p{font-size:11px;line-height:1.7;color:#8b987b;margin-top:5px;overflow-wrap:anywhere}
.notebook-dialog #notebook-form label{display:block;font-size:12px;color:#6d8063;margin:0 0 9px}
.notebook-dialog #note-draft{resize:vertical;display:block;width:100%;min-height:101px;max-height:190px;border:1px solid #c9d4bb;background:#fffef5;border-radius:7px;padding:13px 15px;color:#3e5b45;font:inherit;font-size:15px;line-height:1.8;box-shadow:inset 0 2px 3px #6e846409}
.notebook-dialog #note-draft::placeholder{font-size:12px;color:#a1ac91;line-height:1.9}
.notebook-dialog .nb-compose-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}
.notebook-dialog #note-length{font-size:10px;color:#9aa58b}
.notebook-dialog .nb-primary{display:inline-flex;gap:18px;align-items:center;justify-content:center;border:1px solid #365c43;box-shadow:0 3px 0 #2e4c37;background:#527856;color:#fff9e4;font-size:13px;font-weight:550;border-radius:8px;padding:12px 20px;min-height:44px;line-height:1.4;transition:transform .15s,box-shadow .15s}
.notebook-dialog .nb-primary:hover{transform:translateY(-2px);box-shadow:0 5px 0 #2e4c37}
.notebook-dialog .nb-primary:active{transform:translateY(2px);box-shadow:0 1px 0 #2e4c37}
.notebook-dialog .nb-secondary{font-size:11px;color:#7f8f72;padding:10px 6px;line-height:1.6}
.notebook-dialog .nb-actions{display:flex;gap:18px;align-items:center;justify-content:flex-start;margin-top:23px;padding-top:18px;border-top:1px solid #e0e5d5}
.notebook-dialog .nb-feed-head{display:flex;justify-content:space-between;font-size:10px;color:#8b9a7d;margin-bottom:11px;gap:12px}
.notebook-dialog .nb-note{position:relative;border:1px solid #dfd9b6;background:#fffbee;border-radius:4px 4px 12px 4px;padding:17px 19px 22px;box-shadow:0 4px 0 #d7d5b650,0 10px 15px #78936b08;animation:nb-note-arrive .4s both}
.notebook-dialog .nb-note:after{content:'';position:absolute;top:-5px;left:calc(50% - 23px);width:46px;height:10px;background:#dfd6a578;transform:rotate(-4deg)}
.notebook-dialog .nb-note-meta{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:10px;color:#a29a79;margin-bottom:12px}
.notebook-dialog .nb-note>p{font-size:18px;line-height:1.75;color:#536248;overflow-wrap:anywhere;white-space:pre-wrap}
.notebook-dialog .nb-older{font-size:10px;color:#9aa489;margin-top:13px}
.notebook-dialog .nb-same-record{display:flex;align-items:center;gap:8px;font-size:11px;color:#63815b;margin-top:18px;animation:nb-note-arrive .35s .15s both}
.notebook-dialog .nb-same-record>span{display:grid;place-items:center;border-radius:50%;width:19px;height:19px;background:#dfead3;color:#577b50}
.notebook-dialog .nb-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;min-height:160px;border:1px dashed #cdd7bd;border-radius:9px;color:#8c9b7a;padding:16px}
.notebook-dialog .nb-empty>svg{width:54px;height:54px;color:#9eae8b;margin-bottom:12px}
.notebook-dialog .nb-empty>strong{font-size:16px;font-weight:500;color:#718368}
.notebook-dialog .nb-empty>p{font-size:11px;color:#9ba58e;line-height:1.7;margin-top:6px}
.notebook-dialog .nb-unreachable{border-color:#dbc9ae;background:#f4eddc}
.notebook-dialog .nb-unreachable>svg{color:#b99c70}
.notebook-dialog .nb-unreachable>strong{color:#967d59}
.notebook-dialog .nb-evidence{padding:9px 0 0;min-width:0}
.notebook-dialog .nb-evidence h4{font-size:13px;font-weight:550;color:#738367;margin:0 0 14px}
.notebook-dialog .nb-evidence-intro{font-size:11px;color:#9aa68c;line-height:1.9;margin:0 0 20px}
.notebook-dialog .nb-pending-route{display:flex;align-items:center;gap:13px;color:#a1b08e;margin:1px 0 17px}
.notebook-dialog .nb-pending-route span{display:grid;place-items:center;width:45px;height:48px}
.notebook-dialog .nb-pending-route svg{width:41px;height:41px}
.notebook-dialog .nb-pending-route i{font-style:normal;font-size:19px;letter-spacing:5px;color:#c3cdb6}
.notebook-dialog .nb-evidence-placeholder{border-top:1px solid #e0e5d5;padding:13px 0;display:flex;flex-direction:column;gap:7px}
.notebook-dialog .nb-evidence-placeholder span{font-size:10px;color:#9ca78e}
.notebook-dialog .nb-evidence-placeholder strong{font-size:12px;color:#b1b8a5;font-weight:400}
.notebook-dialog .nb-evidence-list{margin:0}
.notebook-dialog .nb-evidence-list>div{padding:12px 0;border-bottom:1px solid #e1e5d7}
.notebook-dialog .nb-evidence-list>div:first-child{padding-top:0}
.notebook-dialog .nb-evidence-list dt{font-size:10px;color:#9ba68f;margin-bottom:6px}
.notebook-dialog .nb-evidence-list dd{margin:0;font-size:13px;color:#63785a;line-height:1.6}
.notebook-dialog .nb-evidence-quote{display:block;font-size:11px;color:#8d9b7f;margin-top:5px;overflow-wrap:anywhere;max-height:3.6em;overflow:auto;white-space:pre-wrap}
.notebook-dialog .nb-evidence-list dd.nb-zero{font-size:22px;color:#b19160}
.notebook-dialog .nb-evidence-list dd.nb-positive{color:#598050}
.notebook-dialog .nb-source{display:flex;align-items:center;gap:8px}
.notebook-dialog .nb-source>svg{width:25px;height:25px;color:#92a67f}
.notebook-dialog .nb-past-note{margin-top:17px;padding:12px 14px;background:#f1f0e4;border:1px dashed #d9dbc7;border-radius:4px;transform:rotate(-1deg)}
.notebook-dialog .nb-past-note>span{font-size:9px;color:#a5a68b}
.notebook-dialog .nb-past-note>p{font-size:12px;line-height:1.7;color:#9a9e84;margin:8px 0;overflow-wrap:anywhere;white-space:pre-wrap;max-height:5.1em;overflow:auto}
.notebook-dialog .nb-past-note>small{font-size:9px;line-height:1.6;color:#b0b29d}
.notebook-dialog .nb-link{display:flex;align-items:center;gap:8px;text-align:left;font-size:10px;line-height:1.6;color:#7e9670;padding:15px 0 0}
.notebook-dialog .nb-state-missing .nb-heading h3{color:#8e7857}
.notebook-dialog .nb-state-error .nb-heading h3{color:#947451}
.notebook-dialog .nb-unstyled{background:#fff;border-color:#ccc;border-radius:0;box-shadow:none}
.notebook-dialog .nb-unstyled .nb-product-body{background:none;font-family:Georgia,'Songti SC',serif}
.notebook-dialog .nb-unstyled .nb-product-title>svg{display:none}
.notebook-dialog .nb-unstyled .nb-product-title h4,.notebook-dialog .nb-unstyled .nb-product-title p{color:#333}
.notebook-dialog .nb-unstyled .nb-note{box-shadow:none;border-radius:0;background:#fff;border-color:#ccc}
.notebook-dialog .nb-unstyled .nb-note:after{display:none}
.notebook-dialog .nb-unstyled .nb-browser{background:#eee;color:#777;border-color:#ccc;border-radius:0}
@keyframes nb-note-arrive{from{opacity:0;transform:translateY(8px) rotate(-1deg)}to{opacity:1;transform:translateY(0) rotate(0)}}
@media(max-height:760px) and (min-width:721px){dialog.notebook-dialog{padding-top:19px;padding-bottom:21px}.notebook-dialog .nb-back{margin-bottom:10px}.notebook-dialog .nb-heading{margin-bottom:16px}.notebook-dialog .nb-heading h3{font-size:25px}.notebook-dialog .nb-product-body{padding:20px 22px;min-height:265px}.notebook-dialog .nb-actions{margin-top:18px;padding-top:15px}}
@media(max-width:720px){dialog.notebook-dialog{padding:21px;max-width:calc(100vw - 24px)}.notebook-dialog .nb-layout{grid-template-columns:minmax(0,1fr);gap:18px}.notebook-dialog .nb-heading h3{font-size:25px}.notebook-dialog .nb-evidence{padding-top:0}.notebook-dialog .nb-evidence-list{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:14px}.notebook-dialog .nb-evidence-list>div{border-bottom:0;border-top:1px solid #e1e5d7;padding-top:12px!important}.notebook-dialog .nb-evidence-list dd{font-size:12px}.notebook-dialog .nb-evidence-placeholder{display:inline-flex;width:48%;margin-right:2%}.notebook-dialog .nb-pending-route{display:none}.notebook-dialog .nb-evidence-intro{margin-bottom:9px}.notebook-dialog .nb-past-note{margin-top:5px}.notebook-dialog .nb-actions{margin-top:15px}.notebook-dialog .nb-evidence-quote{max-height:3.4em}.notebook-dialog .nb-heading>p{font-size:12px}}
@media(max-width:430px){dialog.notebook-dialog{padding:17px 16px}.notebook-dialog .dialog-heading h2{font-size:12px}.notebook-dialog .nb-back{font-size:10px;margin-bottom:11px}.notebook-dialog .nb-heading h3{font-size:22px}.notebook-dialog .nb-product-body{padding:20px 17px}.notebook-dialog .nb-product-title h4{font-size:19px}.notebook-dialog .nb-note>p{font-size:17px}.notebook-dialog .nb-evidence-list{gap:9px;grid-template-columns:1.3fr 1fr 1fr}.notebook-dialog .nb-source>svg{display:none}.notebook-dialog .nb-primary{font-size:12px;padding:11px 15px;gap:12px}.notebook-dialog .nb-actions{gap:12px;flex-wrap:wrap}.notebook-dialog .nb-secondary{font-size:10px}}
@media(prefers-reduced-motion:reduce){.notebook-dialog .nb-note,.notebook-dialog .nb-same-record{animation:none}.notebook-dialog .nb-primary{transition:none}.notebook-dialog .nb-primary:hover,.notebook-dialog .nb-primary:active{transform:none}}

/* Keep the next action in view, even with a long message on a short screen. */
dialog.notebook-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.notebook-dialog .dialog-heading{flex-shrink:0}
.notebook-dialog #dialog-content{display:flex;flex-direction:column;min-height:0}
.notebook-dialog .nb-shell{display:flex;flex-direction:column;min-height:0}
.notebook-dialog .nb-back{align-self:flex-start;flex-shrink:0}
.notebook-dialog .nb-heading,.notebook-dialog .nb-actions{flex-shrink:0}
.notebook-dialog .nb-layout{min-height:0;overflow:auto;padding-bottom:6px}
.notebook-dialog .nb-note>p{max-height:7em;overflow:auto}
.notebook-dialog .nb-product-title p{max-height:3.4em;overflow:auto}
.notebook-dialog .nb-target-missing{font-size:11px;line-height:1.7;color:#a18353;background:#eee7d1;border-radius:5px;padding:8px 11px;margin:0 0 13px}
.notebook-dialog .nb-previous-live{background:#faf9ec;border-color:#d7d9c4}
.notebook-dialog .nb-previous-live>p{color:#829074}
@media(max-height:760px) and (min-width:721px){.notebook-dialog .nb-note>p{max-height:5.25em;font-size:17px}.notebook-dialog .nb-product-title{margin-bottom:15px}.notebook-dialog .nb-product-title p{max-height:1.7em}.notebook-dialog .nb-note{padding:13px 16px 17px}.notebook-dialog .nb-evidence-list>div{padding:9px 0}.notebook-dialog .nb-past-note{margin-top:12px}.notebook-dialog .nb-target-missing{margin-bottom:10px;padding:6px 10px}.notebook-dialog .nb-link{padding-top:11px}}
