.cbid-quests{--quest-bg:#151b2c;--quest-fg:#f6f4ff;--quest-secondary:#d8dded;background:var(--quest-bg);color:var(--quest-fg);padding:clamp(16px,3vw,32px);border:1px solid #59637a;border-radius:20px;font:400 1rem/1.6 system-ui,sans-serif;margin-block:20px;min-width:0}
.cbid-checkin{background:#fff;color:#172c3b;border:1px solid #aeb9c5;border-radius:16px;padding:clamp(16px,3vw,28px);margin-block:16px;min-width:0;font:400 1rem/1.65 system-ui,sans-serif;overflow-wrap:anywhere}
.cbid-checkin h2{font-size:1.5rem;margin-block:0 16px}.cbid-checkin h3{font-size:1.25rem}.cbid-checkin p,.cbid-checkin summary{font-size:1rem;color:#172c3b}.cbid-checkin a{color:#164d65;text-decoration:underline;display:inline-flex;align-items:center;min-height:44px}.cbid-checkin button{font:inherit;min-height:48px;padding:10px 16px;border:1px solid #675386;border-radius:10px;background:#eee8fb;color:#332348;cursor:pointer}.cbid-checkin button:disabled{background:#e6e8eb;color:#394654;opacity:1;cursor:wait}.cbid-checkin :focus-visible{outline:3px solid #694ca1;outline-offset:3px}.checkin-progress{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:16px;margin-block:20px}.checkin-progress>div{padding:16px;background:#f3f0fa;border-radius:12px;min-width:0}.checkin-progress span,.checkin-progress strong{display:block}.checkin-progress strong{font-size:1.5rem;font-variant-numeric:tabular-nums}.checkin-days{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,132px),1fr));gap:12px;padding:0;margin:24px 0;align-items:stretch}.checkin-days li{display:flex;flex-direction:column;min-width:0;padding:12px;border:1px solid #9ca8b6;border-radius:10px;text-align:center;background:#f1f3f5;color:#384451}.checkin-days li[data-state="done"]{background:#e5f1ff;border-color:#2c669b;color:#103e67}.checkin-days li[data-state="today"]{background:#e4f5e9;border:2px solid #277341;color:#14452a}.checkin-days span,.checkin-days strong,.checkin-days time{display:block;font-size:1rem}.checkin-days strong{font-variant-numeric:tabular-nums}.checkin-days time{margin-top:12px;padding-top:8px;border-top:1px solid currentColor}.checkin-day-action{display:flex;align-items:center;justify-content:center;flex:1;min-height:64px;margin-top:8px}.checkin-days .checkin-done{line-height:1.5}.checkin-days .checkin-done span{display:inline}.cbid-checkin .checkin-days button,.cbid-quests .cbid-checkin .checkin-days button{width:100%;height:auto;white-space:normal;line-height:1.4;padding:10px 8px;border-color:#195b32;background:#195b32;color:#fff}.cbid-checkin .checkin-days button:disabled,.cbid-quests .cbid-checkin .checkin-days button:disabled{background:#e6e8eb;color:#394654;border-color:#788594;cursor:wait}.cbid-checkin details{margin-block:24px 0}.cbid-checkin summary{cursor:pointer;min-height:44px}
.cbid-quests header,.quests-fellows,.quests-share-url{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.cbid-quests header{justify-content:space-between}.cbid-quests h1{font-size:clamp(1.75rem,4vw,2.25rem);margin:0}.cbid-quests h2{font-size:1.5rem}.cbid-quests button,.cbid-quests input,.quests-plus{font:inherit;font-size:1rem;min-height:48px;border:1px solid #808da7;border-radius:12px;padding:10px 16px;color:var(--quest-fg);background:#262e46}.cbid-quests button{display:inline-flex;justify-content:center;align-items:center;gap:8px;cursor:pointer;touch-action:manipulation}.cbid-quests button:disabled{cursor:wait;border-style:dashed}.cbid-quests a{color:#d7c9ff;text-decoration:underline;text-underline-offset:3px}.cbid-quests :focus-visible{outline:3px solid #b5ffe5;outline-offset:4px}.quests-fellows{justify-content:space-between;margin-block:24px;padding-block:16px;border-block:1px solid #59637a}.quests-plus{display:inline-flex;align-items:center;justify-content:center;min-width:48px;text-decoration:none!important}.quests-amounts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.quests-amount{background:#20283e;padding:16px;border-radius:14px;overflow-wrap:anywhere}.quests-amount span{display:block}.quests-amount strong{font-size:clamp(1.25rem,3vw,1.75rem);display:block;font-variant-numeric:tabular-nums}.quests-zone{color:var(--quest-secondary);font-size:1rem}.quests-share label{display:block;margin-bottom:10px}.quests-share-url input{flex:1;min-width:min(100%,240px);max-width:100%;box-sizing:border-box}.quests-qr{display:block!important;background:#fff!important;padding:12px!important;margin:24px auto;color:#111!important;max-width:100%}.quests-qr img{display:block;width:min(288px,100%);height:auto;image-rendering:pixelated}.quests-chart{margin-block:24px;position:relative}.quests-chart svg{display:block;width:100%;height:240px;overflow:visible}.quests-chart-axis{display:flex;justify-content:space-between;direction:ltr;font-size:.875rem;color:var(--quest-secondary)}.quests-grid{stroke:#59637a;stroke-width:1}.quests-chart .total{stroke:#c7b2ff}.quests-chart .self{stroke:#91f4d2;stroke-dasharray:9 5}.quests-chart .others{stroke:#ffdb94;stroke-dasharray:2 5;stroke-linecap:round}.quests-legend{display:flex;flex-wrap:wrap;gap:20px;margin-bottom:16px}.quests-legend span{display:flex;gap:8px;align-items:center}.quests-legend i{width:22px;border-top:3px solid #c7b2ff}.quests-legend .self i{border-color:#91f4d2;border-top-style:dashed}.quests-legend .others i{border-color:#ffdb94;border-top-style:dotted}.quests-chart-dates{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));direction:ltr;gap:4px;text-align:center;font-size:.875rem;color:var(--quest-secondary);overflow-wrap:anywhere}.cbid-quests details{margin-block:20px}.cbid-quests summary{cursor:pointer;min-height:48px;font-size:1rem}.quests-table-wrap{overflow:auto}.cbid-quests table{width:100%;border-collapse:collapse;min-width:520px}.cbid-quests th,.cbid-quests td{padding:12px;text-align:start;border-bottom:1px solid #59637a;font-size:1rem;color:var(--quest-fg);font-variant-numeric:tabular-nums}.cbid-quests th{background:#20283e}
@media(max-width:600px){.quests-amounts{grid-template-columns:1fr}.quests-share-url input{flex-basis:100%}.quests-share-url button{flex:1}.quests-chart-dates{font-size:.875rem}.cbid-quests{padding:16px}.cbid-quests h1{overflow-wrap:anywhere}}

.cbid-quests .cbid-checkin a{color:#164d65}.cbid-quests .cbid-checkin button{background:#eee8fb;color:#332348}.cbid-quests .cbid-checkin button:disabled{background:#e6e8eb;color:#394654}

/* Quests keeps check-in and earnings distinct, without a nested dark frame. */
.quests-hub .cbid-quests{background:transparent;border:0;border-radius:0;padding:0;margin:0;color:#172c3b;--quest-fg:#172c3b;--quest-secondary:#46556b}
.quests-hub .cbid-quests>.cbid-checkin{margin-block:0 28px}
.quests-hub .quests-fellows{margin-block:0 24px;border-block:0;border-bottom:1px solid #cbd2df;padding-block:0 20px}
.quests-hub .cbid-quests a{color:#513077}
.quests-hub .cbid-quests .quests-plus{background:#eee8fb;color:#332348;border-color:#9986b4}
.quests-hub .quests-amount{background:#f3f0fa}
.quests-hub .quests-chart .total{stroke:#6844a0}.quests-hub .quests-chart .self{stroke:#146651}.quests-hub .quests-chart .others{stroke:#936615}
.quests-hub .quests-legend i{border-color:#6844a0}.quests-hub .quests-legend .self i{border-color:#146651}.quests-hub .quests-legend .others i{border-color:#936615}
.quests-hub .quests-grid{stroke:#b6bfcd}.quests-hub .cbid-quests th{background:#f3f0fa}
/* Reuse the native AdRolling-derived carousel control and measured edge logic.
   Adapter: check-in li tiles,132px minimum and dedicated44px arrow gutters. */
.cbid-checkin .checkin-carousel{position:relative;min-width:0;width:100%;padding-inline:52px;margin-block:24px}
.cbid-checkin .checkin-days{--checkin-columns:1;display:grid;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:calc((100% - (var(--checkin-columns) - 1)*12px)/var(--checkin-columns));gap:12px;max-width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;margin:0;padding:2px 0 8px}
.cbid-checkin .checkin-days>li{scroll-snap-align:start;min-height:180px}
.cbid-checkin .checkin-carousel-control,.cbid-quests .cbid-checkin .checkin-carousel-control{position:absolute;z-index:5;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:1px solid #b9cbc3;border-radius:50%;color:#176ebd;background:#fff;box-shadow:0 2px 8px #08212a26;cursor:pointer}
.cbid-checkin .checkin-carousel-previous{inset-inline-start:0}.cbid-checkin .checkin-carousel-next{inset-inline-end:0}
.cbid-checkin .checkin-carousel-control svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cbid-checkin .checkin-carousel-control:dir(rtl) svg{transform:rotate(180deg)}
.cbid-checkin .checkin-carousel-control[hidden]{display:none}
.cbid-checkin .checkin-rule-intro{margin:0 0 16px}.cbid-checkin .checkin-rule-intro summary{min-height:48px;cursor:pointer}.cbid-checkin .checkin-rule-intro h2{display:inline;margin:0;font-size:1.5rem;line-height:1.4;font-weight:600}
.cbid-checkin .checkin-claim-error{margin-block:12px 0;padding:12px 16px;border:1px solid #924020;border-radius:10px;background:#fff4ec;color:#692808;font-size:1rem;line-height:1.6;overflow-wrap:anywhere}
/* Inline sharing inherits the light Quest/Ranks surface, including controls. */
.quests-hub .cbid-quests button,.quests-hub .cbid-quests input{background:#f5f3fa;color:#172c3b;border-color:#91899e}
.quests-hub .cbid-quests :focus-visible{outline-color:#694ca1}
