#top-editor-guide[hidden],#top-editor-tip[hidden],#top-editor-guide .top-editor-guide__publish[hidden]{display:none!important}
#top-editor-guide{position:fixed;z-index:2147482000;right:14px;top:88px;width:min(290px,calc(100vw - 28px));max-height:calc(100vh - 110px);overflow:auto;border:1px solid #adc6d7;border-radius:14px;background:#fff;box-shadow:0 10px 32px #132c4250;color:#193348;font:14px/1.5 "Noto Sans JP",sans-serif}
#top-editor-guide summary{cursor:pointer;display:flex;justify-content:space-between;gap:8px;padding:12px 15px;background:#0b3c7d;color:#fff;font-weight:700;list-style:none}
#top-editor-guide summary::-webkit-details-marker{display:none}
#top-editor-guide details:not([open]) summary span{transform:rotate(180deg)}
#top-editor-guide p{margin:12px 14px 0;font-size:12px;line-height:1.6}
#top-editor-guide .top-editor-guide__note{padding:8px 10px;border-radius:6px;background:#fff4dc;color:#654b1d}
#top-editor-guide .top-editor-guide__steps{margin:12px 12px 0;padding:8px 10px;border:1px solid #c9dbe8;border-radius:8px;background:#f5f9fc}
#top-editor-guide .top-editor-guide__steps p{display:grid;gap:2px;margin:0;padding:5px 0}
#top-editor-guide .top-editor-guide__steps p+p{border-top:1px solid #dce8f0}
#top-editor-guide .top-editor-guide__steps strong{color:#0b3c7d;font-size:12px}
#top-editor-guide .top-editor-guide__steps span{font-size:11px}
#top-editor-guide .top-editor-guide__publish{display:block;width:calc(100% - 24px);margin:9px 12px 0;padding:10px;border:0;border-radius:7px;background:#ed7900;color:#fff;font:700 12px/1.5 "Noto Sans JP",sans-serif;cursor:pointer}
#top-editor-guide .top-editor-guide__publish:disabled{opacity:.55;cursor:wait}
#top-editor-guide .top-editor-guide__actions{padding:10px 12px 0}
#top-editor-guide .top-editor-guide__actions a{display:block;padding:8px 10px;border:1px solid #7cb0d7;border-radius:7px;color:#0b3c7d;text-decoration:none;font-size:12px;font-weight:700}
#top-editor-guide .top-editor-guide__actions a:hover{text-decoration:underline;background:#f0f6fb}
#top-editor-guide .top-editor-guide__actions p{margin:0 0 7px;font-weight:700;color:#0b3c7d}
#top-editor-guide .top-editor-guide__actions img{display:block;width:100%;max-height:115px;object-fit:cover;border:2px dashed #0b72bc;border-radius:7px;cursor:pointer}
#top-editor-guide .top-editor-guide__status{padding:8px 10px;border-radius:6px;background:#eaf6ef;color:#15512b}
#top-editor-guide nav{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:12px}
#top-editor-guide nav a{padding:7px 8px;border-radius:7px;background:#f0f6fb;color:#16416c;text-decoration:none;font-size:11px;line-height:1.4}
#top-editor-guide nav a:hover,#top-editor-guide nav a:focus-visible{background:#dcecf7;text-decoration:underline}
#top-editor-tip{position:fixed;z-index:2147483000;max-width:260px;padding:7px 10px;border-radius:6px;background:#0b3c7d;color:#fff;box-shadow:0 3px 12px #0003;pointer-events:none;font:12px/1.5 "Noto Sans JP",sans-serif}
body:has(#emdash-toolbar[data-edit-mode="true"]) [data-emdash-ref][data-top-edit-label]{cursor:pointer;outline:2px dashed #0b72bc;outline-offset:3px}
body:has(#emdash-toolbar[data-edit-mode="true"]) [data-emdash-ref][data-top-edit-label]:hover{outline-style:solid}
#top-editor-panel[hidden]{display:none!important}
#top-editor-panel{position:fixed;z-index:2147482100;right:14px;top:88px;width:min(370px,calc(100vw - 28px));padding:16px;box-sizing:border-box;border:1px solid #adc6d7;border-radius:14px;background:#fff;box-shadow:0 10px 36px #132c4260;color:#193348;font:14px/1.5 "Noto Sans JP",sans-serif}
#top-editor-panel .top-editor-panel__heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;font-size:15px}
#top-editor-panel .top-editor-panel__heading button{background:none;border:0;color:#193348;font-size:25px;line-height:1;cursor:pointer}
#top-editor-panel p{margin:10px 0;font-size:12px;line-height:1.6}
#top-editor-panel .top-editor-panel__history{display:flex;gap:8px;margin:10px 0}
#top-editor-panel .top-editor-panel__history button{padding:7px 10px;border:1px solid #9cb3c4;border-radius:7px;background:#f3f7fa;color:#193348;font:700 12px/1.4 "Noto Sans JP",sans-serif;cursor:pointer}
#top-editor-panel .top-editor-panel__history button:disabled{opacity:.45;cursor:not-allowed}
#top-editor-panel textarea{display:block;width:100%;min-height:130px;box-sizing:border-box;resize:vertical;border:1px solid #9cb3c4;border-radius:7px;padding:10px;font:14px/1.7 "Noto Sans JP",sans-serif}
#top-editor-panel textarea:focus{outline:2px solid #0b72bc;outline-offset:1px}
#top-editor-panel .top-editor-panel__status{min-height:20px;color:#65501d}
#top-editor-panel .top-editor-panel__buttons{display:flex;gap:8px}
#top-editor-panel .top-editor-panel__buttons button{flex:1;padding:10px 7px;border:1px solid #0b3c7d;border-radius:7px;background:#fff;color:#0b3c7d;font-weight:700;cursor:pointer}
#top-editor-panel .top-editor-panel__buttons button[data-action="save"]{background:#0b3c7d;color:#fff}
#top-editor-panel .top-editor-panel__buttons button:disabled{opacity:.55;cursor:wait}
@media(max-width:760px){#top-editor-guide{top:70px;right:8px;width:min(270px,calc(100vw - 16px))}#top-editor-guide details[open] nav{max-height:180px;overflow:auto}#top-editor-panel{top:auto;bottom:56px;right:8px;width:calc(100vw - 16px);max-height:65vh;overflow:auto}}
