/* Keep toolbar panels inside their original form for Zibll's insert/upload handlers. */
body.song-community #commentform .comt-tips-left{display:flex;align-items:center;flex-wrap:wrap;gap:4px}
body.song-community #commentform .sc-comment-tool{position:relative!important;display:inline-flex}
body.song-community #commentform .sc-comment-tool>.btn-input-expand{display:inline-flex;align-items:center;justify-content:center;gap:5px;margin:0!important;min-height:36px;padding:7px 10px!important;border-radius:8px;color:var(--sc-muted,#707b75);background:transparent;transition:background .16s,color .16s}
body.song-community #commentform .sc-comment-tool>.btn-input-expand:hover,
body.song-community #commentform .sc-comment-tool>.btn-input-expand[aria-expanded="true"]{color:var(--sc-green,#498064);background:var(--sc-soft,#f0f5f1)}
body.song-community #commentform .sc-comment-tool>.dropdown-menu{display:none;position:absolute;z-index:1055;inset:auto auto auto 0;margin:0!important;padding:14px!important;width:330px;min-width:0;box-sizing:border-box;max-width:calc(100vw - 24px)!important;border:1px solid var(--sc-line,#e5eae6);border-radius:12px;background:var(--sc-card,#fff);color:var(--sc-text,#34443a);box-shadow:0 12px 36px rgba(28,49,37,.14);overflow-y:auto;overscroll-behavior:contain;visibility:visible;opacity:1;transform:none;transition:none;transform-origin:bottom left}
/* The legacy 9px rotated caret sits 4px below the scroll container and creates
   a false 6px overflow. These cards use their border, without an outside caret. */
body.song-community #commentform .sc-comment-tool>.dropdown-menu::before{content:none;display:none}
body.song-community #commentform .sc-comment-tool.open>.dropdown-menu,
body.song-community #commentform .sc-comment-tool.sc-comment-exiting>.dropdown-menu{display:block}
body.song-community #commentform .sc-comment-tool.sc-comment-exiting>.dropdown-menu{pointer-events:none}
body.song-community #commentform .sc-comment-tool-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;font-size:14px;font-weight:600;line-height:24px}
body.song-community #commentform .sc-comment-tool-close{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--sc-muted,#778079);font:20px/1 sans-serif;cursor:pointer;transition:background .16s,color .16s}
body.song-community #commentform .sc-comment-tool-close:hover{color:var(--sc-text,#34443a);background:var(--sc-soft,#f0f5f1)}
body.song-community #commentform .sc-comment-tool :is(a,button,textarea):focus-visible{outline:2px solid var(--sc-green,#498064);outline-offset:2px}
body.song-community #commentform .sc-comment-tool .dropdown-image{padding:0!important;width:auto!important;max-width:100%!important;font-size:13px}
body.song-community #commentform .sc-comment-tool .dropdown-image p{margin:0 0 10px}
body.song-community #commentform .sc-comment-tool .sc-comment-image-label{display:block;margin:0 0 6px;color:var(--sc-muted,#707b75);font-size:12px;font-weight:500}
body.song-community #commentform .sc-comment-tool .dropdown-image textarea{display:block;box-sizing:border-box;width:100%;min-height:66px!important;height:66px!important;max-height:130px;resize:vertical;margin:0;padding:10px 11px!important;border:1px solid var(--sc-line,#e0e8e1)!important;border-radius:8px!important;background:var(--sc-card,#fff)!important;box-shadow:none!important;color:var(--sc-text,#34443a)!important;font-family:inherit;font-size:13px;line-height:1.6}
body.song-community #commentform .sc-comment-tool .dropdown-image textarea:focus{border-color:var(--sc-green,#498064)!important;outline:0;box-shadow:0 0 0 3px rgba(73,128,100,.09)!important}
body.song-community #commentform .sc-comment-tool .dropdown-image .text-right{display:flex;justify-content:flex-end;align-items:center;gap:8px}
body.song-community #commentform .sc-comment-tool .dropdown-image .but{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;margin:0!important;padding:7px 12px!important;border:1px solid var(--sc-line,#e0e8e1)!important;border-radius:7px!important;background:var(--sc-card,#fff)!important;color:var(--sc-text,#34443a)!important;box-shadow:none;font-size:12px;line-height:18px;transition:background .16s,color .16s,border-color .16s}
body.song-community #commentform .sc-comment-tool .dropdown-image .but:hover{border-color:var(--sc-green,#498064)!important;background:var(--sc-soft,#f0f5f1)!important}
body.song-community #commentform .sc-comment-tool .dropdown-image :is([type="submit"],.input-expand-upload){border-color:var(--sc-green,#498064)!important;background:var(--sc-green,#498064)!important;color:#fff!important}
body.song-community #commentform .sc-comment-tool .dropdown-image :is([type="submit"],.input-expand-upload):hover{filter:brightness(.96);background:var(--sc-green,#498064)!important}
body.song-community #commentform .sc-comment-tool .dropdown-image .form-upload label{margin-bottom:10px;border:1px dashed var(--sc-line,#dce5de);border-radius:8px;overflow:hidden;background:var(--sc-soft,#f4f7f4)}
body.song-community #commentform .sc-comment-tool .dropdown-image .preview{margin:0!important;padding:8px}
body.song-community #commentform .sc-comment-tool .dropdown-image .preview img{max-width:100%;border-radius:5px}
body.song-community #commentform .sc-comment-tool .dropdown-smilie{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-content:start;justify-content:start;box-sizing:border-box;width:100%!important;max-width:308px!important;max-height:240px;margin-inline:auto;overflow-y:auto;scrollbar-width:thin}
body.song-community #commentform .sc-comment-tool .dropdown-smilie .smilie-icon img{display:inline-block;width:34px!important;height:34px!important;max-width:34px!important;object-fit:contain;vertical-align:middle}
body.song-community #commentform .sc-comment-tool .dropdown-smilie .smilie-icon{box-sizing:border-box;justify-self:center;width:100%!important;max-width:44px;height:44px;min-width:0;padding:5px 2px!important;margin:0!important;text-align:center;line-height:34px}
body.song-community #commentform .sc-comment-tool .dropdown-link{box-sizing:border-box;width:100%!important;min-width:0!important;max-width:100%!important;padding:0!important;font-size:13px}
body.song-community #commentform .sc-comment-tool .dropdown-link p{width:100%;margin:0 0 10px}
body.song-community #commentform .sc-comment-link-label{display:block;margin:0 0 6px;color:var(--sc-muted,#707b75);font-size:12px;font-weight:500}
body.song-community #commentform .sc-comment-tool .dropdown-link :is(textarea,.link-text){display:block;box-sizing:border-box;width:100%!important;max-width:100%;margin:0;padding:10px 11px!important;border:1px solid var(--sc-line,#e0e8e1)!important;border-radius:8px!important;background:var(--sc-card,#fff)!important;color:var(--sc-text,#34443a)!important;box-shadow:none!important;font-family:inherit;font-size:13px;line-height:1.5}
body.song-community #commentform .sc-comment-tool .dropdown-link textarea{height:48px!important;min-height:48px!important;max-height:100px;resize:vertical}
body.song-community #commentform .sc-comment-tool .dropdown-link .link-text{height:40px}
body.song-community #commentform .sc-comment-tool .dropdown-link :is(textarea,.link-text):focus{border-color:var(--sc-green,#498064)!important;outline:0;box-shadow:0 0 0 3px rgba(73,128,100,.09)!important}
body.song-community #commentform .sc-comment-link-target{position:relative;display:flex!important;align-items:center;justify-content:space-between;gap:12px;box-sizing:border-box;width:100%!important;min-height:40px;margin:0 0 10px!important;padding:8px 10px!important;border:1px solid var(--sc-line,#e0e8e1);border-radius:8px;background:var(--sc-soft,#f4f7f4);font-size:13px;cursor:pointer}
body.song-community #commentform .sc-comment-link-target input[type="checkbox"]{position:absolute!important;display:block!important;right:10px;top:50%;width:34px;height:20px;margin:0;opacity:0;transform:translateY(-50%)}
body.song-community #commentform .sc-comment-link-target .form-switch{position:relative;display:block;flex:none;box-sizing:border-box;width:34px;height:20px;border:0;border-radius:99px;background:var(--sc-line,#dce5de);transition:background .16s}
body.song-community #commentform .sc-comment-link-target .form-switch::before{content:none}
body.song-community #commentform .sc-comment-link-target .form-switch::after{content:'';position:absolute;left:2px;top:2px;bottom:auto;width:16px;height:16px;margin:0;border:0;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transform:translateX(0);transition:transform .16s}
body.song-community #commentform .sc-comment-link-target input:checked+.form-switch{background:var(--sc-green,#498064)}
body.song-community #commentform .sc-comment-link-target input:checked+.form-switch::after{transform:translateX(14px)}
body.song-community #commentform .sc-comment-link-target input:focus-visible+.form-switch{outline:2px solid var(--sc-green,#498064);outline-offset:3px}
body.song-community #commentform .sc-comment-tool .dropdown-link .text-right{display:flex;justify-content:flex-end;align-items:center;min-height:34px}
body.song-community #commentform .sc-comment-tool .dropdown-link [type="submit"]{display:inline-flex;align-items:center;justify-content:center;min-height:34px;margin:0;padding:7px 14px;border:1px solid var(--sc-green,#498064)!important;border-radius:7px!important;background:var(--sc-green,#498064)!important;color:#fff!important;font-size:13px;line-height:18px;transition:filter .16s}
body.song-community #commentform .sc-comment-tool .dropdown-link [type="submit"]:hover{filter:brightness(.96)}
body.song-community #commentform .sc-comment-tool .dropdown-quick-often{box-sizing:border-box;width:100%!important;min-width:0;max-width:100%;padding:0!important}
body.song-community #commentform .sc-comment-tool .dropdown-quick-often .quick-often-box{height:auto!important;min-height:0!important;max-height:220px;overflow-y:auto}
body.song-community #commentform .sc-comment-tool .quick-reply-myitem-box>.text-center{margin:12px 0!important;padding:8px 0;font-size:13px}
body.song-community #commentform .sc-comment-tool .dropdown-quick-often .padding-10{padding:0!important;margin-top:10px}
body.song-community #commentform .sc-comment-tool .edit-quick-often-link{display:flex!important;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;width:100%!important;min-height:36px;padding:8px 12px!important;border:1px solid var(--sc-green,#498064)!important;border-radius:8px;background:var(--sc-green,#498064)!important;color:#fff!important;font-size:13px;line-height:18px;transition:filter .16s}
body.song-community #commentform .sc-comment-tool .edit-quick-often-link:hover{filter:brightness(.96)}
body.song-community.sc-comment-quick-modal-open .sc-comment-quick-modal{z-index:1081!important}
body.song-community.sc-comment-quick-modal-open .modal-backdrop{z-index:1080!important}
body.song-community #commentform .sc-comment-tool .zibll-demo-tabs{margin-bottom:8px;padding-bottom:8px;border-bottom:1px solid var(--sc-line,#e5eae6)}
/* Emoji classes are deliberate: ordinary uploads and avatars retain their sizes. */
body.song-community #commentform .zce-rich-editor img.zce-inline-emoji,
body.song-community :is(#comments,#postcomments) .comment-content img.smilie-icon{display:inline-block!important;width:26px!important;height:26px!important;min-width:26px!important;min-height:26px!important;max-width:26px!important;max-height:26px!important;margin:0 2px!important;padding:0!important;object-fit:contain!important;vertical-align:-6px!important;border:0!important;border-radius:0!important;box-shadow:none!important}
body.song-community #commentform .zce-rich-editor img.zce-inline-emoji.sc-comment-sticker,
body.song-community :is(#comments,#postcomments) .comment-content img.smilie-icon.sc-comment-sticker{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;max-width:48px!important;max-height:48px!important;vertical-align:-12px!important}
@media(max-width:480px){body.song-community #commentform .sc-comment-tool>.dropdown-menu{padding:12px!important}body.song-community #commentform .sc-comment-tool>.btn-input-expand{min-height:38px;padding:7px 9px!important}body.song-community #commentform .sc-comment-tool .dropdown-image textarea{font-size:16px!important}}
@media(max-width:359px){body.song-community #commentform .sc-comment-tool .dropdown-smilie{grid-template-columns:repeat(6,minmax(0,1fr))}}
/* Mobile tools occupy their own row below the toolbar. Keep their original
   holders in the DOM for legacy closest() insert/upload handlers. */
@media(max-width:700px){
 body.song-community #commentform .comt-tips-left{display:grid!important;grid-template-columns:repeat(4,max-content) minmax(36px,1fr);grid-auto-rows:auto;align-items:start;justify-content:start;gap:4px;min-width:0;width:100%}
 body.song-community #commentform .sc-comment-tool{display:contents!important;position:static!important}
 body.song-community #commentform .comt-tips-left>.but,
 body.song-community #commentform .sc-comment-tool>.btn-input-expand{grid-row:1;justify-self:start;min-width:36px;min-height:36px}
 body.song-community #commentform .sc-comment-tool>.dropdown-menu{position:static!important;inset:auto!important;grid-column:1/-1;grid-row:2;box-sizing:border-box;width:100%!important;min-width:0!important;max-width:100%!important;max-height:none!important;margin:8px 0 4px!important;padding:12px!important;overflow:visible;box-shadow:none;border-radius:10px;transform-origin:top center}
 body.song-community #commentform .sc-comment-tool .dropdown-code{width:100%!important;min-width:0;max-width:100%;padding:0!important;font-size:13px}
 body.song-community #commentform .sc-comment-tool .dropdown-code p{margin:0 0 10px}
 body.song-community #commentform .sc-comment-tool .dropdown-code textarea{display:block;box-sizing:border-box;width:100%!important;min-height:100px!important;height:100px!important;max-height:180px;resize:vertical;margin:0;padding:10px 11px;border:1px solid var(--sc-line,#e0e8e1);border-radius:8px;background:var(--sc-soft,#f4f7f4);color:var(--sc-text,#34443a);font-size:16px;line-height:1.5}
 body.song-community #commentform .sc-comment-tool .dropdown-code .text-right{display:flex;justify-content:flex-end;min-height:34px}
 body.song-community #commentform .sc-comment-tool :is(.dropdown-code,.dropdown-image,.dropdown-link) .text-right{position:sticky;bottom:0;z-index:1;padding-top:6px;background:var(--sc-card,#fff)}
 body.song-community #commentform .sc-comment-tool .dropdown-link :is(textarea,.link-text){font-size:16px}
 body.song-community #commentform .sc-comment-tool .dropdown-code [type="submit"]{display:inline-flex;align-items:center;justify-content:center;min-height:34px;margin:0;padding:7px 14px;border-radius:7px;background:var(--sc-green,#498064);color:#fff;font-size:13px}
 body.song-community #commentform .sc-comment-tool .dropdown-smilie{height:180px;max-height:180px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
 body.song-community #commentform .sc-comment-tool .zibll-demo-tabs{display:flex;flex-wrap:nowrap;max-width:100%;overflow-x:auto;overflow-y:hidden;gap:5px}
 body.song-community #commentform .sc-comment-tool .zibll-demo-tab{flex:none}
 body.song-community #commentform .sc-comment-tool-header{margin-bottom:10px;font-size:13px;line-height:24px}
}
@media(prefers-reduced-motion:reduce){body.song-community #commentform .sc-comment-tool *,body.song-community #commentform .sc-comment-tool *::before,body.song-community #commentform .sc-comment-tool *::after{transition:none!important;animation:none!important}}
