.ep-result-share{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}
.ep-result-share button,.ep-result-share a{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 12px;border:1px solid #d4cbc4;border-radius:8px;background:#fff;color:#5d4540;font:600 14px/1.4 system-ui,sans-serif;text-decoration:none;cursor:pointer}
.ep-result-share :focus-visible,.ep-result-copy-dialog :focus-visible{outline:3px solid #302b2d;outline-offset:3px}
.ep-result-feedback{position:fixed;z-index:1000;inset:auto 16px calc(88px + env(safe-area-inset-bottom));width:max-content;max-width:calc(100vw - 32px);margin-inline:auto;display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:10px;background:#302b2d;color:#fff;font:500 15px/1.6 system-ui,sans-serif;box-shadow:0 4px 20px #0002;overflow-wrap:anywhere}
.ep-result-feedback button{flex:none;min-height:44px;border:1px solid #fff8;border-radius:6px;background:transparent;color:#fff;padding:6px 10px;font:inherit}
.ep-result-feedback[hidden],.ep-result-feedback [hidden]{display:none!important}
.ep-result-copy-dialog{box-sizing:border-box;width:min(560px,calc(100vw - 32px));max-height:80dvh;overflow:auto;padding:20px;border:1px solid #d4cbc4;border-radius:12px;color:#302b2d}
.ep-result-copy-dialog::backdrop{background:#0006}
.ep-result-copy-dialog label{display:block;font:600 16px/1.6 system-ui,sans-serif}
.ep-result-copy-dialog textarea{box-sizing:border-box;display:block;width:100%;margin:8px 0 12px;padding:10px;font:400 16px/1.6 system-ui,sans-serif}
.ep-result-copy-dialog button{min-height:44px;margin:4px;padding:8px 12px;font:500 16px/1.4 system-ui,sans-serif}
@media(min-width:701px){.ep-result-feedback{bottom:24px}}
@media print{.ep-result-share,.ep-result-feedback{display:none!important}}

/* Quiet utility actions leave the repeated draw as the only strong action. */
.ep-result-share{display:inline-flex;flex:none;gap:4px;margin:0;vertical-align:middle}
[data-ep-shell] button.ep-icon-button,.ep-icon-button{box-sizing:border-box;display:inline-grid;place-items:center;flex:none;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:1px solid transparent;border-radius:10px;background:transparent;color:#554d49;cursor:pointer}
.ep-icon-button svg{display:block;width:21px;height:21px;pointer-events:none}
[data-ep-shell] button.ep-icon-button.ep-icon-labeled,.ep-icon-button.ep-icon-labeled{display:inline-flex;align-items:center;justify-content:center;gap:4px;width:auto;padding:0 10px}
.ep-icon-labeled svg{width:18px;height:18px}
.ep-icon-text{font:700 13px/1 system-ui,sans-serif;white-space:nowrap;pointer-events:none}
.ep-icon-button:hover{background:#00000008}
[data-ep-shell] button.ep-icon-button[aria-pressed=true],.ep-icon-button[aria-pressed=true]{color:#16181c}
.ep-icon-button[data-ep-icon=bookmark][aria-pressed=true] svg{fill:currentColor}
.ep-icon-button:focus-visible,.ep-palette-choices button:focus-visible{outline:3px solid #302b2d;outline-offset:2px}
.ep-action-dialog{box-sizing:border-box;position:fixed;inset:0;width:min(320px,calc(100vw - 32px));max-height:80dvh;height:max-content;margin:auto;padding:16px;border:1px solid #ddd4ce;border-radius:18px;background:#fff;color:#292c32;box-shadow:0 20px 80px #211b1926}
.ep-action-dialog::backdrop{background:#211b1938}
.ep-action-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.ep-action-dialog .ep-action-heading h2{font:700 17px/1.5 system-ui,sans-serif;margin:0}
.ep-share-choices{display:grid;gap:8px}
.ep-action-dialog.ep-share-dialog{width:min(340px,calc(100vw - 32px))}
.ep-share-text{box-sizing:border-box;display:block;width:100%;margin:0 0 10px;padding:10px 12px;border:1px solid #e6e0d7;border-radius:10px;background:#fff;color:#292c32;font:400 14px/1.6 system-ui,sans-serif;resize:none}
.ep-share-hint{margin:0 0 10px;font:400 13px/1.6 system-ui,sans-serif;color:#8f2a18}
.ep-share-note{margin:0 0 10px;padding:8px 10px;border-radius:8px;background:#faf5f0;color:#5f554e;font:500 12px/1.5 system-ui,sans-serif}
.ep-action-dialog .ep-share-choices button:disabled{border-color:#e6e0d7;background:#e6e0d7;color:#5f5852;cursor:not-allowed;opacity:1}
.ep-action-dialog .ep-share-choices button{min-height:48px;border:1px solid #e6ded8;border-radius:10px;background:#faf8f5;color:#332d29;font:600 15px/1.5 system-ui,sans-serif;padding:10px 14px;text-align:left;cursor:pointer}
.ep-share-tags{margin:0 0 10px}
.ep-share-tags-label{display:block;margin:0 0 6px;font:600 12px/1.4 system-ui,sans-serif;color:#6b645c}
.ep-share-tags-list{display:flex;flex-wrap:wrap;gap:6px}
.ep-action-dialog .ep-share-tag{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:6px 12px;border:1px solid #d4cbc4;border-radius:999px;background:#fff;color:#4a3f3a;font:600 13px/1.3 system-ui,sans-serif;cursor:pointer}
.ep-action-dialog .ep-share-tag:hover{background:#faf5f0;border-color:#bfb3aa}
.ep-action-dialog .ep-share-tag[aria-pressed="true"]{background:#fdf1ee;border-color:#b93625;color:#9c291b}
.ep-action-dialog .ep-share-tag:focus-visible,.ep-action-dialog .ep-share-choices button:focus-visible{outline:3px solid #302b2d;outline-offset:2px}
html[data-theme="dark"] body .ep-share-dialog .ep-share-tags-label{color:var(--d-sub,#b5aea6)!important}
html[data-theme="dark"] body .ep-share-dialog .ep-share-tag{background:var(--d-field,#1c1a20)!important;border-color:var(--d-line,#5a5363)!important;color:var(--d-text,#f3efe9)!important}
html[data-theme="dark"] body .ep-share-dialog .ep-share-tag[aria-pressed="true"]{background:var(--d-selected,#3a1f1b)!important;border-color:var(--d-accent,#f0846c)!important;color:var(--d-text,#f3efe9)!important}
html[data-theme="dark"] body .ep-share-dialog .ep-share-tag:focus-visible,html[data-theme="dark"] body .ep-share-dialog .ep-share-choices button:focus-visible{outline-color:var(--d-accent,#f0846c)!important}
[data-ep-palette=paper]{--ep-result-bg:#faf2e5;--ep-result-border:#decdb4;--ep-result-accent:#795033;--ep-swatch:#dfc49c}
[data-ep-palette=rose]{--ep-result-bg:#fff1f3;--ep-result-border:#e4bec7;--ep-result-accent:#8c354b;--ep-swatch:#e2aebc}
[data-ep-palette=sky]{--ep-result-bg:#edf6ff;--ep-result-border:#bcd2e7;--ep-result-accent:#27577e;--ep-swatch:#a8c8e6}
[data-ep-palette=sage]{--ep-result-bg:#eff7ef;--ep-result-border:#bad3be;--ep-result-accent:#306446;--ep-swatch:#afcfb7}
.ep-result-theme{background:var(--ep-result-bg)!important;border-color:var(--ep-result-border)!important;color:#292c32}
.ep-result-theme .reply-card{background:var(--ep-result-bg);border-color:var(--ep-result-border)}
.ep-result-theme h2,.ep-result-theme h3,.ep-result-theme .description-heading{color:var(--ep-result-accent)}
.ep-palette-choices{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.ep-palette-choices button{display:grid;place-items:center;min-width:44px;min-height:44px;border:1px solid #ddd4ce;border-radius:10px;background:#fff;cursor:pointer}
.ep-palette-choices button[aria-pressed=true]{outline:2px solid #292c32;outline-offset:2px}
.ep-palette-choices span{display:block;width:24px;height:24px;border-radius:50%;background:var(--ep-swatch);border:1px solid #0001}
@media print{.ep-action-dialog{display:none!important}}
/* 前回の作りかけの印（restore-note.js）。2026-11-04：幅を取らない小さな札にする（見出しの下に左寄せ、文字は小さく薄く） */
.ep-restore-note{box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:center;gap:0 2px;width:fit-content;max-width:100%;margin:2px 0 6px;padding:0 2px 0 12px;border-radius:999px;background:#f5f1ee;color:#6b645c;font:500 12px/1.4 system-ui,sans-serif}
[data-ep-shell="fan"] > header + .ep-restore-note{margin-inline:max(16px,calc((100% - 1160px)/2)) 16px;max-width:calc(100% - 32px)}
[data-ep-shell="diagram"] :is(.rm-bar,.pm-bar) + .ep-restore-note{margin-inline:16px;max-width:calc(100% - 32px)}
.ep-restore-note span{min-width:0}
.ep-restore-note button{min-height:36px;min-width:36px;padding:0 8px;border:0;border-radius:999px;background:transparent;color:#a72e24;font:700 12px/1.4 system-ui,sans-serif;cursor:pointer}
.ep-restore-note button.ep-restore-close{color:#6b645c;font-size:16px;font-weight:400;padding:0}
.ep-restore-note button:focus-visible{outline:3px solid #302b2d;outline-offset:2px}
html[data-theme="dark"] body .ep-restore-note{background:var(--d-surface)!important;color:var(--d-sub)!important}
@media print{.ep-restore-note{display:none!important}}
