/* Creative Duo panels share the main-panel shell, optics, and gesture surface. */
.dx-shell,.duo-extra-handle,.duo-extra-launch-dot {display:none;}
html:root.ivy-duo-mode .dx-panel {--dx-bg:#f2f2f7;--dx-card:#fff;--dx-text:#1c1c1e;--dx-muted:#74747e;--dx-line:#dcdce2;--dx-blue:#007aff;--dx-fill:#e8e8ee;position:fixed!important;inset:0 auto auto 0!important;width:var(--duo-workspace-width,81dvw)!important;height:var(--duo-workspace-height,100dvh)!important;min-width:0!important;max-width:none!important;max-height:none!important;padding:0!important;margin:0!important;border:0!important;border-radius:var(--duo-workspace-corners,0 8px 8px 0)!important;background:var(--dx-bg)!important;color:var(--dx-text)!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;transform:none;opacity:1!important;overflow:hidden!important;isolation:isolate;z-index:12001!important;transition:none!important;font-family:-apple-system,BlinkMacSystemFont,system-ui,sans-serif!important;}
html:root.ivy-duo-mode.dark-mode .dx-panel {--dx-bg:#101114;--dx-card:#1c1c1e;--dx-text:#f5f5f7;--dx-muted:#a2a2ad;--dx-line:#34343a;--dx-blue:#69b6ff;--dx-fill:#2c2c31;}
html:root.ivy-duo-mode .dx-panel:not(.is-open) {display:none!important;}
html:root.ivy-duo-mode .dx-panel.is-open {display:block!important;pointer-events:auto!important;visibility:visible!important;}
html:root.ivy-duo-mode .dx-panel * {box-sizing:border-box;font-family:inherit;letter-spacing:normal;text-shadow:none;}
html:root.ivy-duo-mode .dx-panel [hidden] {display:none!important;}
html:root.ivy-duo-mode .dx-panel :is(.dx-color-legacy,.comment-panel__header) {display:none!important;}
html:root.ivy-duo-mode .dx-panel .dx-shell {display:flex;flex-direction:column;height:100%;min-height:0;}
html:root.ivy-duo-mode .dx-panel .dx-header {padding:max(20px,env(safe-area-inset-top)) 22px 16px;flex:none;}
html:root.ivy-duo-mode .dx-panel .dx-header h1 {margin:0;font-size:32px;line-height:1.12;font-weight:700;letter-spacing:-1px;}
html:root.ivy-duo-mode .dx-panel .dx-subtitle {margin:7px 0 0;color:var(--dx-muted);font-size:14px;line-height:1.4;}
html:root.ivy-duo-mode .dx-panel .dx-body {flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 18px 20px;scrollbar-width:none;}
html:root.ivy-duo-mode .dx-panel :is(button,input,select,textarea) {font-family:inherit;font-style:normal;}
html:root.ivy-duo-mode .dx-panel button {cursor:pointer;}
html:root.ivy-duo-mode .dx-panel :is(button,input,select,textarea,[tabindex]):focus-visible {outline:2px solid var(--dx-blue);outline-offset:3px;}
html:root.ivy-duo-mode .dx-panel .dx-tabs {position:relative;isolation:isolate;display:flex;flex:none;gap:3px;padding:10px 12px 42px;border-top:.5px solid var(--dx-line);background:var(--dx-bg);}
html:root.ivy-duo-mode .dx-panel .dx-tabs>button {display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;flex:1;min-width:0;min-height:52px;padding:5px 0;border:0;border-radius:999px;background:none;color:var(--dx-muted);font-size:10px;line-height:1.3;position:relative;z-index:1;}
html:root.ivy-duo-mode .dx-panel .dx-tabs>button[aria-current=page] {color:var(--dx-text);}
html:root.ivy-duo-mode .dx-panel .dx-tabs svg {width:22px;height:22px;}
html:root.ivy-duo-mode .dx-panel .duo-extra-handle:not([hidden]) {display:flex;position:absolute;left:calc(50% - 60px);bottom:1px;width:120px;height:44px;align-items:center;justify-content:center;border:0;background:none;box-shadow:none;z-index:20;touch-action:none;}
.duo-extra-handle span {width:80px;height:5px;border-radius:10px;background:#8e8e9377;}
html:root.ivy-duo-mode .duo-extra-launch-dot.is-active {display:block;position:fixed;z-index:12009;width:20px;height:20px;background:#8e8e93;border-radius:50%;pointer-events:none;}
html:root.ivy-duo-mode .dx-panel.duo-settings-revealing {will-change:translate,scale;}
html:root.ivy-duo-mode .dx-panel.duo-settings-dragging {translate:var(--duo-drag-x,0px) var(--duo-drag-y,0px)!important;scale:var(--duo-drag-scale,1)!important;transform-origin:center!important;}
html:root.ivy-duo-mode .dx-panel.duo-settings-collapsing {clip-path:inset(0 round var(--duo-close-round,32px));pointer-events:none!important;}
/* A small, tangible specimen previews the exact target without recoloring the editor. */
html:root.ivy-duo-mode .dx-panel .dc-preview {--picked:#fff;--hue:320;position:relative;display:grid;place-items:center;height:176px;border-radius:28px;overflow:hidden;background:radial-gradient(ellipse at 6% 0%,hsl(calc(var(--hue) + 35) 70% 87%),transparent 62%),radial-gradient(ellipse at 100% 95%,hsl(var(--hue) 54% 61%),transparent 74%),#e8dfed;isolation:isolate;}
html:root.ivy-duo-mode .dx-panel .dc-preview-orbit {position:absolute;width:240px;height:240px;border:36px solid hsl(var(--hue) 60% 65% / .55);border-radius:50%;left:-95px;top:30px;transform:rotate(-25deg) scaleY(.8);}
html:root.ivy-duo-mode .dx-panel .dc-preview-tile {width:160px;height:136px;padding:15px 19px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;border:1px solid #ffffffa6;border-radius:23px;background:#ffffff40;backdrop-filter:var(--duo-clear-card-filter);-webkit-backdrop-filter:var(--duo-clear-card-filter);box-shadow:0 10px 22px #503d5720,inset 0 1px 0 #ffffffb3;color:#272132;transform:rotate(-6deg);transition:transform .5s cubic-bezier(.22,1,.36,1);}
html:root.ivy-duo-mode .dx-panel .dc-preview-eyebrow {font-size:8px;letter-spacing:1.4px;font-weight:650;}
html:root.ivy-duo-mode .dx-panel .dc-preview-tile strong {font-size:44px;line-height:1.05;font-weight:600;letter-spacing:-2px;}
html:root.ivy-duo-mode .dx-panel .dc-preview-caption {font-size:9px;}
html:root.ivy-duo-mode .dx-panel .dc-preview-tile i {display:block;height:5px;width:40px;background:#fff;border-radius:10px;margin-top:5px;}
html:root.ivy-duo-mode .dx-panel .dc-preview[data-target=text] .dc-preview-tile strong {color:var(--picked);text-shadow:0 1px 4px #0002;}
html:root.ivy-duo-mode .dx-panel .dc-preview[data-target=panel] .dc-preview-tile {background:var(--picked);}
html:root.ivy-duo-mode .dx-panel .dc-preview[data-target=border] .dc-preview-tile {border:3px solid var(--picked);}
html:root.ivy-duo-mode .dx-panel .dc-preview[data-target=button] .dc-preview-tile i {background:var(--picked);height:12px;width:58px;}
html:root.ivy-duo-mode .dx-panel .dc-preview[data-target=arc] .dc-preview-orbit {border-color:var(--picked);}
html:root.ivy-duo-mode .dx-panel .dc-current {display:flex;justify-content:space-between;align-items:center;gap:10px;padding:15px 4px;font-size:15px;font-weight:600;}
html:root.ivy-duo-mode .dx-panel .dc-current output {font-size:12px;font-weight:500;font-variant-numeric:tabular-nums;color:var(--dx-muted);}
html:root.ivy-duo-mode .dx-panel .dc-modes {display:flex;padding:3px;gap:3px;border-radius:11px;background:var(--dx-fill);margin-bottom:16px;}
html:root.ivy-duo-mode .dx-panel .dc-modes button {flex:1;min-width:0;padding:8px 0;border:0;border-radius:8px;background:none;color:var(--dx-muted);font-size:12px;font-weight:600;}
html:root.ivy-duo-mode .dx-panel .dc-modes button[aria-pressed=true] {background:var(--dx-card);color:var(--dx-text);box-shadow:0 1px 4px #00000012;}
html:root.ivy-duo-mode .dx-panel .dc-tools {display:grid;gap:18px;}
html:root.ivy-duo-mode .dx-panel .dc-spectrum {position:relative;height:185px;border-radius:20px;background:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,hsl(var(--hue) 100% 50%));touch-action:none;cursor:crosshair;box-shadow:inset 0 0 0 .5px #00000012;}
html:root.ivy-duo-mode .dx-panel .dc-loupe {position:absolute;left:0;top:0;translate:-50% -50%;width:28px;height:28px;border:2.5px solid white;border-radius:50%;pointer-events:none;background:#ffffff08;backdrop-filter:var(--duo-clear-filter);-webkit-backdrop-filter:var(--duo-clear-filter);box-shadow:0 1px 5px #0006,inset 0 0 0 1px #0002;transition:scale .4s cubic-bezier(.34,1.56,.64,1);}
html:root.ivy-duo-mode .dx-panel .dc-spectrum.is-tracking .dc-loupe {scale:1.5;}
html:root.ivy-duo-mode .dx-panel .dc-range {display:grid;gap:9px;min-width:0;padding:0 3px;}
html:root.ivy-duo-mode .dx-panel .dc-range-title {display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:500;}
html:root.ivy-duo-mode .dx-panel .dc-range output {color:var(--dx-muted);font-size:12px;font-variant-numeric:tabular-nums;}
html:root.ivy-duo-mode .dx-panel .dc-range input {appearance:none;-webkit-appearance:none;width:100%;height:30px;border:0;border-radius:20px;background:var(--dx-fill);margin:0;cursor:pointer;touch-action:pan-y;}
html:root.ivy-duo-mode .dx-panel .dc-hue input {background:linear-gradient(to right,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00);}
html:root.ivy-duo-mode .dx-panel .dc-opacity input {background:linear-gradient(to right,transparent,var(--picked)),repeating-conic-gradient(#ccc 0 25%,#fff 0 50%) 0 / 10px 10px;}
html:root.ivy-duo-mode .dx-panel .dc-range input::-webkit-slider-thumb {appearance:none;-webkit-appearance:none;width:28px;height:28px;border:3px solid #fff;border-radius:50%;background:#ffffff33;box-shadow:0 1px 5px #0005;}
html:root.ivy-duo-mode .dx-panel .dc-range input::-moz-range-thumb {width:23px;height:23px;border:3px solid #fff;border-radius:50%;background:#ffffff33;box-shadow:0 1px 5px #0005;}
html:root.ivy-duo-mode .dx-panel .dc-exact {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;background:var(--dx-card);border-radius:14px;}
html:root.ivy-duo-mode .dx-panel .dc-exact label {display:flex;align-items:center;gap:10px;min-width:0;color:var(--dx-muted);font-size:12px;}
html:root.ivy-duo-mode .dx-panel .dc-exact input {min-width:0;width:95px;height:38px;font-size:14px;font-weight:500;color:var(--dx-text);background:none;border:0;}
html:root.ivy-duo-mode .dx-panel .dc-reset {min-height:44px;font-size:13px;color:var(--dx-blue);border:0;background:none;}
html:root.ivy-duo-mode .dx-panel .dc-palette h2 {font-size:13px;font-weight:600;margin:0 0 12px;}
html:root.ivy-duo-mode .dx-panel .dc-swatches {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;}
html:root.ivy-duo-mode .dx-panel .dc-swatch {width:100%;aspect-ratio:1;border-radius:50%;border:0;background:var(--swatch);box-shadow:inset 0 0 0 .5px #0002;transition:scale .4s cubic-bezier(.34,1.56,.64,1);position:relative;}
html:root.ivy-duo-mode .dx-panel .dc-swatch:active {scale:.85;}
html:root.ivy-duo-mode .dx-panel .dc-swatch[aria-pressed=true]::after {content:'';position:absolute;inset:-4px;border:2px solid var(--dx-muted);border-radius:50%;}
/* Conversation reads like an iOS list; composing gets a quiet, spacious page. */
html:root.ivy-duo-mode .dx-panel .dm-filterbar {display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin:0 0 16px;position:relative;z-index:3;}
html:root.ivy-duo-mode .dx-panel .dx-select {appearance:auto;color:var(--dx-blue);background:var(--dx-card);border:0;border-radius:12px;padding:10px;min-height:44px;max-width:100%;font-size:13px;}
html:root.ivy-duo-mode .dx-panel :is(.dm-unblock,.dm-retry) {background:none;border:0;color:var(--dx-blue);padding:12px;min-height:44px;}
html:root.ivy-duo-mode .dx-panel .dm-feed-status {display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:260px;text-align:center;padding:28px 16px;}
html:root.ivy-duo-mode .dx-panel .dm-feed-status svg {width:42px;height:42px;color:var(--dx-muted);margin-bottom:12px;}
html:root.ivy-duo-mode .dx-panel .dm-feed-status h2 {font-size:20px;line-height:1.3;margin:8px 0;font-weight:600;}
html:root.ivy-duo-mode .dx-panel .dm-feed-status p {font-size:14px;color:var(--dx-muted);line-height:1.5;margin:0;}
html:root.ivy-duo-mode .dx-panel .comment-panel__filters {display:none!important;}
html:root.ivy-duo-mode .dx-panel .comment-panel__list {overflow:visible;display:flex;padding:0;gap:0;}
html:root.ivy-duo-mode .dx-panel :is(.comment-panel__feed,.comment-panel__top3) {display:flex;flex-direction:column;gap:0;border-radius:20px;background:var(--dx-card);overflow:hidden;}
html:root.ivy-duo-mode .dx-panel .comment-panel__divider {display:none!important;}
html:root.ivy-duo-mode .dx-panel .dm-feed-label {font-size:12px;font-weight:500;color:var(--dx-muted);margin:6px 12px 10px;}
html:root.ivy-duo-mode .dx-panel .comment-panel__top3:not(:empty) {margin-bottom:18px;}
html:root.ivy-duo-mode .dx-panel .comment-card {padding:16px 12px;gap:11px;background:none;border:0;border-radius:0;box-shadow:none;}
html:root.ivy-duo-mode .dx-panel .comment-card+.comment-card {border-top:.5px solid var(--dx-line);}
html:root.ivy-duo-mode .dx-panel .comment-card__left {width:38px;min-width:38px;gap:8px;}
html:root.ivy-duo-mode .dx-panel .comment-card__pfp {width:38px;height:38px;border:0;background:var(--dx-fill);}
html:root.ivy-duo-mode .dx-panel .comment-card__pfp--empty::after {content:'●';font-size:16px;color:var(--dx-muted);display:grid;place-items:center;height:100%;}
html:root.ivy-duo-mode .dx-panel .comment-card__head {gap:6px;}
html:root.ivy-duo-mode .dx-panel .comment-card__alias {color:var(--dx-text);-webkit-text-fill-color:var(--dx-text);background:none;font-weight:600;font-size:15px;flex:1;min-width:0;overflow-wrap:anywhere;}
html:root.ivy-duo-mode .dx-panel .comment-card__body {font-size:14px;color:var(--dx-text);line-height:1.55;}
html:root.ivy-duo-mode .dx-panel .comment-card__tag {font-size:10px;font-weight:500;text-transform:none;letter-spacing:normal;background:var(--dx-fill);color:var(--dx-muted);padding:4px 7px;}
html:root.ivy-duo-mode .dx-panel :is(.comment-card__report,.comment-card__block) {color:var(--dx-muted);padding:8px;min-width:32px;min-height:36px;margin:0;}
html:root.ivy-duo-mode .dx-panel .comment-card__upvote {font-size:12px;color:var(--dx-blue);min-height:36px;min-width:38px;justify-content:center;border-radius:11px;background:var(--dx-bg);}
html:root.ivy-duo-mode .dx-panel .comment-card__upvote:active {scale:.93;background:var(--dx-fill);}
html:root.ivy-duo-mode .dx-panel .dm-compose-intro {padding:8px 4px 20px;}
html:root.ivy-duo-mode .dx-panel .dm-compose-intro h2 {font-size:23px;line-height:1.2;letter-spacing:-.5px;margin:0 0 8px;}
html:root.ivy-duo-mode .dx-panel .dm-compose-intro p {font-size:14px;line-height:1.5;color:var(--dx-muted);margin:0;}
html:root.ivy-duo-mode .dx-panel .comment-creator {padding:16px;background:var(--dx-card);border:0;border-radius:22px;gap:16px;}
html:root.ivy-duo-mode .dx-panel .comment-creator__row {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;}
html:root.ivy-duo-mode .dx-panel .comment-creator__alias {grid-column:1/-1;min-width:0;width:100%;border:0;border-bottom:.5px solid var(--dx-line);background:none;border-radius:0;padding:0 0 13px;color:var(--dx-text);font-size:16px;}
html:root.ivy-duo-mode .dx-panel .comment-creator__alias::placeholder {color:var(--dx-muted);}
html:root.ivy-duo-mode .dx-panel .comment-creator__tag-dd {display:none;}
html:root.ivy-duo-mode .dx-panel .comment-creator .dx-select {background:var(--dx-bg);min-width:0;}
html:root.ivy-duo-mode .dx-panel .comment-creator__tnc {font-size:12px;color:var(--dx-muted);min-height:44px;display:flex;align-items:center;position:static;}
html:root.ivy-duo-mode .dx-panel .comment-creator__tnc-tip {display:none;}
html:root.ivy-duo-mode .dx-panel .dm-guidelines-open .comment-creator__tnc-tip {display:block;position:absolute;inset:130px 12px auto;z-index:5;width:auto;max-width:none;max-height:260px;overflow:auto;opacity:1;visibility:visible;transform:none;background:var(--dx-card);color:var(--dx-text);border:1px solid var(--dx-line);padding:18px;border-radius:16px;box-shadow:0 8px 30px #0002;font-size:13px;}
html:root.ivy-duo-mode .dx-panel .comment-creator__body {position:relative;}
html:root.ivy-duo-mode .dx-panel .comment-creator__input {display:block;width:100%;min-height:180px;max-height:320px;padding:0 0 44px!important;background:none!important;color:var(--dx-text)!important;font-size:16px;line-height:1.55;border:0!important;border-radius:0;resize:none;box-shadow:none!important;}
html:root.ivy-duo-mode .dx-panel .comment-creator__input::placeholder {color:var(--dx-muted);}
html:root.ivy-duo-mode .dx-panel .comment-creator__install-pill {position:static;color:var(--dx-blue);border:0;background:var(--dx-bg);box-shadow:none;border-radius:12px;padding:10px 12px;min-height:44px;font-size:12px;letter-spacing:normal;}
html:root.ivy-duo-mode .dx-panel .comment-creator__install-grid {position:static;background:var(--dx-bg);border-color:var(--dx-line);margin-top:10px;max-height:230px;overflow:auto;}
html:root.ivy-duo-mode .dx-panel .install-tile {color:var(--dx-text);background:var(--dx-card);border-color:var(--dx-line);}
html:root.ivy-duo-mode .dx-panel .comment-creator__footer {display:grid;grid-template-columns:1fr auto;gap:10px;border-top:.5px solid var(--dx-line);padding-top:14px;align-items:center;}
html:root.ivy-duo-mode .dx-panel .dm-counter {font-size:11px;color:var(--dx-muted);}
html:root.ivy-duo-mode .dx-panel .comment-creator__send {grid-column:2;grid-row:1;border:0;border-radius:999px;background:#007aff;color:#fff;font-size:14px;font-weight:600;min-height:44px;min-width:75px;padding:10px 18px;box-shadow:none;}
html:root.ivy-duo-mode .dx-panel .comment-creator__send:disabled {opacity:.5;}
html:root.ivy-duo-mode .dx-panel .comment-creator__support-link {grid-column:1/-1;font-size:12px;color:var(--dx-blue);padding:8px 0;text-decoration:none;}
html:root.ivy-duo-mode .dx-panel .dm-draft-status {font-size:13px;color:var(--dx-muted);margin:12px 6px;}
/* Achievements belong to Account. Keep the original image, name and unlock nodes. */
html:root.ivy-duo-mode .icon-bar__icon[data-feature=achievement-panel],html:root.ivy-duo-mode [data-duo-feature=achievement-panel] {display:none!important;}
html:root.ivy-duo-mode .duo-achievements-summary {display:flex;align-items:center;flex-direction:column;text-align:center;margin:0 0 24px;}
html:root.ivy-duo-mode .duo-achievements-summary h3 {font-size:20px;font-weight:600;margin:12px 0 0;}
html:root.ivy-duo-mode .duo-achievements-summary .duo-page-note {margin:6px 0 0;}
html:root.ivy-duo-mode .duo-achievements-host .achievement-grid {display:flex;flex-direction:column;gap:0;width:100%;height:auto;padding:0;margin:0;overflow:visible;}
html:root.ivy-duo-mode .duo-achievements-host .achievement-row {display:flex;flex-direction:column;width:100%;gap:0;padding:0;margin:0;background:var(--duo-surface,#fff);border-radius:16px;overflow:hidden;}
html:root.ivy-duo-mode .duo-achievements-host .ending-achievements-divider {order:0;}
html:root.ivy-duo-mode .duo-achievements-host .ending-achievements-row {order:1;}
html:root.ivy-duo-mode .duo-achievements-host .artists-achievements-divider {order:2;}
html:root.ivy-duo-mode .duo-achievements-host .artists-achievements-row {order:3;}
html:root.ivy-duo-mode .duo-achievements-host [class$=achievements-divider] {border:0;display:block;margin:20px 12px 9px;color:#74747e;font-size:11px;letter-spacing:1px;}
html:root.ivy-duo-mode .duo-achievements-host [class$=achievements-divider]::before,html:root.ivy-duo-mode .duo-achievements-host [class$=achievements-divider]::after {display:none;}
html:root.ivy-duo-mode .duo-achievements-host .achievement-card {display:flex!important;align-items:center;flex-direction:row;gap:15px;width:100%!important;min-width:0;height:auto;min-height:90px;padding:16px;margin:0;border:0;border-radius:0;background:none;box-shadow:none;}
html:root.ivy-duo-mode .duo-achievements-host .achievement-card+.achievement-card {border-top:.5px solid #c6c6c855;}
html:root.ivy-duo-mode .duo-achievements-host .icon-circle {flex:none;width:56px;height:56px;box-shadow:none;background:#f1f1f5;}
html:root.ivy-duo-mode .duo-achievements-host .icon-circle img {filter:grayscale(1);opacity:.55;}
html:root.ivy-duo-mode .duo-achievements-host .unlocked .icon-circle img {filter:none;opacity:1;}
html:root.ivy-duo-mode .duo-achievements-host .card-content {margin:0;text-align:left;filter:none;opacity:1;min-width:0;}
html:root.ivy-duo-mode .duo-achievements-host .card-content h3 {font-size:15px;line-height:1.3;text-transform:none;letter-spacing:normal;color:#1c1c1e;overflow-wrap:anywhere;}
html:root.ivy-duo-mode .duo-achievements-host .card-content p {font-size:12px;line-height:1.4;margin:5px 0 0;color:#74747e;}
html:root.ivy-duo-mode .duo-achievements-host .achievement-card:not(.unlocked) .card-content p {display:none;}
html:root.ivy-duo-mode .duo-achievements-host .achievement-card:not(.unlocked) .card-content::after {content:'Not yet unlocked';display:block;font-size:12px;color:#74747e;margin-top:5px;}
html:root.ivy-duo-mode.dark-mode .duo-achievements-host .achievement-row {background:#1c1c1e;}
html:root.ivy-duo-mode.dark-mode .duo-achievements-host .card-content h3 {color:#f5f5f7;}
html:root.ivy-duo-mode.dark-mode .duo-achievements-host :is(.card-content p,[class$=achievements-divider]),html:root.ivy-duo-mode.dark-mode .duo-achievements-host .achievement-card:not(.unlocked) .card-content::after {color:#a2a2ad;}
@media(max-height:740px){html:root.ivy-duo-mode .dx-panel .dc-preview{height:140px;}html:root.ivy-duo-mode .dx-panel .dc-spectrum{height:150px;}}
@media(prefers-reduced-motion:reduce){html:root.ivy-duo-mode .dx-panel *,html:root.ivy-duo-mode .dx-panel *::before,html:root.ivy-duo-mode .dx-panel *::after {animation:none!important;transition:none!important;}}
@media(prefers-reduced-transparency:reduce){html:root.ivy-duo-mode .dx-panel :is(.dc-preview-tile,.dc-loupe){backdrop-filter:none;-webkit-backdrop-filter:none;background:#ffffffdd;}}
/* Keep the creative controls legible while their previews change color. */
html:root.ivy-duo-mode .dx-panel .dx-header h1 {color:var(--dx-text);}
html:root.ivy-duo-mode .dx-panel .comment-card__head {display:grid;grid-template-columns:minmax(0,1fr) 32px;gap:4px 6px;}
html:root.ivy-duo-mode .dx-panel .comment-card__alias {grid-row:1;grid-column:1;}
html:root.ivy-duo-mode .dx-panel .comment-card__tag {grid-column:1;grid-row:2;justify-self:start;}
html:root.ivy-duo-mode .dx-panel .dm-actions {grid-column:2;grid-row:1;position:relative;align-self:start;}
html:root.ivy-duo-mode .dx-panel .dm-actions summary {list-style:none;display:grid;place-items:center;min-height:32px;min-width:32px;margin-top:-6px;color:var(--dx-muted);font-size:14px;letter-spacing:1px;cursor:pointer;}
html:root.ivy-duo-mode .dx-panel .dm-actions summary::-webkit-details-marker {display:none;}
html:root.ivy-duo-mode .dx-panel .dm-actions-menu {position:absolute;right:0;top:30px;z-index:6;min-width:145px;border:1px solid var(--dx-line);border-radius:14px;background:var(--dx-card);padding:4px;box-shadow:0 8px 24px #0002;}
html:root.ivy-duo-mode .dx-panel .dm-actions-menu button {display:flex;align-items:center;gap:10px;min-height:44px;width:100%;font-size:13px;white-space:nowrap;}
html:root.ivy-duo-mode .dx-panel .comment-card:has(.dm-actions[open]) {z-index:7;}
html:root.ivy-duo-mode .dx-panel :is(.comment-panel__feed,.comment-panel__top3) {overflow:visible;}
html:root.ivy-duo-mode .dx-panel .dx-select {appearance:none;-webkit-appearance:none;background:var(--dx-card)!important;border:0!important;border-radius:12px!important;min-height:44px!important;line-height:1.25;padding:12px!important;color:var(--dx-blue)!important;box-shadow:none!important;}
html:root.ivy-duo-mode .dx-panel .dm-filterbar .dx-select {text-align:right;max-width:57%;}
html:root.ivy-duo-mode .dx-panel .comment-creator .dx-select {background:var(--dx-bg)!important;}
html:root.ivy-duo-mode .dx-panel .comment-creator__alias {background:none!important;box-shadow:none!important;}
html:root.ivy-duo-mode .dx-panel .comment-creator {position:relative;}
html:root.ivy-duo-mode .dx-panel .comment-creator__tnc {border:0;background:none;padding:0;box-shadow:none;}
html:root.ivy-duo-mode .duo-achievements-host .achievement-card {position:static!important;inset:auto!important;transform:none!important;height:auto!important;flex:0 0 auto!important;}
html:root.ivy-duo-mode .duo-achievements-host .icon-circle {width:56px!important;height:56px!important;box-shadow:none!important;}
html:root.ivy-duo-mode .duo-achievements-host [class$=achievements-divider] {height:auto;background:none;text-align:left;width:auto;}
html:root.ivy-duo-mode .duo-achievements-host [class$=achievements-divider] span {position:static;top:auto;}
html:root.ivy-duo-mode .duo-achievements-host * {box-sizing:border-box;}
html:root.ivy-duo-mode .duo-achievements-host .card-content {flex:1;max-width:100%;white-space:normal;}
html:root.ivy-duo-mode .duo-achievements-host .card-content h3 {white-space:normal!important;overflow-wrap:anywhere;}
@media(prefers-reduced-motion:no-preference){
 html:root.ivy-duo-mode .dx-panel .dm-actions[open] .dm-actions-menu {animation:dx-menu-in .18s cubic-bezier(.2,.8,.2,1);transform-origin:top right;}
}
@keyframes dx-menu-in {from{opacity:0;transform:translateY(-4px) scale(.97)}to{opacity:1;transform:none}}
@media(max-width:360px){
 html:root.ivy-duo-mode .duo-achievements-host .achievement-card {padding:14px;gap:12px;}
 html:root.ivy-duo-mode .duo-achievements-host .icon-circle {width:48px!important;height:48px!important;}
 html:root.ivy-duo-mode .duo-achievements-host .card-content h3 {font-size:14px;}
}
/* Comments: a visible ranking, compact author identity and floating optics.
   Cards stay opaque; only the small controls sample the content underneath. */
html:root.ivy-duo-mode .comment-panel .dx-shell {position:relative;}
html:root.ivy-duo-mode .comment-panel .dx-header {padding-bottom:18px;}
html:root.ivy-duo-mode .comment-panel .dm-body {padding-bottom:126px;}
html:root.ivy-duo-mode .comment-panel .dx-tabs {position:absolute;left:16px;right:16px;bottom:34px;padding:4px;gap:4px;border:1px solid #93939d30;border-radius:999px;background:color-mix(in srgb,var(--dx-card) 55%,transparent);box-shadow:0 4px 20px #0000000b;}
html:root.ivy-duo-mode .comment-panel .dx-tabs>button {min-height:52px;}
html:root.ivy-duo-mode .comment-panel .dm-filterbar {position:sticky;top:0;padding:4px 0 12px;margin-bottom:10px;z-index:9;}
html:root.ivy-duo-mode .comment-panel .dm-glass-control {--tab-lens-x:0px;--tab-lens-y:0px;--tab-lens-w:100%;--tab-lens-h:100%;position:relative;isolation:isolate;border-radius:999px;min-height:44px;}
html:root.ivy-duo-mode .comment-panel .dm-glass-control::before {z-index:0;}
html:root.ivy-duo-mode .comment-panel .dm-sort .dx-select {position:relative;z-index:1;border-radius:999px!important;background:transparent!important;color:var(--dx-text)!important;min-height:44px;}
html:root.ivy-duo-mode .comment-panel .dm-sort .dx-select {max-width:100%;font-size:13px!important;padding:12px 16px!important;}
html:root.ivy-duo-mode .comment-panel .dm-top-heading {display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:10px 4px 12px;}
html:root.ivy-duo-mode .comment-panel .dm-top-heading h2 {font-size:24px;font-weight:700;letter-spacing:-.6px;margin:0;}
html:root.ivy-duo-mode .comment-panel .dm-top-heading p {font-size:11px;color:var(--dx-muted);margin:0;text-align:right;}
html:root.ivy-duo-mode .comment-panel .comment-card {padding:18px 14px;gap:14px;}
html:root.ivy-duo-mode .comment-panel .comment-card__left {width:42px;min-width:42px;gap:10px;position:relative;}
html:root.ivy-duo-mode .comment-panel .comment-card__avatar {width:42px;height:42px;display:grid;place-items:center;border-radius:50%;position:relative;overflow:hidden;flex:none;background:var(--dx-fill);}
html:root.ivy-duo-mode .comment-panel .comment-card__initials {font-size:14px;font-weight:600;color:var(--dx-muted);}
html:root.ivy-duo-mode .comment-panel .comment-card__avatar .comment-card__pfp {position:absolute;inset:0;display:block;width:100%!important;height:100%!important;object-fit:cover;border:0;opacity:1;filter:none;background:none;}
html:root.ivy-duo-mode .comment-panel .comment-card--top .comment-card__left::before {content:attr(data-rank);}
html:root.ivy-duo-mode .comment-panel .comment-card--top::before {content:attr(data-rank);position:absolute;left:10px;top:13px;z-index:2;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;border:2px solid var(--dx-card);background:var(--dx-text);color:var(--dx-card);font-size:10px;font-weight:700;}
html:root.ivy-duo-mode .comment-panel .comment-card__left::before {display:none;}
html:root.ivy-duo-mode .comment-panel .comment-card__head {align-items:center;gap:5px 6px;}
html:root.ivy-duo-mode .comment-panel .comment-card__body {font-size:14px;line-height:1.55;font-weight:400;margin-top:5px;}
html:root.ivy-duo-mode .comment-panel .comment-card__upvote {min-height:30px;font-size:12px;background:none;}
html:root.ivy-duo-mode .comment-panel .dm-feed-label {font-size:20px;font-weight:650;letter-spacing:-.35px;color:var(--dx-text);margin:10px 4px 14px;}
html:root.ivy-duo-mode .comment-panel .dm-more {display:block;margin:16px auto;padding:12px 18px;min-height:44px;border:0;border-radius:999px;background:var(--dx-card);color:var(--dx-blue);font-size:13px;}
html:root.ivy-duo-mode .comment-panel .comment-creator__input {padding-bottom:12px!important;}
@media(prefers-reduced-transparency:reduce){html:root.ivy-duo-mode .comment-panel :is(.dx-tabs,.dm-glass-control::before) {background:var(--dx-card)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}}
/* Blocked glass is confined to the achievement picture, never its name. */
html:root.ivy-duo-mode .duo-achievements-host .icon-circle {position:relative;isolation:isolate;}
html:root.ivy-duo-mode .duo-achievements-host .achievement-card:not(.unlocked) .icon-circle img {filter:grayscale(1) blur(3px);opacity:.7;}
html:root.ivy-duo-mode .duo-achievements-host .icon-circle img {border-radius:50%;transition:filter .8s cubic-bezier(.16,1,.3,1),opacity .8s ease;}
html:root.ivy-duo-mode .duo-achievements-host .da-revealing .icon-circle {overflow:visible;}
html:root.ivy-duo-mode .duo-achievements-host .da-blocked-glass {position:absolute;inset:-1px;pointer-events:none;z-index:2;border-radius:50%;backdrop-filter:blur(3px) grayscale(1);-webkit-backdrop-filter:blur(3px) grayscale(1);}
html:root.ivy-duo-mode .duo-achievements-host .da-blocked-glass i {position:absolute;inset:0;border-radius:50%;background:linear-gradient(145deg,#ffffff9c,#e6e9ef52 60%,#ffffff80);box-shadow:inset 0 0 0 1px #ffffffa6;}
html:root.ivy-duo-mode.dark-mode .duo-achievements-host .da-blocked-glass i {background:linear-gradient(145deg,#ffffff30,#9ca6b347 60%,#ffffff24);}
@media(prefers-reduced-motion:reduce){html:root.ivy-duo-mode .duo-achievements-host .icon-circle img{transition:none;}}

html:root.ivy-duo-mode .duo-achievements-host .da-revealing .da-blocked-glass {backdrop-filter:none;-webkit-backdrop-filter:none;}
html:root.ivy-duo-mode .comment-panel .duo-lens-nav.has-tab-lens::before {
 background:radial-gradient(ellipse at 28% 12%,#ffffff80,transparent 62%),linear-gradient(155deg,#e8e8eb40,#d9d9df25)!important;
 backdrop-filter:var(--duo-clear-filter,var(--duo-clear-pill-material))!important;-webkit-backdrop-filter:var(--duo-clear-filter,var(--duo-clear-pill-material))!important;
 box-shadow:0 0 0 1px #77778045,0 4px 9px #20202b16,inset 0 1px 1px #fff,inset 0 -2px 5px #ffffffa6!important;
}
html:root.ivy-duo-mode.dark-mode .comment-panel .duo-lens-nav.has-tab-lens::before {background:radial-gradient(ellipse at 28% 12%,#ffffff28,transparent 62%),linear-gradient(155deg,#52545e50,#35374030)!important;box-shadow:0 0 0 1px #08080c40,0 4px 9px #0002,inset 0 1px 1px #ffffff66,inset 0 -2px 5px #ffffff15!important;}
html:root.ivy-duo-mode .comment-panel:is(.duo-settings-dragging,.duo-settings-revealing,.duo-settings-collapsing) .duo-lens-nav.has-tab-lens::before {backdrop-filter:blur(2px) saturate(145%)!important;-webkit-backdrop-filter:blur(2px) saturate(145%)!important;}
@media(prefers-reduced-motion:no-preference){
 html:root.ivy-duo-mode .comment-panel .duo-lens-nav.has-tab-lens::before {transition-duration:.55s!important;}
 html:root.ivy-duo-mode .comment-panel .duo-lens-nav.lens-settling::before {animation-duration:.45s!important;}
}
html:root.ivy-duo-mode .duo-achievements-host .achievement-card:not(.unlocked) .icon-circle img {filter:grayscale(1) blur(3px)!important;}
html:root.ivy-duo-mode .duo-achievements-host .achievement-card.unlocked .icon-circle img {filter:none!important;}
@media(prefers-reduced-motion:no-preference){html:root.ivy-duo-mode .duo-achievements-host .icon-circle img {transition-duration:.8s!important;}}
@media(prefers-reduced-transparency:reduce){html:root.ivy-duo-mode .comment-panel .duo-lens-nav.has-tab-lens::before {background:var(--dx-card)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}}

/* Only the collapsed trigger is styled. Its popup belongs entirely to the OS. */
html:root.ivy-duo-mode .comment-panel .dm-topics-label {position:relative;z-index:1;display:flex;align-items:center;gap:9px;min-height:44px;padding:0 14px;color:var(--dx-text);font-size:13px;white-space:nowrap;pointer-events:none;}
html:root.ivy-duo-mode .comment-panel .dm-topics-label::after {content:'';width:5px;height:5px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:translateY(-2px) rotate(45deg);}
html:root.ivy-duo-mode .comment-panel .dm-topics-native {position:absolute!important;inset:0!important;z-index:2;width:100%!important;height:100%!important;min-height:44px!important;margin:0!important;opacity:0!important;appearance:auto!important;-webkit-appearance:menulist!important;font-size:16px!important;cursor:pointer;}
html:root.ivy-duo-mode .comment-panel .dm-topics:focus-within {outline:2px solid var(--dx-blue);outline-offset:3px;}
html:root.ivy-duo-mode .comment-panel .dm-unblock[hidden] {display:none!important;}
