.service-settings-icon { display: none; }
body:has(#viewPreview.ar-service-home:not(.hidden)) .studio-topbar {
  width: min(100%, 640px);
  margin-inline: auto;
  padding: 6px 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  gap: 4px;
}
body:has(#viewPreview.ar-service-home:not(.hidden)) .studio-topbar > :first-child { flex: 1; }
body:has(#viewPreview.ar-service-home:not(.hidden)) .studio-topbar > :first-child > :first-child { flex: 1; gap: 7px; }
body:has(#viewPreview.ar-service-home:not(.hidden)) .service-brand-group { flex: 1; justify-content: space-between; align-items: center; }
body:has(#viewPreview.ar-service-home:not(.hidden)) .service-brand-group button { text-decoration: none; }
body:has(#viewPreview.ar-service-home:not(.hidden)) .studio-brand-name { color: #faf9f6; font-size: clamp(16px, 4.4vw, 21px); font-weight: 800; letter-spacing: -.045em; }
body:has(#viewPreview.ar-service-home:not(.hidden)) #headerDrmDot { display: none; }
body:has(#viewPreview.ar-service-home:not(.hidden)) .service-settings-icon { display: block; }
#viewPreview.ar-service-home #studioServices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 0 0 18px;
  color: #f2f5fa;
}
#studioServices :is(.service-hero, .service-tool) {
  position: relative;
  min-width: 0;
  text-align: left;
  font-family: inherit;
  border-radius: 10px;
  cursor: pointer;
}
#studioServices :is(a,button):focus-visible { outline: 2px solid #93cdff; outline-offset: 2px; }
#viewPreview.ar-service-home #startAutoReels {
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  grid-column: 1 / -1;
  min-height: clamp(136px, 37vw, 186px);
  margin-bottom: 4px;
  padding: 19px clamp(15px, 4vw, 28px);
  background: linear-gradient(115deg, #102f78 0%, #09255e 55%, #061b44 100%);
  border: 1px solid #213d75;
}
#viewPreview.ar-service-home #studioServices #startAutoReels:hover { background: linear-gradient(115deg, #173982, #0a2050); }
#studioServices .service-hero-copy { display: grid; grid-template-columns: max-content minmax(0, 1fr); justify-items: start; gap: 5px; width: 62%; z-index: 1; }
#studioServices strong, #studioServices small { display: block; }
#studioServices .service-hero strong { grid-column: 1; color: #fafbff; font-size: clamp(19px, 5vw, 29px); font-weight: 800; letter-spacing: -.055em; line-height: 1.2; }
#studioServices .service-hero small { grid-column: 1 / -1; color: #d0def3; font-size: clamp(11px, 2.9vw, 14px); }
#studioServices .service-cta { grid-column: 1; justify-self: stretch; text-align: center; margin-top: 8px; padding: 6px 12px; border-radius: 6px; background: #83caff; color: #082544; font-size: 12px; font-weight: 750; }
.service-photos { position: absolute; inset: 10% 4% 10% auto; width: 34%; pointer-events: none; }
.service-photos img { position: absolute; height: 90%; width: 59%; top: 7%; right: 2%; object-fit: cover; border: 1px solid #c5a987; border-radius: 7px; transform: rotate(6deg); box-shadow: 0 2px 6px #020c27aa; }
.service-photos img + img { top: 0; right: 39%; height: 100%; transform: rotate(-5deg); }
#studioServices .service-tool {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid #303744;
  background: linear-gradient(135deg, #1c242f, #151b24);
  text-decoration: none;
}
#studioServices .service-tool::after {
  content: ''; position: absolute; top: 17px; right: 13px; width: 6px; height: 6px;
  border: solid #a9b7c8; border-width: 1px 1px 0 0; transform: rotate(45deg);
}
#studioServices .service-tool:hover { border-color: #526782; }
#studioServices .service-tool :is(.service-icon,.quote-menu-icon) { box-sizing: border-box; width: 34px; height: 34px; padding: 6px; border-radius: 9px; background: var(--studio-action-ink); color: var(--studio-action-fill); }
#studioServices :is(#openPhotoCollageBtn,#openCardNewsBtn,[href*="instagram-post"]) :is(.service-icon,.quote-menu-icon) { background: var(--studio-image-ink); color: var(--studio-image-chip); }
#studioServices .service-group :is(.service-icon,.quote-menu-icon) { background: var(--studio-voice-ink); color: var(--studio-voice-chip); }
#studioServices .service-tool .quote-menu-icon { display: grid; place-items: center; font-size: 23px; line-height: 1; }
#studioServices .service-icon { width: 23px; height: 23px; color: #89cefc; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linejoin: round; stroke-linecap: round; }
#studioServices .service-tool strong { color: #f2f4f7; font-size: clamp(14px, 3.7vw, 17px); line-height: 1.4; letter-spacing: -.04em; font-weight: 700; }
#studioServices .service-tool small { margin-top: 2px; color: #b9c3d0; font-size: 12px; line-height: 1.4; word-break: keep-all; }
#studioServices .service-wide { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding-right: 28px; }
#studioServices .service-wide::after { top: calc(50% - 3px); }

#studioServices .service-group { grid-column: 1 / -1; min-width: 0; border-bottom: 1px solid #303744; }
#studioServices .service-group summary { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 4px; color: #e7edf5; font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; }
#studioServices .service-group summary::-webkit-details-marker { display: none; }
#studioServices .service-group summary::after { content: ''; width: 7px; height: 7px; border: solid #93a4b8; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin-right: 7px; }
#studioServices .service-group[open] summary::after { transform: rotate(225deg); }
#studioServices summary:focus-visible { outline: 2px solid #93cdff; }
#studioServices .service-group-tools { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding-bottom: 12px; }
#studioServices .service-group-tools .service-tool:only-child,
#studioServices .service-group-tools .service-tool:last-child:nth-child(odd) { grid-column: 1 / -1; }
#studioServices .service-group-tools .service-wide { grid-column: auto; grid-template-columns: auto; }
#studioServices .quote-menu-icon { font: 700 34px/23px Georgia,serif; height: 23px; color: #89cefc; }

.quote-choice { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 9px 12px; padding: 15px; border-radius: 12px; border: 1px solid #343c49; background: #191e25; }
.quote-choice small,.quote-choice strong { grid-column: 1 / -1; }
.quote-choice small,.quote-choice a { color: #b3c2d2; font-size: 12px; }
.quote-choice strong { color: #fff8eb; font-size: 17px; word-break: keep-all; }
.quote-choice button { padding: 8px 12px; }

#studioServices #openCardNewsBtn { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; gap: 12px; }

.meme-cut-carousel { min-width:0; max-width:100%; }
.meme-cut-nav { display:flex; align-items:center; gap:8px; margin:4px 0 8px; }
.meme-cut-nav strong { margin-right:auto; }
.meme-cut-nav output { font-variant-numeric:tabular-nums; }
.meme-cut-nav button { width:36px; height:36px; border-radius:50%; background:#252934; font-size:22px; }
.meme-cut-nav button:disabled { opacity:.32; }
#arMemeCutVisualStrip { display:flex; width:100%; overflow-x:auto; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; scrollbar-width:thin; }
#arMemeCutVisualStrip > div { flex:0 0 100%; min-width:0; box-sizing:border-box; scroll-snap-align:start; }
#arMemeCutVisualStrip > div > button { width:25%; height:110px; }
#arMemeCutVisualStrip .truncate { white-space:normal; overflow-wrap:anywhere; }

.quote-choice .draft-sheet { grid-column: 1 / -1; }
.draft-sheet summary { cursor: pointer; color: #d6e2ef; font-size: 13px; }
.draft-sheet img { width: 100%; max-height: 330px; margin-top: 8px; object-fit: contain; }
.draft-sources { display: grid; gap: 4px; min-width: 0; }
.draft-sources a { overflow-wrap: anywhere; }
.ar-cut-motion{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:8px;margin-top:10px;font-size:12px}.ar-cut-motion select{padding:8px;border:1px solid #42444e;border-radius:8px;background:#202128;color:#fff}.ar-cut-motion>div{grid-column:1/-1}.ar-cut-motion label{display:flex;align-items:center;gap:8px;min-height:30px}.ar-cut-motion input{flex:1;min-width:0}.ar-cut-motion output{min-width:3em;text-align:right}

#arMemeShortsBox:not([data-quote-library]) [data-quote-tools],
#arMemeShortsBox[data-quote-library] [data-clip-tools],
#arMemeShortsBox[data-quote-selected] #arMemeRadarList,
#arMemeShortsBox[data-quote-library]:not([data-quote-selected]) #arMemeAssembledBox { display: none; }
.quote-flow-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
#arChooseAnotherQuote[hidden] { display:none; }
#arMemeShortsBox[data-quote-library] #arMemeRadarList { max-height: none; overflow: visible; }
.quote-choice .quote-select { text-align: left; width: 100%; padding: .6rem 0; color: inherit; font-weight: 700; cursor: pointer; }

.quote-action { display:block; margin-top:.35rem; font-size:.78rem; color:#a9caff; }
#arQuoteScene { position:fixed; inset:0; margin:auto; width:min(94vw,760px); max-height:92dvh; overflow:auto; padding:16px; border:1px solid #3c414b; border-radius:16px; background:#17191f; color:#fff; }
#arQuoteScene::backdrop { background:rgb(0 0 0 / 76%); }
#arQuoteScene .quote-scene-head, #arQuoteScene .quote-scene-actions { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
#arQuoteScene .quote-scene-head { justify-content:space-between; margin-bottom:12px; }
#arQuoteScene h2 { font-size:1.05rem; font-weight:700; }
#arQuoteScene [data-scene-player] iframe { display:block; width:100%; aspect-ratio:16 / 9; min-height:200px; border:0; background:#090909; }
#arQuoteScene p { margin:.75rem 0 .35rem; }
#arQuoteScene a { color:#abcaff; text-decoration:underline; font-size:.85rem; }
#arQuoteScene .quote-scene-actions { margin-top:1rem; }
#arQuoteScene .quote-scene-actions > * { padding:.55rem .75rem; cursor:pointer; }

#arQuoteScene iframe.quote-clip-player { height:min(60dvh,560px); }
