/* Approved Studio Spotlight: one continuous canvas behind the whole workspace. */
body.authoring{
  isolation:isolate;background:#bebebe;
  --authoring-surface-shadow:0 2px 6px #0000000b,0 12px 34px #00000017;
}
body.authoring:before{
  content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(ellipse at 53% 35%,#f4f4f4 0%,#e9e9e9 22%,#d4d4d4 55%,#bebebe 100%);
}
body.authoring #app,body.authoring .workspace,body.authoring .authoring-flow,
body.authoring .flow-conversation,body.authoring .authoring-dock,
body.authoring .workspace-footer,body.authoring .mobile-workspace-header,
body.authoring .mobile-destination-bar{background:transparent}
body .sidebar{border:0}
.authoring .initial-response-snapshot,
.authoring .understood-brand.palette-folio,
.authoring .approved-intake-ack,
.authoring .assistant-bubble:not(.initial-snapshot-host):not(.approved-intake){
  box-shadow:var(--authoring-surface-shadow);
}
body.authoring .sidebar,body.authoring .composer{box-shadow:var(--authoring-surface-shadow)!important}
body.authoring .composer:focus-within{box-shadow:0 3px 8px #00000012,0 15px 38px #00000020!important}
body.authoring .mobile-destination-bar>.mobile-destination{color:#4b4b4b}
body.authoring .mobile-destination-bar>.mobile-destination.active{color:var(--ink)}
.library-modal{padding-bottom:0}
.library-modal .library-selection-actions{bottom:0;z-index:5;padding:16px 0 24px;margin-top:18px}
body .composer{
  border-color:var(--border);transform:translateY(0);
  box-shadow:0 5px 25px #0000000e!important;
  transition:transform .2s ease,box-shadow .2s ease;
}
body .composer:focus-within{
  outline:none;outline-offset:0;border-color:var(--border);
  transform:translateY(-2px);
  box-shadow:0 5px 16px #00000010,0 18px 46px #00000023!important;
}
body .composer-shell,body .authoring-composer,body .authoring-flow{overflow:visible}
body .composer textarea:focus-visible{outline:none}
html.using-keyboard body .composer textarea:focus-visible{outline:2px solid #656565;outline-offset:3px;border-radius:5px}
@media(prefers-reduced-motion:reduce){
  body .composer,body .composer:focus-within{transform:none;transition:none}
}
body .composer .attach-button,
body .composer .composer-entry .attach-button{
  display:grid;place-items:center;flex:0 0 44px;
  width:44px;height:44px;min-width:44px;min-height:44px;
  padding:0;margin:0;border-radius:50%!important;aspect-ratio:1;
  align-self:center;
}
body .composer .attach-button svg{width:19px;height:19px;flex:none}
body .ref-card .ref-checkbox,
body .ref-card.selected .ref-checkbox{
  left:10px;right:auto;top:10px;width:44px;height:44px;
  min-width:44px;min-height:44px;padding:0;aspect-ratio:1;
  display:grid;place-items:center;border-radius:50%!important;
  border:0;background:transparent;box-shadow:none;
}
/* The mark is half its former size while its 44px hit area stays intact. */
body .ref-card .ref-checkbox::before{
  content:'';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:22px;height:22px;box-sizing:border-box;border-radius:50%;
  background:var(--surface);border:1px solid var(--control-border);
  box-shadow:0 1px 3px #00000014;pointer-events:none;
}
body .ref-card.selected .ref-checkbox::before{
  background:var(--ink);border-color:var(--ink);
  box-shadow:0 0 0 1.5px var(--surface);
}
body .ref-card .ref-checkbox>svg{
  position:relative;z-index:1;width:8px;height:8px;pointer-events:none;
}
.ref-image-wrap{position:relative;overflow:hidden}
.ref-image-wrap .ref-image-button{width:100%;display:block;padding:0;border:0}
.ref-hover-actions{
  position:absolute;inset:auto 10px 10px;display:flex;align-items:center;
  justify-content:flex-end;gap:8px;opacity:0;transform:translateY(3px);
  pointer-events:none;transition:opacity .15s,transform .15s;
}
.ref-card:is(:hover,:focus-within) .ref-hover-actions{
  opacity:1;transform:none;pointer-events:auto;
}
.ref-hover-actions>button{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  min-height:44px;padding:10px 14px;border:1px solid #ddd;
  background:#fff;color:#171717;box-shadow:0 2px 10px #0000000c;
  border-radius:999px;font:500 11px/1.3 var(--sans);
}
.ref-hover-actions>button svg{width:14px;height:14px}
.ref-card .ref-body{padding:14px 16px}
.ref-card .ref-title{min-height:0;margin:0;font:500 14px/1.45 var(--sans);text-wrap:pretty}
.ref-details{padding:0 16px 16px;font-size:12px;line-height:1.6;color:var(--muted)}
.ref-details[hidden]{display:none}
.ref-details a{color:var(--ink)}
.composer.reference-composer{display:block;min-width:0;padding:18px 20px 12px}
.reference-composer>.reference-card{
  padding:0 3px 10px;border:0;background:transparent;border-radius:0;
  max-height:min(48dvh,510px);overflow-y:auto;overscroll-behavior:contain;
  scrollbar-width:thin;scrollbar-gutter:stable;
}
.reference-composer .reference-heading{gap:14px}
.reference-composer .reference-heading h2{font-size:27px;max-width:520px}
.reference-composer .reference-heading>.text-button{font-size:11px;min-height:44px}
.reference-composer .card-description{font-size:12px;margin-top:7px}
.reference-composer .reference-selection-count{margin:9px 0 12px}
.reference-composer .reference-scope-note{margin:0 0 10px}
.reference-composer .reference-carousel{margin-top:14px;gap:14px;padding:1px 1px 12px}
.reference-composer .reference-carousel>.ref-card{flex:0 0 260px;min-width:230px}
.reference-composer .reference-carousel .ref-image-button img{height:165px;object-fit:cover}
.reference-composer .reference-tools{margin-top:9px}
.reference-composer .composer-entry{
  display:flex;align-items:center;gap:10px;min-width:0;padding:10px 0 0;
}
.reference-composer .composer-entry textarea{font-size:16px;line-height:26px;min-height:44px}
.reference-composer .card-actions{border:0;padding:0;margin-top:10px}
/* Approved Wide + Detail: artwork and actions stay inside the shared composer. */
.ready-composer{cursor:pointer}
.ready-composer .composer-entry{cursor:auto}
.ready-composer .guided-question-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
.ready-composer .guided-question-heading h2{flex:1;min-width:0;margin:0}
.ready-composer-heading>.button{flex:none;min-height:44px;padding:11px 17px;font-size:13px;white-space:nowrap}
.ready-composer-heading>.button svg{width:15px;height:15px}
.ready-composer-visuals{display:grid;grid-template-columns:1.4fr 1fr;gap:10px;margin-bottom:20px;min-width:0}
.ready-composer-visuals:has(>.ready-composer-thumbnail:only-child){grid-template-columns:1fr}
.ready-composer-thumbnail{position:relative;display:block;min-width:0;padding:0;overflow:hidden;border-radius:9px;background:var(--surface-subtle);text-align:left}
.ready-composer-thumbnail>img{display:block;width:100%;height:147px;object-fit:cover;object-position:center;filter:none}
@media(hover:none){.ref-hover-actions{opacity:1;transform:none;pointer-events:auto}}
@media(max-width:640px){
  .ready-composer-visuals{gap:8px;margin-bottom:18px}
  .ready-composer-thumbnail>img{height:113px}
  .ready-composer .guided-question-heading{gap:12px}
  .ready-composer .guided-question-heading h2{font-size:clamp(20px,5.8vw,24px)}
  .ready-composer-heading>.button{font-size:11px;padding:10px;gap:5px}
  .ready-composer-heading>.button svg{width:12px;height:12px}
  /* Keep the scroll viewport outside the composer's shadow, without shifting its content. */
  body.authoring .authoring-flow>.authoring-dock{
    --composer-shadow-gutter:24px;
    margin-top:calc(-1 * var(--composer-shadow-gutter));
    margin-bottom:calc(-1 * var(--composer-shadow-gutter));
    margin-inline:calc(-1 * var(--composer-shadow-gutter));
    padding:calc(4px + var(--composer-shadow-gutter)) calc(1px + var(--composer-shadow-gutter)) calc(2px + var(--composer-shadow-gutter));
    max-height:calc(100% - 42px + var(--composer-shadow-gutter) + var(--composer-shadow-gutter));
  }
  .composer.reference-composer{padding:17px 14px 11px}
  .reference-composer>.reference-card{max-height:min(46dvh,430px);padding:0 1px 9px}
  .reference-composer .reference-heading h2{font-size:24px;max-width:72%;line-height:1.2}
  .reference-composer .reference-heading>.text-button{font-size:10px;max-width:78px}
  .reference-composer .reference-carousel>.ref-card{flex-basis:88%;min-width:220px}
  .reference-composer .reference-carousel .ref-image-button img{height:160px}
  .reference-composer .reference-tools{flex-wrap:wrap;gap:10px}
  .reference-composer .composer-entry{gap:5px;padding-top:8px}
  .reference-composer .composer-entry textarea{font-size:16px;line-height:24px}
  .ref-hover-actions{opacity:1;transform:none;pointer-events:auto;gap:6px;inset-inline:8px}
  .ref-hover-actions>button{font-size:10px;padding:9px 11px}
  .library-modal .ref-grid{gap:18px}
}
@media(prefers-reduced-motion:reduce){.ref-hover-actions{transition:none;transform:none}}
