.book-edit-entry,.book-workshop button,.workshop-upload,.workshop-select select{font:700 14px/1.25 Arial,sans-serif}
.book-edit-entry{position:fixed;z-index:30;top:calc(env(safe-area-inset-top,0px) + 10px);right:calc(env(safe-area-inset-right,0px) + 12px);min-height:44px;padding:10px 14px;border:1px solid #d4ae6d;border-radius:999px;background:linear-gradient(180deg,#51402a,#30251b);box-shadow:0 4px 14px #21170d55;color:#ffedc8;letter-spacing:.04em;cursor:pointer}
.book-edit-entry:hover,.book-edit-entry:focus-visible{outline:3px solid #f1ca80;outline-offset:2px;background:#65502f}
.book-edit-entry[hidden],.book-workshop[hidden],.workshop-history-panel[hidden]{display:none!important}
.book-workshop{position:fixed;z-index:40;inset:0 0 auto;max-height:48vh;overflow:auto;padding:10px clamp(12px,3vw,28px) 12px;border-bottom:2px solid #c69c57;background:linear-gradient(145deg,#28352d,#17241f 70%,#302619);box-shadow:0 12px 28px #20170e55;color:#f7ebd4;font:15px/1.45 Arial,sans-serif;scrollbar-color:#a98850 #213028}
.workshop-header{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:1280px;margin:0 auto 9px}
.workshop-header h2{margin:0;color:#fff0d0;font:700 clamp(17px,2.4vw,23px)/1.15 Georgia,serif}
.workshop-eyebrow{margin:0 0 3px;color:#dfbc79;font-size:11px;font-weight:700;letter-spacing:.13em;text-transform:uppercase}
.workshop-status{display:flex;align-items:center;gap:12px;color:#ddd0b7;font-size:12px}
.workshop-status button,.workshop-footer button,.workshop-controls button,.workshop-upload,.workshop-select select{min-height:44px;padding:9px 12px;border:1px solid #ad8b53;border-radius:9px;background:#31372e;color:#ffefd4;cursor:pointer}
.workshop-status button:hover,.workshop-footer button:hover,.workshop-controls button:hover,.workshop-upload:hover,.workshop-select select:hover{background:#4b4938}
.workshop-body{max-width:1280px;margin:auto}
.workshop-drawer{margin:7px 0;border:1px solid #716344;border-radius:10px;background:#1e2b25}
.workshop-drawer summary{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:42px;padding:8px 12px;color:#f4d58e;font-weight:800;letter-spacing:.07em;cursor:pointer}
.workshop-drawer summary span{color:#d7ceb9;font-size:12px;font-weight:400;letter-spacing:0}
.workshop-controls{display:flex;flex-wrap:wrap;gap:7px;padding:0 10px 10px}
.workshop-controls button,.workshop-upload,.workshop-select select{min-height:42px;font-size:12px}
.workshop-upload{display:inline-flex;align-items:center;position:relative;overflow:hidden}
.workshop-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.workshop-select{display:flex;align-items:center;gap:8px;color:#eee1ca;font-size:12px}
.workshop-select select{padding-inline:10px}
.workshop-footer{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:9px}
.workshop-footer button{font-size:12px}
.workshop-footer .workshop-save{background:#40533c}
.workshop-footer .workshop-publish{border-color:#e1bd73;background:linear-gradient(180deg,#8a6230,#634321);color:#fff4d5}
.workshop-footer .a-reaction-toggle{margin-left:auto;background:transparent}
#a-reaction{flex-basis:100%;margin:0;color:#f5d992;font:italic 15px Georgia,serif}
.workshop-history-panel{margin-top:10px;padding:12px;border:1px solid #b69a64;border-radius:10px;background:#eaddc1;color:#35291f}
.workshop-history-panel h3{margin:0 0 4px;color:#49351f;font:700 16px Georgia,serif}
.workshop-history-panel p{margin:0 0 8px;font-size:12px}
.workshop-history-panel ol{display:grid;gap:6px;margin:0;padding-left:22px}
.workshop-history-panel li{padding-left:2px}
.workshop-history-panel button{min-height:40px;padding:7px 10px;border:1px solid #947448;border-radius:7px;background:#f6eedc;color:#38291b;text-align:left;cursor:pointer}
html[data-workshop="true"] body{padding-top:calc(min(48vh, 410px) + 16px)!important}
html[data-workshop="true"] #book-document{outline:1px dashed #bfa261;outline-offset:5px}
html[data-workshop="true"] #book-document:focus{outline-color:#77592e}
#book-document[data-layout="notebook"] article{max-width:74ch;padding:clamp(16px,4vw,36px);border:1px solid #cab88f;border-radius:4px;background:linear-gradient(90deg,#eaddbc,#f4e8ca 5%,#f4e8ca 96%,#e4d1a9);box-shadow:0 5px 16px #4c35151e}
#book-document[data-layout="notebook"] article p{text-indent:0}
#book-document[data-layout="gallery"] article{max-width:80ch}
#book-document[data-layout="gallery"] .book-illustration{max-width:min(620px,92%);margin:2.2rem auto}
#book-document .book-illustration.illustration-size-small{max-width:280px}
#book-document .book-illustration.illustration-size-medium{max-width:460px}
#book-document .book-illustration.illustration-size-wide{max-width:min(620px,96%)}
#book-document .book-illustration figcaption{margin-top:.55rem;color:#5b4935;font-size:.86em;line-height:1.4;text-align:center}
#book-document .book-page-break{height:2px;margin:3rem 0;border:0;background:linear-gradient(90deg,transparent,#a88b61,transparent);break-before:page;page-break-before:always}
#book-document .author-note{margin:1.4rem 0;padding:1rem 1.2rem;border-left:4px solid #a9854c;background:#e8d8b9;color:#493720}
#book-document .author-note strong{display:block;margin-bottom:.35rem;color:#35503b}
button:focus-visible,.workshop-upload:focus-within,select:focus-visible{outline:3px solid #f1ca80;outline-offset:2px}
@media(max-width:600px){
  .book-workshop{max-height:50vh;padding:8px 10px 10px}
  .workshop-header{align-items:flex-start;flex-direction:column;gap:6px}
  .workshop-status{width:100%;justify-content:space-between}
  .workshop-drawer summary{align-items:flex-start;flex-direction:column;gap:2px}
  .workshop-controls{gap:6px}
  .workshop-controls button,.workshop-upload,.workshop-select select{flex:1 1 calc(50% - 6px);min-width:0;min-height:44px}
  .workshop-select{flex:1 1 100%;justify-content:space-between}
  .workshop-footer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .workshop-footer button{min-height:44px}
  .workshop-footer .a-reaction-toggle{margin-left:0}
  html[data-workshop="true"] body{padding-top:calc(min(50vh, 470px) + 10px)!important}
}
@media(prefers-reduced-motion:reduce){.book-edit-entry,.book-workshop{scroll-behavior:auto;transition:none!important}}
@media print{
  .book-edit-entry,.book-workshop,.back-to-contents{display:none!important}
  body{padding:0!important;background:white!important;color:#211a13!important}
  #book-document{max-width:none}
  #book-document .book-page-break{break-before:page}
}

.book-access-notice{position:fixed;z-index:31;top:calc(env(safe-area-inset-top,0px) + 64px);right:12px;left:12px;max-width:460px;margin:0 0 0 auto;padding:10px 14px;border:1px solid #c8a36d;border-radius:8px;background:#30251bf2;color:#ffedc8;font:14px/1.45 Arial,sans-serif;box-shadow:0 4px 14px #21170d55}
.book-access-notice[hidden]{display:none!important}.book-edit-entry:disabled{opacity:.65;cursor:wait}

.workshop-field-guide{border-color:#af8d58;background:#dfc79c;color:#35291d}
.workshop-field-guide summary{color:#35291d;background:#e9d5ae;border-radius:9px}
.workshop-field-guide summary span{color:#60492d}
.workshop-help-copy{padding:4px clamp(14px,3vw,24px) 18px;max-width:78ch;margin:auto;color:#35291d;font:16px/1.65 Georgia,serif}
.workshop-help-copy h3{margin:10px 0;font:700 21px/1.3 Georgia,serif;color:#3c2c1c}
.workshop-help-copy p{margin:10px 0}.workshop-help-copy ol{padding-left:24px;margin:16px 0}.workshop-help-copy li{padding-left:5px;margin:13px 0}
.workshop-help-reminder{padding:12px;border-left:3px solid #876336;background:#efe0bc}
.workshop-help-signoff{padding-top:10px;border-top:1px dashed #97754a;font-style:italic}
@media(max-width:520px){.workshop-field-guide summary{align-items:flex-start;flex-direction:column;gap:4px}.workshop-help-copy{font-size:16px;padding-inline:14px}}
