/* Rebus visual layer. Load AFTER the current Rebus layout and native adapters.
   Layout baseline: production public CSS captured 16 November 2026.
   Only .rebus-theme is affected. Keep backend forms, names and actions intact. */
.rebus-theme{--ink:#45294e;--muted:#746875;--purple:#704177;--violet:#63376b;--yellow:#e76c18;--paper:#fffaf1;--line:#e8dccd;--radius:22px;--shadow:0 12px 35px #57352709;color:var(--ink);background:var(--paper);font-family:Arial,Helvetica,sans-serif}
.rebus-theme .primary,.rebus-theme .btn.yellow{background:#c94e08;color:#fff;box-shadow:0 4px 0 #a63d0712}
.rebus-theme .secondary,.rebus-theme .btn.participant-code{background:#704177;color:#fff}
.rebus-theme .primary:hover,.rebus-theme .btn.yellow:hover{background:#af4003}
.rebus-theme .secondary:hover{background:#5d3265}
.rebus-theme .btn:focus-visible,.rebus-theme a:focus-visible,.rebus-theme input:focus-visible,.rebus-theme select:focus-visible{outline:3px solid #78457d;outline-offset:3px}
.rebus-theme .btn{transition:transform .18s,box-shadow .18s,background .18s}
.rebus-theme .btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 16px #6b3a2519}
.rebus-theme .btn:active{transform:translateY(1px)}
.rebus-theme .previewbar{background:#eee5d7;color:#5c3c57}
.rebus-theme .previewbar button{background:#fff9ed}
.rebus-theme .header{border-bottom:1px solid #ebdfcd}
.rebus-theme .brand img{width:190px;height:63px;object-fit:contain}
.rebus-theme .brand{width:190px}
.rebus-theme .hero{background:linear-gradient(105deg,#fff4dc 0%,#fff8e9 54%,#f1eed8 100%);color:var(--ink);border:1px solid #efdfc3;overflow:hidden}
.rebus-theme .hero h1,.rebus-theme .hero h1 em{color:var(--ink)}
.rebus-theme .hero h1 em{color:#b94a10}
.rebus-theme .hero .eyebrow{color:#6c4a70}
.rebus-theme .hero p,.rebus-theme .hero-tags{color:#6c5a62}
.rebus-theme .hero-tags span:before{color:#517446}
.rebus-theme .hero .stars{display:none}
.rebus-theme .hero-art{margin:-24px -12px -28px 0;position:relative;aspect-ratio:1.18;min-width:0;display:block;align-self:center}
.rebus-theme .hero-art img{animation:none;filter:none}
.rebus-theme .floating-note{background:#fffaf0e6;border:1px solid #e3d2b8;color:#6a4e63;font-weight:700;bottom:18px;right:18px;font-size:12px;animation:none}
.rebus-theme .dates{background:#fffdf7;border-color:var(--line)}
.rebus-theme .pale{background:#f5efdf}
.rebus-theme .feature-card,.rebus-theme .award-card,.rebus-theme .source-panel,.rebus-theme .public-card,.rebus-theme .question-card,.rebus-theme .q-nav{border-color:var(--line);box-shadow:var(--shadow)}
.rebus-theme .award-art,.rebus-theme .award-info-art,.rebus-theme .award-info-art.illustrated{background:#f8f1e2;border-radius:17px}
.rebus-theme .award-art img{object-fit:contain;max-height:225px}
.rebus-theme .award-art:after,.rebus-theme .award-art:before{display:none}
.rebus-theme .award-art img.real-diploma,.rebus-theme .award-art img.real-letter{width:100%;height:100%;max-width:none;transform:none}
.rebus-theme .share-panel,.rebus-theme .subscribe-panel,.rebus-theme .source-contest,.rebus-theme .muted-panel,.rebus-theme .awards-intro{background:#f8f0e1;border-color:var(--line)}
.rebus-theme .account-rail{background:#f4e9dc;border-color:#e6d9c7}
.rebus-theme .account-rail nav a[aria-current]{background:#704177}
.rebus-theme .rail-brand img{max-height:80px;object-fit:contain}
.rebus-theme .public-heading{background:#f6ecdb;border-color:var(--line)}
.rebus-theme .public-heading-star{color:#c46c24}
.rebus-theme .public-sidebar{background:#fbf4e9;border-color:var(--line)}
.rebus-theme .public-sidebar nav a[aria-current]{background:#704177;color:#fff}
.rebus-theme .public-help{background:#efe3d2}
.rebus-theme .public-kicker,.rebus-theme .public-more,.rebus-theme .public-date{color:#75467a}
.rebus-theme .public-contact-grid article{background:#fffdf7;border-color:var(--line)}
.rebus-theme .public-prose .limit{width:auto;max-width:100%;padding:0}
.rebus-theme .public-prose .sub_label{display:none}
.rebus-theme .public-prose .text_title{font-weight:700;font-size:20px;margin-top:20px}
.rebus-theme .public-prose .album{margin:16px 0}
.rebus-theme .public-prose .photo_inner{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.rebus-theme .public-prose .photo_item img{border-radius:12px;max-height:440px;object-fit:contain}
.rebus-theme .public-card img{object-fit:contain;background:#f7f1e6}
.rebus-theme .awards-info{padding-top:24px}
.rebus-theme .awards-info-panel{display:flex;gap:18px;align-items:center;border:1px solid var(--line);background:#fffdf7;border-radius:18px;padding:20px 24px}
.rebus-theme .awards-info-panel h2{font-size:23px;letter-spacing:-.5px;margin-bottom:7px}
.rebus-theme .awards-info-panel .eyebrow{margin-bottom:6px}
.rebus-theme .awards-info-panel p{font-size:14px;color:var(--muted)}
.rebus-theme .awards-info-panel .btn{flex-shrink:0;margin-left:auto}
.rebus-theme .cta{background:#6d4175;color:white}
.rebus-theme .cta p{color:#f3e7ef}
.rebus-theme .cta-art{background:#f1e4c8}
.rebus-theme .cta-art img{object-fit:contain}
.rebus-theme .home-footer{background:#f4eddf;border-color:var(--line);color:#4f3b52}
.rebus-theme .footer-logo{max-width:210px;height:auto;margin-bottom:8px}
.rebus-theme .newsletter-form input,.rebus-theme input,.rebus-theme select{border-color:#ddcdbd}
.rebus-theme dialog{background:#fffaf2;color:var(--ink);border-color:var(--line)}
.rebus-theme dialog::backdrop{background:#35243c88;backdrop-filter:blur(4px)}
.rebus-theme .q-buttons .active{background:#704177;color:white}
.rebus-theme .q-buttons .done{background:#e3efda;color:#375c31;border-color:#95b082}
.rebus-theme .answer-option:has(input:checked){background:#f2e6f2;border-color:#704177}
.rebus-theme .answer-option input{accent-color:#704177}
.rebus-theme .task-illustration{background:#f6eddc;color:#704177}
.rebus-theme .notice,.rebus-theme .preview-notice{background:#f2e9da;border-color:#ddcdb8;color:#6c5a53}
.rebus-theme .source-account:not(.test-account){width:calc(100% - 24px);max-width:1440px;grid-template-columns:240px minmax(0,1fr);gap:28px}
.rebus-theme .account-work{min-width:0}
.rebus-theme .source-panel .actions{flex-wrap:wrap}
.rebus-theme .rb-poster-offer{display:flex;align-items:center;gap:20px;background:#f6eddd;border:1px solid #e5d5be;border-radius:18px;padding:20px;margin:18px 0}
.rebus-theme .rb-poster-offer img{width:92px;max-height:110px;object-fit:contain}
.rebus-theme .rb-poster-offer h3{font-size:20px;margin-bottom:5px}
.rebus-theme .rb-poster-offer p{font-size:14px;color:var(--muted);margin-bottom:10px}
.rebus-theme .rb-poster-offer .btn{min-height:44px}
.rebus-theme dialog.rb-poster-dialog{width:960px;max-width:calc(100vw - 24px)}
.rebus-theme .rb-poster-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,1fr);gap:26px;align-items:start}
.rebus-theme .rb-poster-preview{background:#e9dece;border-radius:14px;padding:12px;position:sticky;top:0}
.rebus-theme .rb-poster-preview canvas{display:block;width:100%;height:auto;border-radius:6px}
.rebus-theme .rb-poster-fields{display:grid;gap:12px;min-width:0}
.rebus-theme .rb-poster-fields label{display:grid;gap:6px;font-size:14px;font-weight:700}
.rebus-theme .rb-poster-fields input,.rebus-theme .rb-poster-fields select{min-height:46px;width:100%;border:1px solid #ddcdbd;border-radius:10px;padding:10px 12px;background:white;color:var(--ink)}
.rebus-theme .rb-poster-fields input[type=file]{font-size:13px;padding:10px 5px}
.rebus-theme .rb-poster-fields small{font-size:12px;color:var(--muted);font-weight:400}
.rebus-theme .rb-poster-fields .actions .btn{flex:1}
.rebus-theme .rb-poster-status{min-height:20px;font-size:13px;color:#5e6d42}
.rebus-theme .rb-module-catalog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:18px}
.rebus-theme .rb-module-catalog article{background:#fffdf9;border:1px solid var(--line);border-radius:18px;padding:20px}
.rebus-theme .rb-module-catalog img{height:160px;width:100%;object-fit:contain;margin-bottom:12px}
.rebus-theme .rb-module-catalog p{font-size:14px;margin:10px 0 14px}
.rebus-theme .rb-crosspromo{border:1px solid var(--line);border-radius:18px;background:#f6eddd;padding:16px;margin-top:20px}
.rebus-theme .rb-crosspromo summary{font-weight:700;cursor:pointer;min-height:28px}
.rebus-theme .rb-crosspromo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.rebus-theme .rb-crosspromo-grid a{padding:18px;background:#fff9ee;border-radius:14px;font-size:14px}
.rebus-theme .rb-crosspromo-grid strong{display:block;font-size:19px;margin-bottom:8px}
.rebus-theme .rb-review-source{font-size:12px;color:var(--muted)}
.rebus-theme .public-grid-reviews .public-card-link{display:block;height:auto}
.rebus-theme .public-grid-reviews .public-card-copy p{white-space:pre-line}
.rebus-theme [hidden]{display:none!important}
@media(min-width:1001px){.rebus-theme .hero-art{max-height:390px}.rebus-theme .hero-copy{align-self:center}}
@media(max-width:1000px) and (min-width:701px){.rebus-theme .source-account:not(.test-account){grid-template-columns:200px minmax(0,1fr);gap:18px}.rebus-theme .account-rail{display:block}.rebus-theme .account-rail nav{display:grid}.rebus-theme .account-rail nav a{white-space:normal}}
@media(max-width:850px){.rebus-theme .awards-info-panel{flex-wrap:wrap}.rebus-theme .awards-info-panel>div{flex:1;min-width:180px}.rebus-theme .awards-info-panel>.btn{margin-left:0}.rebus-theme .rb-module-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.rebus-theme .source-account:not(.test-account){display:block;width:100%;padding:12px}.rebus-theme .account-rail{margin-bottom:14px}.rebus-theme .account-rail nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.rebus-theme .account-rail nav a{min-width:0;white-space:normal}.rebus-theme .source-account h1{font-size:26px}.rebus-theme .rb-poster-editor{grid-template-columns:1fr}.rebus-theme .rb-poster-preview{max-width:300px;width:100%;margin:auto;position:static}.rebus-theme .rb-poster-offer{padding:16px;gap:12px}.rebus-theme .rb-poster-offer img{width:70px}.rebus-theme .rb-crosspromo-grid{grid-template-columns:1fr}.rebus-theme .rb-poster-dialog h2{font-size:25px;letter-spacing:-.5px}}
@media(max-width:600px){.rebus-theme .brand,.rebus-theme .brand img{width:154px;height:auto}.rebus-theme .hero-art{width:100%;max-width:360px;aspect-ratio:1.32;margin:8px auto 0}.rebus-theme .hero h1{font-size:35px}.rebus-theme .floating-note{bottom:6px;right:0;font-size:10px;padding:8px 12px}.rebus-theme .rb-module-catalog{grid-template-columns:1fr}.rebus-theme .awards-info-panel{padding:16px}.rebus-theme .awards-info-panel>img{width:48px}.rebus-theme .awards-info-panel h2{font-size:21px}.rebus-theme .public-prose .photo_inner{grid-template-columns:1fr}}
@media(max-width:360px){.rebus-theme .brand,.rebus-theme .brand img{width:135px}.rebus-theme .header{gap:8px;padding-left:12px;padding-right:12px}.rebus-theme .header .btn.small{font-size:11px;padding:10px}.rebus-theme .hero h1{font-size:32px}}
@media(prefers-reduced-motion:reduce){.rebus-theme *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Approved lightweight owl and 7-piece tangram */
.rebus-theme .rb-art-paper{position:absolute;inset:0 0 5% 4%;background:radial-gradient(ellipse at 35% 45%,#f9e7bb,#ede9cb 72%);border-radius:43% 16% 32% 10%;transform:rotate(-3deg);opacity:.8}
.rebus-theme .rb-owl{position:absolute;width:88%;padding:0;border:0;background:transparent;left:-4%;bottom:5%;transform-origin:50% 85%;-webkit-tap-highlight-color:transparent}
.rebus-theme .rb-owl>img{width:100%;height:auto;display:block;filter:drop-shadow(0 5px 3px #68503c13)}
.rebus-theme .rb-eye{position:absolute;border-radius:50%;overflow:hidden;pointer-events:none}
.rebus-theme .rb-eye-left{left:31.7%;top:21.9%;width:17.9%;height:15.6%;transform:rotate(-19deg)}
.rebus-theme .rb-eye-right{left:53.8%;top:13.8%;width:13.8%;height:15%;transform:rotate(-20deg)}
.rebus-theme .rb-lid{position:absolute;inset:-1px;background:linear-gradient(155deg,#f6d3a0,#f5c381 75%,#de9e51);transform:translateY(-105%);border-radius:50%;will-change:transform}
.rebus-theme .rb-lid:after{content:"";position:absolute;left:14%;right:14%;top:44%;height:16%;border-bottom:2px solid #58391f;border-radius:50%;transform:rotate(-3deg)}
.rebus-theme .rb-owl.rb-blinking .rb-lid{animation:rb-blink .3s ease-in-out both}
@keyframes rb-blink{0%,100%{transform:translateY(-105%)}40%,58%{transform:translateY(0)}}
.rebus-theme .rb-leaf{position:absolute;width:17%;height:6%;border-radius:95% 5% 95% 5%;background:linear-gradient(30deg,#8d9a56,#c3cb8a);right:4%;top:6%;transform:rotate(-10deg);opacity:.8}
.rebus-theme .rb-leaf-two{right:8%;top:13%;transform:rotate(38deg);width:12%;height:5%}
.rebus-theme .rb-leaf-three{right:15%;top:4%;transform:rotate(-30deg);width:12%;height:5%}
.rebus-theme .rb-tangram{position:absolute;right:1%;bottom:5%;width:40%;aspect-ratio:1/1.1;border:0;padding:0;background:transparent;transform:perspective(550px) rotateY(-18deg) rotateX(8deg) rotateZ(-12deg);transform-origin:52% 70%;filter:drop-shadow(5px 8px 3px #79553430);-webkit-tap-highlight-color:transparent}
.rebus-theme .rb-piece{position:absolute;inset:0;display:block;transform-origin:center;will-change:transform;pointer-events:none}
.rebus-theme .rb-piece-one{background:linear-gradient(125deg,#f18a23,#d96513);clip-path:polygon(10% 20%,39% 6%,39% 23%);--rb-dx:-55px;--rb-dy:-30px;--rb-rot:-26deg}
.rebus-theme .rb-piece-two{background:linear-gradient(125deg,#ffca44,#ed9d1b);clip-path:polygon(40% 6%,58% 22%,40% 23%);--rb-dx:35px;--rb-dy:-45px;--rb-rot:35deg}
.rebus-theme .rb-piece-three{background:linear-gradient(125deg,#ffe073,#efbb28);clip-path:polygon(40% 24%,58% 23%,58% 61%,40% 43%);--rb-dx:-35px;--rb-dy:32px;--rb-rot:-35deg}
.rebus-theme .rb-piece-four{background:linear-gradient(125deg,#c088b1,#8b4c88);clip-path:polygon(59% 43%,97% 43%,59% 78%);--rb-dx:45px;--rb-dy:-10px;--rb-rot:40deg}
.rebus-theme .rb-piece-five{background:linear-gradient(125deg,#b4c379,#849458);clip-path:polygon(39% 44%,57% 62%,39% 79%);--rb-dx:-45px;--rb-dy:30px;--rb-rot:28deg}
.rebus-theme .rb-piece-six{background:linear-gradient(125deg,#ffcf43,#edaa1a);clip-path:polygon(40% 80%,58% 63%,87% 91%);--rb-dx:38px;--rb-dy:45px;--rb-rot:-28deg}
.rebus-theme .rb-piece-seven{background:linear-gradient(125deg,#e58928,#be561b);clip-path:polygon(40% 81%,58% 86%,58% 97%,40% 97%);--rb-dx:-20px;--rb-dy:46px;--rb-rot:34deg}
/* Final fit for the approved owl: keep the whole head within the Rebus hero. */
.rebus-theme .hero-art .rb-owl{width:76%;left:3%;bottom:4%}
.rebus-theme .share-tools>small:last-child{display:block;margin-top:7px}
.rebus-theme .contest-docs,.rebus-theme .contest-action{background:#f7f0e6}
.rebus-theme .contest-action .btn.primary{background:#c94e08;color:white}
@media(max-width:600px){.rebus-theme .hero-art .rb-owl{width:74%;left:2%;bottom:0}}
.rebus-theme .rb-brand-mark{position:relative;display:block;width:100%;max-width:220px;aspect-ratio:640/213;line-height:0}
.rebus-theme .rb-brand-mark>img{display:block!important;width:100%!important;height:auto!important;max-height:none!important;margin:0!important;aspect-ratio:640/213;object-fit:contain}
.rebus-theme .rail-brand .rb-brand-mark{max-width:180px;margin:auto}
.rebus-theme .rb-brand-eye{position:absolute;overflow:hidden;border-radius:50%;pointer-events:none}
.rebus-theme .rb-brand-eye-left{left:14.1%;top:35.8%;width:9.1%;height:24.5%;transform:rotate(-19deg)}
.rebus-theme .rb-brand-eye-right{left:25.6%;top:24.2%;width:6.7%;height:21.8%;transform:rotate(-21deg)}
.rebus-theme .rb-brand-lid{position:absolute;inset:-1px;background:linear-gradient(145deg,#e9b879,#f5ca89 65%,#d39754);border-radius:50%;transform:translateY(-108%);animation:rb-logo-blink 3s infinite;animation-play-state:paused}
.rebus-theme .rb-brand-lid:after{content:"";position:absolute;left:12%;right:12%;top:47%;height:13%;border-bottom:1.2px solid #684326;border-radius:50%}
.rebus-theme .rb-logo-visible .rb-brand-lid{animation-play-state:running}
.rb-page-hidden .rebus-theme .rb-brand-lid,.rebus-theme.nomotion .rb-brand-lid{animation-play-state:paused}
@keyframes rb-logo-blink{0%,64%,76%,100%{transform:translateY(-108%)}68%,71%{transform:translateY(0)}}
@media(max-width:600px){.rebus-theme .footer-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.rebus-theme .footer-columns>div{min-width:0}.rebus-theme .footer-columns>div:first-child,.rebus-theme .footer-columns>div:last-child{grid-column:1/-1}.rebus-theme .footer-columns p,.rebus-theme .footer-columns a{overflow-wrap:break-word}.rebus-theme .footer-columns .rb-brand-mark{max-width:180px}}
/* Full-contrast homepage actions and paper illustration panels. */
.rebus-theme .homepage .textlink{background:#704177;color:#fff;border-radius:10px;padding:11px 14px;min-height:44px}
.rebus-theme .homepage .textlink:hover{background:#5d3265;transform:translateY(-2px)}
.rebus-theme .reward-picture{background:#f7efdf}
.rebus-theme .steps li{background:#fbf4e7;border-color:#e8dccd}
/* Dates must fit even the demo placeholders on a 320 px phone. */
.rebus-theme .dates>div{min-width:0}
@media(max-width:600px){.rebus-theme .dates{grid-template-columns:repeat(2,minmax(0,1fr))}.rebus-theme .dates strong{font-size:clamp(15px,4.8vw,19px);letter-spacing:-.4px}}
/* Narrow tablet navigation and the smallest phone columns. */
@media(max-width:1000px){.rebus-theme .header nav:not(.open){display:none}.rebus-theme .header-actions{margin-left:auto}.rebus-theme .menu-toggle{display:inline-grid}}
@media(max-width:600px){.rebus-theme .steps{grid-template-columns:repeat(2,minmax(0,1fr))}.rebus-theme .steps li{min-width:0}.rebus-theme .steps li p{overflow-wrap:break-word;hyphens:auto}.rebus-theme .homepage .textlink{max-width:100%;white-space:normal;overflow-wrap:break-word}.rebus-theme #about .section-head{align-items:stretch}}
@media(max-width:1000px){.rebus-theme .header{position:relative;z-index:20}.rebus-theme .header nav.open{position:absolute;left:18px;right:18px;top:100%;margin:0;display:block;background:#fffaf2;border:1px solid #e8dccd;border-radius:16px;padding:18px;box-shadow:0 12px 30px #45294e22;z-index:50}.rebus-theme .header nav.open .home-main-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.rebus-theme .header nav.open a,.rebus-theme .header nav.open summary{min-height:44px;display:flex;align-items:center}.rebus-theme .header nav.open .home-main-nav details>div{max-width:calc(100vw - 60px)}}
@media(max-width:600px){.rebus-theme #about .section-head{flex-direction:column;align-items:stretch}.rebus-theme #about .section-head .textlink{width:100%}}

/* Native template colors, kept after structural adapters. */
body.rebus-theme .hero .btn.yellow,body.rebus-theme .final-cta .btn.yellow{color:#fff}
body.rebus-theme .header .secondary{background:#704177;color:#fff}
body.rebus-theme .hero-description{color:#6c5a62}
body.rebus-theme .native-subscribe-form .btn{background:#c94e08;color:#fff}

body.rebus-theme.rebus-account .popup_cont .btn{background:#c94e08!important;color:#fff!important}
body.rebus-theme.rebus-account .popup_cont .steps_list .step_item.active{background:#704177;color:#fff}
body.rebus-theme.rebus-account .popup_cont{background:#fffaf1;color:#45294e}
body.rebus-theme.rebus-account .popup_cont .total-sum{background:#f4e9dc;border-color:#e8dccd}

/* Rebus request details always use the available width. Toggle owns display. */
body.rebus-account .contest-action .main_cont_note{width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box}
body.rebus-account .contest-action{background:#fff7e9;border-color:#e8dccd}
body.rebus-account .contest-action .progress_status tr:first-child td{background:#f2e4ce;color:#45294e}
body.rebus-account .contest-action .docs_item a{background:#f4e9dc;color:#704177}

body.rebus-account .popup_cont.start_contest{position:fixed!important;left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;margin:0!important;max-width:520px;width:calc(100vw - 24px);z-index:1010!important;text-align:center;background:#fffaf1}
body.rebus-account .popup_cont.start_contest .pop_title{margin:0 20px 18px;text-align:center;color:#45294e}
body.rebus-account .popup_cont.start_contest ._complete p{text-align:center;color:#655365}
body.rebus-account .popup_cont.start_contest .close{position:absolute;top:10px;right:12px;width:30px;height:30px;margin:0;padding:0;border:0;background:transparent;color:#704177;font-size:28px;line-height:30px;cursor:pointer;opacity:1}
body.rebus-account .popup_cont.start_contest .btn_close{background:#eee2ce!important;color:#45294e!important}
body.rebus-account .test-wrap{background:#fffaf1}
body.rebus-account .native-test-layout .btn,body.rebus-account .native-test-layout .timer{background:#704177;color:#fff}
body.rebus-account .native-test-layout .step{background:#eee2ce;color:#45294e}
body.rebus-account .native-test-layout .question-card{background:#fff}

body.rebus-account .popup_cont.start_contest ._complete{display:block;width:100%;max-width:none;margin:0;padding:0;text-align:center!important;float:none}
body.rebus-account .popup_cont.start_contest ._complete p{display:block;width:100%;max-width:none;box-sizing:border-box;margin:0 0 20px!important;padding:0!important;text-align:center!important;text-indent:0!important;float:none;white-space:normal}

body.rebus-theme .btn.yellow,body.rebus-theme .btn.primary{color:#fff!important;background:#c94e08}
body.rebus-theme .btn.secondary{color:#fff!important;background:#704177}
body.rebus-theme .review-story blockquote{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:8;overflow:hidden}
@media(max-width:600px){body.rebus-theme .hero h1{font-size:30px;line-height:1.16}}

/* Keep decorative eyelids in the same square as their own owl image. */
body.rebus-theme .hero-art .rb-owl{aspect-ratio:1/1;isolation:isolate}
body.rebus-theme .hero-art .rb-owl>img{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain}
body.rebus-theme .hero-art .rb-owl>.rb-eye{z-index:1;pointer-events:none}

/* Homepage palette overrides the inherited native adapters, including !important links. */
body.rebus-theme.rebus-public .homepage .section.pale{background:#f5efdf}
body.rebus-theme.rebus-public #stories .carousel-controls .iconbtn{background:#c94e08;border-color:#c94e08;color:#fff}
body.rebus-theme.rebus-public .homepage .award-card .textlink,
body.rebus-theme.rebus-public .homepage .story-grid .textlink{color:#a8430a!important;background:transparent!important}
body.rebus-theme.rebus-public .homepage .photo-open img{background:#f5efdf}
body.rebus-theme.rebus-public #subscribe .btn_cont .btn{background:#c94e08!important;color:#fff!important}
body.rebus-theme.rebus-public .final-cta{background:#f8f0e1;color:#45294e}
body.rebus-theme.rebus-public .final-cta p{color:#655365}
body.rebus-theme.rebus-public .final-cta .actions{gap:10px}
@media(max-width:600px){body.rebus-theme.rebus-public .final-cta .actions{display:flex;flex-wrap:wrap}body.rebus-theme.rebus-public .final-cta .actions .btn{flex:1 1 130px;min-width:0;padding:13px 12px;white-space:nowrap;font-size:14px}}

body.rebus-theme.rebus-public #stories{background:#f5efdf!important;background-image:none!important}

/* Small logo is static; footer and mobile call to action use the Rebus palette. */
body.rebus-theme .header .rb-brand-eye{display:none!important}
body.rebus-theme.rebus-public footer.home-footer{background:#f4eddf!important;background-image:none!important;border-color:#e8dccd;color:#4f3b52}
@media(max-width:600px){body.rebus-theme.rebus-public .final-cta h2{font-size:clamp(22px,6vw,28px);line-height:1.2;letter-spacing:-.6px}}

/* Cabinet canvas and native form buttons use the same Rebus palette. */
body.rebus-theme.rebus-account{background:#fffaf1;color:#45294e}
body.rebus-theme.rebus-account button,body.rebus-theme.rebus-account input[type=submit]{font-family:Arial,Helvetica,sans-serif}

/* Native code tables put their headings in the first tbody row. Mobile cards already label every value. */
@media(max-width:700px){body.rebus-theme.rebus-account .contest-action .progress_status tbody>tr:first-child{display:none!important}}
body.rebus-theme.rebus-account .contest-action .more a,
body.rebus-theme.rebus-account .contest-action .more a:visited,
body.rebus-theme.rebus-account .conditions.status .add_student span{color:#704177;border-color:#704177}

/* Long request explanations wrap as readable blocks instead of squeezing the edit action. */
@media(min-width:701px){
 body.rebus-theme.rebus-account .conditions.status .status_main{flex-wrap:wrap;align-items:center}
 body.rebus-theme.rebus-account .conditions.status .status_main>p:not(.add_student){flex:1 1 240px;min-width:0}
 body.rebus-theme.rebus-account .conditions.status .status_main>.add_student{flex:0 0 auto;min-width:136px;max-width:100%}
 body.rebus-theme.rebus-account .conditions.status .status_mark{width:auto;min-width:150px;max-width:100%}
}
/* Keep application steps in normal flow, including narrow phone screens. */
body.rebus-theme.rebus-account .request_teacher .steps_list{display:flex;gap:10px;justify-content:space-between;margin:20px 0 26px;padding:0}
body.rebus-theme.rebus-account .request_teacher .steps_list .step_item{display:flex;position:relative;flex:1 1 0;flex-direction:row;align-items:center;justify-content:center;gap:8px;min-width:0;width:auto;max-width:none;height:auto;padding:8px!important;border-radius:14px;background:#f2e6d4}
body.rebus-theme.rebus-account .request_teacher .steps_list .step_item:before,body.rebus-theme.rebus-account .request_teacher .steps_list .step_item:after{display:none;content:none}
body.rebus-theme.rebus-account .request_teacher .steps_list .step_item .circle{position:static;transform:none;display:flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;margin:0;background:#dcc8ae;color:#45294e}
body.rebus-theme.rebus-account .request_teacher .steps_list .step_item .circle span{position:static;transform:none;display:block;color:inherit;font-size:15px;line-height:1}
body.rebus-theme.rebus-account .request_teacher .steps_list .step_item p{position:static;transform:none;display:block;width:auto;margin:0;color:#45294e;font:600 13px/1.3 Arial,sans-serif;white-space:normal}
body.rebus-theme.rebus-account .request_teacher .steps_list .step_item.active{background:#704177}
body.rebus-theme.rebus-account .request_teacher .steps_list .step_item.active p{color:#fff}
body.rebus-theme.rebus-account .request_teacher .steps_list .step_item.active .circle{background:#e99b45;color:#45294e}
@media(max-width:480px){body.rebus-theme.rebus-account .request_teacher .steps_list{gap:6px}body.rebus-theme.rebus-account .request_teacher .steps_list .step_item{flex-direction:column;gap:5px}}
@media(max-width:370px){
body.rebus-theme.rebus-public .homepage .award-card{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:16px;text-align:center}
body.rebus-theme.rebus-public .homepage .award-card .reward-picture{width:150px;height:150px;align-self:center;margin:0}
body.rebus-theme.rebus-public .homepage .award-card h3,body.rebus-theme.rebus-public .homepage .award-card p{width:100%;align-self:stretch}
body.rebus-theme.rebus-public .homepage .award-card .textlink{align-self:stretch}
body.rebus-theme.rebus-public .homepage .steps,body.rebus-theme.rebus-public .homepage .benefits{grid-template-columns:minmax(0,1fr)}
body.rebus-theme.rebus-public .homepage .steps li:after{display:none}
}
@media(max-width:370px){
body.rebus-theme.rebus-public .header{padding:10px 12px;gap:8px}
body.rebus-theme.rebus-public .header .brand{flex:0 0 90px;min-width:0}
body.rebus-theme.rebus-public .header .brand img{width:90px;max-width:90px;height:auto}
body.rebus-theme.rebus-public .header .header-actions{display:flex;flex:1 1 auto;min-width:0;gap:6px}
body.rebus-theme.rebus-public .header .header-actions .btn{flex:1 1 auto;min-width:0;padding:10px 6px;font-size:11px}
body.rebus-theme.rebus-public .header .header-actions .menu-toggle{flex:0 0 44px;min-width:44px;width:44px;height:44px}
}
@media(min-width:371px) and (max-width:900px){
body.rebus-theme.rebus-public .header .header-actions{flex:0 0 auto;width:auto;gap:8px}
body.rebus-theme.rebus-public .header .header-actions .menu-toggle{flex:0 0 44px;min-width:44px;width:44px;height:44px}
}
body.rebus-theme.rebus-account .contest-action .progress_status tbody>tr:first-child>td{white-space:normal!important;word-break:normal;overflow-wrap:normal}

/* Full real award sheets and a compact organizer benefit label. */
body.rebus-theme .homepage .real-award-scene>img,body.rebus-theme .homepage .real-award-scene .award-image-link>img{object-fit:contain;opacity:1}
body.rebus-theme .rebus-organizer-badge{display:flex;align-items:center;justify-content:center;gap:6px;width:fit-content;max-width:100%;margin:10px auto 0;padding:6px 10px;border-radius:999px;background:#e4f0d3;border:1px solid #b0cb86;color:#315521;font:700 12px/1.3 Arial,sans-serif;text-align:center;box-sizing:border-box}
body.rebus-theme .rebus-organizer-badge>span{display:inline-flex;align-items:center;justify-content:center;flex:0 0 22px;width:22px;height:22px;border-radius:50%;background:#f6c85d;color:#604012;font-size:16px}
body.rebus-theme .award-info-card .rebus-organizer-badge{margin-left:0}
@media(max-width:760px){body.rebus-theme .rebus-organizer-badge{font-size:11px;padding:5px 8px;gap:5px}body.rebus-theme .homepage .rebus-organizer-badge{margin-left:0}}
@media(max-width:370px){body.rebus-theme .homepage .rebus-organizer-badge{margin-left:auto}}
