/* Local subject nodes only; canvas positioning and history remain owned by the host. */
.jmc-editor .jms-subject { display: flex; flex-direction: column; width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: hidden; border-radius: 12px; background: #18181a; color: #f1f1f5; font-family: inherit; line-height: 20px; }
.jmc-editor .jms-subject *, .jmc-editor .jms-subject-menu * { box-sizing: border-box; }
.jmc-editor .jms-subject button { font-family: inherit; cursor: pointer; }
.jmc-editor .jms-header { position: relative; display: flex; flex: 0 0 84px; align-items: flex-start; width: 100%; min-height: 84px; padding: 12px 16px; gap: 4px; }
.jmc-editor .jms-heading { flex: 1 1 auto; min-width: 0; }
.jmc-editor .jms-title { display: block; width: 100%; height: 36px; min-width: 0; padding: 6px 2px; overflow: hidden; border: 0; border-radius: 6px; background: transparent; color: #f1f1f5; font-size: 16px; font-weight: 500; line-height: 24px; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.jmc-editor .jms-description { display: block; max-width: 100%; height: 24px; padding: 2px 12px 2px 2px; overflow: hidden; border: 0; border-radius: 4px; background: transparent; color: #a5a5af; font-size: 12px; font-weight: 400; line-height: 20px; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.jmc-editor .jms-description.is-empty { color: #777781; }
.jmc-editor .jms-title:hover, .jmc-editor .jms-description:hover { background: #ffffff08; }
.jmc-editor .jms-title-input, .jmc-editor .jms-description-input { display: block; width: 100%; min-width: 0; padding: 5px 2px; margin: 0; border: 1px solid #63636f; border-radius: 4px; outline: none; background: #232326; color: #eeeef3; font-family: inherit; user-select: text; }
.jmc-editor .jms-title-input { height: 36px; font-size: 16px; font-weight: 500; line-height: 24px; }
.jmc-editor .jms-description-input { height: 24px; min-height: 24px; max-height: 80px; padding: 1px 2px; resize: vertical; font-size: 12px; line-height: 20px; }
.jmc-editor .jms-content { display: flex; flex: 1 1 auto; gap: 2px; min-width: 0; min-height: 0; padding: 0 16px 16px; }
.jmc-editor .jms-empty { display: flex; flex: 1 1 auto; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 0; border-radius: 8px; background: #202022; }
.jmc-editor .jms-empty-action { display: flex; flex: 0 0 36px; align-items: center; justify-content: flex-start; gap: 8px; min-width: 145px; height: 36px; padding: 8px 12px; border: 0; border-radius: 6px; background: transparent; color: #e5e5ec; font-size: 13px; font-weight: 500; line-height: 20px; }
.jmc-editor .jms-empty-action:hover { background: #ffffff0d; }
.jmc-editor .jms-subject button svg { display: block; flex: 0 0 16px; width: 16px; height: 16px; }
.jmc-editor .jms-main { position: relative; flex: 0 0 320px; width: 320px; height: 320px; min-width: 0; overflow: hidden; border-radius: 8px; background: #202022; }
.jmc-editor .jms-main-media { display: block; width: 100%; height: 100%; object-fit: contain; }
.jmc-editor audio.jms-main-media { height: 44px; margin-block: 138px; }
.jmc-editor .jms-main-badge { position: absolute; bottom: 8px; left: 8px; padding: 1px 6px; border-radius: 4px; background: #0008; color: #fff; font-size: 12px; line-height: 20px; pointer-events: none; }
.jmc-editor .jms-remove-main { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 24px; height: 24px; padding: 4px; border: 0; border-radius: 6px; background: #0009; color: #fff; }
.jmc-editor .jms-remove-main:hover { background: #000c; }
.jmc-editor .jms-add-media { display: flex; flex: 0 0 105px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 105px; height: 320px; padding: 10px; border: 0; border-radius: 8px; background: #202022; color: #93939e; font-size: 12px; line-height: 20px; }
.jmc-editor .jms-add-media:hover { background: #29292d; color: #dedee6; }
.jmc-editor .jms-voice { display: grid; flex: 0 0 36px; place-items: center; width: 36px; height: 36px; padding: 10px; border: 0; border-radius: 6px; background: transparent; color: #bdbdc7; }
.jmc-editor .jms-voice:hover { background: #ffffff0d; }
.jmc-editor .jms-media-unavailable { display: grid; place-items: center; width: 100%; height: 100%; padding: 12px; color: #8f8f9d; font-size: 12px; line-height: 20px; }
.jmc-editor .jms-subject button:focus-visible, .jmc-editor .jms-subject-menu button:focus-visible { outline: 2px solid #9b86ff; outline-offset: -2px; }
.jmc-editor .jms-subject-menu { position: fixed; z-index: 300; display: flex; flex-direction: column; gap: 2px; max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 8px; overflow: auto; border: 1px solid #ffffff14; border-radius: 10px; background: #252528; color: #eeeef4; box-shadow: 0 10px 32px #0007; }
.jmc-editor .jms-menu-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 8px; border: 0; border-radius: 6px; background: transparent; color: inherit; font-family: inherit; font-size: 13px; font-weight: 500; line-height: 20px; text-align: left; }
.jmc-editor .jms-menu-item svg { flex: 0 0 16px; width: 16px; height: 16px; }
.jmc-editor .jms-menu-item:hover { background: #ffffff0d; }
.jmc-editor .jms-menu-title { padding: 4px 8px 6px; color: #94949f; font-size: 12px; line-height: 20px; }
/* Voice popover geometry is provisional; media playback stays local. */
.jmc-editor .jms-voice-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px 6px 8px; color: #e3e3eb; font-size: 13px; line-height: 24px; }
.jmc-editor .jms-voice-more, .jmc-editor .jms-voice-play { display: grid; flex: 0 0 28px; place-items: center; width: 28px; height: 28px; padding: 6px; border: 0; border-radius: 6px; background: transparent; color: #c4c4cf; }
.jmc-editor .jms-voice-more svg, .jmc-editor .jms-voice-play svg { width: 16px; height: 16px; }
.jmc-editor .jms-voice-more:hover, .jmc-editor .jms-voice-play:hover { background: #ffffff0d; }
.jmc-editor .jms-voice-play:disabled { opacity: .4; cursor: default; }
.jmc-editor .jms-voice-playback { display: flex; align-items: center; gap: 8px; padding: 4px 8px 6px; }
.jmc-editor .jms-voice-time { color: #ababba; font-size: 12px; line-height: 20px; font-variant-numeric: tabular-nums; }
.jmc-editor .jms-menu-separator { height: 1px; margin: 4px 0; background: #ffffff14; }
.jmc-editor .jms-menu-danger { color: #f38c94; }
/* One auxiliary PNG was observed. Additional local rows scroll without inventing a cap. */
.jmc-editor .jms-aux-column { display: flex; flex: 0 0 105px; flex-direction: column; gap: 2px; width: 105px; height: 320px; min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; touch-action: pan-y; }
.jmc-editor .jms-auxiliary { position: relative; display: block; flex: 0 0 105px; width: 105px; height: 105px; min-width: 0; min-height: 0; overflow: hidden; border-radius: 8px; background: #202022; }
.jmc-editor .jms-auxiliary-image { display: block; width: 105px; height: 105px; object-fit: contain; }
.jmc-editor .jms-remove-auxiliary { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 24px; height: 24px; min-height: 0; padding: 4px; border: 0; border-radius: 6px; background: #0009; color: #fff; }
.jmc-editor .jms-remove-auxiliary:hover { background: #000c; }
.jmc-editor .jms-aux-column > .jms-add-media { flex: 1 0 105px; width: 105px; height: auto; min-height: 105px; }
.jmc-editor .jms-voice-frame { position: relative; flex: 0 0 36px; width: 36px; height: 36px; }
.jmc-editor .jms-delete-voice { position: absolute; top: -3px; right: -3px; display: grid; place-items: center; width: 16px; height: 16px; min-height: 0; padding: 2px; border: 0; border-radius: 8px; background: #313137; color: #f5f5fa; }
.jmc-editor .jms-delete-voice svg { flex-basis: 12px; width: 12px; height: 12px; }
.jmc-editor .jms-delete-voice:hover { background: #4a4a52; }

.jmc-editor .jms-aux-column::-webkit-scrollbar { display: none; }
