/* Scoped styles: Cocoon and existing plugins remain outside this namespace. */
.hnt-manager,.hnt-player{box-sizing:border-box;--hnt-wine:#87384c;--hnt-ink:#3c3035;font-family:inherit}.hnt-manager *,.hnt-player *{box-sizing:border-box}.hnt-manager{margin:24px auto;padding:clamp(18px,4vw,40px);max-width:1180px;background:#fffaf5;border:1px solid #e5d7d2;border-radius:20px;color:var(--hnt-ink);line-height:1.8}.hnt-kicker{font-size:12px;letter-spacing:.14em;color:#87384c;font-weight:700}body .hnt-manager h2,body .hnt-manager h3,body .hnt-manager h4,body .hnt-modal h3,body .hnt-modal h4{background:none!important;border:0!important;box-shadow:none!important;color:#3c3035!important;padding:0!important;margin:16px 0!important;position:static!important}body .hnt-manager h2::before,body .hnt-manager h2::after,body .hnt-manager h3::before,body .hnt-manager h3::after,body .hnt-manager h4::before,body .hnt-manager h4::after,body .hnt-modal h3::before,body .hnt-modal h3::after{display:none!important;content:none!important}.hnt-manager h2{font-size:clamp(24px,4vw,32px)}.hnt-manager button,.hnt-modal button,.hnt-player button{font-family:inherit;cursor:pointer;line-height:1.5;min-height:42px;box-shadow:none;text-shadow:none;letter-spacing:normal}.hnt-btn,.hnt-small{border:1px solid #87384c;border-radius:9px;background:#87384c;color:#fff;text-decoration:none;padding:11px 18px;font-size:14px;display:inline-block}.hnt-small{padding:7px 12px;font-size:13px;background:#fff;color:#703346}.hnt-btn:hover{filter:brightness(1.08)}.hnt-secondary{color:#703346;background:#fff;border-color:#d6b9bd}.hnt-danger{color:#a6233c}.hnt-manager button:disabled{opacity:.55;cursor:wait}.hnt-manager button:focus-visible,.hnt-modal button:focus-visible,.hnt-player button:focus-visible{outline:3px solid #c78a26;outline-offset:3px}.hnt-toolbar,.hnt-inline,.hnt-row-actions,.hnt-savebar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.hnt-toolbar{margin:24px 0}.hnt-badge{font-size:12px;border-radius:30px;padding:3px 12px;background:#f0e3df}.hnt-tabs{display:flex;gap:5px;overflow:auto;padding:10px 0;border-bottom:1px solid #e7d5cf}.hnt-tab{border:0;background:transparent;color:#66525a;white-space:nowrap;padding:10px 16px;border-radius:8px;font-size:14px}.hnt-tab.is-active{color:white;background:#87384c}.hnt-editor{padding:16px 0}.hnt-section-heading p,.hnt-hint{font-size:13px;color:#76646b}.hnt-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.hnt-field{display:flex;flex-direction:column;gap:7px;min-width:0;margin:8px 0;font-size:14px}.hnt-field>span:first-child{font-weight:700}.hnt-manager input,.hnt-manager select,.hnt-manager textarea,.hnt-modal input{box-sizing:border-box;width:100%;max-width:100%;border:1px solid #d6c9c5;background:#fff;color:#3c3035;border-radius:7px;padding:10px;font:inherit;font-size:14px}.hnt-manager textarea{resize:vertical}.hnt-asset-name{font-size:12px;color:#76646b;overflow-wrap:anywhere}.hnt-asset-sample img{max-width:160px;max-height:100px;object-fit:contain}.hnt-asset-sample audio{width:100%;max-width:300px;height:34px}.hnt-card{padding:20px;margin:14px 0;border:1px solid #e7d8d2;border-radius:12px;background:#fff}.hnt-card summary{cursor:pointer;font-weight:700;min-height:30px}.hnt-project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.hnt-row-actions{justify-content:flex-end;margin:12px 0}.hnt-choice-editor{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end;border-bottom:1px solid #eee2df;padding-bottom:10px}.hnt-branch{margin:16px 0;padding:14px;background:#faf5f1;border-radius:8px}.hnt-savebar{padding-top:20px;border-top:1px solid #e7d5cf}.hnt-success{color:#365e44}.hnt-error{color:#a52438}.hnt-issues{background:#fff2dc;padding:14px;border-radius:8px;margin:16px 0;color:#654b22}.hnt-issues ul{margin:8px 0;padding-left:24px}.hnt-official{padding:14px;background:#f3eee9;border-radius:8px;white-space:pre-wrap}.hnt-check{font-size:14px;display:flex;align-items:center;gap:10px}.hnt-check input{width:auto}.hnt-modal{max-width:1100px;width:94vw;max-height:92vh;border:1px solid #ddcec7;border-radius:16px;padding:24px;background:#fffaf5;color:#3c3035}.hnt-modal::backdrop{background:#21191cc9}.hnt-modal-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.hnt-modal-body{min-width:0}.hnt-media-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.hnt-media-item{border:1px solid #e4d3cc;border-radius:10px;background:white;color:#3c3035;overflow-wrap:anywhere;padding:10px;display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center}.hnt-media-item img{width:100%;height:100px;object-fit:contain}.hnt-modal input[type=file]{margin:12px 0}
.hnt-player{max-width:1120px;width:100%;margin:24px auto;color:#fff}.hnt-stage{position:relative;isolation:isolate;min-height:600px;aspect-ratio:16/10;overflow:hidden;border-radius:20px;background:radial-gradient(ellipse at 50% 25%,#5a6660,#172c29 65%,#111e1b);box-shadow:0 18px 50px #1f172538}.hnt-background{position:absolute;inset:0;background-position:center;background-size:cover;z-index:-2}.hnt-background::after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#17111c88,transparent 65%)}.hnt-actor{position:absolute;bottom:0;transform:translateX(-50%);object-fit:contain;width:auto;max-width:100%;z-index:-1;filter:drop-shadow(0 8px 24px #0005)}.hnt-top{position:absolute;left:18px;right:18px;top:18px;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.hnt-top[hidden]{display:none}.hnt-place{margin-right:auto;font-size:14px;background:#221e27aa;padding:8px 14px;border:1px solid #d6b9ad80;border-radius:20px}.hnt-player .hnt-control{color:#fff;background:#201e26c9;border:1px solid #d6b9ad88;border-radius:20px;padding:7px 12px;font-size:12px}.hnt-dialogue{position:absolute;bottom:22px;left:4%;right:4%;padding:24px 28px;background:linear-gradient(115deg,#30212df2,#211d2af0);border:1px solid #d7bda6;border-radius:16px;box-shadow:0 5px 20px #0003;max-height:72%;overflow:auto}.hnt-name{color:#f5dcb1;font-weight:700;font-size:17px;letter-spacing:.08em;margin-bottom:10px}.hnt-text{font-size:17px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;min-height:65px}.hnt-choices{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.hnt-player .hnt-choice{border:1px solid #d4bda5aa;border-radius:9px;background:#fff8ed;color:#593747;padding:10px 18px;font-size:14px;flex:1 1 180px}.hnt-player .hnt-choice:hover{background:#f2dacc}.hnt-audio-notice{font-size:12px;color:#754a3b;line-height:1.6;min-height:1.6em}.hnt-player [hidden]{display:none!important}@media(max-width:700px){.hnt-form-grid,.hnt-project-grid{grid-template-columns:1fr}.hnt-choice-editor{grid-template-columns:1fr}.hnt-media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hnt-modal{padding:16px}.hnt-stage{aspect-ratio:auto;min-height:730px;height:85svh;max-height:950px}.hnt-dialogue{bottom:14px;left:3%;right:3%;padding:18px;max-height:65%}.hnt-text{font-size:16px}.hnt-top{left:10px;right:10px;top:10px;gap:6px}.hnt-place{flex-basis:100%;font-size:13px}.hnt-player .hnt-control{font-size:11px}.hnt-manager{padding:18px;margin:12px 0}.hnt-player .hnt-choice{flex-basis:140px}}@media(prefers-reduced-motion:reduce){.hnt-player *{scroll-behavior:auto!important}}

/* 立ち絵の拡大をテーマの画像制限で縮めない。高さはプレイヤー側の指定を使用。 */
.hnt-player img.hnt-actor{max-width:none!important;max-height:none!important;width:auto!important;min-width:0!important;min-height:0!important;object-fit:contain!important}
.hnt-adjustment input[type=range]{flex:1 1 140px;min-width:0;width:auto;accent-color:#87384c;padding:5px 0;background:transparent;border:0}.hnt-adjustment input[type=number]{flex:0 0 95px;width:95px}.hnt-preview-adjust{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:12px 16px;border:1px solid #e4d3cc;border-radius:12px;background:#fff}.hnt-preview-adjust .hnt-field{margin:0}@media(max-width:700px){.hnt-preview-adjust{grid-template-columns:1fr}}

.hnt-preview-adjust{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:700px){.hnt-preview-adjust{grid-template-columns:1fr}}

/* 台詞ウィンドウのみ隠す。上部操作は残し、会話位置や音声を変えない。 */
.hnt-player.hnt-dialogue-hidden .hnt-dialogue,.hnt-player.hnt-dialogue-hidden .hnt-audio-notice{display:none!important}
.hnt-player .hnt-control[aria-pressed=true]{background:#6f344bdc;border-color:#f3d3a3}
/* 操作ボタンを左上へ。非表示中はタイトルバッジも隠して画像を見渡せる。 */
.hnt-player .hnt-top{justify-content:flex-start}.hnt-player .hnt-place{order:2;margin-right:0;margin-left:auto}.hnt-player.hnt-dialogue-hidden .hnt-place{display:none!important}.hnt-player.hnt-dialogue-hidden .hnt-background::after{display:none}@media(max-width:700px){.hnt-player .hnt-place{order:-1;margin-left:0}}

.hnt-player .hnt-text a{color:#ffe1a3;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.hnt-player .hnt-text a:visited{color:#e5c7ff}.hnt-player .hnt-text a:focus-visible{outline:2px solid #ffe1a3;outline-offset:3px}
