.qrDialog{--qr-accent:#376a4b;--qr-ink:#293f31;--qr-muted:#637457;--qr-line:#dfe7da;width:min(1000px,calc(100vw - 40px));max-width:none;height:min(760px,calc(100vh - 40px));height:min(760px,calc(100dvh - 40px));max-height:calc(100dvh - 24px);margin:auto;padding:0;border:1px solid var(--qr-line);border-radius:20px;background:#fff;color:var(--qr-ink);box-shadow:0 24px 90px #13291b3d;font:14px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow:hidden}
.qrDialog::backdrop{background:#203a2d66;backdrop-filter:blur(3px)}
.qrDialog *{box-sizing:border-box}.qrDialog[open]{display:flex}.qrShell{display:flex;flex-direction:column;min-width:0;min-height:0;width:100%;height:100%}
.qrHead{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:24px 28px 20px;border-bottom:1px solid var(--qr-line);flex:none}.qrEyebrow{font-size:10px;letter-spacing:1.4px;font-weight:700;color:var(--qr-muted)}.qrHead h2{margin:3px 0 5px;font-size:25px;line-height:1.2;letter-spacing:-.5px}.qrHead p{margin:0;color:var(--qr-muted);font-size:13px}
.qrDialog button,.qrDialog input,.qrDialog textarea,.qrDialog select{font:inherit}.qrDialog button{cursor:pointer}.qrDialog button:disabled{cursor:default;opacity:.55}.qrDialog :is(button,input,select,textarea):focus-visible{outline:3px solid #a8c992;outline-offset:2px}.qrDialog input,.qrDialog select,.qrDialog textarea{width:100%;min-width:0;color:var(--qr-ink);background:#fff;border:1px solid #ccd8c5;border-radius:9px;padding:10px 12px;min-height:42px}.qrDialog textarea{resize:vertical;line-height:1.6;min-height:130px;max-height:360px}
.qrIcon{width:40px;min-width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;background:#f3f7ef;color:var(--qr-accent);border:1px solid var(--qr-line);border-radius:10px;font-size:25px!important}.qrButton{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 14px;border:1px solid #d9e3d1;border-radius:9px;background:#fff;color:var(--qr-accent);font-weight:600!important;white-space:normal;line-height:1.35}.qrButton:hover:not(:disabled){background:#edf4e7;border-color:#b9ceb0}.qrButton.qrPrimary{background:var(--qr-accent);color:white;border-color:var(--qr-accent)}.qrButton.qrPrimary:hover:not(:disabled){background:#2b573c}.qrDanger{color:#a03732}.qrDanger:hover:not(:disabled){background:#fff2f0;border-color:#ecc7c2}
.qrStatus{flex:none;padding:0 28px;font-size:13px;line-height:1.45;overflow-wrap:anywhere}.qrStatus:not(:empty){padding-top:11px;padding-bottom:11px;border-bottom:1px solid var(--qr-line)}.qrStatus.success{color:#2d663e;background:#f1f7ed}.qrStatus.error{color:#96332d;background:#fff3f1}.qrStatus.warn{color:#77540f;background:#fff8e9}.qrPending{flex:none;background:#fff8e9;padding:12px 28px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px}.qrPending[hidden]{display:none}.qrPending .qrButton{flex-shrink:0;min-height:36px;font-size:12px}
.qrWorkspace{display:grid;grid-template-columns:350px minmax(0,1fr);min-height:0;flex:1;overflow:hidden}.qrLibrary{display:flex;flex-direction:column;padding:20px 16px 12px;min-width:0;min-height:0;background:#f8faf5;border-right:1px solid var(--qr-line);overflow:hidden}.qrSearchRow{display:flex;align-items:center;gap:8px}.qrSearchLabel{min-width:0;flex:1}.qrSearchRow .qrButton{padding:9px 11px;font-size:12px}.qrScopes{display:flex;gap:4px;margin:14px 0 13px;flex-wrap:wrap}.qrScopes button{border:1px solid transparent;background:transparent;color:var(--qr-muted);padding:7px 9px;min-height:38px;border-radius:8px;font-size:12px}.qrScopes button[aria-pressed=true]{background:#e8f0df;border-color:#cedfc1;color:#35573b;font-weight:650}.qrCategoryLabel{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--qr-muted);padding-bottom:14px}.qrCategoryLabel select{flex:1;font-size:12px;min-height:36px;padding:6px 10px}.qrList{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;display:flex;flex-direction:column;gap:8px;padding:2px 2px 4px}.qrItem{display:flex;flex-direction:column;flex-shrink:0;text-align:left;gap:5px;border:1px solid #e3e9de;background:#fff;color:var(--qr-ink);border-radius:11px;padding:12px 14px;min-width:0;width:100%;transition:border-color .12s,background .12s}.qrItem:hover{border-color:#bfd0b4;background:#fdfff9}.qrItem.selected{background:#edf4e7;border-color:#7eac68;box-shadow:inset 3px 0 0 #649253}.qrItemTop{display:flex;gap:10px;align-items:flex-start;justify-content:space-between;min-width:0}.qrItemTop strong{font-size:14px;font-weight:650;overflow-wrap:anywhere}.qrStar{color:#79964c;flex:none}.qrItemBody{font-size:12px;line-height:1.5;color:#65735b;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;white-space:pre-wrap}.qrItemMeta{font-size:10px;display:flex;flex-wrap:wrap;gap:5px;color:#6d7c61}.qrLibraryHint{flex:none;margin:10px 0 0;font-size:11px;line-height:1.5;color:var(--qr-muted)}.qrMore{flex:none;align-self:center;font-size:12px;padding:7px 14px;min-height:36px;margin:7px 0 0}.qrMore[hidden]{display:none}
.qrEmpty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:9px;padding:28px 14px;min-height:180px;color:var(--qr-muted)}.qrEmpty strong{color:var(--qr-ink);font-size:14px}.qrEmpty>span{font-size:12px;max-width:235px}.qrEmpty .qrLoadingMark{font-size:28px;color:#658c55;letter-spacing:5px}.qrDetail{display:flex;flex-direction:column;min-width:0;min-height:0;padding:24px 28px;overflow:auto;overscroll-behavior:contain}.qrWelcome{margin:auto;max-width:320px;text-align:center;padding:20px 0}.qrWelcomeIcon{width:56px;height:56px;background:#edf4e7;color:#64864f;border-radius:16px;display:grid;place-items:center;font-size:30px;margin:0 auto 20px}.qrWelcome h3{font-size:21px;letter-spacing:-.3px;margin:0 0 9px}.qrWelcome p{font-size:14px;color:var(--qr-muted);margin:0 0 22px;line-height:1.65}.qrWelcome>span{font-size:12px;color:var(--qr-muted)}.qrDetailTop{display:flex;gap:14px;justify-content:space-between;align-items:flex-start;flex:none}.qrDetailTop h3{font-size:21px;line-height:1.3;letter-spacing:-.3px;margin:7px 0;overflow-wrap:anywhere}.qrDetailTop p{margin:3px 0 0;color:var(--qr-muted);font-size:12px}.qrBadge{display:inline-flex;color:#567341;background:#eff5e7;border-radius:6px;padding:3px 7px;font-size:10px;font-weight:650}.qrFavorite{font-size:23px!important}.qrTools{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:16px 0 20px}.qrTools .qrButton{min-height:36px;padding:7px 10px;font-size:12px}.qrHint{font-size:12px;color:var(--qr-muted);line-height:1.55;margin:9px 0 0}.qrPreviewLabel{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:650;min-height:0}.qrPreviewLabel textarea{font-size:15px;font-weight:400;min-height:170px}.qrPlaceholderStatus{font-size:12px;color:var(--qr-muted);line-height:1.5;margin:10px 0 16px;overflow-wrap:anywhere}.qrPlaceholderStatus.warn{color:#81590a;background:#fff8e7;border-radius:8px;padding:10px 12px}.qrInsertFooter{display:flex;gap:12px;align-items:center;margin-top:auto;padding-top:16px;flex:none}.qrInsertFooter p{font-size:12px;color:var(--qr-muted);line-height:1.5;margin:0;max-width:235px}.qrInsertFooter .qrButton{flex:none}
.qrEditor{display:flex;flex-direction:column;gap:15px;min-height:100%}.qrEditor label{font-size:12px;font-weight:650;display:flex;flex-direction:column;gap:7px;min-width:0}.qrEditor input,.qrEditor textarea,.qrEditor select{font-weight:400;font-size:14px}.qrEditorMeta{display:grid;grid-template-columns:1fr 1fr;gap:12px}.qrBodyLabel textarea{min-height:175px}.qrVariables{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-top:-5px;font-size:11px;color:var(--qr-muted)}.qrVariables button{border:1px solid #dfe7d6;background:#f4f8ef;border-radius:6px;color:var(--qr-accent);padding:5px 8px;min-height:32px;font-size:11px}.qrEditor .qrHint{margin:0}.qrEditorActions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:8px;flex:none}.qrInlineError{font-size:12px;background:#fff3ef;color:#96332d;border-radius:8px;padding:10px 12px;overflow-wrap:anywhere}.qrVisuallyHidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#quickRepliesOpen{color:#637457!important;font-weight:500;white-space:nowrap}.composer .quickReplies.qrToolbar,.manager2 .composer .quickReplies.qrToolbar{display:flex!important;flex-wrap:nowrap;align-items:center;order:0;max-width:100%;max-height:44px;min-width:0;overflow-x:auto;overflow-y:hidden;gap:7px;overscroll-behavior-x:contain;scrollbar-width:none;margin:0;padding:1px 0 3px}.qrToolbarSelected{display:flex;align-items:center;gap:7px;flex:none;min-width:0}.composer .quickReplies.qrToolbar [data-reply]{display:none!important}.composer .quickReplies.qrToolbar button{flex:none;min-height:36px;max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.composer .quickReplies.qrToolbar .qrToolbarReply{display:inline-block!important;color:#376a4b;font-weight:600;background:#f0f5e9;border-color:#d8e5cd}.composer .quickReplies.qrToolbar #quickRepliesOpen{background:transparent;border-color:transparent;text-decoration:underline;text-underline-offset:3px}.composer .quickReplies.qrToolbar :is(button):focus-visible{outline:3px solid #a8c992;outline-offset:-3px}.qrToolbarEmpty,.qrToolbarError{flex:none;font-size:12px;color:#637457;white-space:nowrap}.qrToolbarError{color:#91552d}.qrPanelItem{display:flex;align-items:stretch;gap:5px;flex:none;min-width:0}.qrPanelItem .qrItem{min-width:0;flex:1}.qrPanelNumber{flex:none;font-size:11px;color:#637457}.qrPanelOrder{display:flex;flex-direction:column;justify-content:center;gap:4px;flex:none}.qrPanelOrder button{min-height:36px;width:36px;border:1px solid #d9e3d1;border-radius:8px;background:#fff;color:#376a4b;font-size:18px!important}.qrPanelToggle{font-size:12px!important;min-height:40px;flex:none;padding:8px 10px;white-space:nowrap}.qrPanelToggle[aria-pressed=true]{background:#edf4e7;border-color:#bfd0b4;color:#376a4b}.qrStar{font-size:10px;white-space:nowrap}
@media(max-width:740px){.composer .quickReplies.qrToolbar,.manager2 .composer .quickReplies.qrToolbar{max-height:44px;gap:6px}.composer .quickReplies.qrToolbar button{min-height:40px;max-width:190px;font-size:12px;padding:5px 9px}.qrPanelOrder button{min-height:40px;width:40px}.qrToolbarEmpty,.qrToolbarError{font-size:12px}}
@media(max-width:800px){.qrWorkspace{grid-template-columns:290px minmax(0,1fr)}.qrHead{padding:20px}.qrDetail{padding:20px}.qrLibrary{padding:16px 12px 12px}.qrHead h2{font-size:23px}.qrDetailTop h3{font-size:19px}.qrInsertFooter{align-items:flex-start;flex-direction:column;gap:8px}.qrInsertFooter p{max-width:none}.qrStatus,.qrPending{padding-left:20px;padding-right:20px}.qrEditorMeta{grid-template-columns:1fr}.qrEditor{gap:12px}}
@media(max-width:620px){.qrDialog{width:calc(100vw - 16px);height:calc(100vh - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:15px}.qrHead{padding:16px;gap:8px}.qrHead h2{font-size:22px}.qrHead p{font-size:12px;max-width:270px}.qrEyebrow{font-size:9px}.qrWorkspace{display:flex;flex-direction:column;overflow:auto;overscroll-behavior:contain}.qrLibrary{flex:none;overflow:visible;border-right:0;border-bottom:1px solid var(--qr-line);padding:14px 14px 10px}.qrSearchRow input,.qrCategoryLabel select,.qrEditor input,.qrEditor select,.qrDialog textarea{font-size:16px}.qrScopes{margin:10px 0 8px}.qrScopes button{min-height:40px;font-size:12px;padding:7px 10px}.qrCategoryLabel{padding-bottom:10px}.qrList{flex:none;max-height:210px;min-height:90px}.qrItem{padding:10px 12px}.qrLibraryHint{margin:8px 0 0}.qrDetail{flex:none;overflow:visible;padding:18px 16px 20px}.qrWelcome{padding:15px 0;max-width:310px}.qrWelcomeIcon{display:none}.qrWelcome h3{font-size:19px}.qrWelcome p{font-size:13px;margin-bottom:12px}.qrEmpty{min-height:110px;padding:14px}.qrTools{padding:12px 0 16px}.qrTools .qrButton{min-height:40px}.qrPreviewLabel textarea{min-height:140px;max-height:300px}.qrInsertFooter{position:sticky;bottom:-20px;background:#fff;padding:12px 0 4px;margin-top:0;border-top:1px solid var(--qr-line)}.qrInsertFooter .qrButton{width:100%;min-height:44px}.qrInsertFooter p{font-size:11px}.qrEditorActions .qrButton{min-height:44px}.qrBodyLabel textarea{min-height:155px}.qrStatus,.qrPending{padding-left:16px;padding-right:16px}.qrPending{flex-direction:column;align-items:flex-start;gap:8px}.qrPending .qrButton{min-height:40px}.qrIcon{width:40px;height:40px}.qrEditorMeta{grid-template-columns:1fr 1fr}}
@media(max-height:560px) and (min-width:621px){.qrHead{padding-top:12px;padding-bottom:12px}.qrHead h2{font-size:21px}.qrHead p,.qrEyebrow{display:none}.qrLibrary,.qrDetail{padding-top:12px}.qrDialog textarea,.qrPreviewLabel textarea,.qrBodyLabel textarea{min-height:100px}.qrScopes{margin:8px 0}.qrDetailTop h3{font-size:18px}.qrTools{padding:10px 0}.qrInsertFooter{margin-top:0}.qrEditor{gap:10px}.qrWelcome{padding:10px 0}.qrWelcomeIcon{display:none}}
@media(prefers-reduced-motion:reduce){.qrItem{transition:none}}
.qrPanelContent{display:flex;flex-direction:column;flex:1;min-width:0;gap:4px}.qrPanelRemove{align-self:flex-start;min-height:32px;padding:4px 9px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--qr-muted);font-size:11px!important;line-height:1.4}.qrPanelRemove:hover:not(:disabled){background:#edf4e7;border-color:#d9e3d1;color:var(--qr-accent)}.qrDetailTop{flex-wrap:wrap}.qrDetailTop>div{min-width:0;flex:1}.qrPanelToggle{max-width:180px;white-space:normal}
.qrEmojiTools{flex:none;min-width:0;margin-top:8px}.qrEmojiTools .qrButton{min-height:36px;padding:6px 10px;font-size:12px}.qrEmojiToggle[aria-expanded=true],#qrEmojiToggle[aria-expanded=true]{background:#edf4e7;border-color:#bfd0b4}.qrEmojiPicker{display:grid;grid-template-columns:repeat(auto-fill,minmax(38px,1fr));gap:5px;max-height:180px;max-height:min(180px,35dvh);overflow:auto;overscroll-behavior:contain;margin-top:8px;padding:8px;border:1px solid var(--qr-line);border-radius:10px;background:#f8faf5}.qrEmojiPicker[hidden]{display:none}.qrEmojiPicker button{display:flex;align-items:center;justify-content:center;min-width:0;min-height:40px;padding:4px;border:1px solid transparent;border-radius:7px;background:#fff;font-size:23px!important;line-height:1.2}.qrEmojiPicker button:hover:not(:disabled){background:#edf4e7;border-color:#b9ceb0}.qrEditor .qrEmojiTools{margin-top:-7px}
.qrTripVariables,.qrKnownParameters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px;min-width:0}.qrTripVariables label{flex:1;min-width:170px}.qrTripVariables .qrButton{flex:none;font-size:12px}.qrDetail>.qrPreviewLabel{flex-shrink:0}.qrKnownParameters{align-items:center;flex:none;margin-top:12px}.qrKnownParameters .qrButton{font-size:12px}.qrKnownParameters .qrHint{flex:1;min-width:150px;margin:0}
@media(max-width:620px){.qrPanelRemove{min-height:40px;font-size:12px!important}.qrEmojiTools .qrButton{min-height:40px}.qrEmojiPicker{grid-template-columns:repeat(auto-fill,minmax(40px,1fr))}.qrEmojiPicker button{min-height:44px}.qrDetailTop>div{flex-basis:145px}}
