/* AI Workbench RC65: brand-wide visual layer. Design only; no API or entitlement logic. */
:root{
  --aiw-ocean:#064d51;--aiw-teal:#087b78;--aiw-fresh:#17a69a;--aiw-mist:#e5f8f3;
  --aiw-seaglass:#d5f0e8;--aiw-leaf:#338c70;--aiw-gold:#c69f4b;--aiw-cream:#fffdf7;
  --aiw-ink:#173a40;--aiw-stroke:#bdded6;
  --primary-teal:#075e60;--teal-hover:#06474b;--teal-light:#e5f8f3;
  --accent-sage:#33a28d;--canvas-bg:#f6fbf8;--gold-accent:#c69f4b;
  --card-surface:#fffefa;--border-subtle:#d5e7e2;
  --shadow:0 12px 35px rgba(7,78,77,.09);
}
html{scroll-behavior:smooth}
body{background-color:var(--aiw-cream);color:var(--aiw-ink)}
::selection{background:#b9e9df;color:#0c4c4d}
button,a,input,select,textarea{accent-color:var(--aiw-teal)}
:is(button,a,input,select,textarea):focus-visible{outline:3px solid var(--aiw-fresh)!important;outline-offset:3px}
/* Premium controls: keep existing click handlers, labels, destinations and dimensions. */
:is(.primary,.btn-primary,.button-primary,.btn.dark,button[type=submit]){
 background:linear-gradient(120deg,#075255,#087c76 72%,#17a995)!important;color:#fff!important;
 border:1px solid rgba(190,156,68,.42)!important;border-radius:13px!important;
 box-shadow:0 6px 17px rgba(5,82,80,.17);transition:transform .18s ease,box-shadow .18s ease,filter .18s ease
}
:is(.primary,.btn-primary,.button-primary,.btn.dark,button[type=submit]):not(:disabled):hover{
 transform:translateY(-2px);filter:brightness(1.04);box-shadow:0 11px 25px rgba(5,82,80,.22)
}
:is(.secondary,.btn.light){border-color:#b5dcd1!important;background:#fafffd!important;color:#086763!important;border-radius:12px!important}
/* Preserve desk/file layout; improve surfaces without rearranging working forms. */
:is(.card,.resource-card,.resource-tile,.desk-card,.template-card,.work-card,.workflow-card,.ui-card,.feature-card,.stat,.stats-card,.panel,.desk-start-panel){
 border-radius:19px!important;border-color:#d2e7df!important;
 box-shadow:0 9px 27px rgba(13,87,82,.075)!important;
 transition:box-shadow .2s ease,transform .2s ease,border-color .2s ease
}
:is(.card,.resource-card,.resource-tile,.desk-card,.template-card,.work-card,.workflow-card,.feature-card):hover{
 transform:translateY(-3px);border-color:#96cdbf!important;box-shadow:0 17px 35px rgba(7,88,80,.14)!important
}
:is(.tag,.pill,.chip,.badge){border-radius:99px}
/* The Workbench itself: lighter teal, accessible contrast, never hide the staging banner. */
.sidebar{background:linear-gradient(180deg,#064d50,#087570 65%,#0c625e)!important}
.sidebar .brandmark{background:linear-gradient(140deg,#10a899,#075b5f)!important;box-shadow:0 2px 0 #d4b568 inset}
.sidebar nav button:hover,.sidebar nav a:hover{background:#ffffff1e!important}
.sidebar nav [aria-current=page]{background:#e0f8ed!important;color:#064c50!important}
.app>header,.site-head{background:rgba(255,254,250,.96)!important;border-bottom:1px solid #cde5da!important}
.review-banner{background:#e6f8f1!important;color:#085953!important}
#main{background:radial-gradient(circle at 90% 0%,rgba(184,236,219,.19),transparent 45%),var(--aiw-cream)}
#main .hero{border:1px solid #a8ded0!important;box-shadow:0 17px 35px #094f4c19!important;
 background:linear-gradient(115deg,#0a5556 0%,#0b7e76 54%,#41a897 100%)!important}
#main .hero .eyebrow{color:#d1f8ed!important}
#main :is(.resource-thumbnail,.card-media,.tool-preview){border-radius:14px;overflow:hidden}
/* Site-level pages, resource center and creator studio. Avoid touching hidden panels or workflows. */
body:not(:has(.sidebar)) :is(.hero,.feature-hero,.banner,.showcase){border-radius:22px}
body:not(:has(.sidebar)) :is(.resource-card,.template-card,.feature-card){background:linear-gradient(155deg,#fffefa,#f4fbf7)!important}
body:not(:has(.sidebar)) :is(h1,h2,h3){color:var(--aiw-ink)}
body:not(:has(.sidebar)) :is(.section-label,.eyebrow,.kicker){color:#087e77}
/* RC64 library - distinct editorial treatment for all 220 cards. */
body.aiw-library-rc65{background:radial-gradient(ellipse at 10% 12%,#d3f0e6 0%,transparent 33%),linear-gradient(180deg,#fffefa 0%,#f1fbf6 90%)}
body.aiw-library-rc65 main{max-width:1450px;padding-top:20px}
body.aiw-library-rc65 .site-head{position:sticky;top:0;z-index:20;backdrop-filter:blur(16px)}
body.aiw-library-rc65 .sparkle{background:linear-gradient(140deg,#087c75,#075055)!important;border-radius:13px!important;border:1px solid var(--aiw-gold)}
body.aiw-library-rc65 .site-head nav a:hover{color:#087c75;text-decoration:underline;text-underline-offset:6px}
body.aiw-library-rc65 .hero{grid-template-columns:minmax(0,1.15fr) minmax(325px,.85fr);gap:0;overflow:hidden;
 border:1px solid #c6e6d8;box-shadow:0 16px 40px rgba(5,80,75,.12)!important;
 background:linear-gradient(115deg,#fffefa 0%,#f0faf5 55%,#d8f3e8 100%);border-radius:27px;margin:0 0 38px}
body.aiw-library-rc65 .hero>div{border:0;box-shadow:none;background:transparent;border-radius:0;padding:clamp(22px,3vw,46px)}
body.aiw-library-rc65 .hero>div:first-child{z-index:1;position:relative}
body.aiw-library-rc65 .hero>div:first-child:after{content:'';position:absolute;left:-20px;bottom:-70px;
 width:125%;height:92px;background:linear-gradient(90deg,rgba(29,162,144,.15),rgba(233,195,113,.12));border-radius:80% 80% 0 0;pointer-events:none}
body.aiw-library-rc65 .hero h1{font-size:clamp(34px,3.6vw,58px);color:#103d42;letter-spacing:-.035em}
body.aiw-library-rc65 .hero h1 em{color:#078579;font-style:italic}
body.aiw-library-rc65 .hero .hero-panel{background:linear-gradient(90deg,rgba(8,92,88,.23),rgba(5,80,76,.02)),url('/rc65-assets/hero-team.webp') center 32%/cover no-repeat;
 display:flex;flex-direction:column;justify-content:space-between;min-height:380px;padding:22px!important}
body.aiw-library-rc65 .hero-panel .number{width:min(250px,100%);background:linear-gradient(142deg,#075b5b,#09877e);
 border:1px solid #e0b75e;border-radius:23px;padding:17px 22px;color:#fff;box-shadow:0 16px 34px #092b2c45}
body.aiw-library-rc65 .hero-panel .number b{font-size:clamp(45px,4vw,70px);color:#fff;line-height:1}
body.aiw-library-rc65 .hero-panel .number span{color:#e9fff5}
body.aiw-library-rc65 .hero-panel .facts{margin:0;align-self:end;background:#064e51de;color:white;
 padding:12px 18px;border:1px solid #c4a151;border-radius:16px;gap:4px;backdrop-filter:blur(6px)}
body.aiw-library-rc65 .hero-panel .facts span{color:#f2fdf5;padding:0;border:0}
body.aiw-library-rc65 .hero-panel>p{display:none}
body.aiw-library-rc65 .controls{padding:0 8px}
body.aiw-library-rc65 .filters{gap:10px;margin:14px 0 19px}
body.aiw-library-rc65 .filters button{border-color:#b1d7c9;background:rgba(255,255,255,.87);padding:11px 15px;
 border-radius:30px;color:#095b5c;box-shadow:0 2px 5px #0b64500b}
body.aiw-library-rc65 .filters button:hover{background:#e4f9ef;border-color:#29a896}
body.aiw-library-rc65 .filters button[aria-pressed=true]{background:linear-gradient(110deg,#06575a,#078c80);color:white;border-color:#0b7472;box-shadow:0 5px 12px #09665d36}
body.aiw-library-rc65 #search{border:1px solid #a1cfc1;border-radius:15px;min-height:48px;background:#fff}
body.aiw-library-rc65 .grid{grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:18px}
body.aiw-library-rc65 .card{position:relative;min-height:340px;padding:0 0 18px;gap:8px;
 overflow:hidden;border-radius:22px!important;background:linear-gradient(180deg,#fff,#fbfffb)!important;
 box-shadow:0 9px 22px #0e655d14!important}
body.aiw-library-rc65 .card:hover{box-shadow:0 22px 40px #0e655d2d!important}
body.aiw-library-rc65 .card header{position:absolute;z-index:2;top:14px;left:14px;right:14px;pointer-events:none}
body.aiw-library-rc65 .card header small{display:none}
body.aiw-library-rc65 .tag{box-shadow:0 3px 14px #073f3650;border:1px solid #cce9df;
 background:#f1fffb;color:#076458;padding:6px 10px}
body.aiw-library-rc65 .rc65-photo{display:block;margin:0 0 4px;aspect-ratio:1.82;overflow:hidden;position:relative;
 border-bottom:3px solid #f3cb73;background:linear-gradient(145deg,#b7e6d7,#d9f6eb)}
body.aiw-library-rc65 .rc65-photo:after{content:'';position:absolute;pointer-events:none;
 bottom:-2px;left:-15px;right:-15px;height:21px;background:#fffefa;border-radius:80% 40% 0 0}
body.aiw-library-rc65 .rc65-photo img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .32s ease}
body.aiw-library-rc65 .card:hover .rc65-photo img{transform:scale(1.05)}
body.aiw-library-rc65 .card h3{padding:0 16px;font-size:clamp(17px,1.3vw,21px);line-height:1.24;min-height:0;margin:4px 0 1px}
body.aiw-library-rc65 .card>p{padding:0 16px;color:#5d7d7a;font-size:12px;margin:0}
body.aiw-library-rc65 .card .rc65-description{font-size:12px;line-height:1.5;color:#365a59;min-height:35px}
body.aiw-library-rc65 .card .actions{padding:7px 16px 0;display:grid;grid-template-columns:1fr auto;align-items:center}
body.aiw-library-rc65 .card .actions a{border-radius:12px;background:linear-gradient(120deg,#075457,#08877b)!important;
 border:1px solid #c5a153;min-height:43px;box-shadow:0 4px 10px #094c4730;font-size:12px}
body.aiw-library-rc65 .card .actions a:hover{filter:brightness(1.08)}
body.aiw-library-rc65 .card .actions small{font-weight:650;color:#567b76}
body.aiw-library-rc65 footer{background:#f8fffb;color:#426b67}
@media(min-width:1300px){body.aiw-library-rc65 main{padding-left:28px;padding-right:28px}}
@media(max-width:900px){body.aiw-library-rc65 .hero{grid-template-columns:1fr}body.aiw-library-rc65 .hero .hero-panel{min-height:290px}}
@media(max-width:600px){body.aiw-library-rc65 .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body.aiw-library-rc65 .card{min-height:320px}body.aiw-library-rc65 .card .actions{grid-template-columns:1fr;gap:5px}
 body.aiw-library-rc65 .card .actions small{font-size:10px}body.aiw-library-rc65 .hero h1{font-size:36px}}
@media(max-width:405px){body.aiw-library-rc65 .grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Individual desk cards get editorial photo accents without changing their click targets. */
.desks-grid > .card:not(:has(img))::before,
.resource-grid > .resource-card:not(:has(img)):not(:has(.resource-thumbnail))::before{
 content:"";display:block;height:104px;margin:0 0 14px;border-radius:13px;
 background:linear-gradient(0deg,rgba(4,82,79,.08),rgba(5,116,103,.0)),url('/rc65-assets/editorial-01.webp') center/cover no-repeat;
 border-bottom:2px solid #d9b769
}
.desks-grid > .card:nth-child(5n + 2)::before,.resource-grid > .resource-card:nth-child(5n + 2)::before{background-image:url('/rc65-assets/editorial-12.webp')}
.desks-grid > .card:nth-child(5n + 3)::before,.resource-grid > .resource-card:nth-child(5n + 3)::before{background-image:url('/rc65-assets/editorial-18.webp')}
.desks-grid > .card:nth-child(5n + 4)::before,.resource-grid > .resource-card:nth-child(5n + 4)::before{background-image:url('/rc65-assets/editorial-04.webp')}
.desks-grid > .card:nth-child(5n + 5)::before,.resource-grid > .resource-card:nth-child(5n + 5)::before{background-image:url('/rc65-assets/editorial-20.webp')}
