/* v5.1.3 - same camera composition with overflow and chat bubble */
#wdSmartCamera[hidden],#wdScResults[hidden],#wdScLegacyQr[hidden],#wdScMenu[hidden],#wdScOptions[hidden],#wdScSuggested[hidden],#wdScChange[hidden],#wdScNoticeCount[hidden],#wdScOverflowCount[hidden],#wdScQuickMenu[hidden],#wdScMessage[hidden]{display:none!important}
#wdSmartCamera{position:fixed;inset:0;z-index:200600;background:#fff;color:#17283b;overflow-y:auto}
#wdSmartCamera *{box-sizing:border-box}
.wd-sc-shell{width:100%;max-width:700px;min-height:100dvh;margin:0 auto;display:flex;flex-direction:column;align-items:center;position:relative;padding:calc(108px + env(safe-area-inset-top,0px)) 16px calc(130px + env(safe-area-inset-bottom,0px));background:#fff}
.wd-sc-top{position:fixed;top:calc(16px + env(safe-area-inset-top,0px));right:16px;z-index:3;display:flex;align-items:center;gap:8px}
#wdScOverflow{position:relative;width:76px;height:76px;max-width:14vw;max-height:14vw;min-width:46px;min-height:46px;border:1px solid #d7e2ee;border-radius:50%;background:#fff;color:#17283b;display:grid;place-items:center;box-shadow:0 4px 18px #182d4210;cursor:pointer}
#wdScOverflow svg{width:32px;height:32px;fill:currentColor}
.wd-sc-menu{position:absolute;right:calc(100% + 9px);top:50%;transform:translateY(-50%);display:flex;flex-direction:row;gap:7px;padding:0;border:0;background:transparent;z-index:10}
.wd-sc-menu button{position:relative;width:48px;height:48px;flex:none;border:1px solid #d7e2ee;background:#fff;color:#17283b;display:grid;place-items:center;padding:0;border-radius:50%;box-shadow:0 3px 14px #10263e12;cursor:pointer}
.wd-sc-menu button svg{width:24px;height:24px}.wd-sc-menu button span:not(#wdScNoticeCount){font-size:12px;font-weight:700}
:is(#wdScNoticeCount,#wdScOverflowCount){position:absolute;top:-4px;right:-5px;min-width:17px;height:17px;display:grid;place-items:center;border-radius:9px;padding:0 4px;background:#d53339;color:white;font-size:10px}

.wd-sc-view{width:min(100%,500px);height:min(43dvh,430px);aspect-ratio:4/3;flex:none;position:relative;background:#f5f7fa;border-radius:16px;overflow:hidden}
#wdScVideo,#wdScLegacyQr,#wdScLegacyQr video{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover!important}
.wd-sc-step{width:min(100%,500px);margin:18px 0 8px;font-size:18px;font-weight:700;text-align:center;color:#17283b;line-height:1.45}
.wd-sc-actions{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(40px + env(safe-area-inset-bottom,0px));width:min(500px,calc(100vw - 42px));height:82px;display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;z-index:5}
.wd-sc-actions button{display:grid;place-items:center;background:#fff;color:#17283b;border-radius:50%;padding:0;cursor:pointer}
#wdScBubble{width:54px;height:54px;justify-self:start;border:1px solid #d7e2ee;box-shadow:0 3px 14px #10263e0a}
#wdScGallery{width:54px;height:54px;justify-self:end;border:1px solid #d7e2ee;box-shadow:0 3px 14px #10263e0a}
#wdScBubble svg,#wdScGallery svg{width:29px;height:29px}
#wdScSnap{width:78px;height:78px;justify-self:center;border:5px solid #424242;box-shadow:0 0 0 1px #888}
#wdScSnap span{display:block;width:58px;height:58px;border:2px solid #424242;border-radius:50%;background:#fff}
.wd-sc-results{width:min(100%,500px);max-height:calc(100dvh - 250px);overflow:auto;padding:14px;margin:8px auto 0;background:#f5f7fa;border-radius:16px;box-shadow:0 3px 18px #14293d0d}
.wd-sc-results p{font-weight:700;margin:0 0 10px}.wd-sc-results #wdScOptions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.wd-sc-option{border:1px solid #d9e0e8;border-radius:12px;background:#fff;padding:12px 6px;color:#17283b;font-size:13px}
.wd-sc-option.selected{border:2px solid #1b3c63;background:#eaf1fa;font-weight:700}
.wd-sc-confirm{width:100%;padding:13px;border-radius:12px;border:0;background:#17283b;color:#fff;margin-top:12px}.wd-sc-confirm:disabled{opacity:.35}
#wdScReshoot{margin:10px 0 0;width:100%;padding:10px;border-radius:12px;border:1px solid #d6e1ee;background:#fff;color:#17283b}
@media(max-height:760px){.wd-sc-shell{padding-top:calc(85px + env(safe-area-inset-top,0px))}.wd-sc-view{height:min(39dvh,350px)}.wd-sc-results{max-height:31dvh}}

.wd-sc-suggested{width:100%;padding:17px 13px;border:1px solid #b7cadc;border-radius:14px;background:#fff;color:#17283b;font-size:18px;font-weight:750;cursor:pointer;text-align:center}
.wd-sc-suggested:active{background:#eaf1fa}
.wd-sc-change{display:block;margin:10px auto 0;border:0;background:none;color:#47617c;font-size:13px;text-decoration:underline;padding:8px}
#wdScOptions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
#wdSmartCamera button:focus-visible{outline:3px solid #4c81bd;outline-offset:2px}

/* v5.1.3: icon-only quick chooser and one recommendation above the shutter */
.wd-sc-step{position:fixed;left:50%;bottom:calc(148px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);width:min(88vw,460px);margin:0;padding:8px;background:#fff;border-radius:12px;font-size:13px;font-weight:500;z-index:7}
.wd-sc-results{position:fixed;left:50%;bottom:calc(139px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);width:74px;height:74px;max-height:none;padding:0;margin:0;overflow:visible;background:none;border-radius:50%;box-shadow:none;z-index:8}
.wd-sc-suggested{height:74px;width:74px;display:grid;place-items:center;border-radius:50%;border:1px solid #bacad8;box-shadow:0 5px 22px #10263e22;background:#fff;padding:0;color:#17283b;cursor:pointer}
.wd-sc-suggested svg{width:38px;height:38px}
.wd-sc-bubble-wrap{position:relative;justify-self:start;display:flex;align-items:center;justify-content:center}
.wd-sc-quick{position:absolute;bottom:calc(100% + 12px);left:0;display:flex;flex-direction:column-reverse;align-items:center;gap:7px;z-index:12;max-height:calc(100dvh - 245px);overflow-y:auto;scrollbar-width:none;padding:4px 5px}
.wd-sc-quick-icon{width:46px!important;height:46px!important;min-height:46px;display:grid;place-items:center;border:1px solid #d7e2ee!important;border-radius:50%;background:#fff!important;box-shadow:0 3px 13px #10263e18;color:#17283b!important;flex:none}
.wd-sc-quick-icon svg{width:25px;height:25px}
@media(max-height:740px){.wd-sc-quick{gap:3px}.wd-sc-quick-icon{width:40px!important;height:40px!important;min-height:40px}.wd-sc-quick-icon svg{width:22px;height:22px}}

/* v5.1.4: uploader +, one recommendation centered above shutter */
#wdScGallery svg{width:30px;height:30px}

/* v2.0.0: slide-out navigation matches native left-edge swipe; preserve shutter and overflow */
#wdSmartCamera .wd-sc-drawer-toggle{position:fixed;top:calc(16px + env(safe-area-inset-top,0px));left:16px;z-index:8;width:60px;height:60px;display:grid;place-items:center;border-radius:50%;border:1px solid #d7e2ee;background:white;color:#17283b;font-size:31px;font-weight:400;box-shadow:0 4px 18px #182d4210;cursor:pointer}
#wdSmartCamera .wd-sc-bubble-wrap[hidden]{display:none!important}
#wdSmartCamera .wd-sc-actions{grid-template-columns:1fr 1fr 1fr}
#wdSmartCamera .wd-sc-shutter{grid-column:2}
#wdSmartCamera #wdScGallery{grid-column:3}
#wdSmartCamera .wd-sc-drawer-backdrop{position:fixed;inset:0;z-index:20;background:rgba(0,0,0,.52)}
#wdSmartCamera .wd-sc-drawer-backdrop[hidden]{display:none!important}
#wdSmartCamera .wd-sc-drawer{position:fixed;z-index:21;left:0;top:0;bottom:0;width:min(82vw,360px);background:#fff;box-shadow:8px 0 25px #0002;transform:translateX(-103%);transition:transform .24s ease;overflow:auto;padding:calc(30px + env(safe-area-inset-top,0px)) 18px calc(30px + env(safe-area-inset-bottom,0px));visibility:hidden}
#wdSmartCamera .wd-sc-drawer[aria-hidden="false"]{transform:translateX(0);visibility:visible}
#wdSmartCamera .wd-sc-drawer-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:32px}
#wdSmartCamera .wd-sc-drawer-header img{width:min(190px,55vw);height:auto;object-fit:contain}
#wdSmartCamera .wd-sc-drawer-header button{border:0;background:transparent;font-size:30px;color:#17283b;width:40px;height:40px}
#wdSmartCamera .wd-sc-drawer-links,#wdSmartCamera .wd-sc-drawer-shortcuts{display:flex;flex-direction:column;gap:5px}
#wdSmartCamera .wd-sc-drawer-links button,#wdSmartCamera .wd-sc-drawer-shortcuts button{display:flex;align-items:center;gap:16px;width:100%;padding:14px 10px;text-align:left;border:0;background:transparent;border-radius:12px;color:#17283b;font-size:17px;font-weight:600}
#wdSmartCamera .wd-sc-drawer-links svg,#wdSmartCamera .wd-sc-drawer-shortcuts svg{width:24px;height:24px;flex:none}
#wdSmartCamera .wd-sc-drawer-shortcuts button{font-size:14px;font-weight:500;padding:10px}
#wdSmartCamera .wd-sc-drawer-links button:active,#wdSmartCamera .wd-sc-drawer-shortcuts button:active{background:#eef3f8}
#wdSmartCamera .wd-sc-drawer-divider{border-top:1px solid #e3e9ef;margin:24px 0 14px}
#wdSmartCamera .wd-sc-drawer-heading{font-size:12px;font-weight:700;color:#718092;padding:0 10px 9px}
@media(prefers-reduced-motion:reduce){#wdSmartCamera .wd-sc-drawer{transition:none}}

/* v2.0.1: screen-anchored floating controls and left upload action. */
#wdSmartCamera{height:100dvh;height:100svh;overflow:hidden;overscroll-behavior:contain;isolation:isolate}
#wdSmartCamera .wd-sc-shell{height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-top:calc(96px + env(safe-area-inset-top,0px));padding-bottom:calc(160px + env(safe-area-inset-bottom,0px))}
#wdSmartCamera .wd-sc-top{position:fixed;top:calc(14px + env(safe-area-inset-top,0px));right:clamp(12px,4vw,24px);z-index:16;filter:drop-shadow(0 8px 12px rgba(24,40,60,.10))}
#wdSmartCamera #wdScOverflow{width:47px;height:47px;max-width:none;max-height:none;min-width:0;min-height:0;border-radius:50%;border:1px solid rgba(197,207,220,.9);box-shadow:0 5px 12px rgba(10,25,45,.11),0 1px 3px rgba(10,25,45,.07)}
#wdSmartCamera #wdScOverflow svg{width:23px;height:23px}
#wdSmartCamera .wd-sc-drawer-toggle{top:calc(14px + env(safe-area-inset-top,0px));left:clamp(12px,4vw,24px);width:47px;height:47px;font-size:24px;line-height:1;z-index:16;border:1px solid rgba(197,207,220,.9);box-shadow:0 5px 12px rgba(10,25,45,.11),0 1px 3px rgba(10,25,45,.07)}
#wdSmartCamera .wd-sc-menu{z-index:17}
#wdSmartCamera .wd-sc-menu button{width:42px;height:42px;box-shadow:0 5px 12px rgba(10,25,45,.10)}
#wdSmartCamera .wd-sc-menu button svg{width:21px;height:21px}
#wdSmartCamera .wd-sc-actions{position:fixed;bottom:calc(24px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);width:min(500px,calc(100vw - 36px));height:86px;grid-template-columns:1fr 1fr 1fr;z-index:14;pointer-events:none}
#wdSmartCamera .wd-sc-actions>button,#wdSmartCamera .wd-sc-actions .wd-sc-bubble-wrap{pointer-events:auto}
#wdSmartCamera #wdScGallery{grid-column:1;grid-row:1;justify-self:start;width:49px;height:49px;border:1px solid #d7e2ee;box-shadow:0 5px 12px rgba(10,25,45,.11),0 1px 3px rgba(10,25,45,.07)}
#wdSmartCamera #wdScGallery svg{width:25px;height:25px}
#wdSmartCamera #wdScSnap{grid-column:2;grid-row:1;justify-self:center}
#wdSmartCamera .wd-sc-shutter{grid-column:2;grid-row:1}
#wdSmartCamera .wd-sc-results{position:fixed;bottom:calc(125px + env(safe-area-inset-bottom,0px));z-index:15}
#wdSmartCamera .wd-sc-step{position:fixed;bottom:calc(123px + env(safe-area-inset-bottom,0px));z-index:15}
#wdSmartCamera .wd-sc-drawer,#wdSmartCamera .wd-sc-drawer-backdrop{z-index:25}
@media(max-height:740px){#wdSmartCamera .wd-sc-shell{padding-top:calc(80px + env(safe-area-inset-top,0px))}#wdSmartCamera .wd-sc-view{height:min(42dvh,340px)}}

/* v2.1.1: collapsible My Work menu with actual destination links */
#wdSmartCamera .wd-sc-drawer-links :is(#wdScWorkToggle,#wdScSiteToggle) .wd-sc-work-chevron{width:19px;height:19px;margin-left:auto;transition:transform .2s ease}
#wdSmartCamera .wd-sc-drawer-links :is(#wdScWorkToggle,#wdScSiteToggle)[aria-expanded="true"] .wd-sc-work-chevron{transform:rotate(180deg)}
#wdSmartCamera :is(#wdScWorkSubmenu,#wdScSiteSubmenu){margin:0 0 8px 33px;padding-left:12px;border-left:1px solid #e1e8f1;display:flex;flex-direction:column;gap:3px}
#wdSmartCamera :is(#wdScWorkSubmenu,#wdScSiteSubmenu)[hidden]{display:none!important}
#wdSmartCamera :is(#wdScWorkSubmenu,#wdScSiteSubmenu) button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:12px 10px;min-height:48px;font-size:15px;font-weight:500;border:0;border-radius:11px;background:transparent;text-align:left;color:#17283b}
#wdSmartCamera :is(#wdScWorkSubmenu,#wdScSiteSubmenu) button svg{width:19px;height:19px;flex:none;color:#667a90}
#wdSmartCamera :is(#wdScWorkSubmenu,#wdScSiteSubmenu) button:active{background:#edf3f8}

#wdSmartCamera .wd-sc-turbine-rotor {
  transform-box: view-box;
  transform-origin: 12px 10px;
}

@media (prefers-reduced-motion: no-preference) {
  #wdSmartCamera .wd-sc-drawer[aria-hidden="false"] .wd-sc-turbine-rotor {
    animation: wd-sc-turbine-spin 5s linear infinite;
  }
}

@keyframes wd-sc-turbine-spin {
  to { transform: rotate(360deg); }
}

.wd-guide-preferences{margin-block:16px;border:1px solid #d7e2ee;border-radius:14px;padding:12px 16px}
.wd-guide-preferences legend{font-weight:700;padding-inline:6px}
.wd-guide-preferences label{display:flex;align-items:center;gap:10px;min-height:42px}
.wd-guide-preferences input{width:19px;height:19px;accent-color:#165b91}

/* The conversation scrolls independently of the input and camera. */
#wdSmartCamera.wd-command-mode :is(.wd-sc-view,.wd-sc-actions,#wdScMessage,#wdScResults){display:none!important}
#wdScCommandHome[hidden],#wdScCameraBack[hidden],#wdCommandAddOptions[hidden]{display:none!important}
/* In chat, only the message list is a scroll container. */
html:root body #wdSmartCamera.wd-command-mode:not([hidden]),
html:root body #wdSmartCamera.wd-command-mode .wd-sc-shell{
 overflow:clip!important;
 overscroll-behavior:auto!important;
 touch-action:auto;
}
html:root body #wdSmartCamera.wd-command-mode:not([hidden]){contain:none}
#wdSmartCamera.wd-command-mode .wd-sc-shell{background:#fff;color:#17283b;padding:0!important}
.wd-command-home{position:absolute;inset:0;min-width:0}
.wd-command-log{
 position:absolute;inset:0;overflow-x:hidden;overflow-y:auto;
 padding:calc(66px + env(safe-area-inset-top,0px)) max(20px,calc((100% - 608px)/2))
  calc(118px + env(safe-area-inset-bottom,0px));
 scroll-padding-block:calc(66px + env(safe-area-inset-top,0px)) calc(118px + env(safe-area-inset-bottom,0px));
}
.wd-command-dock{
 position:absolute;z-index:10;bottom:0;left:0;right:0;
 padding:18px max(20px,calc((100% - 608px)/2)) calc(12px + env(safe-area-inset-bottom,0px));
 background:linear-gradient(180deg,#ffffff00,#ffffffeb 36%,#fff 95%);
 pointer-events:none;
}
#wdCommandForm{pointer-events:auto}
#wdCommandStatus:not([hidden]){margin-top:6px;background:#fff}
#wdSmartCamera.wd-command-mode .wd-command-log{
 --wd-message-fade:linear-gradient(to bottom,rgba(0,0,0,.13),rgba(0,0,0,.38) env(safe-area-inset-top,0px),#000 calc(env(safe-area-inset-top,0px) + 64px));
 -webkit-mask-image:var(--wd-message-fade);mask-image:var(--wd-message-fade);
}
.wd-command-log article{margin-bottom:12px;padding:12px 0;overflow-wrap:anywhere}
.wd-command-log p{margin:0 0 8px;white-space:pre-wrap}
.wd-command-request{margin-left:auto!important;width:fit-content;max-width:88%;padding:9px 13px;border-radius:14px;background:#edf3f8;color:#173553;font-weight:700}
.wd-command-actions{display:flex;flex-wrap:wrap;gap:8px}
.wd-command-actions button{background:#fff;border:1px solid #cfdae6;color:#173553;padding:7px 10px}
#wdCommandForm{
 position:relative;z-index:2;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;
 align-items:center;gap:6px;background:#fff;border:1px solid #c9d7e5;border-radius:22px;
 padding:6px;pointer-events:auto;
}
.wd-command-form input{border:0;min-width:0;width:100%;padding:10px 5px;font-size:16px}
.wd-command-form button{min-height:44px;background:#173d60;color:#fff;padding:8px 12px;border-radius:8px;pointer-events:auto;touch-action:manipulation}
#wdCommandForm :is(#wdCommandCamera,#wdCommandSend){
 width:44px;height:44px;padding:0;box-sizing:border-box;
 display:grid;place-items:center;border:0;border-radius:50%;line-height:1;color:#fff;
}
#wdCommandForm #wdCommandCamera{font-size:26px;background:transparent;color:#073d6d;border-radius:0;box-shadow:none}
#wdCommandForm #wdCommandSend{font-size:22px;background:#00a1e0}
#wdScCameraBack{margin:12px 0;background:#edf3f8;color:#173d60;font-weight:650}
#wdCommandStatus:not([hidden]){display:block;font-size:.85rem;color:#285c83}
.wd-command-add{position:relative}
.wd-command-add-options{position:absolute;bottom:calc(100% + 12px);left:0;z-index:3;min-width:145px;display:grid;gap:4px;padding:6px;background:#fff;border:1px solid #c9d7e5;border-radius:12px;box-shadow:0 6px 20px #17355324}
#wdCommandAddOptions button{text-align:left;white-space:nowrap;background:transparent;color:#173553}
#wdCommandAddOptions button:hover,#wdCommandAddOptions button:focus-visible{background:#edf3f8}

/* Keep the drawer controls anchored while shortcuts and history scroll. */
#wdSmartCamera .wd-sc-drawer{
 display:flex;flex-direction:column;box-sizing:border-box;
 padding:calc(16px + env(safe-area-inset-top,0px)) 18px 0;
}
#wdSmartCamera .wd-sc-drawer-header{flex:none;margin-bottom:12px}
#wdSmartCamera .wd-sc-drawer-scroll{
 flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;
 touch-action:pan-y;padding-bottom:12px;
}
#wdSmartCamera .wd-sc-drawer-heading{margin:0}
.wd-sc-chat-history{display:grid;gap:3px}
#wdSmartCamera .wd-sc-chat-history button{
 width:100%;min-height:44px;padding:9px 10px;text-align:left;
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;
 background:#fff;color:#17283b;border:0;border-radius:9px;font-size:14px;
}
#wdSmartCamera .wd-sc-chat-history button[aria-current="true"]{background:#edf3f8;color:#173d60;font-weight:700}
.wd-sc-chat-history p{margin:0;padding:9px 10px;color:#718092;font-size:13px}
.wd-sc-drawer-footer{
 display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;
 padding:12px 0 calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid #e3e9ef;
}
#wdSmartCamera .wd-sc-drawer-footer button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px}
#wdSmartCamera #wdScDrawerNewChat{padding:0 12px;background:#173d60;color:#fff;border:0;border-radius:12px}
#wdSmartCamera #wdScProfile{
 width:44px;padding:0;border:1px solid #d7e2ee;border-radius:50%;
 background:#edf3f8;color:#173d60;font-weight:700;font-size:13px;
}
#wdSmartCamera #wdScNewChat{width:45px;height:45px;padding:0;display:grid;place-items:center}
#wdSmartCamera:not(.wd-command-mode) #wdScNewChat{display:none}
#wdSmartCamera :is(.wd-sc-chat-icon,.wd-sc-drawer-footer,.wd-command-share) svg{width:21px;height:21px}
#wdSmartCamera .wd-command-share{
 display:grid;place-items:center;width:44px;height:44px;padding:0;
 border:0;border-radius:10px;background:#edf3f8;
}

#wdSmartCamera #wdCommandMic{
 width:44px;padding:0;display:grid;place-items:center;
 background:transparent;color:#173d60;border:0;
}
#wdCommandMic svg{width:21px;height:21px}
#wdSmartCamera #wdCommandMic[aria-pressed="true"]{color:#a12536;background:#fbeef0}
#wdCommandVoiceStatus:not([hidden]){display:block;margin-top:6px;background:#fff;color:#285c83;font-size:.85rem}
#wdCommandAddOptions{width:min(265px,78vw)}
#wdCommandAddOptions button{display:flex;align-items:center;gap:10px}
#wdCommandAddOptions svg{width:21px;height:21px;flex:none}
#wdCommandAddOptions small{display:block;font-size:12px;font-weight:400;color:#50647a}
#wdInterpreter{position:fixed;inset:0;margin:auto;width:min(92vw,410px);max-height:85dvh;overflow:auto;box-sizing:border-box;padding:18px;border:1px solid #cad8e4;border-radius:18px;background:white;color:#193c69}
#wdInterpreter::backdrop{background:#16283b66}
#wdInterpreter header,.wd-interp-sides{display:flex;align-items:center;justify-content:space-between;gap:10px}
.wd-interp-sides>div{flex:1;min-width:0}
#wdInterpreter label{display:block;font-size:13px}
#wdInterpreter select,#wdInterpreter textarea{display:block;width:100%;box-sizing:border-box;margin:6px 0;font-size:16px}
#wdInterpreter button{min-height:44px;padding:6px 12px;border-radius:10px;background:#edf3f8;color:#193c69}
#wdInterpreter button[aria-pressed=true],#wdInterpreter form button{background:#193c69;color:white}
#wdInterpreter header{margin-bottom:14px}
.wd-interp-result{white-space:pre-wrap;overflow-wrap:anywhere}
#wdHistoryGuide{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(90vw,420px);max-height:85dvh;overflow:auto;padding:22px;color:#193c69;background:#fff;border:1px solid #cad8e4;border-radius:18px}
#wdHistoryGuide::backdrop{background:#16283b66}
#wdHistoryGuide h2{font-size:19px;margin:0}
#wdHistoryGuide ol{padding-inline-start:22px}
#wdHistoryGuide li,#wdHistoryGuide p{line-height:1.55;margin:8px 0}
#wdHistoryGuide button{min-height:44px;padding:0 16px;background:#193c69;color:white;border-radius:10px}
#wdSmartCamera #wdScProfile{background:#00a1e0;color:#fff;border-color:#00a1e0}
#wdCommandAddOptions small{white-space:normal}

#wdSmartCamera .wd-sc-drawer{transition:transform .22s ease-out,visibility 0s linear .22s}
#wdSmartCamera .wd-sc-drawer[aria-hidden="false"]{transition-delay:0s}
#wdSmartCamera .wd-sc-drawer-backdrop{opacity:1;transition:opacity .22s ease-out,visibility 0s}
#wdSmartCamera #wdScDrawerBackdrop[hidden]{
 display:block!important;visibility:hidden;pointer-events:none;opacity:0;
 transition:opacity .22s ease-out,visibility 0s linear .22s;
}
#wdSmartCamera .wd-dragging{transition:none!important}
@media(prefers-reduced-motion:reduce){
 #wdSmartCamera :is(#wdScDrawer,#wdScDrawerBackdrop,#wdScDrawerBackdrop[hidden]){transition:none}
}
#wdInterpreter .wd-interp-audio{display:flex;align-items:center;gap:8px;min-height:44px}
#wdInterpreter .wd-interp-audio input{width:18px;height:18px;margin:0;accent-color:#193c69}
#wdScChatHistory [data-chat-title]{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
#wdThreadMenu{position:fixed;inset:0;margin:auto;width:min(82vw,320px);padding:14px;border:1px solid #d5e1ed;border-radius:16px;color:#193c69;background:white}
#wdThreadMenu::backdrop{background:#16283b66}
#wdThreadMenu strong{display:block;padding:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#wdThreadMenu button{display:block;width:100%;min-height:44px;text-align:left;background:white;color:#193c69;border:0}
#wdThreadMenu .wd-thread-delete{color:#ad2435}
#wdNoticeModal:not([hidden]){z-index:210000!important}
#wdSmartCamera #wdScOverflow{overflow:visible}
#wdSmartCamera #wdScOverflowCount:not([hidden]){z-index:3;border:1px solid white;background:#c82d3d;color:white;border-radius:999px;font-weight:700}
.wd-share-dialog{position:fixed;inset:0;margin:auto;width:min(90vw,450px);max-height:80dvh;padding:18px;overflow:auto;background:white;border:1px solid #d1dfed;border-radius:16px;color:#193c69}
.wd-share-dialog strong{overflow-wrap:anywhere}.wd-share-dialog p{white-space:pre-wrap;overflow-wrap:anywhere}.wd-share-dialog button,.wd-share-dialog select{min-height:44px;margin:4px}.wd-share-dialog::backdrop{background:#17283b66}

#wdSmartCamera.wd-command-mode{background:white;--wd-seam:0px;--wd-corner:0px}
#wdSmartCamera.wd-command-mode.wd-sc-drawer-open{--wd-seam:min(82vw,360px);--wd-corner:38px}
#wdSmartCamera.wd-command-mode :is(.wd-sc-shell,#wdScDrawerBackdrop){
 clip-path:inset(0 0 0 var(--wd-drag-seam,var(--wd-seam)) round var(--wd-corner) 0 0 var(--wd-corner));
 transition:clip-path .22s ease-out,opacity .22s ease-out;
}
#wdSmartCamera.wd-command-mode .wd-sc-drawer{box-shadow:none}
#wdSmartCamera.wd-command-mode:has(.wd-dragging) .wd-sc-shell{transition:none}
@media(prefers-reduced-motion:reduce){#wdSmartCamera.wd-command-mode :is(.wd-sc-shell,#wdScDrawerBackdrop){transition:none}}
