/* The menu is a top-layer overlay: opening it never changes the page layout. */
.panel-top>span[aria-hidden=true],#optionsSaveState{width:70px;flex:none;text-align:right}
#appPanel{position:fixed;inset:0;margin:0;width:100%;height:100dvh;max-width:none;max-height:none;border:0;border-radius:0;padding:0;background:#fffaf0;color:#193e30;overflow:auto;overscroll-behavior:contain;z-index:1000;font:16px/1.55 Arial,sans-serif}
#appPanel::backdrop{background:#193e3066}#appPanel[open].expanding{animation:menu-expand .28s ease-out both}@keyframes menu-expand{from{clip-path:circle(22px at var(--menu-x,90%) var(--menu-y,35px));opacity:.6}to{clip-path:circle(150vmax at var(--menu-x,90%) var(--menu-y,35px));opacity:1}}
.panel-wrap{max-width:480px;min-height:100%;margin:auto;padding:0 22px 32px}.panel-top{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fffaf0;border-bottom:1px solid #d5decd;padding:14px 0}.panel-top button{min-height:46px;min-width:70px;font-size:16px}.panel-top span{font-size:14px}.panel-top h1{font:600 25px Georgia,serif;margin:0;text-align:center;letter-spacing:0}.panel-body{padding-top:22px}.panel-body h2{font:600 24px Georgia,serif;line-height:1.3;margin:20px 0 10px}.panel-body h3{font-size:18px}.panel-body p{font-size:16px}.panel-body .small{font-size:14px;color:#566951}.panel-body a{color:#204f3e}.panel-body :focus-visible{outline:3px solid #398568;outline-offset:3px}.panel-body [tabindex="-1"]:focus{outline:none}
.panel-body .full-menu{display:flex;flex-direction:column;gap:10px;margin:0;padding:12px;background:#f1e6ca;border:1px solid #c5cbbd;border-radius:10px;overflow:visible}
.panel-body .full-menu a{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:56px;padding:12px 15px;border:1px solid #c5cbc3;border-radius:8px;background:#fffefa;color:#183c2b;text-align:center;text-decoration:none;font:400 20px/1.3 'Segoe UI',system-ui,sans-serif}
.panel-body .full-menu a:hover{background:#f0f3ed}.panel-body .full-menu a:active{background:#245849;border-color:#245849;color:white}
.panel-body .full-menu .menu-support{background:#dce6d7;border-color:#a8bca2;font-weight:600}.panel-body .full-menu .menu-support:hover{background:#cadbc4}.menu-support img{width:32px;height:auto;flex:none}
.menu-brand{margin:6px 0 20px;font:600 28px/1.15 Georgia,serif}.menu-brand span{display:block;font:14px/1.4 Arial,sans-serif;margin-top:6px;color:#60735b}
.panel-body label{display:block;margin:12px 0 5px;font-size:16px}.panel-body input,.panel-body select,.panel-body textarea{width:100%;min-height:48px;border:1px solid #bbc9b2;border-radius:9px;background:#fff;color:#193e30;font:16px/1.4 Arial,sans-serif;padding:10px;margin:0}.panel-body input[type=checkbox]{width:22px;min-height:22px;margin-right:8px;vertical-align:middle}.panel-body .check-label{display:flex;align-items:center;gap:6px}.panel-body fieldset{margin:0 0 22px;padding:14px;border:1px solid #c4d1bc;border-radius:12px;min-width:0}.panel-body legend{font-weight:700;font-size:17px}.panel-body details{padding:0;margin-top:12px}.panel-body summary{font-size:16px;line-height:1.4;padding:14px 0}.option-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.panel-body .color-palette{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.color-palette button{width:42px;min-height:42px;background:var(--swatch);border:3px solid #fff;box-shadow:0 0 0 1px #b1bfa8;border-radius:50%;padding:0}.color-palette button[aria-pressed=true]{box-shadow:0 0 0 3px #1c543c}.story-sample{margin:0 0 20px;padding:8px;background:#fff;border:1px solid #d1dac9;box-shadow:0 3px 9px #26372915}.story-sample img{display:block;width:100%;height:150px;object-fit:cover;filter:grayscale(1)}.story-sample figcaption{white-space:pre-wrap;overflow-wrap:anywhere;min-height:70px;padding:12px 8px;text-align:center}.panel-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.panel-actions>*{flex:1}.panel-body button{font-size:15px;min-height:48px}.panel-status{background:#eaf0e3;padding:12px;border-radius:9px;overflow-wrap:anywhere}.panel-status:empty{display:none}.panel-body pre{font:13px/1.5 monospace;white-space:pre-wrap;overflow-wrap:anywhere}.panel-body ul,.panel-body ol{padding-left:24px}.panel-body li{margin:10px 0}.panel-body .support-button{margin-bottom:20px}.panel-body .legal-copy{font-size:15px}.panel-body .legal-copy h1{display:none}.panel-body .legal-copy [hidden]{display:block!important}.preview-context{padding:14px;border:1px solid #c6d4bc;background:#edf2e8;border-radius:12px;margin-bottom:18px}
.menu-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;font:14px Arial,sans-serif;min-height:46px}.menu-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2}.header-actions{display:flex;align-items:center;gap:7px}.editor-shell header .header-actions button{padding:8px;font-size:13px}body.panel-open{overflow:hidden}.panel-body input[type=range]{padding:0;accent-color:#245940}.panel-body .font-warning{font-size:13px;color:#66725e}.export-preview{display:block;max-width:100%;max-height:45dvh;object-fit:contain;margin:10px auto}.recovery-controls{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.recovery-controls button{font-size:14px}.selection-status{font-size:13px!important}.note-heading span{font-size:12px!important}.edit-tools button{font-size:14px!important}.detail-available::before{margin-right:3px}.export-area p{font-size:13px!important}
@media(max-width:359px){.panel-wrap{padding:0 16px 24px}.panel-top h1{font-size:23px}.editor-shell header{padding:10px;gap:6px}.editor-shell .brand{font-size:18px}.edit-tools{gap:5px}.edit-tools button{font-size:12px!important}}
@media(prefers-reduced-motion:reduce){#appPanel[open].expanding{animation:none}}
.panel-body input[type=color]{display:block;width:100%;height:52px;padding:5px;cursor:pointer}
.panel-body input[type=color]::-webkit-color-swatch-wrapper{padding:0}
.panel-body input[type=color]::-webkit-color-swatch{border:0;border-radius:5px}
.panel-body input[type=color]::-moz-color-swatch{border:0;border-radius:5px}
.export-actions{display:flex;gap:10px}.export-actions button{flex:1;min-width:0;min-height:56px;font-size:16px}.export-area .export-actions .primary{width:auto}
.export-warning{padding:12px;background:#fff0cf;border:1px solid #cab67b;border-radius:8px;font-size:15px}
#batchDialog{max-width:440px}#batchDialog p,#exportDialog p{font-size:15px;line-height:1.45}
.batch-files{list-style:none;padding:0;margin:18px 0}.batch-files li{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:8px 12px;padding:14px 0;border-bottom:1px solid #d3dccb}.batch-copy{min-width:0}.batch-files span,.batch-files small{display:block;overflow-wrap:anywhere}.batch-files span{font-size:16px}.batch-files small{font-size:14px;color:#5f7164;margin-top:4px}.batch-files button{grid-column:2;justify-self:start;font-size:14px;max-width:100%;min-height:44px}.batch-thumbnail{grid-row:1 / 3;width:64px;height:80px;display:flex;align-items:center;justify-content:center;padding:3px;background:white;border:1px solid #c5cbbd;border-radius:7px;color:#60735b;font-size:20px;overflow:hidden}.batch-thumbnail img{display:block;width:100%;height:100%;object-fit:contain}.batch-actions{position:sticky;bottom:-22px;padding:12px 0 0;background:#fffaf0}
.photo-loading-dialog{width:calc(100% - 40px);max-width:360px;max-height:calc(100% - 40px);margin:auto;padding:28px 24px;border:1px solid #a9bdab;border-radius:20px;background:#fffaf0;color:#193e30;text-align:center;box-shadow:0 16px 60px #102a2452;overflow:auto}
.photo-loading-dialog::backdrop{background:#10231bb8}
.photo-loading-dialog h2{margin:16px 0 12px;font:700 24px/1.2 system-ui,sans-serif;outline:none}
.photo-loading-dialog [role=status]{margin:0;font:600 17px/1.45 system-ui,sans-serif;overflow-wrap:anywhere}
.photo-loading-dialog #photoLoadingHint{margin:14px 0 0;font:400 14px/1.5 system-ui,sans-serif;color:#5b6d60}
.photo-loading-dialog button{margin-top:20px;min-height:48px;min-width:110px}
.photo-loading-spinner{width:42px;height:42px;margin:0 auto;border:4px solid #d4e0d2;border-top-color:#235b46;border-radius:50%;animation:photo-loading-spin .9s linear infinite}
.photo-loading-dialog[data-state=error] .photo-loading-spinner{display:none}
@keyframes photo-loading-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.photo-loading-spinner{animation:none}}

.batch-summary{margin:10px 0 14px}.batch-summary #batchStatus{font-weight:700;margin:0}.batch-files .batch-edit-status.edited{color:#245b47;font-weight:600}
.tutorial-choices{display:flex;flex-direction:column;gap:12px;margin:20px 0}.tutorial-choices a{display:block;border:1px solid #bbc9b2;border-radius:10px;padding:14px 16px;background:#fff;text-decoration:none;text-align:center;font-weight:600;min-height:50px}.tutorial-choices a.primary{background:#245849;color:#fff}
.panel-body .guide-topic{border-bottom:1px solid #d5decd;scroll-margin-top:110px}.panel-body .guide-topic summary{font-size:18px;font-weight:600}
.tutorial-prompt{box-sizing:border-box;width:calc(100% - 32px);max-width:420px;max-height:calc(100dvh - 32px);padding:24px;margin:auto;border:1px solid #bbc9b2;border-radius:16px;background:#fffaf0;color:#193e30;font:16px/1.5 Arial,sans-serif;overflow:auto}.tutorial-prompt::backdrop{background:#10231b99}.tutorial-prompt h2{font:600 26px/1.2 Georgia,serif;margin:0 0 14px}.tutorial-prompt label{display:flex;align-items:center;gap:10px;min-height:44px}.tutorial-prompt input{width:22px;height:22px;flex:none}.tutorial-prompt .small{font-size:13px;color:#566951}.tutorial-prompt button{min-height:48px;padding:10px;border:1px solid #bbc9b2;border-radius:8px;background:#fff;color:#193e30;font:16px/1.3 Arial,sans-serif}.tutorial-prompt button.primary{background:#245849;color:white}.tutorial-prompt :focus-visible{outline:3px solid #398568;outline-offset:3px}
#hideFieldKeyboard{position:fixed;z-index:10002;min-height:44px;width:142px;margin:0;padding:8px;border:1px solid #9eb4a6;border-radius:9px;background:#fffaf0;color:#193e30;box-shadow:0 2px 12px #0003;font:600 14px Arial,sans-serif;touch-action:manipulation}
.mobile-color-palette{display:grid;grid-template-columns:repeat(4,minmax(44px,1fr));gap:10px;margin:12px 0}
.mobile-color-palette button{min-height:44px;margin:0;padding:0;background:var(--swatch);border:2px solid #fff;border-radius:8px;box-shadow:0 0 0 1px #96aa9c}
.mobile-color-palette button:hover:enabled{background:var(--swatch)}
.mobile-color-palette button[aria-pressed=true]{outline:3px solid #398568;outline-offset:2px}
.mobile-color-palette button[aria-pressed=true]::after{content:'✓';color:white;font-size:22px;text-shadow:0 1px 3px #000}

.mobile-custom-color input[type=color][hidden],.mobile-color-picker[hidden]{display:none!important}
.mobile-custom-color #customColor{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:52px;margin-top:16px}
.custom-color-swatch{width:28px;height:28px;border:1px solid #798b7e;border-radius:5px;background:var(--chosen-color)}
.mobile-color-picker{margin:14px 0 8px;padding:12px;border:1px solid #b1c4b2;border-radius:12px;background:#f1f5ec}
.color-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.color-picker-heading button{min-width:64px}
.color-wheel-wrap{position:relative;width:min(100%,240px);margin:14px auto}
#customColorWheel{display:block;width:100%;height:auto;aspect-ratio:1;touch-action:none;border-radius:50%;cursor:crosshair}
#customColorWheel:focus-visible{outline:3px solid #398568;outline-offset:5px}
.color-wheel-cursor{position:absolute;pointer-events:none;width:18px;height:18px;border:3px solid white;border-radius:50%;box-shadow:0 0 0 1px #183b2b,0 1px 3px #0008;transform:translate(-50%,-50%)}
.panel-body .color-wheel-preview{margin:10px 0 0;padding:12px;background:white;text-align:center;font-size:22px;border-radius:7px}
.color-picker-heading+ p{margin:8px 0;font-size:14px}
.color-brightness-label input{width:100%;min-height:44px}
.mobile-color-picker .visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

#customColor,#closeCustomColor{touch-action:manipulation}

#customColorWheel{scroll-margin-top:80px;scroll-margin-bottom:8px}
.practice-mode #customColorWheel{scroll-margin-top:176px}

@media(max-height:500px){
 .color-wheel-wrap{width:180px;margin:8px auto}
 .panel-body .color-wheel-preview{padding:8px;font-size:20px;line-height:1.2}
 #colorWheelHelp{display:none}
 #customColorWheel{scroll-margin-top:152px}
 .practice-mode #customColorWheel{scroll-margin-top:214px}
}

/* Shared News review label and grouped mobile history. */
.publication-preview{padding:12px 16px;border:1px solid #a87925;border-radius:10px;background:#fff0c8;color:#483608;font-size:16px;line-height:1.5}.earlier-news,.mobile-release{margin:18px 0}.mobile-release summary{cursor:pointer;font-weight:700;line-height:1.5}.mobile-release li{margin:8px 0}
